@devvit/protos 0.11.0-next-2024-07-24-1be38cc96.0 → 0.11.0-next-2024-07-25-1378e6e47.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/meta.min.json +117 -156
- package/package.json +7 -6
- package/protos.min.js +2 -2
- package/protos.min.js.map +4 -4
- package/schema/.snootobuf/.gitIgnoreMe +1 -0
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/audit.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/auth.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/organization.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/service.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/subscription.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/ui.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/admin.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/delivery.proto +13 -7
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/filter.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/firehose.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/intake.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/events/v1alpha/events.proto +2 -2
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +17 -0
- package/schema/{devvit → .snootobuf/deps/devvit}/options/options.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/commentv2.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/flair.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modaction.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modmail.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/postv2.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/subredditv2.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/userv2.proto +1 -1
- package/schema/{devvit/data → .snootobuf/deps/devvit}/triggers/v1alpha/triggers.proto +2 -1
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
- package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
- package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
- package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
- package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
- package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
- package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
- package/schema/.snootobuf/deps/enum/vote.proto +12 -0
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +112 -0
- package/schema/.snootobuf/deps/google/api/auth.proto +181 -0
- package/schema/.snootobuf/deps/google/api/backend.proto +51 -0
- package/schema/.snootobuf/deps/google/api/billing.proto +67 -0
- package/schema/{google → .snootobuf/deps/google}/api/client.proto +37 -37
- package/schema/.snootobuf/deps/google/api/config_change.proto +85 -0
- package/schema/.snootobuf/deps/google/api/consumer.proto +83 -0
- package/schema/.snootobuf/deps/google/api/context.proto +63 -0
- package/schema/.snootobuf/deps/google/api/control.proto +33 -0
- package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
- package/schema/.snootobuf/deps/google/api/documentation.proto +157 -0
- package/schema/.snootobuf/deps/google/api/endpoint.proto +71 -0
- package/schema/{google → .snootobuf/deps/google}/api/field_behavior.proto +23 -17
- package/schema/{google → .snootobuf/deps/google}/api/http.proto +1 -0
- package/schema/.snootobuf/deps/google/api/httpbody.proto +76 -0
- package/schema/.snootobuf/deps/google/api/label.proto +49 -0
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +67 -0
- package/schema/.snootobuf/deps/google/api/log.proto +55 -0
- package/schema/.snootobuf/deps/google/api/logging.proto +83 -0
- package/schema/.snootobuf/deps/google/api/metric.proto +192 -0
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +116 -0
- package/schema/.snootobuf/deps/google/api/monitoring.proto +89 -0
- package/schema/.snootobuf/deps/google/api/quota.proto +259 -0
- package/schema/.snootobuf/deps/google/api/resource.proto +299 -0
- package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
- package/schema/.snootobuf/deps/google/api/service.proto +175 -0
- package/schema/.snootobuf/deps/google/api/source_info.proto +32 -0
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
- package/schema/.snootobuf/deps/google/api/usage.proto +92 -0
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
- package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
- package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
- package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
- package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
- package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
- package/schema/.snootobuf/deps/google/type/color.proto +170 -0
- package/schema/.snootobuf/deps/google/type/date.proto +50 -0
- package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
- package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
- package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
- package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
- package/schema/.snootobuf/deps/google/type/money.proto +43 -0
- package/schema/.snootobuf/deps/google/type/month.proto +66 -0
- package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
- package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
- package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +69 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +289 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +54 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +32 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +144 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
- package/schema/.snootobuf/deps/validate/validate.proto +862 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.client.ts +597 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.ts +191 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.client.ts +49 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.ts +340 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.client.ts +42 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.ts +99 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.client.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.ts +334 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/permissions/permissions.ts +324 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.ts +174 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.client.ts +58 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.ts +679 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_type.ts +22 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.ts +131 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/action.ts +84 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.client.ts +43 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.ts +12 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.client.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.client.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.client.ts +68 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/shared.ts +311 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.client.ts +82 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.ts +77 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.client.ts +120 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.ts +25 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.client.ts +63 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.ts +284 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/cli/playtest.ts +323 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.ts +143 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/actor/actor_type.ts +94 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.client.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.ts +659 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/app.ts +2060 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/categories/categories.ts +146 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/info/app_info.ts +389 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/app_publish_request.ts +970 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/note/app_publish_request_note.ts +257 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/review/app_publish_request_review.ts +200 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_settings/app_settings.ts +571 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/app_version.ts +1161 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/info/app_version_info.ts +397 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/audit/audit.ts +646 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/auth/auth.ts +458 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/organization/organization.ts +347 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/subscription/subscription.ts +982 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.client.ts +1047 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.ts +218 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/feedback/feedback.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation/installation.ts +1882 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation_settings/installation_settings.ts +575 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.ts +394 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.client.ts +118 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.ts +27 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.ts +180 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.ts +162 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/nutrition/nutrition.ts +245 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/reddit/redditor.ts +98 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.client.ts +84 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.ts +455 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.ts +149 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/wqcleanup.ts +68 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.client.ts +114 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.ts +475 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.client.ts +96 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.ts +256 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/snapshot.ts +80 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/subreddit_metadata.ts +312 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/common.ts +22 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/order.ts +208 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/product.ts +241 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.client.ts +58 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.ts +380 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.client.ts +57 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.ts +102 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.client.ts +57 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.ts +13 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack_common.ts +705 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/filesystem.ts +168 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.ts +12 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.ts +294 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.client.ts +51 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.ts +304 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.client.ts +72 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.ts +209 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.client.ts +51 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.ts +89 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.client.ts +80 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.ts +198 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.client.ts +83 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.ts +608 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.ts +155 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.client.ts +43 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.ts +187 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.client.ts +81 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.ts +476 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/common/common_msg.ts +3641 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_msg.ts +2310 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.client.ts +270 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.ts +43 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_msg.ts +224 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.client.ts +63 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.ts +14 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.ts +1869 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.client.ts +571 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.ts +52 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_msg.ts +1156 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.client.ts +194 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.ts +27 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_msg.ts +1231 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.client.ts +373 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.ts +46 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_msg.ts +1025 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.client.ts +112 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.ts +23 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_msg.ts +4135 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.client.ts +351 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.ts +52 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_msg.ts +1040 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.client.ts +207 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.ts +34 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_msg.ts +380 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.client.ts +186 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.ts +25 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_msg.ts +11280 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.client.ts +480 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.ts +71 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_msg.ts +1820 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.client.ts +247 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.ts +42 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_msg.ts +4766 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.client.ts +401 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.ts +56 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_msg.ts +1786 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.client.ts +236 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.ts +35 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.client.ts +518 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.ts +3347 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.client.ts +89 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.ts +575 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.ts +235 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.ts +169 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.ts +312 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/comment.ts +963 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/common.ts +1099 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.ts +527 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.client.ts +79 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.ts +340 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/post.ts +2063 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/subreddit.ts +1374 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/thing_type.ts +36 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/user.ts +1418 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.client.ts +78 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.ts +538 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.client.ts +56 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.ts +13 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.client.ts +36 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.ts +11 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.client.ts +53 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.ts +78 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.client.ts +87 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.ts +92 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.ts +87 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/bundle.ts +859 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/envelope.ts +230 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/runtime_common.ts +251 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/serializable.ts +232 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.client.ts +57 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.ts +82 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.ts +12 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/attributes.ts +642 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/block.ts +1656 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/enums.ts +602 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/rendering.ts +157 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/ui.ts +354 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/common/v1alpha/common.ts +116 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/create_order.ts +217 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/effect.ts +266 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/interval.ts +169 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/navigate_to_url.ts +81 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/realtime_subscriptions.ts +156 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/reload_part.ts +349 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/rerender_ui.ts +71 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_form.ts +162 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_toast.ts +104 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/event.ts +697 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.client.ts +39 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.ts +160 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/field.ts +974 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/form.ts +134 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/type.ts +56 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/value.ts +359 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/toast/toast.ts +314 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/uuid.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/any.ts +322 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/descriptor.ts +3475 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/duration.ts +231 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/empty.ts +81 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/struct.ts +482 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/timestamp.ts +290 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/wrappers.ts +752 -0
- package/schema/devvit/dev_portal/admin/waitlist_admin.proto +2 -0
- package/schema/devvit/dev_portal/app/app.proto +2 -0
- package/schema/devvit/dev_portal/app_publish_request/app_publish_request.proto +2 -0
- package/schema/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +2 -0
- package/schema/devvit/dev_portal/app_publish_request/review/app_publish_request_review.proto +2 -10
- package/schema/devvit/dev_portal/app_settings/app_settings.proto +2 -0
- package/schema/devvit/dev_portal/dev_portal.proto +2 -2
- package/schema/devvit/dev_portal/feedback/feedback.proto +2 -0
- package/schema/devvit/dev_portal/installation_settings/installation_settings.proto +2 -0
- package/schema/devvit/dev_portal/nutrition/nutrition.proto +2 -0
- package/schema/devvit/dev_portal/waitlist/waitlist.proto +2 -0
- package/schema/devvit/gateway/v1alpha/triggers.proto +1 -1
- package/schema/snootobuf.devenv.lock +0 -0
- package/schema/snootobuf.devenv.yaml +15 -0
- package/schema/snootobuf.lock +0 -0
- package/schema/snootobuf.redditapi.lock +0 -0
- package/schema/snootobuf.redditapi.yaml +14 -0
- package/schema/snootobuf.ts.lock +0 -0
- package/schema/snootobuf.ts.yaml +35 -0
- package/schema/snootobuf.yaml +49 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +6 -6
- package/types/devvit/actor/automation/v1alpha/event_handlers.js +5 -5
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts +342 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.js +466 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts +175 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts.map +1 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.js +1833 -0
- package/types/devvit/actor/bot/bot.d.ts +2 -2
- package/types/devvit/actor/bot/bot.js +3 -3
- package/types/devvit/actor/bot/bot.twirp-client.d.ts +23 -0
- package/types/devvit/actor/bot/bot.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/bot/bot.twirp-client.js +36 -0
- package/types/devvit/actor/bot/bot.twirp.d.ts +15 -0
- package/types/devvit/actor/bot/bot.twirp.d.ts.map +1 -0
- package/types/devvit/actor/bot/bot.twirp.js +154 -0
- package/types/devvit/actor/hello/hello.d.ts +1 -1
- package/types/devvit/actor/hello/hello.js +2 -2
- package/types/devvit/actor/hello/hello.twirp-client.d.ts +19 -0
- package/types/devvit/actor/hello/hello.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/hello/hello.twirp-client.js +23 -0
- package/types/devvit/actor/hello/hello.twirp.d.ts +12 -0
- package/types/devvit/actor/hello/hello.twirp.d.ts.map +1 -0
- package/types/devvit/actor/hello/hello.twirp.js +88 -0
- package/types/devvit/actor/payments/v1alpha/payments.d.ts +2 -2
- package/types/devvit/actor/payments/v1alpha/payments.js +3 -3
- package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts +22 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp-client.js +35 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts +14 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts.map +1 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp.js +156 -0
- package/types/devvit/actor/permissions/permissions.d.ts +1 -1
- package/types/devvit/actor/permissions/permissions.js +2 -2
- package/types/devvit/actor/producer/producer.d.ts +1 -1
- package/types/devvit/actor/producer/producer.js +2 -2
- package/types/devvit/actor/producer/producer.twirp-client.d.ts +19 -0
- package/types/devvit/actor/producer/producer.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/producer/producer.twirp-client.js +23 -0
- package/types/devvit/actor/producer/producer.twirp.d.ts +12 -0
- package/types/devvit/actor/producer/producer.twirp.d.ts.map +1 -0
- package/types/devvit/actor/producer/producer.twirp.js +88 -0
- package/types/devvit/actor/reddit/context_action.d.ts +6 -6
- package/types/devvit/actor/reddit/context_action.js +7 -7
- package/types/devvit/actor/reddit/context_action.twirp-client.d.ts +23 -0
- package/types/devvit/actor/reddit/context_action.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/reddit/context_action.twirp-client.js +36 -0
- package/types/devvit/actor/reddit/context_action.twirp.d.ts +15 -0
- package/types/devvit/actor/reddit/context_action.twirp.d.ts.map +1 -0
- package/types/devvit/actor/reddit/context_action.twirp.js +157 -0
- package/types/devvit/actor/reddit/post_filter.d.ts +2 -2
- package/types/devvit/actor/reddit/post_filter.js +3 -3
- package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts +19 -0
- package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/reddit/post_filter.twirp-client.js +23 -0
- package/types/devvit/actor/reddit/post_filter.twirp.d.ts +12 -0
- package/types/devvit/actor/reddit/post_filter.twirp.d.ts.map +1 -0
- package/types/devvit/actor/reddit/post_filter.twirp.js +88 -0
- package/types/devvit/actor/scheduler/action.d.ts +1 -1
- package/types/devvit/actor/scheduler/action.js +3 -3
- package/types/devvit/actor/scheduler/handler.d.ts +3 -3
- package/types/devvit/actor/scheduler/handler.js +3 -3
- package/types/devvit/actor/scheduler/handler.twirp-client.d.ts +20 -0
- package/types/devvit/actor/scheduler/handler.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/scheduler/handler.twirp-client.js +24 -0
- package/types/devvit/actor/scheduler/handler.twirp.d.ts +13 -0
- package/types/devvit/actor/scheduler/handler.twirp.d.ts.map +1 -0
- package/types/devvit/actor/scheduler/handler.twirp.js +91 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.d.ts +2 -2
- package/types/devvit/actor/settings/v1alpha/app_settings.js +2 -2
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts +22 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.js +35 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts +14 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp.js +156 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts +2 -2
- package/types/devvit/actor/settings/v1alpha/installation_settings.js +2 -2
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts +22 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.js +35 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts +14 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.js +156 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts +2 -2
- package/types/devvit/actor/settings/v1alpha/instance_settings.js +2 -2
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts +22 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.js +35 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts +14 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.js +156 -0
- package/types/devvit/actor/settings/v1alpha/shared.d.ts +3 -3
- package/types/devvit/actor/settings/v1alpha/shared.js +4 -4
- package/types/devvit/actor/test/streams.d.ts +1 -1
- package/types/devvit/actor/test/streams.js +2 -2
- package/types/devvit/actor/test/streams.twirp-client.d.ts +25 -0
- package/types/devvit/actor/test/streams.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/test/streams.twirp-client.js +47 -0
- package/types/devvit/actor/test/streams.twirp.d.ts +16 -0
- package/types/devvit/actor/test/streams.twirp.d.ts.map +1 -0
- package/types/devvit/actor/test/streams.twirp.js +222 -0
- package/types/devvit/actor/test/wrappertypes.d.ts +2 -2
- package/types/devvit/actor/test/wrappertypes.js +2 -2
- package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts +40 -0
- package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/test/wrappertypes.twirp-client.js +107 -0
- package/types/devvit/actor/test/wrappertypes.twirp.d.ts +26 -0
- package/types/devvit/actor/test/wrappertypes.twirp.d.ts.map +1 -0
- package/types/devvit/actor/test/wrappertypes.twirp.js +552 -0
- package/types/devvit/actor/user_configurable/user_configurable.d.ts +2 -2
- package/types/devvit/actor/user_configurable/user_configurable.js +3 -3
- package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts +23 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp-client.js +36 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts +15 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts.map +1 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp.js +157 -0
- package/types/devvit/cli/playtest.d.ts +2 -2
- package/types/devvit/cli/playtest.js +3 -3
- package/types/devvit/data/api/v1alpha/admin.d.ts +4 -4
- package/types/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
- package/types/devvit/data/api/v1alpha/admin.js +6 -6
- package/types/devvit/debug/v1alpha/debug.d.ts +1 -1
- package/types/devvit/debug/v1alpha/debug.js +2 -2
- package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts +19 -0
- package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts.map +1 -0
- package/types/devvit/debug/v1alpha/debug.twirp-client.js +23 -0
- package/types/devvit/debug/v1alpha/debug.twirp.d.ts +12 -0
- package/types/devvit/debug/v1alpha/debug.twirp.d.ts.map +1 -0
- package/types/devvit/debug/v1alpha/debug.twirp.js +88 -0
- package/types/devvit/dev_portal/actor/actor_type.d.ts +1 -1
- package/types/devvit/dev_portal/actor/actor_type.js +2 -2
- package/types/devvit/dev_portal/admin/waitlist_admin.d.ts +3 -3
- package/types/devvit/dev_portal/admin/waitlist_admin.js +5 -5
- package/types/devvit/dev_portal/app/app.d.ts +4 -4
- package/types/devvit/dev_portal/app/app.js +6 -6
- package/types/devvit/dev_portal/app/info/app_info.d.ts +4 -4
- package/types/devvit/dev_portal/app/info/app_info.js +6 -6
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts +6 -6
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.js +8 -8
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts +2 -2
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.js +4 -4
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts +2 -28
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts.map +1 -1
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +4 -142
- package/types/devvit/dev_portal/app_settings/app_settings.d.ts +3 -3
- package/types/devvit/dev_portal/app_settings/app_settings.js +4 -4
- package/types/devvit/dev_portal/app_version/app_version.d.ts +7 -7
- package/types/devvit/dev_portal/app_version/app_version.js +9 -9
- package/types/devvit/dev_portal/app_version/info/app_version_info.d.ts +1 -1
- package/types/devvit/dev_portal/app_version/info/app_version_info.js +4 -4
- package/types/devvit/dev_portal/data_api/admin/audit/audit.d.ts +1 -1
- package/types/devvit/dev_portal/data_api/admin/audit/audit.js +3 -3
- package/types/devvit/dev_portal/data_api/admin/auth/auth.d.ts +3 -3
- package/types/devvit/dev_portal/data_api/admin/auth/auth.js +5 -5
- package/types/devvit/dev_portal/data_api/admin/organization/organization.d.ts +2 -2
- package/types/devvit/dev_portal/data_api/admin/organization/organization.js +3 -3
- package/types/devvit/dev_portal/data_api/admin/subscription/subscription.d.ts +4 -4
- package/types/devvit/dev_portal/data_api/admin/subscription/subscription.js +5 -5
- package/types/devvit/dev_portal/dev_portal.d.ts +20 -88
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.js +20 -48
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +1 -7
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp-client.js +1 -25
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts +1 -5
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp.js +1 -133
- package/types/devvit/dev_portal/feedback/feedback.d.ts +1 -1
- package/types/devvit/dev_portal/feedback/feedback.js +2 -2
- package/types/devvit/dev_portal/installation/installation.d.ts +4 -4
- package/types/devvit/dev_portal/installation/installation.js +8 -8
- package/types/devvit/dev_portal/installation_settings/installation_settings.d.ts +3 -3
- package/types/devvit/dev_portal/installation_settings/installation_settings.js +4 -4
- package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.d.ts +2 -2
- package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.js +3 -3
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +5 -5
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.js +5 -5
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.d.ts +2 -2
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.js +3 -3
- package/types/devvit/dev_portal/internal/media/media.d.ts +1 -1
- package/types/devvit/dev_portal/internal/media/media.js +2 -2
- package/types/devvit/dev_portal/nutrition/nutrition.d.ts +1 -1
- package/types/devvit/dev_portal/nutrition/nutrition.js +2 -2
- package/types/devvit/dev_portal/reddit/redditor.d.ts +1 -1
- package/types/devvit/dev_portal/reddit/redditor.js +2 -2
- package/types/devvit/dev_portal/waitlist/waitlist.d.ts +3 -3
- package/types/devvit/dev_portal/waitlist/waitlist.js +5 -5
- package/types/devvit/events/v1alpha/events.d.ts +6 -6
- package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
- package/types/devvit/events/v1alpha/events.js +17 -17
- package/types/devvit/events/v1alpha/realtime.d.ts +2 -2
- package/types/devvit/events/v1alpha/realtime.js +4 -4
- package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts +23 -0
- package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts.map +1 -0
- package/types/devvit/events/v1alpha/realtime.twirp-client.js +36 -0
- package/types/devvit/events/v1alpha/realtime.twirp.d.ts +15 -0
- package/types/devvit/events/v1alpha/realtime.twirp.d.ts.map +1 -0
- package/types/devvit/events/v1alpha/realtime.twirp.js +157 -0
- package/types/devvit/events/v1alpha/wqcleanup.d.ts +1 -1
- package/types/devvit/events/v1alpha/wqcleanup.js +2 -2
- package/types/devvit/gateway/custom_post_snapshot.d.ts +2 -2
- package/types/devvit/gateway/custom_post_snapshot.js +3 -3
- package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts +20 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp-client.js +24 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts +13 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp.js +91 -0
- package/types/devvit/gateway/resolvers.d.ts +2 -2
- package/types/devvit/gateway/resolvers.js +3 -3
- package/types/devvit/gateway/resolvers.twirp-client.d.ts +20 -0
- package/types/devvit/gateway/resolvers.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/resolvers.twirp-client.js +24 -0
- package/types/devvit/gateway/resolvers.twirp.d.ts +13 -0
- package/types/devvit/gateway/resolvers.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/resolvers.twirp.js +91 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.d.ts +1 -1
- package/types/devvit/gateway/utils/v1alpha/utilities.js +2 -2
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts +47 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.js +93 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts +28 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp.js +440 -0
- package/types/devvit/gateway/v1alpha/triggers.d.ts +8 -8
- package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
- package/types/devvit/gateway/v1alpha/triggers.js +5 -5
- package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts +37 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp-client.js +86 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts +25 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp.js +423 -0
- package/types/devvit/gql/snapshot.d.ts +1 -1
- package/types/devvit/gql/snapshot.js +2 -2
- package/types/devvit/gql/subreddit_metadata.d.ts +3 -3
- package/types/devvit/gql/subreddit_metadata.js +4 -4
- package/types/devvit/options/options.d.ts +1 -1
- package/types/devvit/options/options.js +2 -2
- package/types/devvit/payments/v1alpha/order.d.ts +3 -3
- package/types/devvit/payments/v1alpha/order.js +5 -5
- package/types/devvit/payments/v1alpha/product.d.ts +2 -2
- package/types/devvit/payments/v1alpha/product.js +3 -3
- package/types/devvit/plugin/assetresolver/assetresolver.d.ts +1 -1
- package/types/devvit/plugin/assetresolver/assetresolver.js +2 -2
- package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts +22 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.js +35 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts +14 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp.js +156 -0
- package/types/devvit/plugin/builder/builder.d.ts +3 -3
- package/types/devvit/plugin/builder/builder.js +4 -4
- package/types/devvit/plugin/builder/builder.twirp-client.d.ts +23 -0
- package/types/devvit/plugin/builder/builder.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/builder/builder.twirp-client.js +36 -0
- package/types/devvit/plugin/builder/builder.twirp.d.ts +15 -0
- package/types/devvit/plugin/builder/builder.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/builder/builder.twirp.js +154 -0
- package/types/devvit/plugin/buildpack/buildpack.d.ts +2 -2
- package/types/devvit/plugin/buildpack/buildpack.js +2 -2
- package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts +22 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp-client.js +35 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts +14 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp.js +156 -0
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +4 -4
- package/types/devvit/plugin/buildpack/buildpack_common.js +6 -6
- package/types/devvit/plugin/buildpack/filesystem.d.ts +1 -1
- package/types/devvit/plugin/buildpack/filesystem.js +2 -2
- package/types/devvit/plugin/clock/clock.d.ts +3 -3
- package/types/devvit/plugin/clock/clock.js +3 -3
- package/types/devvit/plugin/clock/clock.twirp-client.d.ts +20 -0
- package/types/devvit/plugin/clock/clock.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/clock/clock.twirp-client.js +24 -0
- package/types/devvit/plugin/clock/clock.twirp.d.ts +13 -0
- package/types/devvit/plugin/clock/clock.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/clock/clock.twirp.js +89 -0
- package/types/devvit/plugin/http/http.d.ts +1 -1
- package/types/devvit/plugin/http/http.js +2 -2
- package/types/devvit/plugin/http/http.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/http/http.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/http/http.twirp-client.js +23 -0
- package/types/devvit/plugin/http/http.twirp.d.ts +12 -0
- package/types/devvit/plugin/http/http.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/http/http.twirp.js +88 -0
- package/types/devvit/plugin/inspector/inspector.d.ts +3 -3
- package/types/devvit/plugin/inspector/inspector.js +4 -4
- package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts +23 -0
- package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/inspector/inspector.twirp-client.js +36 -0
- package/types/devvit/plugin/inspector/inspector.twirp.d.ts +15 -0
- package/types/devvit/plugin/inspector/inspector.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/inspector/inspector.twirp.js +157 -0
- package/types/devvit/plugin/kvstore/kvstore.d.ts +2 -2
- package/types/devvit/plugin/kvstore/kvstore.js +3 -3
- package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts +29 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp-client.js +60 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts +19 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp.js +289 -0
- package/types/devvit/plugin/linker/linker.d.ts +4 -4
- package/types/devvit/plugin/linker/linker.js +5 -5
- package/types/devvit/plugin/linker/linker.twirp-client.d.ts +20 -0
- package/types/devvit/plugin/linker/linker.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/linker/linker.twirp-client.js +24 -0
- package/types/devvit/plugin/linker/linker.twirp.d.ts +13 -0
- package/types/devvit/plugin/linker/linker.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/linker/linker.twirp.js +89 -0
- package/types/devvit/plugin/linker/resolver.d.ts +5 -5
- package/types/devvit/plugin/linker/resolver.js +6 -6
- package/types/devvit/plugin/linker/resolver.twirp-client.d.ts +29 -0
- package/types/devvit/plugin/linker/resolver.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/linker/resolver.twirp-client.js +51 -0
- package/types/devvit/plugin/linker/resolver.twirp.d.ts +20 -0
- package/types/devvit/plugin/linker/resolver.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/linker/resolver.twirp.js +226 -0
- package/types/devvit/plugin/logger/logger.d.ts +1 -1
- package/types/devvit/plugin/logger/logger.js +4 -4
- package/types/devvit/plugin/media/media.d.ts +1 -1
- package/types/devvit/plugin/media/media.js +2 -2
- package/types/devvit/plugin/media/media.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/media/media.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/media/media.twirp-client.js +23 -0
- package/types/devvit/plugin/media/media.twirp.d.ts +12 -0
- package/types/devvit/plugin/media/media.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/media/media.twirp.js +88 -0
- package/types/devvit/plugin/modlog/modlog.d.ts +1 -1
- package/types/devvit/plugin/modlog/modlog.js +2 -2
- package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/modlog/modlog.twirp-client.js +23 -0
- package/types/devvit/plugin/modlog/modlog.twirp.d.ts +12 -0
- package/types/devvit/plugin/modlog/modlog.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/modlog/modlog.twirp.js +88 -0
- package/types/devvit/plugin/payments/v1alpha/payments.d.ts +3 -3
- package/types/devvit/plugin/payments/v1alpha/payments.js +5 -5
- package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts +25 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.js +47 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts +16 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp.js +222 -0
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts +3 -3
- package/types/devvit/plugin/redditapi/common/common_msg.js +6 -6
- package/types/devvit/plugin/redditapi/flair/flair_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/flair/flair_msg.js +3 -3
- package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts +17 -17
- package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/flair/flair_svc.js +47 -126
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts +60 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.js +181 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts +40 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.js +950 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/graphql/graphql_msg.js +3 -3
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts +2 -2
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.js +2 -2
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts +22 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.js +35 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts +14 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.js +156 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +3 -3
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +5 -5
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +27 -27
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +89 -388
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +90 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +301 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +60 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.js +1610 -0
- package/types/devvit/plugin/redditapi/listings/listings_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/listings/listings_msg.js +4 -4
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +11 -11
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/listings/listings_svc.js +21 -55
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts +41 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.js +108 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts +27 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.js +553 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/moderation/moderation_msg.js +3 -3
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +28 -28
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.js +81 -361
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts +85 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.js +278 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts +57 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.js +1479 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/modnote/modnote_msg.js +3 -3
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts +8 -8
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.js +14 -59
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts +32 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.js +72 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts +21 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.js +355 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js +4 -4
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +21 -21
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js +46 -142
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts +77 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.js +252 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts +51 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.js +1345 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.js +4 -4
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts +3 -3
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.js +3 -3
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts +50 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.js +144 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts +33 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.js +751 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js +3 -3
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +14 -14
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js +34 -101
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts +48 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.js +133 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts +32 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.js +686 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.d.ts +3 -3
- package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.js +5 -5
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +32 -32
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.js +73 -243
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts +100 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.js +338 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts +67 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.js +1809 -0
- package/types/devvit/plugin/redditapi/users/users_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/users/users_msg.js +4 -4
- package/types/devvit/plugin/redditapi/users/users_svc.d.ts +17 -17
- package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/users/users_svc.js +39 -144
- package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts +58 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.js +170 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts +39 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp.js +885 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/widgets/widgets_msg.js +4 -4
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts +21 -21
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.js +69 -298
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts +71 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.js +228 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts +47 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.js +1213 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/wiki/wiki_msg.js +4 -4
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts +13 -18
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.js +28 -79
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts +47 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.js +132 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts +31 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.js +685 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts +4 -4
- package/types/devvit/plugin/redditapiv2/redditapiv2.js +4 -4
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts +24 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.js +37 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts +16 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.js +158 -0
- package/types/devvit/plugin/redis/redisapi.d.ts +3 -3
- package/types/devvit/plugin/redis/redisapi.js +4 -4
- package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts +126 -0
- package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redis/redisapi.twirp-client.js +445 -0
- package/types/devvit/plugin/redis/redisapi.twirp.d.ts +84 -0
- package/types/devvit/plugin/redis/redisapi.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redis/redisapi.twirp.js +2402 -0
- package/types/devvit/plugin/scheduler/scheduler.d.ts +4 -4
- package/types/devvit/plugin/scheduler/scheduler.js +6 -6
- package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts +26 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp-client.js +48 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts +17 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp.js +223 -0
- package/types/devvit/plugin/settings/v1alpha/settings.d.ts +2 -2
- package/types/devvit/plugin/settings/v1alpha/settings.js +4 -4
- package/types/devvit/plugin/streambroker/streambroker.d.ts +2 -2
- package/types/devvit/plugin/streambroker/streambroker.js +3 -3
- package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts +23 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp-client.js +36 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts +15 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp.js +157 -0
- package/types/devvit/plugin/timer/timer.d.ts +2 -2
- package/types/devvit/plugin/timer/timer.js +3 -3
- package/types/devvit/plugin/timer/timer.twirp-client.d.ts +20 -0
- package/types/devvit/plugin/timer/timer.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/timer/timer.twirp-client.js +24 -0
- package/types/devvit/plugin/timer/timer.twirp.d.ts +13 -0
- package/types/devvit/plugin/timer/timer.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/timer/timer.twirp.js +89 -0
- package/types/devvit/plugin/v2events/v2events.d.ts +1 -1
- package/types/devvit/plugin/v2events/v2events.js +2 -2
- package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/v2events/v2events.twirp-client.js +23 -0
- package/types/devvit/plugin/v2events/v2events.twirp.d.ts +12 -0
- package/types/devvit/plugin/v2events/v2events.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/v2events/v2events.twirp.js +88 -0
- package/types/devvit/reddit/comment.d.ts +2 -2
- package/types/devvit/reddit/comment.js +5 -5
- package/types/devvit/reddit/common.d.ts +1 -1
- package/types/devvit/reddit/common.js +3 -3
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts +3 -3
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.js +5 -5
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts +22 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts.map +1 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.js +35 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts +14 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts.map +1 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.js +156 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -4
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.js +6 -6
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts +26 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts.map +1 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.js +48 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts +17 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts.map +1 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.js +223 -0
- package/types/devvit/reddit/post.d.ts +2 -2
- package/types/devvit/reddit/post.js +5 -5
- package/types/devvit/reddit/subreddit.d.ts +2 -2
- package/types/devvit/reddit/subreddit.js +4 -4
- package/types/devvit/reddit/user.d.ts +2 -2
- package/types/devvit/reddit/user.js +4 -4
- package/types/devvit/reddit/v2alpha/commentv2.d.ts +1 -1
- package/types/devvit/reddit/v2alpha/commentv2.js +2 -2
- package/types/devvit/reddit/v2alpha/flair.d.ts +1 -1
- package/types/devvit/reddit/v2alpha/flair.js +2 -2
- package/types/devvit/reddit/v2alpha/modaction.d.ts +5 -5
- package/types/devvit/reddit/v2alpha/modaction.js +7 -7
- package/types/devvit/reddit/v2alpha/modmail.d.ts +3 -3
- package/types/devvit/reddit/v2alpha/modmail.js +5 -5
- package/types/devvit/reddit/v2alpha/postv2.d.ts +2 -2
- package/types/devvit/reddit/v2alpha/postv2.js +3 -3
- package/types/devvit/reddit/v2alpha/subredditv2.d.ts +1 -1
- package/types/devvit/reddit/v2alpha/subredditv2.js +2 -2
- package/types/devvit/reddit/v2alpha/userv2.d.ts +2 -2
- package/types/devvit/reddit/v2alpha/userv2.js +3 -3
- package/types/devvit/remote_logger/remote_logger.d.ts +2 -2
- package/types/devvit/remote_logger/remote_logger.js +4 -4
- package/types/devvit/runtime/actor/bootstrap.d.ts +3 -3
- package/types/devvit/runtime/actor/bootstrap.js +3 -3
- package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts +23 -0
- package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/bootstrap.twirp-client.js +36 -0
- package/types/devvit/runtime/actor/bootstrap.twirp.d.ts +15 -0
- package/types/devvit/runtime/actor/bootstrap.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/bootstrap.twirp.js +157 -0
- package/types/devvit/runtime/actor/echo.d.ts +2 -2
- package/types/devvit/runtime/actor/echo.js +2 -2
- package/types/devvit/runtime/actor/echo.twirp-client.d.ts +19 -0
- package/types/devvit/runtime/actor/echo.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/echo.twirp-client.js +23 -0
- package/types/devvit/runtime/actor/echo.twirp.d.ts +12 -0
- package/types/devvit/runtime/actor/echo.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/echo.twirp.js +88 -0
- package/types/devvit/runtime/actor/runtime.d.ts +3 -3
- package/types/devvit/runtime/actor/runtime.js +4 -4
- package/types/devvit/runtime/actor/runtime.twirp-client.d.ts +24 -0
- package/types/devvit/runtime/actor/runtime.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/runtime.twirp-client.js +37 -0
- package/types/devvit/runtime/actor/runtime.twirp.d.ts +16 -0
- package/types/devvit/runtime/actor/runtime.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/runtime.twirp.js +158 -0
- package/types/devvit/runtime/actor/supervisor.d.ts +4 -4
- package/types/devvit/runtime/actor/supervisor.js +5 -5
- package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts +28 -0
- package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/supervisor.twirp-client.js +50 -0
- package/types/devvit/runtime/actor/supervisor.twirp.d.ts +19 -0
- package/types/devvit/runtime/actor/supervisor.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/supervisor.twirp.js +225 -0
- package/types/devvit/runtime/actor/v1alpha/health.d.ts +2 -2
- package/types/devvit/runtime/actor/v1alpha/health.js +4 -4
- package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts +20 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp-client.js +24 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts +13 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp.js +89 -0
- package/types/devvit/runtime/bundle.d.ts +2 -2
- package/types/devvit/runtime/bundle.js +5 -5
- package/types/devvit/runtime/envelope.d.ts +2 -2
- package/types/devvit/runtime/envelope.js +4 -4
- package/types/devvit/runtime/runtime_common.d.ts +1 -1
- package/types/devvit/runtime/runtime_common.js +3 -3
- package/types/devvit/runtime/serializable.d.ts +1 -1
- package/types/devvit/runtime/serializable.js +2 -2
- package/types/devvit/service/bundle_service.d.ts +3 -3
- package/types/devvit/service/bundle_service.js +4 -4
- package/types/devvit/service/bundle_service.twirp-client.d.ts +24 -0
- package/types/devvit/service/bundle_service.twirp-client.d.ts.map +1 -0
- package/types/devvit/service/bundle_service.twirp-client.js +37 -0
- package/types/devvit/service/bundle_service.twirp.d.ts +16 -0
- package/types/devvit/service/bundle_service.twirp.d.ts.map +1 -0
- package/types/devvit/service/bundle_service.twirp.js +158 -0
- package/types/devvit/service/envelope_service.d.ts +3 -3
- package/types/devvit/service/envelope_service.js +3 -3
- package/types/devvit/service/envelope_service.twirp-client.d.ts +20 -0
- package/types/devvit/service/envelope_service.twirp-client.d.ts.map +1 -0
- package/types/devvit/service/envelope_service.twirp-client.js +24 -0
- package/types/devvit/service/envelope_service.twirp.d.ts +13 -0
- package/types/devvit/service/envelope_service.twirp.d.ts.map +1 -0
- package/types/devvit/service/envelope_service.twirp.js +89 -0
- package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.d.ts +4 -4
- package/types/devvit/triggers/v1alpha/triggers.d.ts.map +1 -0
- package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.js +6 -6
- package/types/devvit/ui/block_kit/v1beta/attributes.d.ts +2 -2
- package/types/devvit/ui/block_kit/v1beta/attributes.js +4 -4
- package/types/devvit/ui/block_kit/v1beta/block.d.ts +3 -3
- package/types/devvit/ui/block_kit/v1beta/block.js +5 -5
- package/types/devvit/ui/block_kit/v1beta/rendering.d.ts +3 -3
- package/types/devvit/ui/block_kit/v1beta/rendering.js +5 -5
- package/types/devvit/ui/block_kit/v1beta/ui.d.ts +5 -5
- package/types/devvit/ui/block_kit/v1beta/ui.js +7 -7
- package/types/devvit/ui/common/v1alpha/common.d.ts +1 -1
- package/types/devvit/ui/common/v1alpha/common.js +2 -2
- package/types/devvit/ui/effects/v1alpha/create_order.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/create_order.js +2 -2
- package/types/devvit/ui/effects/v1alpha/effect.d.ts +9 -9
- package/types/devvit/ui/effects/v1alpha/effect.js +10 -10
- package/types/devvit/ui/effects/v1alpha/interval.d.ts +2 -2
- package/types/devvit/ui/effects/v1alpha/interval.js +4 -4
- package/types/devvit/ui/effects/v1alpha/navigate_to_url.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/navigate_to_url.js +2 -2
- package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.d.ts +2 -2
- package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.js +3 -3
- package/types/devvit/ui/effects/v1alpha/reload_part.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/reload_part.js +2 -2
- package/types/devvit/ui/effects/v1alpha/rerender_ui.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/rerender_ui.js +2 -2
- package/types/devvit/ui/effects/v1alpha/show_form.d.ts +3 -3
- package/types/devvit/ui/effects/v1alpha/show_form.js +4 -4
- package/types/devvit/ui/effects/v1alpha/show_toast.d.ts +2 -2
- package/types/devvit/ui/effects/v1alpha/show_toast.js +3 -3
- package/types/devvit/ui/events/v1alpha/event.d.ts +5 -5
- package/types/devvit/ui/events/v1alpha/event.js +8 -8
- package/types/devvit/ui/events/v1alpha/handle_ui.d.ts +3 -3
- package/types/devvit/ui/events/v1alpha/handle_ui.js +5 -5
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts +19 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts.map +1 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.js +23 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts +12 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts.map +1 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp.js +88 -0
- package/types/devvit/ui/form_builder/v1alpha/field.d.ts +3 -3
- package/types/devvit/ui/form_builder/v1alpha/field.js +4 -4
- package/types/devvit/ui/form_builder/v1alpha/form.d.ts +2 -2
- package/types/devvit/ui/form_builder/v1alpha/form.js +3 -3
- package/types/devvit/ui/form_builder/v1alpha/value.d.ts +2 -2
- package/types/devvit/ui/form_builder/v1alpha/value.js +3 -3
- package/types/devvit/ui/toast/toast.d.ts +1 -1
- package/types/devvit/ui/toast/toast.js +2 -2
- package/types/devvit/uuid.d.ts +1 -1
- package/types/devvit/uuid.js +2 -2
- package/types/google/protobuf/any.d.ts +5 -10
- package/types/google/protobuf/any.d.ts.map +1 -1
- package/types/google/protobuf/any.js +2 -2
- package/types/google/protobuf/descriptor.d.ts +39 -435
- package/types/google/protobuf/descriptor.d.ts.map +1 -1
- package/types/google/protobuf/descriptor.js +101 -1605
- package/types/google/protobuf/duration.d.ts +1 -1
- package/types/google/protobuf/duration.js +2 -2
- package/types/google/protobuf/empty.d.ts +1 -1
- package/types/google/protobuf/empty.js +2 -2
- package/types/google/protobuf/struct.d.ts +2 -2
- package/types/google/protobuf/struct.js +3 -3
- package/types/google/protobuf/timestamp.d.ts +2 -2
- package/types/google/protobuf/timestamp.js +2 -2
- package/types/google/protobuf/wrappers.d.ts +1 -1
- package/types/google/protobuf/wrappers.js +2 -2
- package/types/typeRegistry.d.ts +1 -1
- package/schema/buf.strict.yaml +0 -7
- package/schema/buf.yaml +0 -8
- package/types/devvit/data/api/admin/v1alpha/audit.d.ts +0 -159
- package/types/devvit/data/api/admin/v1alpha/audit.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/audit.js +0 -776
- package/types/devvit/data/api/admin/v1alpha/auth.d.ts +0 -127
- package/types/devvit/data/api/admin/v1alpha/auth.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/auth.js +0 -599
- package/types/devvit/data/api/admin/v1alpha/organization.d.ts +0 -122
- package/types/devvit/data/api/admin/v1alpha/organization.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/organization.js +0 -522
- package/types/devvit/data/api/admin/v1alpha/service.d.ts +0 -855
- package/types/devvit/data/api/admin/v1alpha/service.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/service.js +0 -254
- package/types/devvit/data/api/admin/v1alpha/subscription.d.ts +0 -167
- package/types/devvit/data/api/admin/v1alpha/subscription.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/subscription.js +0 -885
- package/types/devvit/data/api/admin/v1alpha/ui.d.ts +0 -52
- package/types/devvit/data/api/admin/v1alpha/ui.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/ui.js +0 -198
- package/types/devvit/data/api/v1alpha/filter.d.ts +0 -160
- package/types/devvit/data/api/v1alpha/filter.d.ts.map +0 -1
- package/types/devvit/data/api/v1alpha/filter.js +0 -983
- package/types/devvit/data/api/v1alpha/intake.d.ts +0 -85
- package/types/devvit/data/api/v1alpha/intake.d.ts.map +0 -1
- package/types/devvit/data/api/v1alpha/intake.js +0 -160
- package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +0 -1
- /package/schema/{buf → .snootobuf/deps/buf}/validate/expression.proto +0 -0
- /package/schema/{buf → .snootobuf/deps/buf}/validate/priv/private.proto +0 -0
- /package/schema/{buf → .snootobuf/deps/buf}/validate/validate.proto +0 -0
- /package/schema/{google → .snootobuf/deps/google}/api/annotations.proto +0 -0
- /package/schema/{openapi → .snootobuf/deps/openapi}/helper.proto +0 -0
@@ -0,0 +1,3347 @@
|
|
1
|
+
// @generated by protobuf-ts 2.9.3
|
2
|
+
// @generated from protobuf file "devvit/plugin/redis/redisapi.proto" (package "devvit.plugin.redis", syntax proto3)
|
3
|
+
// tslint:disable
|
4
|
+
import { DoubleValue } from "../../../google/protobuf/wrappers";
|
5
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
6
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
7
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
8
|
+
import { WireType } from "@protobuf-ts/runtime";
|
9
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
10
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
11
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
12
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
13
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
14
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
15
|
+
import { Int64Value } from "../../../google/protobuf/wrappers";
|
16
|
+
import { Empty } from "../../../google/protobuf/empty";
|
17
|
+
import { StringValue } from "../../../google/protobuf/wrappers";
|
18
|
+
/**
|
19
|
+
* @generated from protobuf message devvit.plugin.redis.TransactionResponses
|
20
|
+
*/
|
21
|
+
export interface TransactionResponses {
|
22
|
+
/**
|
23
|
+
* @generated from protobuf field: repeated devvit.plugin.redis.TransactionResponse response = 1;
|
24
|
+
*/
|
25
|
+
response: TransactionResponse[];
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* @generated from protobuf message devvit.plugin.redis.TransactionResponse
|
29
|
+
*/
|
30
|
+
export interface TransactionResponse {
|
31
|
+
/**
|
32
|
+
* @generated from protobuf oneof: value
|
33
|
+
*/
|
34
|
+
value: {
|
35
|
+
oneofKind: "str";
|
36
|
+
/**
|
37
|
+
* @generated from protobuf field: google.protobuf.StringValue str = 1;
|
38
|
+
*/
|
39
|
+
str: StringValue;
|
40
|
+
} | {
|
41
|
+
oneofKind: "nil";
|
42
|
+
/**
|
43
|
+
* @generated from protobuf field: google.protobuf.Empty nil = 2;
|
44
|
+
*/
|
45
|
+
nil: Empty;
|
46
|
+
} | {
|
47
|
+
oneofKind: "num";
|
48
|
+
/**
|
49
|
+
* @generated from protobuf field: google.protobuf.Int64Value num = 3;
|
50
|
+
*/
|
51
|
+
num: Int64Value;
|
52
|
+
} | {
|
53
|
+
oneofKind: "members";
|
54
|
+
/**
|
55
|
+
* @generated from protobuf field: devvit.plugin.redis.ZMembers members = 4;
|
56
|
+
*/
|
57
|
+
members: ZMembers;
|
58
|
+
} | {
|
59
|
+
oneofKind: "values";
|
60
|
+
/**
|
61
|
+
* @generated from protobuf field: devvit.plugin.redis.RedisValues values = 5;
|
62
|
+
*/
|
63
|
+
values: RedisValues;
|
64
|
+
} | {
|
65
|
+
oneofKind: undefined;
|
66
|
+
};
|
67
|
+
}
|
68
|
+
/**
|
69
|
+
* @generated from protobuf message devvit.plugin.redis.ZRangeRequest
|
70
|
+
*/
|
71
|
+
export interface ZRangeRequest {
|
72
|
+
/**
|
73
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
74
|
+
*/
|
75
|
+
key?: KeyRequest;
|
76
|
+
/**
|
77
|
+
* @generated from protobuf field: string start = 2;
|
78
|
+
*/
|
79
|
+
start: string;
|
80
|
+
/**
|
81
|
+
* @generated from protobuf field: string stop = 3;
|
82
|
+
*/
|
83
|
+
stop: string;
|
84
|
+
/**
|
85
|
+
* @generated from protobuf field: bool by_score = 4;
|
86
|
+
*/
|
87
|
+
byScore: boolean;
|
88
|
+
/**
|
89
|
+
* @generated from protobuf field: bool by_lex = 5;
|
90
|
+
*/
|
91
|
+
byLex: boolean;
|
92
|
+
/**
|
93
|
+
* @generated from protobuf field: bool rev = 6;
|
94
|
+
*/
|
95
|
+
rev: boolean;
|
96
|
+
/**
|
97
|
+
* @generated from protobuf field: int32 offset = 7;
|
98
|
+
*/
|
99
|
+
offset: number;
|
100
|
+
/**
|
101
|
+
* @generated from protobuf field: int32 count = 8;
|
102
|
+
*/
|
103
|
+
count: number;
|
104
|
+
/**
|
105
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
106
|
+
*/
|
107
|
+
scope?: RedisKeyScope;
|
108
|
+
}
|
109
|
+
/**
|
110
|
+
* @generated from protobuf message devvit.plugin.redis.ZRangeByLexRequest
|
111
|
+
*/
|
112
|
+
export interface ZRangeByLexRequest {
|
113
|
+
/**
|
114
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
115
|
+
*/
|
116
|
+
key?: KeyRequest;
|
117
|
+
/**
|
118
|
+
* @generated from protobuf field: string min = 2;
|
119
|
+
*/
|
120
|
+
min: string;
|
121
|
+
/**
|
122
|
+
* @generated from protobuf field: string max = 3;
|
123
|
+
*/
|
124
|
+
max: string;
|
125
|
+
/**
|
126
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
127
|
+
*/
|
128
|
+
scope?: RedisKeyScope;
|
129
|
+
}
|
130
|
+
/**
|
131
|
+
* @generated from protobuf message devvit.plugin.redis.ZRangeByScoreRequest
|
132
|
+
*/
|
133
|
+
export interface ZRangeByScoreRequest {
|
134
|
+
/**
|
135
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
136
|
+
*/
|
137
|
+
key?: KeyRequest;
|
138
|
+
/**
|
139
|
+
* @generated from protobuf field: double min = 2;
|
140
|
+
*/
|
141
|
+
min: number;
|
142
|
+
/**
|
143
|
+
* @generated from protobuf field: double max = 3;
|
144
|
+
*/
|
145
|
+
max: number;
|
146
|
+
/**
|
147
|
+
* @generated from protobuf field: bool with_scores = 4;
|
148
|
+
*/
|
149
|
+
withScores: boolean;
|
150
|
+
/**
|
151
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
152
|
+
*/
|
153
|
+
scope?: RedisKeyScope;
|
154
|
+
}
|
155
|
+
/**
|
156
|
+
* @generated from protobuf message devvit.plugin.redis.ZRemRequest
|
157
|
+
*/
|
158
|
+
export interface ZRemRequest {
|
159
|
+
/**
|
160
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
161
|
+
*/
|
162
|
+
key?: KeyRequest;
|
163
|
+
/**
|
164
|
+
* @generated from protobuf field: repeated string members = 2;
|
165
|
+
*/
|
166
|
+
members: string[];
|
167
|
+
/**
|
168
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
169
|
+
*/
|
170
|
+
scope?: RedisKeyScope;
|
171
|
+
}
|
172
|
+
/**
|
173
|
+
* @generated from protobuf message devvit.plugin.redis.ZRemRangeByLexRequest
|
174
|
+
*/
|
175
|
+
export interface ZRemRangeByLexRequest {
|
176
|
+
/**
|
177
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
178
|
+
*/
|
179
|
+
key?: KeyRequest;
|
180
|
+
/**
|
181
|
+
* @generated from protobuf field: string min = 2;
|
182
|
+
*/
|
183
|
+
min: string;
|
184
|
+
/**
|
185
|
+
* @generated from protobuf field: string max = 3;
|
186
|
+
*/
|
187
|
+
max: string;
|
188
|
+
/**
|
189
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
190
|
+
*/
|
191
|
+
scope?: RedisKeyScope;
|
192
|
+
}
|
193
|
+
/**
|
194
|
+
* @generated from protobuf message devvit.plugin.redis.ZRemRangeByRankRequest
|
195
|
+
*/
|
196
|
+
export interface ZRemRangeByRankRequest {
|
197
|
+
/**
|
198
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
199
|
+
*/
|
200
|
+
key?: KeyRequest;
|
201
|
+
/**
|
202
|
+
* @generated from protobuf field: int32 start = 2;
|
203
|
+
*/
|
204
|
+
start: number;
|
205
|
+
/**
|
206
|
+
* @generated from protobuf field: int32 stop = 3;
|
207
|
+
*/
|
208
|
+
stop: number;
|
209
|
+
/**
|
210
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
211
|
+
*/
|
212
|
+
scope?: RedisKeyScope;
|
213
|
+
}
|
214
|
+
/**
|
215
|
+
* @generated from protobuf message devvit.plugin.redis.ZRemRangeByScoreRequest
|
216
|
+
*/
|
217
|
+
export interface ZRemRangeByScoreRequest {
|
218
|
+
/**
|
219
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
220
|
+
*/
|
221
|
+
key?: KeyRequest;
|
222
|
+
/**
|
223
|
+
* @generated from protobuf field: double min = 2;
|
224
|
+
*/
|
225
|
+
min: number;
|
226
|
+
/**
|
227
|
+
* @generated from protobuf field: double max = 3;
|
228
|
+
*/
|
229
|
+
max: number;
|
230
|
+
/**
|
231
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
232
|
+
*/
|
233
|
+
scope?: RedisKeyScope;
|
234
|
+
}
|
235
|
+
/**
|
236
|
+
* @generated from protobuf message devvit.plugin.redis.ZScoreRequest
|
237
|
+
*/
|
238
|
+
export interface ZScoreRequest {
|
239
|
+
/**
|
240
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
241
|
+
*/
|
242
|
+
key?: KeyRequest;
|
243
|
+
/**
|
244
|
+
* @generated from protobuf field: string member = 2;
|
245
|
+
*/
|
246
|
+
member: string;
|
247
|
+
/**
|
248
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
249
|
+
*/
|
250
|
+
scope?: RedisKeyScope;
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* @generated from protobuf message devvit.plugin.redis.ZRankRequest
|
254
|
+
*/
|
255
|
+
export interface ZRankRequest {
|
256
|
+
/**
|
257
|
+
* @generated from protobuf field: devvit.plugin.redis.KeyRequest key = 1;
|
258
|
+
*/
|
259
|
+
key?: KeyRequest;
|
260
|
+
/**
|
261
|
+
* @generated from protobuf field: string member = 2;
|
262
|
+
*/
|
263
|
+
member: string;
|
264
|
+
/**
|
265
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
266
|
+
*/
|
267
|
+
scope?: RedisKeyScope;
|
268
|
+
}
|
269
|
+
/**
|
270
|
+
* @generated from protobuf message devvit.plugin.redis.ZIncrByRequest
|
271
|
+
*/
|
272
|
+
export interface ZIncrByRequest {
|
273
|
+
/**
|
274
|
+
* @generated from protobuf field: string key = 1;
|
275
|
+
*/
|
276
|
+
key: string;
|
277
|
+
/**
|
278
|
+
* @generated from protobuf field: string member = 2;
|
279
|
+
*/
|
280
|
+
member: string;
|
281
|
+
/**
|
282
|
+
* @generated from protobuf field: double value = 3;
|
283
|
+
*/
|
284
|
+
value: number;
|
285
|
+
/**
|
286
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 6;
|
287
|
+
*/
|
288
|
+
transactionId?: TransactionId; // Optional transaction id
|
289
|
+
/**
|
290
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
291
|
+
*/
|
292
|
+
scope?: RedisKeyScope;
|
293
|
+
}
|
294
|
+
/**
|
295
|
+
* @generated from protobuf message devvit.plugin.redis.KeyRequest
|
296
|
+
*/
|
297
|
+
export interface KeyRequest {
|
298
|
+
/**
|
299
|
+
* @generated from protobuf field: string key = 1;
|
300
|
+
*/
|
301
|
+
key: string;
|
302
|
+
/**
|
303
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 2;
|
304
|
+
*/
|
305
|
+
transactionId?: TransactionId; // Optional transaction id
|
306
|
+
/**
|
307
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
308
|
+
*/
|
309
|
+
scope?: RedisKeyScope;
|
310
|
+
}
|
311
|
+
/**
|
312
|
+
* @generated from protobuf message devvit.plugin.redis.IncrByRequest
|
313
|
+
*/
|
314
|
+
export interface IncrByRequest {
|
315
|
+
/**
|
316
|
+
* @generated from protobuf field: string key = 1;
|
317
|
+
*/
|
318
|
+
key: string;
|
319
|
+
/**
|
320
|
+
* @generated from protobuf field: int64 value = 2;
|
321
|
+
*/
|
322
|
+
value: bigint;
|
323
|
+
/**
|
324
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 6;
|
325
|
+
*/
|
326
|
+
transactionId?: TransactionId; // Optional transaction id
|
327
|
+
/**
|
328
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
329
|
+
*/
|
330
|
+
scope?: RedisKeyScope;
|
331
|
+
}
|
332
|
+
/**
|
333
|
+
* @generated from protobuf message devvit.plugin.redis.SetRequest
|
334
|
+
*/
|
335
|
+
export interface SetRequest {
|
336
|
+
/**
|
337
|
+
* @generated from protobuf field: string key = 1;
|
338
|
+
*/
|
339
|
+
key: string;
|
340
|
+
/**
|
341
|
+
* @generated from protobuf field: string value = 2;
|
342
|
+
*/
|
343
|
+
value: string;
|
344
|
+
/**
|
345
|
+
* @generated from protobuf field: int64 expiration = 3;
|
346
|
+
*/
|
347
|
+
expiration: bigint; // Expiration time in seconds
|
348
|
+
/**
|
349
|
+
* @generated from protobuf field: bool nx = 4;
|
350
|
+
*/
|
351
|
+
nx: boolean; // Set only if key does not exist
|
352
|
+
/**
|
353
|
+
* @generated from protobuf field: bool xx = 5;
|
354
|
+
*/
|
355
|
+
xx: boolean; // Set only if key already exists
|
356
|
+
/**
|
357
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 6;
|
358
|
+
*/
|
359
|
+
transactionId?: TransactionId; // Optional transaction id
|
360
|
+
/**
|
361
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
362
|
+
*/
|
363
|
+
scope?: RedisKeyScope;
|
364
|
+
}
|
365
|
+
/**
|
366
|
+
* @generated from protobuf message devvit.plugin.redis.KeyRangeRequest
|
367
|
+
*/
|
368
|
+
export interface KeyRangeRequest {
|
369
|
+
/**
|
370
|
+
* @generated from protobuf field: string key = 1;
|
371
|
+
*/
|
372
|
+
key: string;
|
373
|
+
/**
|
374
|
+
* @generated from protobuf field: int32 start = 2;
|
375
|
+
*/
|
376
|
+
start: number;
|
377
|
+
/**
|
378
|
+
* @generated from protobuf field: int32 end = 3;
|
379
|
+
*/
|
380
|
+
end: number;
|
381
|
+
/**
|
382
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 4;
|
383
|
+
*/
|
384
|
+
transactionId?: TransactionId; // Optional transaction id
|
385
|
+
/**
|
386
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
387
|
+
*/
|
388
|
+
scope?: RedisKeyScope;
|
389
|
+
}
|
390
|
+
/**
|
391
|
+
* @generated from protobuf message devvit.plugin.redis.SetRangeRequest
|
392
|
+
*/
|
393
|
+
export interface SetRangeRequest {
|
394
|
+
/**
|
395
|
+
* @generated from protobuf field: string key = 1;
|
396
|
+
*/
|
397
|
+
key: string;
|
398
|
+
/**
|
399
|
+
* @generated from protobuf field: int32 offset = 2;
|
400
|
+
*/
|
401
|
+
offset: number;
|
402
|
+
/**
|
403
|
+
* @generated from protobuf field: string value = 3;
|
404
|
+
*/
|
405
|
+
value: string;
|
406
|
+
/**
|
407
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 4;
|
408
|
+
*/
|
409
|
+
transactionId?: TransactionId; // Optional transaction id
|
410
|
+
/**
|
411
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
412
|
+
*/
|
413
|
+
scope?: RedisKeyScope;
|
414
|
+
}
|
415
|
+
/**
|
416
|
+
* @generated from protobuf message devvit.plugin.redis.KeysRequest
|
417
|
+
*/
|
418
|
+
export interface KeysRequest {
|
419
|
+
/**
|
420
|
+
* @generated from protobuf field: repeated string keys = 1;
|
421
|
+
*/
|
422
|
+
keys: string[];
|
423
|
+
/**
|
424
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 2;
|
425
|
+
*/
|
426
|
+
transactionId?: TransactionId; // Optional transaction id
|
427
|
+
/**
|
428
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
429
|
+
*/
|
430
|
+
scope?: RedisKeyScope;
|
431
|
+
}
|
432
|
+
/**
|
433
|
+
* @generated from protobuf message devvit.plugin.redis.KeysResponse
|
434
|
+
*/
|
435
|
+
export interface KeysResponse {
|
436
|
+
/**
|
437
|
+
* @generated from protobuf field: repeated string keys = 1;
|
438
|
+
*/
|
439
|
+
keys: string[];
|
440
|
+
}
|
441
|
+
/**
|
442
|
+
* @generated from protobuf message devvit.plugin.redis.HGetRequest
|
443
|
+
*/
|
444
|
+
export interface HGetRequest {
|
445
|
+
/**
|
446
|
+
* @generated from protobuf field: string key = 1;
|
447
|
+
*/
|
448
|
+
key: string;
|
449
|
+
/**
|
450
|
+
* @generated from protobuf field: string field = 2;
|
451
|
+
*/
|
452
|
+
field: string;
|
453
|
+
/**
|
454
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 3;
|
455
|
+
*/
|
456
|
+
transactionId?: TransactionId; // Optional transaction id
|
457
|
+
/**
|
458
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
459
|
+
*/
|
460
|
+
scope?: RedisKeyScope;
|
461
|
+
}
|
462
|
+
/**
|
463
|
+
* @generated from protobuf message devvit.plugin.redis.HSetRequest
|
464
|
+
*/
|
465
|
+
export interface HSetRequest {
|
466
|
+
/**
|
467
|
+
* @generated from protobuf field: string key = 1;
|
468
|
+
*/
|
469
|
+
key: string;
|
470
|
+
/**
|
471
|
+
* @generated from protobuf field: repeated devvit.plugin.redis.RedisFieldValue fv = 2;
|
472
|
+
*/
|
473
|
+
fv: RedisFieldValue[];
|
474
|
+
/**
|
475
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 3;
|
476
|
+
*/
|
477
|
+
transactionId?: TransactionId; // Optional transaction id
|
478
|
+
/**
|
479
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
480
|
+
*/
|
481
|
+
scope?: RedisKeyScope;
|
482
|
+
}
|
483
|
+
/**
|
484
|
+
* @generated from protobuf message devvit.plugin.redis.HDelRequest
|
485
|
+
*/
|
486
|
+
export interface HDelRequest {
|
487
|
+
/**
|
488
|
+
* @generated from protobuf field: string key = 1;
|
489
|
+
*/
|
490
|
+
key: string;
|
491
|
+
/**
|
492
|
+
* @generated from protobuf field: repeated string fields = 2;
|
493
|
+
*/
|
494
|
+
fields: string[];
|
495
|
+
/**
|
496
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 3;
|
497
|
+
*/
|
498
|
+
transactionId?: TransactionId; // Optional transaction id
|
499
|
+
/**
|
500
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
501
|
+
*/
|
502
|
+
scope?: RedisKeyScope;
|
503
|
+
}
|
504
|
+
/**
|
505
|
+
* @generated from protobuf message devvit.plugin.redis.HScanRequest
|
506
|
+
*/
|
507
|
+
export interface HScanRequest {
|
508
|
+
/**
|
509
|
+
* @generated from protobuf field: string key = 1;
|
510
|
+
*/
|
511
|
+
key: string;
|
512
|
+
/**
|
513
|
+
* @generated from protobuf field: uint64 cursor = 2;
|
514
|
+
*/
|
515
|
+
cursor: bigint;
|
516
|
+
/**
|
517
|
+
* @generated from protobuf field: optional string pattern = 3;
|
518
|
+
*/
|
519
|
+
pattern?: string;
|
520
|
+
/**
|
521
|
+
* @generated from protobuf field: optional int64 count = 4;
|
522
|
+
*/
|
523
|
+
count?: bigint;
|
524
|
+
/**
|
525
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 5;
|
526
|
+
*/
|
527
|
+
transactionId?: TransactionId; // Optional transaction id
|
528
|
+
/**
|
529
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
530
|
+
*/
|
531
|
+
scope?: RedisKeyScope;
|
532
|
+
}
|
533
|
+
/**
|
534
|
+
* @generated from protobuf message devvit.plugin.redis.HScanResponse
|
535
|
+
*/
|
536
|
+
export interface HScanResponse {
|
537
|
+
/**
|
538
|
+
* @generated from protobuf field: uint64 cursor = 1;
|
539
|
+
*/
|
540
|
+
cursor: bigint;
|
541
|
+
/**
|
542
|
+
* @generated from protobuf field: repeated devvit.plugin.redis.RedisFieldValue field_values = 2;
|
543
|
+
*/
|
544
|
+
fieldValues: RedisFieldValue[];
|
545
|
+
}
|
546
|
+
/**
|
547
|
+
* @generated from protobuf message devvit.plugin.redis.HIncrByRequest
|
548
|
+
*/
|
549
|
+
export interface HIncrByRequest {
|
550
|
+
/**
|
551
|
+
* @generated from protobuf field: string key = 1;
|
552
|
+
*/
|
553
|
+
key: string;
|
554
|
+
/**
|
555
|
+
* @generated from protobuf field: string field = 2;
|
556
|
+
*/
|
557
|
+
field: string;
|
558
|
+
/**
|
559
|
+
* @generated from protobuf field: int64 value = 3;
|
560
|
+
*/
|
561
|
+
value: bigint;
|
562
|
+
/**
|
563
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 6;
|
564
|
+
*/
|
565
|
+
transactionId?: TransactionId; // Optional transaction id
|
566
|
+
/**
|
567
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
568
|
+
*/
|
569
|
+
scope?: RedisKeyScope;
|
570
|
+
}
|
571
|
+
/**
|
572
|
+
* @generated from protobuf message devvit.plugin.redis.RedisFieldValue
|
573
|
+
*/
|
574
|
+
export interface RedisFieldValue {
|
575
|
+
/**
|
576
|
+
* @generated from protobuf field: string field = 1;
|
577
|
+
*/
|
578
|
+
field: string;
|
579
|
+
/**
|
580
|
+
* @generated from protobuf field: string value = 2;
|
581
|
+
*/
|
582
|
+
value: string;
|
583
|
+
}
|
584
|
+
/**
|
585
|
+
* @generated from protobuf message devvit.plugin.redis.RedisFieldValues
|
586
|
+
*/
|
587
|
+
export interface RedisFieldValues {
|
588
|
+
/**
|
589
|
+
* @generated from protobuf field: map<string, string> field_values = 1;
|
590
|
+
*/
|
591
|
+
fieldValues: {
|
592
|
+
[key: string]: string;
|
593
|
+
};
|
594
|
+
}
|
595
|
+
/**
|
596
|
+
* @generated from protobuf message devvit.plugin.redis.KeyValuesRequest
|
597
|
+
*/
|
598
|
+
export interface KeyValuesRequest {
|
599
|
+
/**
|
600
|
+
* @generated from protobuf field: repeated devvit.plugin.redis.RedisKeyValue kv = 1;
|
601
|
+
*/
|
602
|
+
kv: RedisKeyValue[];
|
603
|
+
/**
|
604
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 2;
|
605
|
+
*/
|
606
|
+
transactionId?: TransactionId; // Optional transaction id
|
607
|
+
/**
|
608
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
609
|
+
*/
|
610
|
+
scope?: RedisKeyScope;
|
611
|
+
}
|
612
|
+
/**
|
613
|
+
* @generated from protobuf message devvit.plugin.redis.RedisKeyValue
|
614
|
+
*/
|
615
|
+
export interface RedisKeyValue {
|
616
|
+
/**
|
617
|
+
* @generated from protobuf field: string key = 1;
|
618
|
+
*/
|
619
|
+
key: string;
|
620
|
+
/**
|
621
|
+
* @generated from protobuf field: string value = 2;
|
622
|
+
*/
|
623
|
+
value: string;
|
624
|
+
}
|
625
|
+
/**
|
626
|
+
* @generated from protobuf message devvit.plugin.redis.RedisValues
|
627
|
+
*/
|
628
|
+
export interface RedisValues {
|
629
|
+
/**
|
630
|
+
* @generated from protobuf field: repeated google.protobuf.StringValue values = 1;
|
631
|
+
*/
|
632
|
+
values: StringValue[];
|
633
|
+
}
|
634
|
+
/**
|
635
|
+
* @generated from protobuf message devvit.plugin.redis.ExpireRequest
|
636
|
+
*/
|
637
|
+
export interface ExpireRequest {
|
638
|
+
/**
|
639
|
+
* @generated from protobuf field: string key = 1;
|
640
|
+
*/
|
641
|
+
key: string;
|
642
|
+
/**
|
643
|
+
* @generated from protobuf field: int32 seconds = 2;
|
644
|
+
*/
|
645
|
+
seconds: number;
|
646
|
+
/**
|
647
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 3;
|
648
|
+
*/
|
649
|
+
transactionId?: TransactionId; // Optional transaction id
|
650
|
+
/**
|
651
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
652
|
+
*/
|
653
|
+
scope?: RedisKeyScope;
|
654
|
+
}
|
655
|
+
/**
|
656
|
+
* @generated from protobuf message devvit.plugin.redis.ZAddRequest
|
657
|
+
*/
|
658
|
+
export interface ZAddRequest {
|
659
|
+
/**
|
660
|
+
* @generated from protobuf field: string key = 1;
|
661
|
+
*/
|
662
|
+
key: string;
|
663
|
+
/**
|
664
|
+
* @generated from protobuf field: repeated devvit.plugin.redis.ZMember members = 2;
|
665
|
+
*/
|
666
|
+
members: ZMember[];
|
667
|
+
/**
|
668
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 3;
|
669
|
+
*/
|
670
|
+
transactionId?: TransactionId; // Optional transaction id
|
671
|
+
/**
|
672
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
673
|
+
*/
|
674
|
+
scope?: RedisKeyScope;
|
675
|
+
}
|
676
|
+
/**
|
677
|
+
* @generated from protobuf message devvit.plugin.redis.ZScanRequest
|
678
|
+
*/
|
679
|
+
export interface ZScanRequest {
|
680
|
+
/**
|
681
|
+
* @generated from protobuf field: string key = 1;
|
682
|
+
*/
|
683
|
+
key: string;
|
684
|
+
/**
|
685
|
+
* @generated from protobuf field: uint64 cursor = 2;
|
686
|
+
*/
|
687
|
+
cursor: bigint;
|
688
|
+
/**
|
689
|
+
* @generated from protobuf field: optional string pattern = 3;
|
690
|
+
*/
|
691
|
+
pattern?: string;
|
692
|
+
/**
|
693
|
+
* @generated from protobuf field: optional int64 count = 4;
|
694
|
+
*/
|
695
|
+
count?: bigint;
|
696
|
+
/**
|
697
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 5;
|
698
|
+
*/
|
699
|
+
transactionId?: TransactionId; // Optional transaction id
|
700
|
+
/**
|
701
|
+
* @generated from protobuf field: optional devvit.plugin.redis.RedisKeyScope scope = 100;
|
702
|
+
*/
|
703
|
+
scope?: RedisKeyScope;
|
704
|
+
}
|
705
|
+
/**
|
706
|
+
* @generated from protobuf message devvit.plugin.redis.ZScanResponse
|
707
|
+
*/
|
708
|
+
export interface ZScanResponse {
|
709
|
+
/**
|
710
|
+
* @generated from protobuf field: uint64 cursor = 1;
|
711
|
+
*/
|
712
|
+
cursor: bigint;
|
713
|
+
/**
|
714
|
+
* @generated from protobuf field: repeated devvit.plugin.redis.ZMember members = 2;
|
715
|
+
*/
|
716
|
+
members: ZMember[];
|
717
|
+
}
|
718
|
+
/**
|
719
|
+
* @generated from protobuf message devvit.plugin.redis.ZMembers
|
720
|
+
*/
|
721
|
+
export interface ZMembers {
|
722
|
+
/**
|
723
|
+
* @generated from protobuf field: repeated devvit.plugin.redis.ZMember members = 1;
|
724
|
+
*/
|
725
|
+
members: ZMember[];
|
726
|
+
}
|
727
|
+
/**
|
728
|
+
* @generated from protobuf message devvit.plugin.redis.ZMember
|
729
|
+
*/
|
730
|
+
export interface ZMember {
|
731
|
+
/**
|
732
|
+
* @generated from protobuf field: double score = 1;
|
733
|
+
*/
|
734
|
+
score: number;
|
735
|
+
/**
|
736
|
+
* @generated from protobuf field: string member = 2;
|
737
|
+
*/
|
738
|
+
member: string;
|
739
|
+
}
|
740
|
+
/**
|
741
|
+
* @generated from protobuf message devvit.plugin.redis.TransactionId
|
742
|
+
*/
|
743
|
+
export interface TransactionId {
|
744
|
+
/**
|
745
|
+
* @generated from protobuf field: string id = 1;
|
746
|
+
*/
|
747
|
+
id: string;
|
748
|
+
}
|
749
|
+
/**
|
750
|
+
* @generated from protobuf message devvit.plugin.redis.WatchRequest
|
751
|
+
*/
|
752
|
+
export interface WatchRequest {
|
753
|
+
/**
|
754
|
+
* @generated from protobuf field: devvit.plugin.redis.TransactionId transaction_id = 1;
|
755
|
+
*/
|
756
|
+
transactionId?: TransactionId;
|
757
|
+
/**
|
758
|
+
* @generated from protobuf field: repeated string keys = 2;
|
759
|
+
*/
|
760
|
+
keys: string[];
|
761
|
+
}
|
762
|
+
/**
|
763
|
+
* This key scope determines the key namespacing in Redis storage
|
764
|
+
* By default, all keys in Redis are namespaced to an installation
|
765
|
+
* Global redis enables apps to persist and access state across subreddit installations
|
766
|
+
* Default key format - installation:app:custom-key
|
767
|
+
* Global redis key format - global:app:custom-key
|
768
|
+
*
|
769
|
+
* @generated from protobuf enum devvit.plugin.redis.RedisKeyScope
|
770
|
+
*/
|
771
|
+
export enum RedisKeyScope {
|
772
|
+
/**
|
773
|
+
* @generated from protobuf enum value: INSTALLATION = 0;
|
774
|
+
*/
|
775
|
+
INSTALLATION = 0,
|
776
|
+
/**
|
777
|
+
* @generated from protobuf enum value: GLOBAL = 1;
|
778
|
+
*/
|
779
|
+
GLOBAL = 1
|
780
|
+
}
|
781
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
782
|
+
class TransactionResponses$Type extends MessageType<TransactionResponses> {
|
783
|
+
constructor() {
|
784
|
+
super("devvit.plugin.redis.TransactionResponses", [
|
785
|
+
{ no: 1, name: "response", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => TransactionResponse }
|
786
|
+
]);
|
787
|
+
}
|
788
|
+
create(value?: PartialMessage<TransactionResponses>): TransactionResponses {
|
789
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
790
|
+
message.response = [];
|
791
|
+
if (value !== undefined)
|
792
|
+
reflectionMergePartial<TransactionResponses>(this, message, value);
|
793
|
+
return message;
|
794
|
+
}
|
795
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransactionResponses): TransactionResponses {
|
796
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
797
|
+
while (reader.pos < end) {
|
798
|
+
let [fieldNo, wireType] = reader.tag();
|
799
|
+
switch (fieldNo) {
|
800
|
+
case /* repeated devvit.plugin.redis.TransactionResponse response */ 1:
|
801
|
+
message.response.push(TransactionResponse.internalBinaryRead(reader, reader.uint32(), options));
|
802
|
+
break;
|
803
|
+
default:
|
804
|
+
let u = options.readUnknownField;
|
805
|
+
if (u === "throw")
|
806
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
807
|
+
let d = reader.skip(wireType);
|
808
|
+
if (u !== false)
|
809
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
810
|
+
}
|
811
|
+
}
|
812
|
+
return message;
|
813
|
+
}
|
814
|
+
internalBinaryWrite(message: TransactionResponses, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
815
|
+
/* repeated devvit.plugin.redis.TransactionResponse response = 1; */
|
816
|
+
for (let i = 0; i < message.response.length; i++)
|
817
|
+
TransactionResponse.internalBinaryWrite(message.response[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
818
|
+
let u = options.writeUnknownFields;
|
819
|
+
if (u !== false)
|
820
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
821
|
+
return writer;
|
822
|
+
}
|
823
|
+
}
|
824
|
+
/**
|
825
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.TransactionResponses
|
826
|
+
*/
|
827
|
+
export const TransactionResponses = new TransactionResponses$Type();
|
828
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
829
|
+
class TransactionResponse$Type extends MessageType<TransactionResponse> {
|
830
|
+
constructor() {
|
831
|
+
super("devvit.plugin.redis.TransactionResponse", [
|
832
|
+
{ no: 1, name: "str", kind: "message", oneof: "value", T: () => StringValue },
|
833
|
+
{ no: 2, name: "nil", kind: "message", oneof: "value", T: () => Empty },
|
834
|
+
{ no: 3, name: "num", kind: "message", oneof: "value", T: () => Int64Value },
|
835
|
+
{ no: 4, name: "members", kind: "message", oneof: "value", T: () => ZMembers },
|
836
|
+
{ no: 5, name: "values", kind: "message", oneof: "value", T: () => RedisValues }
|
837
|
+
]);
|
838
|
+
}
|
839
|
+
create(value?: PartialMessage<TransactionResponse>): TransactionResponse {
|
840
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
841
|
+
message.value = { oneofKind: undefined };
|
842
|
+
if (value !== undefined)
|
843
|
+
reflectionMergePartial<TransactionResponse>(this, message, value);
|
844
|
+
return message;
|
845
|
+
}
|
846
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransactionResponse): TransactionResponse {
|
847
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
848
|
+
while (reader.pos < end) {
|
849
|
+
let [fieldNo, wireType] = reader.tag();
|
850
|
+
switch (fieldNo) {
|
851
|
+
case /* google.protobuf.StringValue str */ 1:
|
852
|
+
message.value = {
|
853
|
+
oneofKind: "str",
|
854
|
+
str: StringValue.internalBinaryRead(reader, reader.uint32(), options, (message.value as any).str)
|
855
|
+
};
|
856
|
+
break;
|
857
|
+
case /* google.protobuf.Empty nil */ 2:
|
858
|
+
message.value = {
|
859
|
+
oneofKind: "nil",
|
860
|
+
nil: Empty.internalBinaryRead(reader, reader.uint32(), options, (message.value as any).nil)
|
861
|
+
};
|
862
|
+
break;
|
863
|
+
case /* google.protobuf.Int64Value num */ 3:
|
864
|
+
message.value = {
|
865
|
+
oneofKind: "num",
|
866
|
+
num: Int64Value.internalBinaryRead(reader, reader.uint32(), options, (message.value as any).num)
|
867
|
+
};
|
868
|
+
break;
|
869
|
+
case /* devvit.plugin.redis.ZMembers members */ 4:
|
870
|
+
message.value = {
|
871
|
+
oneofKind: "members",
|
872
|
+
members: ZMembers.internalBinaryRead(reader, reader.uint32(), options, (message.value as any).members)
|
873
|
+
};
|
874
|
+
break;
|
875
|
+
case /* devvit.plugin.redis.RedisValues values */ 5:
|
876
|
+
message.value = {
|
877
|
+
oneofKind: "values",
|
878
|
+
values: RedisValues.internalBinaryRead(reader, reader.uint32(), options, (message.value as any).values)
|
879
|
+
};
|
880
|
+
break;
|
881
|
+
default:
|
882
|
+
let u = options.readUnknownField;
|
883
|
+
if (u === "throw")
|
884
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
885
|
+
let d = reader.skip(wireType);
|
886
|
+
if (u !== false)
|
887
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
888
|
+
}
|
889
|
+
}
|
890
|
+
return message;
|
891
|
+
}
|
892
|
+
internalBinaryWrite(message: TransactionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
893
|
+
/* google.protobuf.StringValue str = 1; */
|
894
|
+
if (message.value.oneofKind === "str")
|
895
|
+
StringValue.internalBinaryWrite(message.value.str, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
896
|
+
/* google.protobuf.Empty nil = 2; */
|
897
|
+
if (message.value.oneofKind === "nil")
|
898
|
+
Empty.internalBinaryWrite(message.value.nil, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
899
|
+
/* google.protobuf.Int64Value num = 3; */
|
900
|
+
if (message.value.oneofKind === "num")
|
901
|
+
Int64Value.internalBinaryWrite(message.value.num, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
902
|
+
/* devvit.plugin.redis.ZMembers members = 4; */
|
903
|
+
if (message.value.oneofKind === "members")
|
904
|
+
ZMembers.internalBinaryWrite(message.value.members, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
905
|
+
/* devvit.plugin.redis.RedisValues values = 5; */
|
906
|
+
if (message.value.oneofKind === "values")
|
907
|
+
RedisValues.internalBinaryWrite(message.value.values, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
908
|
+
let u = options.writeUnknownFields;
|
909
|
+
if (u !== false)
|
910
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
911
|
+
return writer;
|
912
|
+
}
|
913
|
+
}
|
914
|
+
/**
|
915
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.TransactionResponse
|
916
|
+
*/
|
917
|
+
export const TransactionResponse = new TransactionResponse$Type();
|
918
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
919
|
+
class ZRangeRequest$Type extends MessageType<ZRangeRequest> {
|
920
|
+
constructor() {
|
921
|
+
super("devvit.plugin.redis.ZRangeRequest", [
|
922
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
923
|
+
{ no: 2, name: "start", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
924
|
+
{ no: 3, name: "stop", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
925
|
+
{ no: 4, name: "by_score", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
926
|
+
{ no: 5, name: "by_lex", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
927
|
+
{ no: 6, name: "rev", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
928
|
+
{ no: 7, name: "offset", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
929
|
+
{ no: 8, name: "count", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
930
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
931
|
+
]);
|
932
|
+
}
|
933
|
+
create(value?: PartialMessage<ZRangeRequest>): ZRangeRequest {
|
934
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
935
|
+
message.start = "";
|
936
|
+
message.stop = "";
|
937
|
+
message.byScore = false;
|
938
|
+
message.byLex = false;
|
939
|
+
message.rev = false;
|
940
|
+
message.offset = 0;
|
941
|
+
message.count = 0;
|
942
|
+
if (value !== undefined)
|
943
|
+
reflectionMergePartial<ZRangeRequest>(this, message, value);
|
944
|
+
return message;
|
945
|
+
}
|
946
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRangeRequest): ZRangeRequest {
|
947
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
948
|
+
while (reader.pos < end) {
|
949
|
+
let [fieldNo, wireType] = reader.tag();
|
950
|
+
switch (fieldNo) {
|
951
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
952
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
953
|
+
break;
|
954
|
+
case /* string start */ 2:
|
955
|
+
message.start = reader.string();
|
956
|
+
break;
|
957
|
+
case /* string stop */ 3:
|
958
|
+
message.stop = reader.string();
|
959
|
+
break;
|
960
|
+
case /* bool by_score */ 4:
|
961
|
+
message.byScore = reader.bool();
|
962
|
+
break;
|
963
|
+
case /* bool by_lex */ 5:
|
964
|
+
message.byLex = reader.bool();
|
965
|
+
break;
|
966
|
+
case /* bool rev */ 6:
|
967
|
+
message.rev = reader.bool();
|
968
|
+
break;
|
969
|
+
case /* int32 offset */ 7:
|
970
|
+
message.offset = reader.int32();
|
971
|
+
break;
|
972
|
+
case /* int32 count */ 8:
|
973
|
+
message.count = reader.int32();
|
974
|
+
break;
|
975
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
976
|
+
message.scope = reader.int32();
|
977
|
+
break;
|
978
|
+
default:
|
979
|
+
let u = options.readUnknownField;
|
980
|
+
if (u === "throw")
|
981
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
982
|
+
let d = reader.skip(wireType);
|
983
|
+
if (u !== false)
|
984
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
985
|
+
}
|
986
|
+
}
|
987
|
+
return message;
|
988
|
+
}
|
989
|
+
internalBinaryWrite(message: ZRangeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
990
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
991
|
+
if (message.key)
|
992
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
993
|
+
/* string start = 2; */
|
994
|
+
if (message.start !== "")
|
995
|
+
writer.tag(2, WireType.LengthDelimited).string(message.start);
|
996
|
+
/* string stop = 3; */
|
997
|
+
if (message.stop !== "")
|
998
|
+
writer.tag(3, WireType.LengthDelimited).string(message.stop);
|
999
|
+
/* bool by_score = 4; */
|
1000
|
+
if (message.byScore !== false)
|
1001
|
+
writer.tag(4, WireType.Varint).bool(message.byScore);
|
1002
|
+
/* bool by_lex = 5; */
|
1003
|
+
if (message.byLex !== false)
|
1004
|
+
writer.tag(5, WireType.Varint).bool(message.byLex);
|
1005
|
+
/* bool rev = 6; */
|
1006
|
+
if (message.rev !== false)
|
1007
|
+
writer.tag(6, WireType.Varint).bool(message.rev);
|
1008
|
+
/* int32 offset = 7; */
|
1009
|
+
if (message.offset !== 0)
|
1010
|
+
writer.tag(7, WireType.Varint).int32(message.offset);
|
1011
|
+
/* int32 count = 8; */
|
1012
|
+
if (message.count !== 0)
|
1013
|
+
writer.tag(8, WireType.Varint).int32(message.count);
|
1014
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1015
|
+
if (message.scope !== undefined)
|
1016
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1017
|
+
let u = options.writeUnknownFields;
|
1018
|
+
if (u !== false)
|
1019
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1020
|
+
return writer;
|
1021
|
+
}
|
1022
|
+
}
|
1023
|
+
/**
|
1024
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRangeRequest
|
1025
|
+
*/
|
1026
|
+
export const ZRangeRequest = new ZRangeRequest$Type();
|
1027
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1028
|
+
class ZRangeByLexRequest$Type extends MessageType<ZRangeByLexRequest> {
|
1029
|
+
constructor() {
|
1030
|
+
super("devvit.plugin.redis.ZRangeByLexRequest", [
|
1031
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1032
|
+
{ no: 2, name: "min", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1033
|
+
{ no: 3, name: "max", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1034
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1035
|
+
]);
|
1036
|
+
}
|
1037
|
+
create(value?: PartialMessage<ZRangeByLexRequest>): ZRangeByLexRequest {
|
1038
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1039
|
+
message.min = "";
|
1040
|
+
message.max = "";
|
1041
|
+
if (value !== undefined)
|
1042
|
+
reflectionMergePartial<ZRangeByLexRequest>(this, message, value);
|
1043
|
+
return message;
|
1044
|
+
}
|
1045
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRangeByLexRequest): ZRangeByLexRequest {
|
1046
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1047
|
+
while (reader.pos < end) {
|
1048
|
+
let [fieldNo, wireType] = reader.tag();
|
1049
|
+
switch (fieldNo) {
|
1050
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1051
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1052
|
+
break;
|
1053
|
+
case /* string min */ 2:
|
1054
|
+
message.min = reader.string();
|
1055
|
+
break;
|
1056
|
+
case /* string max */ 3:
|
1057
|
+
message.max = reader.string();
|
1058
|
+
break;
|
1059
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1060
|
+
message.scope = reader.int32();
|
1061
|
+
break;
|
1062
|
+
default:
|
1063
|
+
let u = options.readUnknownField;
|
1064
|
+
if (u === "throw")
|
1065
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1066
|
+
let d = reader.skip(wireType);
|
1067
|
+
if (u !== false)
|
1068
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1069
|
+
}
|
1070
|
+
}
|
1071
|
+
return message;
|
1072
|
+
}
|
1073
|
+
internalBinaryWrite(message: ZRangeByLexRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1074
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1075
|
+
if (message.key)
|
1076
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1077
|
+
/* string min = 2; */
|
1078
|
+
if (message.min !== "")
|
1079
|
+
writer.tag(2, WireType.LengthDelimited).string(message.min);
|
1080
|
+
/* string max = 3; */
|
1081
|
+
if (message.max !== "")
|
1082
|
+
writer.tag(3, WireType.LengthDelimited).string(message.max);
|
1083
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1084
|
+
if (message.scope !== undefined)
|
1085
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1086
|
+
let u = options.writeUnknownFields;
|
1087
|
+
if (u !== false)
|
1088
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1089
|
+
return writer;
|
1090
|
+
}
|
1091
|
+
}
|
1092
|
+
/**
|
1093
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRangeByLexRequest
|
1094
|
+
*/
|
1095
|
+
export const ZRangeByLexRequest = new ZRangeByLexRequest$Type();
|
1096
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1097
|
+
class ZRangeByScoreRequest$Type extends MessageType<ZRangeByScoreRequest> {
|
1098
|
+
constructor() {
|
1099
|
+
super("devvit.plugin.redis.ZRangeByScoreRequest", [
|
1100
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1101
|
+
{ no: 2, name: "min", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
1102
|
+
{ no: 3, name: "max", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
1103
|
+
{ no: 4, name: "with_scores", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
1104
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1105
|
+
]);
|
1106
|
+
}
|
1107
|
+
create(value?: PartialMessage<ZRangeByScoreRequest>): ZRangeByScoreRequest {
|
1108
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1109
|
+
message.min = 0;
|
1110
|
+
message.max = 0;
|
1111
|
+
message.withScores = false;
|
1112
|
+
if (value !== undefined)
|
1113
|
+
reflectionMergePartial<ZRangeByScoreRequest>(this, message, value);
|
1114
|
+
return message;
|
1115
|
+
}
|
1116
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRangeByScoreRequest): ZRangeByScoreRequest {
|
1117
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1118
|
+
while (reader.pos < end) {
|
1119
|
+
let [fieldNo, wireType] = reader.tag();
|
1120
|
+
switch (fieldNo) {
|
1121
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1122
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1123
|
+
break;
|
1124
|
+
case /* double min */ 2:
|
1125
|
+
message.min = reader.double();
|
1126
|
+
break;
|
1127
|
+
case /* double max */ 3:
|
1128
|
+
message.max = reader.double();
|
1129
|
+
break;
|
1130
|
+
case /* bool with_scores */ 4:
|
1131
|
+
message.withScores = reader.bool();
|
1132
|
+
break;
|
1133
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1134
|
+
message.scope = reader.int32();
|
1135
|
+
break;
|
1136
|
+
default:
|
1137
|
+
let u = options.readUnknownField;
|
1138
|
+
if (u === "throw")
|
1139
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1140
|
+
let d = reader.skip(wireType);
|
1141
|
+
if (u !== false)
|
1142
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1143
|
+
}
|
1144
|
+
}
|
1145
|
+
return message;
|
1146
|
+
}
|
1147
|
+
internalBinaryWrite(message: ZRangeByScoreRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1148
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1149
|
+
if (message.key)
|
1150
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1151
|
+
/* double min = 2; */
|
1152
|
+
if (message.min !== 0)
|
1153
|
+
writer.tag(2, WireType.Bit64).double(message.min);
|
1154
|
+
/* double max = 3; */
|
1155
|
+
if (message.max !== 0)
|
1156
|
+
writer.tag(3, WireType.Bit64).double(message.max);
|
1157
|
+
/* bool with_scores = 4; */
|
1158
|
+
if (message.withScores !== false)
|
1159
|
+
writer.tag(4, WireType.Varint).bool(message.withScores);
|
1160
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1161
|
+
if (message.scope !== undefined)
|
1162
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1163
|
+
let u = options.writeUnknownFields;
|
1164
|
+
if (u !== false)
|
1165
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1166
|
+
return writer;
|
1167
|
+
}
|
1168
|
+
}
|
1169
|
+
/**
|
1170
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRangeByScoreRequest
|
1171
|
+
*/
|
1172
|
+
export const ZRangeByScoreRequest = new ZRangeByScoreRequest$Type();
|
1173
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1174
|
+
class ZRemRequest$Type extends MessageType<ZRemRequest> {
|
1175
|
+
constructor() {
|
1176
|
+
super("devvit.plugin.redis.ZRemRequest", [
|
1177
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1178
|
+
{ no: 2, name: "members", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
1179
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1180
|
+
]);
|
1181
|
+
}
|
1182
|
+
create(value?: PartialMessage<ZRemRequest>): ZRemRequest {
|
1183
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1184
|
+
message.members = [];
|
1185
|
+
if (value !== undefined)
|
1186
|
+
reflectionMergePartial<ZRemRequest>(this, message, value);
|
1187
|
+
return message;
|
1188
|
+
}
|
1189
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRemRequest): ZRemRequest {
|
1190
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1191
|
+
while (reader.pos < end) {
|
1192
|
+
let [fieldNo, wireType] = reader.tag();
|
1193
|
+
switch (fieldNo) {
|
1194
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1195
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1196
|
+
break;
|
1197
|
+
case /* repeated string members */ 2:
|
1198
|
+
message.members.push(reader.string());
|
1199
|
+
break;
|
1200
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1201
|
+
message.scope = reader.int32();
|
1202
|
+
break;
|
1203
|
+
default:
|
1204
|
+
let u = options.readUnknownField;
|
1205
|
+
if (u === "throw")
|
1206
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1207
|
+
let d = reader.skip(wireType);
|
1208
|
+
if (u !== false)
|
1209
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1210
|
+
}
|
1211
|
+
}
|
1212
|
+
return message;
|
1213
|
+
}
|
1214
|
+
internalBinaryWrite(message: ZRemRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1215
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1216
|
+
if (message.key)
|
1217
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1218
|
+
/* repeated string members = 2; */
|
1219
|
+
for (let i = 0; i < message.members.length; i++)
|
1220
|
+
writer.tag(2, WireType.LengthDelimited).string(message.members[i]);
|
1221
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1222
|
+
if (message.scope !== undefined)
|
1223
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1224
|
+
let u = options.writeUnknownFields;
|
1225
|
+
if (u !== false)
|
1226
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1227
|
+
return writer;
|
1228
|
+
}
|
1229
|
+
}
|
1230
|
+
/**
|
1231
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRemRequest
|
1232
|
+
*/
|
1233
|
+
export const ZRemRequest = new ZRemRequest$Type();
|
1234
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1235
|
+
class ZRemRangeByLexRequest$Type extends MessageType<ZRemRangeByLexRequest> {
|
1236
|
+
constructor() {
|
1237
|
+
super("devvit.plugin.redis.ZRemRangeByLexRequest", [
|
1238
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1239
|
+
{ no: 2, name: "min", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1240
|
+
{ no: 3, name: "max", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1241
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1242
|
+
]);
|
1243
|
+
}
|
1244
|
+
create(value?: PartialMessage<ZRemRangeByLexRequest>): ZRemRangeByLexRequest {
|
1245
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1246
|
+
message.min = "";
|
1247
|
+
message.max = "";
|
1248
|
+
if (value !== undefined)
|
1249
|
+
reflectionMergePartial<ZRemRangeByLexRequest>(this, message, value);
|
1250
|
+
return message;
|
1251
|
+
}
|
1252
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRemRangeByLexRequest): ZRemRangeByLexRequest {
|
1253
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1254
|
+
while (reader.pos < end) {
|
1255
|
+
let [fieldNo, wireType] = reader.tag();
|
1256
|
+
switch (fieldNo) {
|
1257
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1258
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1259
|
+
break;
|
1260
|
+
case /* string min */ 2:
|
1261
|
+
message.min = reader.string();
|
1262
|
+
break;
|
1263
|
+
case /* string max */ 3:
|
1264
|
+
message.max = reader.string();
|
1265
|
+
break;
|
1266
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1267
|
+
message.scope = reader.int32();
|
1268
|
+
break;
|
1269
|
+
default:
|
1270
|
+
let u = options.readUnknownField;
|
1271
|
+
if (u === "throw")
|
1272
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1273
|
+
let d = reader.skip(wireType);
|
1274
|
+
if (u !== false)
|
1275
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1276
|
+
}
|
1277
|
+
}
|
1278
|
+
return message;
|
1279
|
+
}
|
1280
|
+
internalBinaryWrite(message: ZRemRangeByLexRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1281
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1282
|
+
if (message.key)
|
1283
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1284
|
+
/* string min = 2; */
|
1285
|
+
if (message.min !== "")
|
1286
|
+
writer.tag(2, WireType.LengthDelimited).string(message.min);
|
1287
|
+
/* string max = 3; */
|
1288
|
+
if (message.max !== "")
|
1289
|
+
writer.tag(3, WireType.LengthDelimited).string(message.max);
|
1290
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1291
|
+
if (message.scope !== undefined)
|
1292
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1293
|
+
let u = options.writeUnknownFields;
|
1294
|
+
if (u !== false)
|
1295
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1296
|
+
return writer;
|
1297
|
+
}
|
1298
|
+
}
|
1299
|
+
/**
|
1300
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRemRangeByLexRequest
|
1301
|
+
*/
|
1302
|
+
export const ZRemRangeByLexRequest = new ZRemRangeByLexRequest$Type();
|
1303
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1304
|
+
class ZRemRangeByRankRequest$Type extends MessageType<ZRemRangeByRankRequest> {
|
1305
|
+
constructor() {
|
1306
|
+
super("devvit.plugin.redis.ZRemRangeByRankRequest", [
|
1307
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1308
|
+
{ no: 2, name: "start", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
1309
|
+
{ no: 3, name: "stop", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
1310
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1311
|
+
]);
|
1312
|
+
}
|
1313
|
+
create(value?: PartialMessage<ZRemRangeByRankRequest>): ZRemRangeByRankRequest {
|
1314
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1315
|
+
message.start = 0;
|
1316
|
+
message.stop = 0;
|
1317
|
+
if (value !== undefined)
|
1318
|
+
reflectionMergePartial<ZRemRangeByRankRequest>(this, message, value);
|
1319
|
+
return message;
|
1320
|
+
}
|
1321
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRemRangeByRankRequest): ZRemRangeByRankRequest {
|
1322
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1323
|
+
while (reader.pos < end) {
|
1324
|
+
let [fieldNo, wireType] = reader.tag();
|
1325
|
+
switch (fieldNo) {
|
1326
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1327
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1328
|
+
break;
|
1329
|
+
case /* int32 start */ 2:
|
1330
|
+
message.start = reader.int32();
|
1331
|
+
break;
|
1332
|
+
case /* int32 stop */ 3:
|
1333
|
+
message.stop = reader.int32();
|
1334
|
+
break;
|
1335
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1336
|
+
message.scope = reader.int32();
|
1337
|
+
break;
|
1338
|
+
default:
|
1339
|
+
let u = options.readUnknownField;
|
1340
|
+
if (u === "throw")
|
1341
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1342
|
+
let d = reader.skip(wireType);
|
1343
|
+
if (u !== false)
|
1344
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1345
|
+
}
|
1346
|
+
}
|
1347
|
+
return message;
|
1348
|
+
}
|
1349
|
+
internalBinaryWrite(message: ZRemRangeByRankRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1350
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1351
|
+
if (message.key)
|
1352
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1353
|
+
/* int32 start = 2; */
|
1354
|
+
if (message.start !== 0)
|
1355
|
+
writer.tag(2, WireType.Varint).int32(message.start);
|
1356
|
+
/* int32 stop = 3; */
|
1357
|
+
if (message.stop !== 0)
|
1358
|
+
writer.tag(3, WireType.Varint).int32(message.stop);
|
1359
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1360
|
+
if (message.scope !== undefined)
|
1361
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1362
|
+
let u = options.writeUnknownFields;
|
1363
|
+
if (u !== false)
|
1364
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1365
|
+
return writer;
|
1366
|
+
}
|
1367
|
+
}
|
1368
|
+
/**
|
1369
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRemRangeByRankRequest
|
1370
|
+
*/
|
1371
|
+
export const ZRemRangeByRankRequest = new ZRemRangeByRankRequest$Type();
|
1372
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1373
|
+
class ZRemRangeByScoreRequest$Type extends MessageType<ZRemRangeByScoreRequest> {
|
1374
|
+
constructor() {
|
1375
|
+
super("devvit.plugin.redis.ZRemRangeByScoreRequest", [
|
1376
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1377
|
+
{ no: 2, name: "min", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
1378
|
+
{ no: 3, name: "max", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
1379
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1380
|
+
]);
|
1381
|
+
}
|
1382
|
+
create(value?: PartialMessage<ZRemRangeByScoreRequest>): ZRemRangeByScoreRequest {
|
1383
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1384
|
+
message.min = 0;
|
1385
|
+
message.max = 0;
|
1386
|
+
if (value !== undefined)
|
1387
|
+
reflectionMergePartial<ZRemRangeByScoreRequest>(this, message, value);
|
1388
|
+
return message;
|
1389
|
+
}
|
1390
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRemRangeByScoreRequest): ZRemRangeByScoreRequest {
|
1391
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1392
|
+
while (reader.pos < end) {
|
1393
|
+
let [fieldNo, wireType] = reader.tag();
|
1394
|
+
switch (fieldNo) {
|
1395
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1396
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1397
|
+
break;
|
1398
|
+
case /* double min */ 2:
|
1399
|
+
message.min = reader.double();
|
1400
|
+
break;
|
1401
|
+
case /* double max */ 3:
|
1402
|
+
message.max = reader.double();
|
1403
|
+
break;
|
1404
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1405
|
+
message.scope = reader.int32();
|
1406
|
+
break;
|
1407
|
+
default:
|
1408
|
+
let u = options.readUnknownField;
|
1409
|
+
if (u === "throw")
|
1410
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1411
|
+
let d = reader.skip(wireType);
|
1412
|
+
if (u !== false)
|
1413
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1414
|
+
}
|
1415
|
+
}
|
1416
|
+
return message;
|
1417
|
+
}
|
1418
|
+
internalBinaryWrite(message: ZRemRangeByScoreRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1419
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1420
|
+
if (message.key)
|
1421
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1422
|
+
/* double min = 2; */
|
1423
|
+
if (message.min !== 0)
|
1424
|
+
writer.tag(2, WireType.Bit64).double(message.min);
|
1425
|
+
/* double max = 3; */
|
1426
|
+
if (message.max !== 0)
|
1427
|
+
writer.tag(3, WireType.Bit64).double(message.max);
|
1428
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1429
|
+
if (message.scope !== undefined)
|
1430
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1431
|
+
let u = options.writeUnknownFields;
|
1432
|
+
if (u !== false)
|
1433
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1434
|
+
return writer;
|
1435
|
+
}
|
1436
|
+
}
|
1437
|
+
/**
|
1438
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRemRangeByScoreRequest
|
1439
|
+
*/
|
1440
|
+
export const ZRemRangeByScoreRequest = new ZRemRangeByScoreRequest$Type();
|
1441
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1442
|
+
class ZScoreRequest$Type extends MessageType<ZScoreRequest> {
|
1443
|
+
constructor() {
|
1444
|
+
super("devvit.plugin.redis.ZScoreRequest", [
|
1445
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1446
|
+
{ no: 2, name: "member", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1447
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1448
|
+
]);
|
1449
|
+
}
|
1450
|
+
create(value?: PartialMessage<ZScoreRequest>): ZScoreRequest {
|
1451
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1452
|
+
message.member = "";
|
1453
|
+
if (value !== undefined)
|
1454
|
+
reflectionMergePartial<ZScoreRequest>(this, message, value);
|
1455
|
+
return message;
|
1456
|
+
}
|
1457
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZScoreRequest): ZScoreRequest {
|
1458
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1459
|
+
while (reader.pos < end) {
|
1460
|
+
let [fieldNo, wireType] = reader.tag();
|
1461
|
+
switch (fieldNo) {
|
1462
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1463
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1464
|
+
break;
|
1465
|
+
case /* string member */ 2:
|
1466
|
+
message.member = reader.string();
|
1467
|
+
break;
|
1468
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1469
|
+
message.scope = reader.int32();
|
1470
|
+
break;
|
1471
|
+
default:
|
1472
|
+
let u = options.readUnknownField;
|
1473
|
+
if (u === "throw")
|
1474
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1475
|
+
let d = reader.skip(wireType);
|
1476
|
+
if (u !== false)
|
1477
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1478
|
+
}
|
1479
|
+
}
|
1480
|
+
return message;
|
1481
|
+
}
|
1482
|
+
internalBinaryWrite(message: ZScoreRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1483
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1484
|
+
if (message.key)
|
1485
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1486
|
+
/* string member = 2; */
|
1487
|
+
if (message.member !== "")
|
1488
|
+
writer.tag(2, WireType.LengthDelimited).string(message.member);
|
1489
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1490
|
+
if (message.scope !== undefined)
|
1491
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1492
|
+
let u = options.writeUnknownFields;
|
1493
|
+
if (u !== false)
|
1494
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1495
|
+
return writer;
|
1496
|
+
}
|
1497
|
+
}
|
1498
|
+
/**
|
1499
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZScoreRequest
|
1500
|
+
*/
|
1501
|
+
export const ZScoreRequest = new ZScoreRequest$Type();
|
1502
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1503
|
+
class ZRankRequest$Type extends MessageType<ZRankRequest> {
|
1504
|
+
constructor() {
|
1505
|
+
super("devvit.plugin.redis.ZRankRequest", [
|
1506
|
+
{ no: 1, name: "key", kind: "message", T: () => KeyRequest },
|
1507
|
+
{ no: 2, name: "member", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1508
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1509
|
+
]);
|
1510
|
+
}
|
1511
|
+
create(value?: PartialMessage<ZRankRequest>): ZRankRequest {
|
1512
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1513
|
+
message.member = "";
|
1514
|
+
if (value !== undefined)
|
1515
|
+
reflectionMergePartial<ZRankRequest>(this, message, value);
|
1516
|
+
return message;
|
1517
|
+
}
|
1518
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZRankRequest): ZRankRequest {
|
1519
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1520
|
+
while (reader.pos < end) {
|
1521
|
+
let [fieldNo, wireType] = reader.tag();
|
1522
|
+
switch (fieldNo) {
|
1523
|
+
case /* devvit.plugin.redis.KeyRequest key */ 1:
|
1524
|
+
message.key = KeyRequest.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1525
|
+
break;
|
1526
|
+
case /* string member */ 2:
|
1527
|
+
message.member = reader.string();
|
1528
|
+
break;
|
1529
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1530
|
+
message.scope = reader.int32();
|
1531
|
+
break;
|
1532
|
+
default:
|
1533
|
+
let u = options.readUnknownField;
|
1534
|
+
if (u === "throw")
|
1535
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1536
|
+
let d = reader.skip(wireType);
|
1537
|
+
if (u !== false)
|
1538
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1539
|
+
}
|
1540
|
+
}
|
1541
|
+
return message;
|
1542
|
+
}
|
1543
|
+
internalBinaryWrite(message: ZRankRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1544
|
+
/* devvit.plugin.redis.KeyRequest key = 1; */
|
1545
|
+
if (message.key)
|
1546
|
+
KeyRequest.internalBinaryWrite(message.key, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1547
|
+
/* string member = 2; */
|
1548
|
+
if (message.member !== "")
|
1549
|
+
writer.tag(2, WireType.LengthDelimited).string(message.member);
|
1550
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1551
|
+
if (message.scope !== undefined)
|
1552
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1553
|
+
let u = options.writeUnknownFields;
|
1554
|
+
if (u !== false)
|
1555
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1556
|
+
return writer;
|
1557
|
+
}
|
1558
|
+
}
|
1559
|
+
/**
|
1560
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZRankRequest
|
1561
|
+
*/
|
1562
|
+
export const ZRankRequest = new ZRankRequest$Type();
|
1563
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1564
|
+
class ZIncrByRequest$Type extends MessageType<ZIncrByRequest> {
|
1565
|
+
constructor() {
|
1566
|
+
super("devvit.plugin.redis.ZIncrByRequest", [
|
1567
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1568
|
+
{ no: 2, name: "member", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1569
|
+
{ no: 3, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
1570
|
+
{ no: 6, name: "transaction_id", kind: "message", T: () => TransactionId },
|
1571
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1572
|
+
]);
|
1573
|
+
}
|
1574
|
+
create(value?: PartialMessage<ZIncrByRequest>): ZIncrByRequest {
|
1575
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1576
|
+
message.key = "";
|
1577
|
+
message.member = "";
|
1578
|
+
message.value = 0;
|
1579
|
+
if (value !== undefined)
|
1580
|
+
reflectionMergePartial<ZIncrByRequest>(this, message, value);
|
1581
|
+
return message;
|
1582
|
+
}
|
1583
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZIncrByRequest): ZIncrByRequest {
|
1584
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1585
|
+
while (reader.pos < end) {
|
1586
|
+
let [fieldNo, wireType] = reader.tag();
|
1587
|
+
switch (fieldNo) {
|
1588
|
+
case /* string key */ 1:
|
1589
|
+
message.key = reader.string();
|
1590
|
+
break;
|
1591
|
+
case /* string member */ 2:
|
1592
|
+
message.member = reader.string();
|
1593
|
+
break;
|
1594
|
+
case /* double value */ 3:
|
1595
|
+
message.value = reader.double();
|
1596
|
+
break;
|
1597
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 6:
|
1598
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
1599
|
+
break;
|
1600
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1601
|
+
message.scope = reader.int32();
|
1602
|
+
break;
|
1603
|
+
default:
|
1604
|
+
let u = options.readUnknownField;
|
1605
|
+
if (u === "throw")
|
1606
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1607
|
+
let d = reader.skip(wireType);
|
1608
|
+
if (u !== false)
|
1609
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1610
|
+
}
|
1611
|
+
}
|
1612
|
+
return message;
|
1613
|
+
}
|
1614
|
+
internalBinaryWrite(message: ZIncrByRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1615
|
+
/* string key = 1; */
|
1616
|
+
if (message.key !== "")
|
1617
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
1618
|
+
/* string member = 2; */
|
1619
|
+
if (message.member !== "")
|
1620
|
+
writer.tag(2, WireType.LengthDelimited).string(message.member);
|
1621
|
+
/* double value = 3; */
|
1622
|
+
if (message.value !== 0)
|
1623
|
+
writer.tag(3, WireType.Bit64).double(message.value);
|
1624
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 6; */
|
1625
|
+
if (message.transactionId)
|
1626
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
1627
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1628
|
+
if (message.scope !== undefined)
|
1629
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1630
|
+
let u = options.writeUnknownFields;
|
1631
|
+
if (u !== false)
|
1632
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1633
|
+
return writer;
|
1634
|
+
}
|
1635
|
+
}
|
1636
|
+
/**
|
1637
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZIncrByRequest
|
1638
|
+
*/
|
1639
|
+
export const ZIncrByRequest = new ZIncrByRequest$Type();
|
1640
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1641
|
+
class KeyRequest$Type extends MessageType<KeyRequest> {
|
1642
|
+
constructor() {
|
1643
|
+
super("devvit.plugin.redis.KeyRequest", [
|
1644
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1645
|
+
{ no: 2, name: "transaction_id", kind: "message", T: () => TransactionId },
|
1646
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1647
|
+
]);
|
1648
|
+
}
|
1649
|
+
create(value?: PartialMessage<KeyRequest>): KeyRequest {
|
1650
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1651
|
+
message.key = "";
|
1652
|
+
if (value !== undefined)
|
1653
|
+
reflectionMergePartial<KeyRequest>(this, message, value);
|
1654
|
+
return message;
|
1655
|
+
}
|
1656
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeyRequest): KeyRequest {
|
1657
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1658
|
+
while (reader.pos < end) {
|
1659
|
+
let [fieldNo, wireType] = reader.tag();
|
1660
|
+
switch (fieldNo) {
|
1661
|
+
case /* string key */ 1:
|
1662
|
+
message.key = reader.string();
|
1663
|
+
break;
|
1664
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 2:
|
1665
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
1666
|
+
break;
|
1667
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1668
|
+
message.scope = reader.int32();
|
1669
|
+
break;
|
1670
|
+
default:
|
1671
|
+
let u = options.readUnknownField;
|
1672
|
+
if (u === "throw")
|
1673
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1674
|
+
let d = reader.skip(wireType);
|
1675
|
+
if (u !== false)
|
1676
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1677
|
+
}
|
1678
|
+
}
|
1679
|
+
return message;
|
1680
|
+
}
|
1681
|
+
internalBinaryWrite(message: KeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1682
|
+
/* string key = 1; */
|
1683
|
+
if (message.key !== "")
|
1684
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
1685
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 2; */
|
1686
|
+
if (message.transactionId)
|
1687
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1688
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1689
|
+
if (message.scope !== undefined)
|
1690
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1691
|
+
let u = options.writeUnknownFields;
|
1692
|
+
if (u !== false)
|
1693
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1694
|
+
return writer;
|
1695
|
+
}
|
1696
|
+
}
|
1697
|
+
/**
|
1698
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.KeyRequest
|
1699
|
+
*/
|
1700
|
+
export const KeyRequest = new KeyRequest$Type();
|
1701
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1702
|
+
class IncrByRequest$Type extends MessageType<IncrByRequest> {
|
1703
|
+
constructor() {
|
1704
|
+
super("devvit.plugin.redis.IncrByRequest", [
|
1705
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1706
|
+
{ no: 2, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
1707
|
+
{ no: 6, name: "transaction_id", kind: "message", T: () => TransactionId },
|
1708
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1709
|
+
]);
|
1710
|
+
}
|
1711
|
+
create(value?: PartialMessage<IncrByRequest>): IncrByRequest {
|
1712
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1713
|
+
message.key = "";
|
1714
|
+
message.value = 0n;
|
1715
|
+
if (value !== undefined)
|
1716
|
+
reflectionMergePartial<IncrByRequest>(this, message, value);
|
1717
|
+
return message;
|
1718
|
+
}
|
1719
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IncrByRequest): IncrByRequest {
|
1720
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1721
|
+
while (reader.pos < end) {
|
1722
|
+
let [fieldNo, wireType] = reader.tag();
|
1723
|
+
switch (fieldNo) {
|
1724
|
+
case /* string key */ 1:
|
1725
|
+
message.key = reader.string();
|
1726
|
+
break;
|
1727
|
+
case /* int64 value */ 2:
|
1728
|
+
message.value = reader.int64().toBigInt();
|
1729
|
+
break;
|
1730
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 6:
|
1731
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
1732
|
+
break;
|
1733
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1734
|
+
message.scope = reader.int32();
|
1735
|
+
break;
|
1736
|
+
default:
|
1737
|
+
let u = options.readUnknownField;
|
1738
|
+
if (u === "throw")
|
1739
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1740
|
+
let d = reader.skip(wireType);
|
1741
|
+
if (u !== false)
|
1742
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1743
|
+
}
|
1744
|
+
}
|
1745
|
+
return message;
|
1746
|
+
}
|
1747
|
+
internalBinaryWrite(message: IncrByRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1748
|
+
/* string key = 1; */
|
1749
|
+
if (message.key !== "")
|
1750
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
1751
|
+
/* int64 value = 2; */
|
1752
|
+
if (message.value !== 0n)
|
1753
|
+
writer.tag(2, WireType.Varint).int64(message.value);
|
1754
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 6; */
|
1755
|
+
if (message.transactionId)
|
1756
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
1757
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1758
|
+
if (message.scope !== undefined)
|
1759
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1760
|
+
let u = options.writeUnknownFields;
|
1761
|
+
if (u !== false)
|
1762
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1763
|
+
return writer;
|
1764
|
+
}
|
1765
|
+
}
|
1766
|
+
/**
|
1767
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.IncrByRequest
|
1768
|
+
*/
|
1769
|
+
export const IncrByRequest = new IncrByRequest$Type();
|
1770
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1771
|
+
class SetRequest$Type extends MessageType<SetRequest> {
|
1772
|
+
constructor() {
|
1773
|
+
super("devvit.plugin.redis.SetRequest", [
|
1774
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1775
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1776
|
+
{ no: 3, name: "expiration", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
1777
|
+
{ no: 4, name: "nx", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
1778
|
+
{ no: 5, name: "xx", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
1779
|
+
{ no: 6, name: "transaction_id", kind: "message", T: () => TransactionId },
|
1780
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1781
|
+
]);
|
1782
|
+
}
|
1783
|
+
create(value?: PartialMessage<SetRequest>): SetRequest {
|
1784
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1785
|
+
message.key = "";
|
1786
|
+
message.value = "";
|
1787
|
+
message.expiration = 0n;
|
1788
|
+
message.nx = false;
|
1789
|
+
message.xx = false;
|
1790
|
+
if (value !== undefined)
|
1791
|
+
reflectionMergePartial<SetRequest>(this, message, value);
|
1792
|
+
return message;
|
1793
|
+
}
|
1794
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetRequest): SetRequest {
|
1795
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1796
|
+
while (reader.pos < end) {
|
1797
|
+
let [fieldNo, wireType] = reader.tag();
|
1798
|
+
switch (fieldNo) {
|
1799
|
+
case /* string key */ 1:
|
1800
|
+
message.key = reader.string();
|
1801
|
+
break;
|
1802
|
+
case /* string value */ 2:
|
1803
|
+
message.value = reader.string();
|
1804
|
+
break;
|
1805
|
+
case /* int64 expiration */ 3:
|
1806
|
+
message.expiration = reader.int64().toBigInt();
|
1807
|
+
break;
|
1808
|
+
case /* bool nx */ 4:
|
1809
|
+
message.nx = reader.bool();
|
1810
|
+
break;
|
1811
|
+
case /* bool xx */ 5:
|
1812
|
+
message.xx = reader.bool();
|
1813
|
+
break;
|
1814
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 6:
|
1815
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
1816
|
+
break;
|
1817
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1818
|
+
message.scope = reader.int32();
|
1819
|
+
break;
|
1820
|
+
default:
|
1821
|
+
let u = options.readUnknownField;
|
1822
|
+
if (u === "throw")
|
1823
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1824
|
+
let d = reader.skip(wireType);
|
1825
|
+
if (u !== false)
|
1826
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1827
|
+
}
|
1828
|
+
}
|
1829
|
+
return message;
|
1830
|
+
}
|
1831
|
+
internalBinaryWrite(message: SetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1832
|
+
/* string key = 1; */
|
1833
|
+
if (message.key !== "")
|
1834
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
1835
|
+
/* string value = 2; */
|
1836
|
+
if (message.value !== "")
|
1837
|
+
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
1838
|
+
/* int64 expiration = 3; */
|
1839
|
+
if (message.expiration !== 0n)
|
1840
|
+
writer.tag(3, WireType.Varint).int64(message.expiration);
|
1841
|
+
/* bool nx = 4; */
|
1842
|
+
if (message.nx !== false)
|
1843
|
+
writer.tag(4, WireType.Varint).bool(message.nx);
|
1844
|
+
/* bool xx = 5; */
|
1845
|
+
if (message.xx !== false)
|
1846
|
+
writer.tag(5, WireType.Varint).bool(message.xx);
|
1847
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 6; */
|
1848
|
+
if (message.transactionId)
|
1849
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
1850
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1851
|
+
if (message.scope !== undefined)
|
1852
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
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.redis.SetRequest
|
1861
|
+
*/
|
1862
|
+
export const SetRequest = new SetRequest$Type();
|
1863
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1864
|
+
class KeyRangeRequest$Type extends MessageType<KeyRangeRequest> {
|
1865
|
+
constructor() {
|
1866
|
+
super("devvit.plugin.redis.KeyRangeRequest", [
|
1867
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1868
|
+
{ no: 2, name: "start", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
1869
|
+
{ no: 3, name: "end", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
1870
|
+
{ no: 4, name: "transaction_id", kind: "message", T: () => TransactionId },
|
1871
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1872
|
+
]);
|
1873
|
+
}
|
1874
|
+
create(value?: PartialMessage<KeyRangeRequest>): KeyRangeRequest {
|
1875
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1876
|
+
message.key = "";
|
1877
|
+
message.start = 0;
|
1878
|
+
message.end = 0;
|
1879
|
+
if (value !== undefined)
|
1880
|
+
reflectionMergePartial<KeyRangeRequest>(this, message, value);
|
1881
|
+
return message;
|
1882
|
+
}
|
1883
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeyRangeRequest): KeyRangeRequest {
|
1884
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1885
|
+
while (reader.pos < end) {
|
1886
|
+
let [fieldNo, wireType] = reader.tag();
|
1887
|
+
switch (fieldNo) {
|
1888
|
+
case /* string key */ 1:
|
1889
|
+
message.key = reader.string();
|
1890
|
+
break;
|
1891
|
+
case /* int32 start */ 2:
|
1892
|
+
message.start = reader.int32();
|
1893
|
+
break;
|
1894
|
+
case /* int32 end */ 3:
|
1895
|
+
message.end = reader.int32();
|
1896
|
+
break;
|
1897
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 4:
|
1898
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
1899
|
+
break;
|
1900
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1901
|
+
message.scope = reader.int32();
|
1902
|
+
break;
|
1903
|
+
default:
|
1904
|
+
let u = options.readUnknownField;
|
1905
|
+
if (u === "throw")
|
1906
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1907
|
+
let d = reader.skip(wireType);
|
1908
|
+
if (u !== false)
|
1909
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1910
|
+
}
|
1911
|
+
}
|
1912
|
+
return message;
|
1913
|
+
}
|
1914
|
+
internalBinaryWrite(message: KeyRangeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1915
|
+
/* string key = 1; */
|
1916
|
+
if (message.key !== "")
|
1917
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
1918
|
+
/* int32 start = 2; */
|
1919
|
+
if (message.start !== 0)
|
1920
|
+
writer.tag(2, WireType.Varint).int32(message.start);
|
1921
|
+
/* int32 end = 3; */
|
1922
|
+
if (message.end !== 0)
|
1923
|
+
writer.tag(3, WireType.Varint).int32(message.end);
|
1924
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 4; */
|
1925
|
+
if (message.transactionId)
|
1926
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1927
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
1928
|
+
if (message.scope !== undefined)
|
1929
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
1930
|
+
let u = options.writeUnknownFields;
|
1931
|
+
if (u !== false)
|
1932
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1933
|
+
return writer;
|
1934
|
+
}
|
1935
|
+
}
|
1936
|
+
/**
|
1937
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.KeyRangeRequest
|
1938
|
+
*/
|
1939
|
+
export const KeyRangeRequest = new KeyRangeRequest$Type();
|
1940
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1941
|
+
class SetRangeRequest$Type extends MessageType<SetRangeRequest> {
|
1942
|
+
constructor() {
|
1943
|
+
super("devvit.plugin.redis.SetRangeRequest", [
|
1944
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1945
|
+
{ no: 2, name: "offset", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
1946
|
+
{ no: 3, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
1947
|
+
{ no: 4, name: "transaction_id", kind: "message", T: () => TransactionId },
|
1948
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
1949
|
+
]);
|
1950
|
+
}
|
1951
|
+
create(value?: PartialMessage<SetRangeRequest>): SetRangeRequest {
|
1952
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1953
|
+
message.key = "";
|
1954
|
+
message.offset = 0;
|
1955
|
+
message.value = "";
|
1956
|
+
if (value !== undefined)
|
1957
|
+
reflectionMergePartial<SetRangeRequest>(this, message, value);
|
1958
|
+
return message;
|
1959
|
+
}
|
1960
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetRangeRequest): SetRangeRequest {
|
1961
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1962
|
+
while (reader.pos < end) {
|
1963
|
+
let [fieldNo, wireType] = reader.tag();
|
1964
|
+
switch (fieldNo) {
|
1965
|
+
case /* string key */ 1:
|
1966
|
+
message.key = reader.string();
|
1967
|
+
break;
|
1968
|
+
case /* int32 offset */ 2:
|
1969
|
+
message.offset = reader.int32();
|
1970
|
+
break;
|
1971
|
+
case /* string value */ 3:
|
1972
|
+
message.value = reader.string();
|
1973
|
+
break;
|
1974
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 4:
|
1975
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
1976
|
+
break;
|
1977
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
1978
|
+
message.scope = reader.int32();
|
1979
|
+
break;
|
1980
|
+
default:
|
1981
|
+
let u = options.readUnknownField;
|
1982
|
+
if (u === "throw")
|
1983
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1984
|
+
let d = reader.skip(wireType);
|
1985
|
+
if (u !== false)
|
1986
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1987
|
+
}
|
1988
|
+
}
|
1989
|
+
return message;
|
1990
|
+
}
|
1991
|
+
internalBinaryWrite(message: SetRangeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1992
|
+
/* string key = 1; */
|
1993
|
+
if (message.key !== "")
|
1994
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
1995
|
+
/* int32 offset = 2; */
|
1996
|
+
if (message.offset !== 0)
|
1997
|
+
writer.tag(2, WireType.Varint).int32(message.offset);
|
1998
|
+
/* string value = 3; */
|
1999
|
+
if (message.value !== "")
|
2000
|
+
writer.tag(3, WireType.LengthDelimited).string(message.value);
|
2001
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 4; */
|
2002
|
+
if (message.transactionId)
|
2003
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
2004
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2005
|
+
if (message.scope !== undefined)
|
2006
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2007
|
+
let u = options.writeUnknownFields;
|
2008
|
+
if (u !== false)
|
2009
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2010
|
+
return writer;
|
2011
|
+
}
|
2012
|
+
}
|
2013
|
+
/**
|
2014
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.SetRangeRequest
|
2015
|
+
*/
|
2016
|
+
export const SetRangeRequest = new SetRangeRequest$Type();
|
2017
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2018
|
+
class KeysRequest$Type extends MessageType<KeysRequest> {
|
2019
|
+
constructor() {
|
2020
|
+
super("devvit.plugin.redis.KeysRequest", [
|
2021
|
+
{ no: 1, name: "keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
2022
|
+
{ no: 2, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2023
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2024
|
+
]);
|
2025
|
+
}
|
2026
|
+
create(value?: PartialMessage<KeysRequest>): KeysRequest {
|
2027
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2028
|
+
message.keys = [];
|
2029
|
+
if (value !== undefined)
|
2030
|
+
reflectionMergePartial<KeysRequest>(this, message, value);
|
2031
|
+
return message;
|
2032
|
+
}
|
2033
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeysRequest): KeysRequest {
|
2034
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2035
|
+
while (reader.pos < end) {
|
2036
|
+
let [fieldNo, wireType] = reader.tag();
|
2037
|
+
switch (fieldNo) {
|
2038
|
+
case /* repeated string keys */ 1:
|
2039
|
+
message.keys.push(reader.string());
|
2040
|
+
break;
|
2041
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 2:
|
2042
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2043
|
+
break;
|
2044
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2045
|
+
message.scope = reader.int32();
|
2046
|
+
break;
|
2047
|
+
default:
|
2048
|
+
let u = options.readUnknownField;
|
2049
|
+
if (u === "throw")
|
2050
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2051
|
+
let d = reader.skip(wireType);
|
2052
|
+
if (u !== false)
|
2053
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2054
|
+
}
|
2055
|
+
}
|
2056
|
+
return message;
|
2057
|
+
}
|
2058
|
+
internalBinaryWrite(message: KeysRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2059
|
+
/* repeated string keys = 1; */
|
2060
|
+
for (let i = 0; i < message.keys.length; i++)
|
2061
|
+
writer.tag(1, WireType.LengthDelimited).string(message.keys[i]);
|
2062
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 2; */
|
2063
|
+
if (message.transactionId)
|
2064
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2065
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2066
|
+
if (message.scope !== undefined)
|
2067
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2068
|
+
let u = options.writeUnknownFields;
|
2069
|
+
if (u !== false)
|
2070
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2071
|
+
return writer;
|
2072
|
+
}
|
2073
|
+
}
|
2074
|
+
/**
|
2075
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.KeysRequest
|
2076
|
+
*/
|
2077
|
+
export const KeysRequest = new KeysRequest$Type();
|
2078
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2079
|
+
class KeysResponse$Type extends MessageType<KeysResponse> {
|
2080
|
+
constructor() {
|
2081
|
+
super("devvit.plugin.redis.KeysResponse", [
|
2082
|
+
{ no: 1, name: "keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
2083
|
+
]);
|
2084
|
+
}
|
2085
|
+
create(value?: PartialMessage<KeysResponse>): KeysResponse {
|
2086
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2087
|
+
message.keys = [];
|
2088
|
+
if (value !== undefined)
|
2089
|
+
reflectionMergePartial<KeysResponse>(this, message, value);
|
2090
|
+
return message;
|
2091
|
+
}
|
2092
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeysResponse): KeysResponse {
|
2093
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2094
|
+
while (reader.pos < end) {
|
2095
|
+
let [fieldNo, wireType] = reader.tag();
|
2096
|
+
switch (fieldNo) {
|
2097
|
+
case /* repeated string keys */ 1:
|
2098
|
+
message.keys.push(reader.string());
|
2099
|
+
break;
|
2100
|
+
default:
|
2101
|
+
let u = options.readUnknownField;
|
2102
|
+
if (u === "throw")
|
2103
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2104
|
+
let d = reader.skip(wireType);
|
2105
|
+
if (u !== false)
|
2106
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2107
|
+
}
|
2108
|
+
}
|
2109
|
+
return message;
|
2110
|
+
}
|
2111
|
+
internalBinaryWrite(message: KeysResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2112
|
+
/* repeated string keys = 1; */
|
2113
|
+
for (let i = 0; i < message.keys.length; i++)
|
2114
|
+
writer.tag(1, WireType.LengthDelimited).string(message.keys[i]);
|
2115
|
+
let u = options.writeUnknownFields;
|
2116
|
+
if (u !== false)
|
2117
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2118
|
+
return writer;
|
2119
|
+
}
|
2120
|
+
}
|
2121
|
+
/**
|
2122
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.KeysResponse
|
2123
|
+
*/
|
2124
|
+
export const KeysResponse = new KeysResponse$Type();
|
2125
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2126
|
+
class HGetRequest$Type extends MessageType<HGetRequest> {
|
2127
|
+
constructor() {
|
2128
|
+
super("devvit.plugin.redis.HGetRequest", [
|
2129
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2130
|
+
{ no: 2, name: "field", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2131
|
+
{ no: 3, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2132
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2133
|
+
]);
|
2134
|
+
}
|
2135
|
+
create(value?: PartialMessage<HGetRequest>): HGetRequest {
|
2136
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2137
|
+
message.key = "";
|
2138
|
+
message.field = "";
|
2139
|
+
if (value !== undefined)
|
2140
|
+
reflectionMergePartial<HGetRequest>(this, message, value);
|
2141
|
+
return message;
|
2142
|
+
}
|
2143
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HGetRequest): HGetRequest {
|
2144
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2145
|
+
while (reader.pos < end) {
|
2146
|
+
let [fieldNo, wireType] = reader.tag();
|
2147
|
+
switch (fieldNo) {
|
2148
|
+
case /* string key */ 1:
|
2149
|
+
message.key = reader.string();
|
2150
|
+
break;
|
2151
|
+
case /* string field */ 2:
|
2152
|
+
message.field = reader.string();
|
2153
|
+
break;
|
2154
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 3:
|
2155
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2156
|
+
break;
|
2157
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2158
|
+
message.scope = reader.int32();
|
2159
|
+
break;
|
2160
|
+
default:
|
2161
|
+
let u = options.readUnknownField;
|
2162
|
+
if (u === "throw")
|
2163
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2164
|
+
let d = reader.skip(wireType);
|
2165
|
+
if (u !== false)
|
2166
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2167
|
+
}
|
2168
|
+
}
|
2169
|
+
return message;
|
2170
|
+
}
|
2171
|
+
internalBinaryWrite(message: HGetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2172
|
+
/* string key = 1; */
|
2173
|
+
if (message.key !== "")
|
2174
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2175
|
+
/* string field = 2; */
|
2176
|
+
if (message.field !== "")
|
2177
|
+
writer.tag(2, WireType.LengthDelimited).string(message.field);
|
2178
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 3; */
|
2179
|
+
if (message.transactionId)
|
2180
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2181
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2182
|
+
if (message.scope !== undefined)
|
2183
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2184
|
+
let u = options.writeUnknownFields;
|
2185
|
+
if (u !== false)
|
2186
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2187
|
+
return writer;
|
2188
|
+
}
|
2189
|
+
}
|
2190
|
+
/**
|
2191
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.HGetRequest
|
2192
|
+
*/
|
2193
|
+
export const HGetRequest = new HGetRequest$Type();
|
2194
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2195
|
+
class HSetRequest$Type extends MessageType<HSetRequest> {
|
2196
|
+
constructor() {
|
2197
|
+
super("devvit.plugin.redis.HSetRequest", [
|
2198
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2199
|
+
{ no: 2, name: "fv", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => RedisFieldValue },
|
2200
|
+
{ no: 3, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2201
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2202
|
+
]);
|
2203
|
+
}
|
2204
|
+
create(value?: PartialMessage<HSetRequest>): HSetRequest {
|
2205
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2206
|
+
message.key = "";
|
2207
|
+
message.fv = [];
|
2208
|
+
if (value !== undefined)
|
2209
|
+
reflectionMergePartial<HSetRequest>(this, message, value);
|
2210
|
+
return message;
|
2211
|
+
}
|
2212
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HSetRequest): HSetRequest {
|
2213
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2214
|
+
while (reader.pos < end) {
|
2215
|
+
let [fieldNo, wireType] = reader.tag();
|
2216
|
+
switch (fieldNo) {
|
2217
|
+
case /* string key */ 1:
|
2218
|
+
message.key = reader.string();
|
2219
|
+
break;
|
2220
|
+
case /* repeated devvit.plugin.redis.RedisFieldValue fv */ 2:
|
2221
|
+
message.fv.push(RedisFieldValue.internalBinaryRead(reader, reader.uint32(), options));
|
2222
|
+
break;
|
2223
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 3:
|
2224
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2225
|
+
break;
|
2226
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2227
|
+
message.scope = reader.int32();
|
2228
|
+
break;
|
2229
|
+
default:
|
2230
|
+
let u = options.readUnknownField;
|
2231
|
+
if (u === "throw")
|
2232
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2233
|
+
let d = reader.skip(wireType);
|
2234
|
+
if (u !== false)
|
2235
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2236
|
+
}
|
2237
|
+
}
|
2238
|
+
return message;
|
2239
|
+
}
|
2240
|
+
internalBinaryWrite(message: HSetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2241
|
+
/* string key = 1; */
|
2242
|
+
if (message.key !== "")
|
2243
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2244
|
+
/* repeated devvit.plugin.redis.RedisFieldValue fv = 2; */
|
2245
|
+
for (let i = 0; i < message.fv.length; i++)
|
2246
|
+
RedisFieldValue.internalBinaryWrite(message.fv[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2247
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 3; */
|
2248
|
+
if (message.transactionId)
|
2249
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2250
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2251
|
+
if (message.scope !== undefined)
|
2252
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2253
|
+
let u = options.writeUnknownFields;
|
2254
|
+
if (u !== false)
|
2255
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2256
|
+
return writer;
|
2257
|
+
}
|
2258
|
+
}
|
2259
|
+
/**
|
2260
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.HSetRequest
|
2261
|
+
*/
|
2262
|
+
export const HSetRequest = new HSetRequest$Type();
|
2263
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2264
|
+
class HDelRequest$Type extends MessageType<HDelRequest> {
|
2265
|
+
constructor() {
|
2266
|
+
super("devvit.plugin.redis.HDelRequest", [
|
2267
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2268
|
+
{ no: 2, name: "fields", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
2269
|
+
{ no: 3, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2270
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2271
|
+
]);
|
2272
|
+
}
|
2273
|
+
create(value?: PartialMessage<HDelRequest>): HDelRequest {
|
2274
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2275
|
+
message.key = "";
|
2276
|
+
message.fields = [];
|
2277
|
+
if (value !== undefined)
|
2278
|
+
reflectionMergePartial<HDelRequest>(this, message, value);
|
2279
|
+
return message;
|
2280
|
+
}
|
2281
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HDelRequest): HDelRequest {
|
2282
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2283
|
+
while (reader.pos < end) {
|
2284
|
+
let [fieldNo, wireType] = reader.tag();
|
2285
|
+
switch (fieldNo) {
|
2286
|
+
case /* string key */ 1:
|
2287
|
+
message.key = reader.string();
|
2288
|
+
break;
|
2289
|
+
case /* repeated string fields */ 2:
|
2290
|
+
message.fields.push(reader.string());
|
2291
|
+
break;
|
2292
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 3:
|
2293
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2294
|
+
break;
|
2295
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2296
|
+
message.scope = reader.int32();
|
2297
|
+
break;
|
2298
|
+
default:
|
2299
|
+
let u = options.readUnknownField;
|
2300
|
+
if (u === "throw")
|
2301
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2302
|
+
let d = reader.skip(wireType);
|
2303
|
+
if (u !== false)
|
2304
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2305
|
+
}
|
2306
|
+
}
|
2307
|
+
return message;
|
2308
|
+
}
|
2309
|
+
internalBinaryWrite(message: HDelRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2310
|
+
/* string key = 1; */
|
2311
|
+
if (message.key !== "")
|
2312
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2313
|
+
/* repeated string fields = 2; */
|
2314
|
+
for (let i = 0; i < message.fields.length; i++)
|
2315
|
+
writer.tag(2, WireType.LengthDelimited).string(message.fields[i]);
|
2316
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 3; */
|
2317
|
+
if (message.transactionId)
|
2318
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2319
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2320
|
+
if (message.scope !== undefined)
|
2321
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2322
|
+
let u = options.writeUnknownFields;
|
2323
|
+
if (u !== false)
|
2324
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2325
|
+
return writer;
|
2326
|
+
}
|
2327
|
+
}
|
2328
|
+
/**
|
2329
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.HDelRequest
|
2330
|
+
*/
|
2331
|
+
export const HDelRequest = new HDelRequest$Type();
|
2332
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2333
|
+
class HScanRequest$Type extends MessageType<HScanRequest> {
|
2334
|
+
constructor() {
|
2335
|
+
super("devvit.plugin.redis.HScanRequest", [
|
2336
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2337
|
+
{ no: 2, name: "cursor", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
2338
|
+
{ no: 3, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
2339
|
+
{ no: 4, name: "count", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
2340
|
+
{ no: 5, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2341
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2342
|
+
]);
|
2343
|
+
}
|
2344
|
+
create(value?: PartialMessage<HScanRequest>): HScanRequest {
|
2345
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2346
|
+
message.key = "";
|
2347
|
+
message.cursor = 0n;
|
2348
|
+
if (value !== undefined)
|
2349
|
+
reflectionMergePartial<HScanRequest>(this, message, value);
|
2350
|
+
return message;
|
2351
|
+
}
|
2352
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HScanRequest): HScanRequest {
|
2353
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2354
|
+
while (reader.pos < end) {
|
2355
|
+
let [fieldNo, wireType] = reader.tag();
|
2356
|
+
switch (fieldNo) {
|
2357
|
+
case /* string key */ 1:
|
2358
|
+
message.key = reader.string();
|
2359
|
+
break;
|
2360
|
+
case /* uint64 cursor */ 2:
|
2361
|
+
message.cursor = reader.uint64().toBigInt();
|
2362
|
+
break;
|
2363
|
+
case /* optional string pattern */ 3:
|
2364
|
+
message.pattern = reader.string();
|
2365
|
+
break;
|
2366
|
+
case /* optional int64 count */ 4:
|
2367
|
+
message.count = reader.int64().toBigInt();
|
2368
|
+
break;
|
2369
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 5:
|
2370
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2371
|
+
break;
|
2372
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2373
|
+
message.scope = reader.int32();
|
2374
|
+
break;
|
2375
|
+
default:
|
2376
|
+
let u = options.readUnknownField;
|
2377
|
+
if (u === "throw")
|
2378
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2379
|
+
let d = reader.skip(wireType);
|
2380
|
+
if (u !== false)
|
2381
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2382
|
+
}
|
2383
|
+
}
|
2384
|
+
return message;
|
2385
|
+
}
|
2386
|
+
internalBinaryWrite(message: HScanRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2387
|
+
/* string key = 1; */
|
2388
|
+
if (message.key !== "")
|
2389
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2390
|
+
/* uint64 cursor = 2; */
|
2391
|
+
if (message.cursor !== 0n)
|
2392
|
+
writer.tag(2, WireType.Varint).uint64(message.cursor);
|
2393
|
+
/* optional string pattern = 3; */
|
2394
|
+
if (message.pattern !== undefined)
|
2395
|
+
writer.tag(3, WireType.LengthDelimited).string(message.pattern);
|
2396
|
+
/* optional int64 count = 4; */
|
2397
|
+
if (message.count !== undefined)
|
2398
|
+
writer.tag(4, WireType.Varint).int64(message.count);
|
2399
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 5; */
|
2400
|
+
if (message.transactionId)
|
2401
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
2402
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2403
|
+
if (message.scope !== undefined)
|
2404
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2405
|
+
let u = options.writeUnknownFields;
|
2406
|
+
if (u !== false)
|
2407
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2408
|
+
return writer;
|
2409
|
+
}
|
2410
|
+
}
|
2411
|
+
/**
|
2412
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.HScanRequest
|
2413
|
+
*/
|
2414
|
+
export const HScanRequest = new HScanRequest$Type();
|
2415
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2416
|
+
class HScanResponse$Type extends MessageType<HScanResponse> {
|
2417
|
+
constructor() {
|
2418
|
+
super("devvit.plugin.redis.HScanResponse", [
|
2419
|
+
{ no: 1, name: "cursor", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
2420
|
+
{ no: 2, name: "field_values", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => RedisFieldValue }
|
2421
|
+
]);
|
2422
|
+
}
|
2423
|
+
create(value?: PartialMessage<HScanResponse>): HScanResponse {
|
2424
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2425
|
+
message.cursor = 0n;
|
2426
|
+
message.fieldValues = [];
|
2427
|
+
if (value !== undefined)
|
2428
|
+
reflectionMergePartial<HScanResponse>(this, message, value);
|
2429
|
+
return message;
|
2430
|
+
}
|
2431
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HScanResponse): HScanResponse {
|
2432
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2433
|
+
while (reader.pos < end) {
|
2434
|
+
let [fieldNo, wireType] = reader.tag();
|
2435
|
+
switch (fieldNo) {
|
2436
|
+
case /* uint64 cursor */ 1:
|
2437
|
+
message.cursor = reader.uint64().toBigInt();
|
2438
|
+
break;
|
2439
|
+
case /* repeated devvit.plugin.redis.RedisFieldValue field_values */ 2:
|
2440
|
+
message.fieldValues.push(RedisFieldValue.internalBinaryRead(reader, reader.uint32(), options));
|
2441
|
+
break;
|
2442
|
+
default:
|
2443
|
+
let u = options.readUnknownField;
|
2444
|
+
if (u === "throw")
|
2445
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2446
|
+
let d = reader.skip(wireType);
|
2447
|
+
if (u !== false)
|
2448
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2449
|
+
}
|
2450
|
+
}
|
2451
|
+
return message;
|
2452
|
+
}
|
2453
|
+
internalBinaryWrite(message: HScanResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2454
|
+
/* uint64 cursor = 1; */
|
2455
|
+
if (message.cursor !== 0n)
|
2456
|
+
writer.tag(1, WireType.Varint).uint64(message.cursor);
|
2457
|
+
/* repeated devvit.plugin.redis.RedisFieldValue field_values = 2; */
|
2458
|
+
for (let i = 0; i < message.fieldValues.length; i++)
|
2459
|
+
RedisFieldValue.internalBinaryWrite(message.fieldValues[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2460
|
+
let u = options.writeUnknownFields;
|
2461
|
+
if (u !== false)
|
2462
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2463
|
+
return writer;
|
2464
|
+
}
|
2465
|
+
}
|
2466
|
+
/**
|
2467
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.HScanResponse
|
2468
|
+
*/
|
2469
|
+
export const HScanResponse = new HScanResponse$Type();
|
2470
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2471
|
+
class HIncrByRequest$Type extends MessageType<HIncrByRequest> {
|
2472
|
+
constructor() {
|
2473
|
+
super("devvit.plugin.redis.HIncrByRequest", [
|
2474
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2475
|
+
{ no: 2, name: "field", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2476
|
+
{ no: 3, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
2477
|
+
{ no: 6, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2478
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2479
|
+
]);
|
2480
|
+
}
|
2481
|
+
create(value?: PartialMessage<HIncrByRequest>): HIncrByRequest {
|
2482
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2483
|
+
message.key = "";
|
2484
|
+
message.field = "";
|
2485
|
+
message.value = 0n;
|
2486
|
+
if (value !== undefined)
|
2487
|
+
reflectionMergePartial<HIncrByRequest>(this, message, value);
|
2488
|
+
return message;
|
2489
|
+
}
|
2490
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HIncrByRequest): HIncrByRequest {
|
2491
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2492
|
+
while (reader.pos < end) {
|
2493
|
+
let [fieldNo, wireType] = reader.tag();
|
2494
|
+
switch (fieldNo) {
|
2495
|
+
case /* string key */ 1:
|
2496
|
+
message.key = reader.string();
|
2497
|
+
break;
|
2498
|
+
case /* string field */ 2:
|
2499
|
+
message.field = reader.string();
|
2500
|
+
break;
|
2501
|
+
case /* int64 value */ 3:
|
2502
|
+
message.value = reader.int64().toBigInt();
|
2503
|
+
break;
|
2504
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 6:
|
2505
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2506
|
+
break;
|
2507
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2508
|
+
message.scope = reader.int32();
|
2509
|
+
break;
|
2510
|
+
default:
|
2511
|
+
let u = options.readUnknownField;
|
2512
|
+
if (u === "throw")
|
2513
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2514
|
+
let d = reader.skip(wireType);
|
2515
|
+
if (u !== false)
|
2516
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2517
|
+
}
|
2518
|
+
}
|
2519
|
+
return message;
|
2520
|
+
}
|
2521
|
+
internalBinaryWrite(message: HIncrByRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2522
|
+
/* string key = 1; */
|
2523
|
+
if (message.key !== "")
|
2524
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2525
|
+
/* string field = 2; */
|
2526
|
+
if (message.field !== "")
|
2527
|
+
writer.tag(2, WireType.LengthDelimited).string(message.field);
|
2528
|
+
/* int64 value = 3; */
|
2529
|
+
if (message.value !== 0n)
|
2530
|
+
writer.tag(3, WireType.Varint).int64(message.value);
|
2531
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 6; */
|
2532
|
+
if (message.transactionId)
|
2533
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
2534
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2535
|
+
if (message.scope !== undefined)
|
2536
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2537
|
+
let u = options.writeUnknownFields;
|
2538
|
+
if (u !== false)
|
2539
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2540
|
+
return writer;
|
2541
|
+
}
|
2542
|
+
}
|
2543
|
+
/**
|
2544
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.HIncrByRequest
|
2545
|
+
*/
|
2546
|
+
export const HIncrByRequest = new HIncrByRequest$Type();
|
2547
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2548
|
+
class RedisFieldValue$Type extends MessageType<RedisFieldValue> {
|
2549
|
+
constructor() {
|
2550
|
+
super("devvit.plugin.redis.RedisFieldValue", [
|
2551
|
+
{ no: 1, name: "field", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2552
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
2553
|
+
]);
|
2554
|
+
}
|
2555
|
+
create(value?: PartialMessage<RedisFieldValue>): RedisFieldValue {
|
2556
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2557
|
+
message.field = "";
|
2558
|
+
message.value = "";
|
2559
|
+
if (value !== undefined)
|
2560
|
+
reflectionMergePartial<RedisFieldValue>(this, message, value);
|
2561
|
+
return message;
|
2562
|
+
}
|
2563
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedisFieldValue): RedisFieldValue {
|
2564
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2565
|
+
while (reader.pos < end) {
|
2566
|
+
let [fieldNo, wireType] = reader.tag();
|
2567
|
+
switch (fieldNo) {
|
2568
|
+
case /* string field */ 1:
|
2569
|
+
message.field = reader.string();
|
2570
|
+
break;
|
2571
|
+
case /* string value */ 2:
|
2572
|
+
message.value = reader.string();
|
2573
|
+
break;
|
2574
|
+
default:
|
2575
|
+
let u = options.readUnknownField;
|
2576
|
+
if (u === "throw")
|
2577
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2578
|
+
let d = reader.skip(wireType);
|
2579
|
+
if (u !== false)
|
2580
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2581
|
+
}
|
2582
|
+
}
|
2583
|
+
return message;
|
2584
|
+
}
|
2585
|
+
internalBinaryWrite(message: RedisFieldValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2586
|
+
/* string field = 1; */
|
2587
|
+
if (message.field !== "")
|
2588
|
+
writer.tag(1, WireType.LengthDelimited).string(message.field);
|
2589
|
+
/* string value = 2; */
|
2590
|
+
if (message.value !== "")
|
2591
|
+
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
2592
|
+
let u = options.writeUnknownFields;
|
2593
|
+
if (u !== false)
|
2594
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2595
|
+
return writer;
|
2596
|
+
}
|
2597
|
+
}
|
2598
|
+
/**
|
2599
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.RedisFieldValue
|
2600
|
+
*/
|
2601
|
+
export const RedisFieldValue = new RedisFieldValue$Type();
|
2602
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2603
|
+
class RedisFieldValues$Type extends MessageType<RedisFieldValues> {
|
2604
|
+
constructor() {
|
2605
|
+
super("devvit.plugin.redis.RedisFieldValues", [
|
2606
|
+
{ no: 1, name: "field_values", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
2607
|
+
]);
|
2608
|
+
}
|
2609
|
+
create(value?: PartialMessage<RedisFieldValues>): RedisFieldValues {
|
2610
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2611
|
+
message.fieldValues = {};
|
2612
|
+
if (value !== undefined)
|
2613
|
+
reflectionMergePartial<RedisFieldValues>(this, message, value);
|
2614
|
+
return message;
|
2615
|
+
}
|
2616
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedisFieldValues): RedisFieldValues {
|
2617
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2618
|
+
while (reader.pos < end) {
|
2619
|
+
let [fieldNo, wireType] = reader.tag();
|
2620
|
+
switch (fieldNo) {
|
2621
|
+
case /* map<string, string> field_values */ 1:
|
2622
|
+
this.binaryReadMap1(message.fieldValues, reader, options);
|
2623
|
+
break;
|
2624
|
+
default:
|
2625
|
+
let u = options.readUnknownField;
|
2626
|
+
if (u === "throw")
|
2627
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2628
|
+
let d = reader.skip(wireType);
|
2629
|
+
if (u !== false)
|
2630
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2631
|
+
}
|
2632
|
+
}
|
2633
|
+
return message;
|
2634
|
+
}
|
2635
|
+
private binaryReadMap1(map: RedisFieldValues["fieldValues"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
2636
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof RedisFieldValues["fieldValues"] | undefined, val: RedisFieldValues["fieldValues"][any] | undefined;
|
2637
|
+
while (reader.pos < end) {
|
2638
|
+
let [fieldNo, wireType] = reader.tag();
|
2639
|
+
switch (fieldNo) {
|
2640
|
+
case 1:
|
2641
|
+
key = reader.string();
|
2642
|
+
break;
|
2643
|
+
case 2:
|
2644
|
+
val = reader.string();
|
2645
|
+
break;
|
2646
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redis.RedisFieldValues.field_values");
|
2647
|
+
}
|
2648
|
+
}
|
2649
|
+
map[key ?? ""] = val ?? "";
|
2650
|
+
}
|
2651
|
+
internalBinaryWrite(message: RedisFieldValues, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2652
|
+
/* map<string, string> field_values = 1; */
|
2653
|
+
for (let k of globalThis.Object.keys(message.fieldValues))
|
2654
|
+
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.fieldValues[k]).join();
|
2655
|
+
let u = options.writeUnknownFields;
|
2656
|
+
if (u !== false)
|
2657
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2658
|
+
return writer;
|
2659
|
+
}
|
2660
|
+
}
|
2661
|
+
/**
|
2662
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.RedisFieldValues
|
2663
|
+
*/
|
2664
|
+
export const RedisFieldValues = new RedisFieldValues$Type();
|
2665
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2666
|
+
class KeyValuesRequest$Type extends MessageType<KeyValuesRequest> {
|
2667
|
+
constructor() {
|
2668
|
+
super("devvit.plugin.redis.KeyValuesRequest", [
|
2669
|
+
{ no: 1, name: "kv", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => RedisKeyValue },
|
2670
|
+
{ no: 2, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2671
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2672
|
+
]);
|
2673
|
+
}
|
2674
|
+
create(value?: PartialMessage<KeyValuesRequest>): KeyValuesRequest {
|
2675
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2676
|
+
message.kv = [];
|
2677
|
+
if (value !== undefined)
|
2678
|
+
reflectionMergePartial<KeyValuesRequest>(this, message, value);
|
2679
|
+
return message;
|
2680
|
+
}
|
2681
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeyValuesRequest): KeyValuesRequest {
|
2682
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2683
|
+
while (reader.pos < end) {
|
2684
|
+
let [fieldNo, wireType] = reader.tag();
|
2685
|
+
switch (fieldNo) {
|
2686
|
+
case /* repeated devvit.plugin.redis.RedisKeyValue kv */ 1:
|
2687
|
+
message.kv.push(RedisKeyValue.internalBinaryRead(reader, reader.uint32(), options));
|
2688
|
+
break;
|
2689
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 2:
|
2690
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2691
|
+
break;
|
2692
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2693
|
+
message.scope = reader.int32();
|
2694
|
+
break;
|
2695
|
+
default:
|
2696
|
+
let u = options.readUnknownField;
|
2697
|
+
if (u === "throw")
|
2698
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2699
|
+
let d = reader.skip(wireType);
|
2700
|
+
if (u !== false)
|
2701
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2702
|
+
}
|
2703
|
+
}
|
2704
|
+
return message;
|
2705
|
+
}
|
2706
|
+
internalBinaryWrite(message: KeyValuesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2707
|
+
/* repeated devvit.plugin.redis.RedisKeyValue kv = 1; */
|
2708
|
+
for (let i = 0; i < message.kv.length; i++)
|
2709
|
+
RedisKeyValue.internalBinaryWrite(message.kv[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
2710
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 2; */
|
2711
|
+
if (message.transactionId)
|
2712
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2713
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2714
|
+
if (message.scope !== undefined)
|
2715
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2716
|
+
let u = options.writeUnknownFields;
|
2717
|
+
if (u !== false)
|
2718
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2719
|
+
return writer;
|
2720
|
+
}
|
2721
|
+
}
|
2722
|
+
/**
|
2723
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.KeyValuesRequest
|
2724
|
+
*/
|
2725
|
+
export const KeyValuesRequest = new KeyValuesRequest$Type();
|
2726
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2727
|
+
class RedisKeyValue$Type extends MessageType<RedisKeyValue> {
|
2728
|
+
constructor() {
|
2729
|
+
super("devvit.plugin.redis.RedisKeyValue", [
|
2730
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2731
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
2732
|
+
]);
|
2733
|
+
}
|
2734
|
+
create(value?: PartialMessage<RedisKeyValue>): RedisKeyValue {
|
2735
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2736
|
+
message.key = "";
|
2737
|
+
message.value = "";
|
2738
|
+
if (value !== undefined)
|
2739
|
+
reflectionMergePartial<RedisKeyValue>(this, message, value);
|
2740
|
+
return message;
|
2741
|
+
}
|
2742
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedisKeyValue): RedisKeyValue {
|
2743
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2744
|
+
while (reader.pos < end) {
|
2745
|
+
let [fieldNo, wireType] = reader.tag();
|
2746
|
+
switch (fieldNo) {
|
2747
|
+
case /* string key */ 1:
|
2748
|
+
message.key = reader.string();
|
2749
|
+
break;
|
2750
|
+
case /* string value */ 2:
|
2751
|
+
message.value = reader.string();
|
2752
|
+
break;
|
2753
|
+
default:
|
2754
|
+
let u = options.readUnknownField;
|
2755
|
+
if (u === "throw")
|
2756
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2757
|
+
let d = reader.skip(wireType);
|
2758
|
+
if (u !== false)
|
2759
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2760
|
+
}
|
2761
|
+
}
|
2762
|
+
return message;
|
2763
|
+
}
|
2764
|
+
internalBinaryWrite(message: RedisKeyValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2765
|
+
/* string key = 1; */
|
2766
|
+
if (message.key !== "")
|
2767
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2768
|
+
/* string value = 2; */
|
2769
|
+
if (message.value !== "")
|
2770
|
+
writer.tag(2, WireType.LengthDelimited).string(message.value);
|
2771
|
+
let u = options.writeUnknownFields;
|
2772
|
+
if (u !== false)
|
2773
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2774
|
+
return writer;
|
2775
|
+
}
|
2776
|
+
}
|
2777
|
+
/**
|
2778
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.RedisKeyValue
|
2779
|
+
*/
|
2780
|
+
export const RedisKeyValue = new RedisKeyValue$Type();
|
2781
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2782
|
+
class RedisValues$Type extends MessageType<RedisValues> {
|
2783
|
+
constructor() {
|
2784
|
+
super("devvit.plugin.redis.RedisValues", [
|
2785
|
+
{ no: 1, name: "values", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue }
|
2786
|
+
]);
|
2787
|
+
}
|
2788
|
+
create(value?: PartialMessage<RedisValues>): RedisValues {
|
2789
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2790
|
+
message.values = [];
|
2791
|
+
if (value !== undefined)
|
2792
|
+
reflectionMergePartial<RedisValues>(this, message, value);
|
2793
|
+
return message;
|
2794
|
+
}
|
2795
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedisValues): RedisValues {
|
2796
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2797
|
+
while (reader.pos < end) {
|
2798
|
+
let [fieldNo, wireType] = reader.tag();
|
2799
|
+
switch (fieldNo) {
|
2800
|
+
case /* repeated google.protobuf.StringValue values */ 1:
|
2801
|
+
message.values.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
|
2802
|
+
break;
|
2803
|
+
default:
|
2804
|
+
let u = options.readUnknownField;
|
2805
|
+
if (u === "throw")
|
2806
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2807
|
+
let d = reader.skip(wireType);
|
2808
|
+
if (u !== false)
|
2809
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2810
|
+
}
|
2811
|
+
}
|
2812
|
+
return message;
|
2813
|
+
}
|
2814
|
+
internalBinaryWrite(message: RedisValues, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2815
|
+
/* repeated google.protobuf.StringValue values = 1; */
|
2816
|
+
for (let i = 0; i < message.values.length; i++)
|
2817
|
+
StringValue.internalBinaryWrite(message.values[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
2818
|
+
let u = options.writeUnknownFields;
|
2819
|
+
if (u !== false)
|
2820
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2821
|
+
return writer;
|
2822
|
+
}
|
2823
|
+
}
|
2824
|
+
/**
|
2825
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.RedisValues
|
2826
|
+
*/
|
2827
|
+
export const RedisValues = new RedisValues$Type();
|
2828
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2829
|
+
class ExpireRequest$Type extends MessageType<ExpireRequest> {
|
2830
|
+
constructor() {
|
2831
|
+
super("devvit.plugin.redis.ExpireRequest", [
|
2832
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2833
|
+
{ no: 2, name: "seconds", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
2834
|
+
{ no: 3, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2835
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2836
|
+
]);
|
2837
|
+
}
|
2838
|
+
create(value?: PartialMessage<ExpireRequest>): ExpireRequest {
|
2839
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2840
|
+
message.key = "";
|
2841
|
+
message.seconds = 0;
|
2842
|
+
if (value !== undefined)
|
2843
|
+
reflectionMergePartial<ExpireRequest>(this, message, value);
|
2844
|
+
return message;
|
2845
|
+
}
|
2846
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExpireRequest): ExpireRequest {
|
2847
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2848
|
+
while (reader.pos < end) {
|
2849
|
+
let [fieldNo, wireType] = reader.tag();
|
2850
|
+
switch (fieldNo) {
|
2851
|
+
case /* string key */ 1:
|
2852
|
+
message.key = reader.string();
|
2853
|
+
break;
|
2854
|
+
case /* int32 seconds */ 2:
|
2855
|
+
message.seconds = reader.int32();
|
2856
|
+
break;
|
2857
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 3:
|
2858
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2859
|
+
break;
|
2860
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2861
|
+
message.scope = reader.int32();
|
2862
|
+
break;
|
2863
|
+
default:
|
2864
|
+
let u = options.readUnknownField;
|
2865
|
+
if (u === "throw")
|
2866
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2867
|
+
let d = reader.skip(wireType);
|
2868
|
+
if (u !== false)
|
2869
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2870
|
+
}
|
2871
|
+
}
|
2872
|
+
return message;
|
2873
|
+
}
|
2874
|
+
internalBinaryWrite(message: ExpireRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2875
|
+
/* string key = 1; */
|
2876
|
+
if (message.key !== "")
|
2877
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2878
|
+
/* int32 seconds = 2; */
|
2879
|
+
if (message.seconds !== 0)
|
2880
|
+
writer.tag(2, WireType.Varint).int32(message.seconds);
|
2881
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 3; */
|
2882
|
+
if (message.transactionId)
|
2883
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2884
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2885
|
+
if (message.scope !== undefined)
|
2886
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2887
|
+
let u = options.writeUnknownFields;
|
2888
|
+
if (u !== false)
|
2889
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2890
|
+
return writer;
|
2891
|
+
}
|
2892
|
+
}
|
2893
|
+
/**
|
2894
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ExpireRequest
|
2895
|
+
*/
|
2896
|
+
export const ExpireRequest = new ExpireRequest$Type();
|
2897
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2898
|
+
class ZAddRequest$Type extends MessageType<ZAddRequest> {
|
2899
|
+
constructor() {
|
2900
|
+
super("devvit.plugin.redis.ZAddRequest", [
|
2901
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2902
|
+
{ no: 2, name: "members", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ZMember },
|
2903
|
+
{ no: 3, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2904
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2905
|
+
]);
|
2906
|
+
}
|
2907
|
+
create(value?: PartialMessage<ZAddRequest>): ZAddRequest {
|
2908
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2909
|
+
message.key = "";
|
2910
|
+
message.members = [];
|
2911
|
+
if (value !== undefined)
|
2912
|
+
reflectionMergePartial<ZAddRequest>(this, message, value);
|
2913
|
+
return message;
|
2914
|
+
}
|
2915
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZAddRequest): ZAddRequest {
|
2916
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2917
|
+
while (reader.pos < end) {
|
2918
|
+
let [fieldNo, wireType] = reader.tag();
|
2919
|
+
switch (fieldNo) {
|
2920
|
+
case /* string key */ 1:
|
2921
|
+
message.key = reader.string();
|
2922
|
+
break;
|
2923
|
+
case /* repeated devvit.plugin.redis.ZMember members */ 2:
|
2924
|
+
message.members.push(ZMember.internalBinaryRead(reader, reader.uint32(), options));
|
2925
|
+
break;
|
2926
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 3:
|
2927
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
2928
|
+
break;
|
2929
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
2930
|
+
message.scope = reader.int32();
|
2931
|
+
break;
|
2932
|
+
default:
|
2933
|
+
let u = options.readUnknownField;
|
2934
|
+
if (u === "throw")
|
2935
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2936
|
+
let d = reader.skip(wireType);
|
2937
|
+
if (u !== false)
|
2938
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2939
|
+
}
|
2940
|
+
}
|
2941
|
+
return message;
|
2942
|
+
}
|
2943
|
+
internalBinaryWrite(message: ZAddRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2944
|
+
/* string key = 1; */
|
2945
|
+
if (message.key !== "")
|
2946
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
2947
|
+
/* repeated devvit.plugin.redis.ZMember members = 2; */
|
2948
|
+
for (let i = 0; i < message.members.length; i++)
|
2949
|
+
ZMember.internalBinaryWrite(message.members[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2950
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 3; */
|
2951
|
+
if (message.transactionId)
|
2952
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2953
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
2954
|
+
if (message.scope !== undefined)
|
2955
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
2956
|
+
let u = options.writeUnknownFields;
|
2957
|
+
if (u !== false)
|
2958
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2959
|
+
return writer;
|
2960
|
+
}
|
2961
|
+
}
|
2962
|
+
/**
|
2963
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZAddRequest
|
2964
|
+
*/
|
2965
|
+
export const ZAddRequest = new ZAddRequest$Type();
|
2966
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2967
|
+
class ZScanRequest$Type extends MessageType<ZScanRequest> {
|
2968
|
+
constructor() {
|
2969
|
+
super("devvit.plugin.redis.ZScanRequest", [
|
2970
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2971
|
+
{ no: 2, name: "cursor", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
2972
|
+
{ no: 3, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
2973
|
+
{ no: 4, name: "count", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
2974
|
+
{ no: 5, name: "transaction_id", kind: "message", T: () => TransactionId },
|
2975
|
+
{ no: 100, name: "scope", kind: "enum", opt: true, T: () => ["devvit.plugin.redis.RedisKeyScope", RedisKeyScope] }
|
2976
|
+
]);
|
2977
|
+
}
|
2978
|
+
create(value?: PartialMessage<ZScanRequest>): ZScanRequest {
|
2979
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2980
|
+
message.key = "";
|
2981
|
+
message.cursor = 0n;
|
2982
|
+
if (value !== undefined)
|
2983
|
+
reflectionMergePartial<ZScanRequest>(this, message, value);
|
2984
|
+
return message;
|
2985
|
+
}
|
2986
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZScanRequest): ZScanRequest {
|
2987
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2988
|
+
while (reader.pos < end) {
|
2989
|
+
let [fieldNo, wireType] = reader.tag();
|
2990
|
+
switch (fieldNo) {
|
2991
|
+
case /* string key */ 1:
|
2992
|
+
message.key = reader.string();
|
2993
|
+
break;
|
2994
|
+
case /* uint64 cursor */ 2:
|
2995
|
+
message.cursor = reader.uint64().toBigInt();
|
2996
|
+
break;
|
2997
|
+
case /* optional string pattern */ 3:
|
2998
|
+
message.pattern = reader.string();
|
2999
|
+
break;
|
3000
|
+
case /* optional int64 count */ 4:
|
3001
|
+
message.count = reader.int64().toBigInt();
|
3002
|
+
break;
|
3003
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 5:
|
3004
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
3005
|
+
break;
|
3006
|
+
case /* optional devvit.plugin.redis.RedisKeyScope scope */ 100:
|
3007
|
+
message.scope = reader.int32();
|
3008
|
+
break;
|
3009
|
+
default:
|
3010
|
+
let u = options.readUnknownField;
|
3011
|
+
if (u === "throw")
|
3012
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3013
|
+
let d = reader.skip(wireType);
|
3014
|
+
if (u !== false)
|
3015
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3016
|
+
}
|
3017
|
+
}
|
3018
|
+
return message;
|
3019
|
+
}
|
3020
|
+
internalBinaryWrite(message: ZScanRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3021
|
+
/* string key = 1; */
|
3022
|
+
if (message.key !== "")
|
3023
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
3024
|
+
/* uint64 cursor = 2; */
|
3025
|
+
if (message.cursor !== 0n)
|
3026
|
+
writer.tag(2, WireType.Varint).uint64(message.cursor);
|
3027
|
+
/* optional string pattern = 3; */
|
3028
|
+
if (message.pattern !== undefined)
|
3029
|
+
writer.tag(3, WireType.LengthDelimited).string(message.pattern);
|
3030
|
+
/* optional int64 count = 4; */
|
3031
|
+
if (message.count !== undefined)
|
3032
|
+
writer.tag(4, WireType.Varint).int64(message.count);
|
3033
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 5; */
|
3034
|
+
if (message.transactionId)
|
3035
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
3036
|
+
/* optional devvit.plugin.redis.RedisKeyScope scope = 100; */
|
3037
|
+
if (message.scope !== undefined)
|
3038
|
+
writer.tag(100, WireType.Varint).int32(message.scope);
|
3039
|
+
let u = options.writeUnknownFields;
|
3040
|
+
if (u !== false)
|
3041
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3042
|
+
return writer;
|
3043
|
+
}
|
3044
|
+
}
|
3045
|
+
/**
|
3046
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZScanRequest
|
3047
|
+
*/
|
3048
|
+
export const ZScanRequest = new ZScanRequest$Type();
|
3049
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3050
|
+
class ZScanResponse$Type extends MessageType<ZScanResponse> {
|
3051
|
+
constructor() {
|
3052
|
+
super("devvit.plugin.redis.ZScanResponse", [
|
3053
|
+
{ no: 1, name: "cursor", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
3054
|
+
{ no: 2, name: "members", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ZMember }
|
3055
|
+
]);
|
3056
|
+
}
|
3057
|
+
create(value?: PartialMessage<ZScanResponse>): ZScanResponse {
|
3058
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3059
|
+
message.cursor = 0n;
|
3060
|
+
message.members = [];
|
3061
|
+
if (value !== undefined)
|
3062
|
+
reflectionMergePartial<ZScanResponse>(this, message, value);
|
3063
|
+
return message;
|
3064
|
+
}
|
3065
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZScanResponse): ZScanResponse {
|
3066
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3067
|
+
while (reader.pos < end) {
|
3068
|
+
let [fieldNo, wireType] = reader.tag();
|
3069
|
+
switch (fieldNo) {
|
3070
|
+
case /* uint64 cursor */ 1:
|
3071
|
+
message.cursor = reader.uint64().toBigInt();
|
3072
|
+
break;
|
3073
|
+
case /* repeated devvit.plugin.redis.ZMember members */ 2:
|
3074
|
+
message.members.push(ZMember.internalBinaryRead(reader, reader.uint32(), options));
|
3075
|
+
break;
|
3076
|
+
default:
|
3077
|
+
let u = options.readUnknownField;
|
3078
|
+
if (u === "throw")
|
3079
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3080
|
+
let d = reader.skip(wireType);
|
3081
|
+
if (u !== false)
|
3082
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3083
|
+
}
|
3084
|
+
}
|
3085
|
+
return message;
|
3086
|
+
}
|
3087
|
+
internalBinaryWrite(message: ZScanResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3088
|
+
/* uint64 cursor = 1; */
|
3089
|
+
if (message.cursor !== 0n)
|
3090
|
+
writer.tag(1, WireType.Varint).uint64(message.cursor);
|
3091
|
+
/* repeated devvit.plugin.redis.ZMember members = 2; */
|
3092
|
+
for (let i = 0; i < message.members.length; i++)
|
3093
|
+
ZMember.internalBinaryWrite(message.members[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
3094
|
+
let u = options.writeUnknownFields;
|
3095
|
+
if (u !== false)
|
3096
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3097
|
+
return writer;
|
3098
|
+
}
|
3099
|
+
}
|
3100
|
+
/**
|
3101
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZScanResponse
|
3102
|
+
*/
|
3103
|
+
export const ZScanResponse = new ZScanResponse$Type();
|
3104
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3105
|
+
class ZMembers$Type extends MessageType<ZMembers> {
|
3106
|
+
constructor() {
|
3107
|
+
super("devvit.plugin.redis.ZMembers", [
|
3108
|
+
{ no: 1, name: "members", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ZMember }
|
3109
|
+
]);
|
3110
|
+
}
|
3111
|
+
create(value?: PartialMessage<ZMembers>): ZMembers {
|
3112
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3113
|
+
message.members = [];
|
3114
|
+
if (value !== undefined)
|
3115
|
+
reflectionMergePartial<ZMembers>(this, message, value);
|
3116
|
+
return message;
|
3117
|
+
}
|
3118
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZMembers): ZMembers {
|
3119
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3120
|
+
while (reader.pos < end) {
|
3121
|
+
let [fieldNo, wireType] = reader.tag();
|
3122
|
+
switch (fieldNo) {
|
3123
|
+
case /* repeated devvit.plugin.redis.ZMember members */ 1:
|
3124
|
+
message.members.push(ZMember.internalBinaryRead(reader, reader.uint32(), options));
|
3125
|
+
break;
|
3126
|
+
default:
|
3127
|
+
let u = options.readUnknownField;
|
3128
|
+
if (u === "throw")
|
3129
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3130
|
+
let d = reader.skip(wireType);
|
3131
|
+
if (u !== false)
|
3132
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3133
|
+
}
|
3134
|
+
}
|
3135
|
+
return message;
|
3136
|
+
}
|
3137
|
+
internalBinaryWrite(message: ZMembers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3138
|
+
/* repeated devvit.plugin.redis.ZMember members = 1; */
|
3139
|
+
for (let i = 0; i < message.members.length; i++)
|
3140
|
+
ZMember.internalBinaryWrite(message.members[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3141
|
+
let u = options.writeUnknownFields;
|
3142
|
+
if (u !== false)
|
3143
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3144
|
+
return writer;
|
3145
|
+
}
|
3146
|
+
}
|
3147
|
+
/**
|
3148
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZMembers
|
3149
|
+
*/
|
3150
|
+
export const ZMembers = new ZMembers$Type();
|
3151
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3152
|
+
class ZMember$Type extends MessageType<ZMember> {
|
3153
|
+
constructor() {
|
3154
|
+
super("devvit.plugin.redis.ZMember", [
|
3155
|
+
{ no: 1, name: "score", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
3156
|
+
{ no: 2, name: "member", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
3157
|
+
]);
|
3158
|
+
}
|
3159
|
+
create(value?: PartialMessage<ZMember>): ZMember {
|
3160
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3161
|
+
message.score = 0;
|
3162
|
+
message.member = "";
|
3163
|
+
if (value !== undefined)
|
3164
|
+
reflectionMergePartial<ZMember>(this, message, value);
|
3165
|
+
return message;
|
3166
|
+
}
|
3167
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ZMember): ZMember {
|
3168
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3169
|
+
while (reader.pos < end) {
|
3170
|
+
let [fieldNo, wireType] = reader.tag();
|
3171
|
+
switch (fieldNo) {
|
3172
|
+
case /* double score */ 1:
|
3173
|
+
message.score = reader.double();
|
3174
|
+
break;
|
3175
|
+
case /* string member */ 2:
|
3176
|
+
message.member = reader.string();
|
3177
|
+
break;
|
3178
|
+
default:
|
3179
|
+
let u = options.readUnknownField;
|
3180
|
+
if (u === "throw")
|
3181
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3182
|
+
let d = reader.skip(wireType);
|
3183
|
+
if (u !== false)
|
3184
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3185
|
+
}
|
3186
|
+
}
|
3187
|
+
return message;
|
3188
|
+
}
|
3189
|
+
internalBinaryWrite(message: ZMember, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3190
|
+
/* double score = 1; */
|
3191
|
+
if (message.score !== 0)
|
3192
|
+
writer.tag(1, WireType.Bit64).double(message.score);
|
3193
|
+
/* string member = 2; */
|
3194
|
+
if (message.member !== "")
|
3195
|
+
writer.tag(2, WireType.LengthDelimited).string(message.member);
|
3196
|
+
let u = options.writeUnknownFields;
|
3197
|
+
if (u !== false)
|
3198
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3199
|
+
return writer;
|
3200
|
+
}
|
3201
|
+
}
|
3202
|
+
/**
|
3203
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.ZMember
|
3204
|
+
*/
|
3205
|
+
export const ZMember = new ZMember$Type();
|
3206
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3207
|
+
class TransactionId$Type extends MessageType<TransactionId> {
|
3208
|
+
constructor() {
|
3209
|
+
super("devvit.plugin.redis.TransactionId", [
|
3210
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
3211
|
+
]);
|
3212
|
+
}
|
3213
|
+
create(value?: PartialMessage<TransactionId>): TransactionId {
|
3214
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3215
|
+
message.id = "";
|
3216
|
+
if (value !== undefined)
|
3217
|
+
reflectionMergePartial<TransactionId>(this, message, value);
|
3218
|
+
return message;
|
3219
|
+
}
|
3220
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TransactionId): TransactionId {
|
3221
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3222
|
+
while (reader.pos < end) {
|
3223
|
+
let [fieldNo, wireType] = reader.tag();
|
3224
|
+
switch (fieldNo) {
|
3225
|
+
case /* string id */ 1:
|
3226
|
+
message.id = reader.string();
|
3227
|
+
break;
|
3228
|
+
default:
|
3229
|
+
let u = options.readUnknownField;
|
3230
|
+
if (u === "throw")
|
3231
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3232
|
+
let d = reader.skip(wireType);
|
3233
|
+
if (u !== false)
|
3234
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3235
|
+
}
|
3236
|
+
}
|
3237
|
+
return message;
|
3238
|
+
}
|
3239
|
+
internalBinaryWrite(message: TransactionId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3240
|
+
/* string id = 1; */
|
3241
|
+
if (message.id !== "")
|
3242
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
3243
|
+
let u = options.writeUnknownFields;
|
3244
|
+
if (u !== false)
|
3245
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3246
|
+
return writer;
|
3247
|
+
}
|
3248
|
+
}
|
3249
|
+
/**
|
3250
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.TransactionId
|
3251
|
+
*/
|
3252
|
+
export const TransactionId = new TransactionId$Type();
|
3253
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3254
|
+
class WatchRequest$Type extends MessageType<WatchRequest> {
|
3255
|
+
constructor() {
|
3256
|
+
super("devvit.plugin.redis.WatchRequest", [
|
3257
|
+
{ no: 1, name: "transaction_id", kind: "message", T: () => TransactionId },
|
3258
|
+
{ no: 2, name: "keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
3259
|
+
]);
|
3260
|
+
}
|
3261
|
+
create(value?: PartialMessage<WatchRequest>): WatchRequest {
|
3262
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3263
|
+
message.keys = [];
|
3264
|
+
if (value !== undefined)
|
3265
|
+
reflectionMergePartial<WatchRequest>(this, message, value);
|
3266
|
+
return message;
|
3267
|
+
}
|
3268
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WatchRequest): WatchRequest {
|
3269
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3270
|
+
while (reader.pos < end) {
|
3271
|
+
let [fieldNo, wireType] = reader.tag();
|
3272
|
+
switch (fieldNo) {
|
3273
|
+
case /* devvit.plugin.redis.TransactionId transaction_id */ 1:
|
3274
|
+
message.transactionId = TransactionId.internalBinaryRead(reader, reader.uint32(), options, message.transactionId);
|
3275
|
+
break;
|
3276
|
+
case /* repeated string keys */ 2:
|
3277
|
+
message.keys.push(reader.string());
|
3278
|
+
break;
|
3279
|
+
default:
|
3280
|
+
let u = options.readUnknownField;
|
3281
|
+
if (u === "throw")
|
3282
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3283
|
+
let d = reader.skip(wireType);
|
3284
|
+
if (u !== false)
|
3285
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3286
|
+
}
|
3287
|
+
}
|
3288
|
+
return message;
|
3289
|
+
}
|
3290
|
+
internalBinaryWrite(message: WatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3291
|
+
/* devvit.plugin.redis.TransactionId transaction_id = 1; */
|
3292
|
+
if (message.transactionId)
|
3293
|
+
TransactionId.internalBinaryWrite(message.transactionId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3294
|
+
/* repeated string keys = 2; */
|
3295
|
+
for (let i = 0; i < message.keys.length; i++)
|
3296
|
+
writer.tag(2, WireType.LengthDelimited).string(message.keys[i]);
|
3297
|
+
let u = options.writeUnknownFields;
|
3298
|
+
if (u !== false)
|
3299
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3300
|
+
return writer;
|
3301
|
+
}
|
3302
|
+
}
|
3303
|
+
/**
|
3304
|
+
* @generated MessageType for protobuf message devvit.plugin.redis.WatchRequest
|
3305
|
+
*/
|
3306
|
+
export const WatchRequest = new WatchRequest$Type();
|
3307
|
+
/**
|
3308
|
+
* @generated ServiceType for protobuf service devvit.plugin.redis.RedisAPI
|
3309
|
+
*/
|
3310
|
+
export const RedisAPI = new ServiceType("devvit.plugin.redis.RedisAPI", [
|
3311
|
+
{ name: "Get", options: {}, I: KeyRequest, O: StringValue },
|
3312
|
+
{ name: "Set", options: {}, I: SetRequest, O: StringValue },
|
3313
|
+
{ name: "Del", options: {}, I: KeysRequest, O: Int64Value },
|
3314
|
+
{ name: "Type", options: {}, I: KeyRequest, O: StringValue },
|
3315
|
+
{ name: "IncrBy", options: {}, I: IncrByRequest, O: Int64Value },
|
3316
|
+
{ name: "HSet", options: {}, I: HSetRequest, O: Int64Value },
|
3317
|
+
{ name: "HGet", options: {}, I: HGetRequest, O: StringValue },
|
3318
|
+
{ name: "HGetAll", options: {}, I: KeyRequest, O: RedisFieldValues },
|
3319
|
+
{ name: "HDel", options: {}, I: HDelRequest, O: Int64Value },
|
3320
|
+
{ name: "HScan", options: {}, I: HScanRequest, O: HScanResponse },
|
3321
|
+
{ name: "HKeys", options: {}, I: KeyRequest, O: KeysResponse },
|
3322
|
+
{ name: "HIncrBy", options: {}, I: HIncrByRequest, O: Int64Value },
|
3323
|
+
{ name: "HLen", options: {}, I: KeyRequest, O: Int64Value },
|
3324
|
+
{ name: "Multi", options: {}, I: TransactionId, O: Empty },
|
3325
|
+
{ name: "Exec", options: {}, I: TransactionId, O: TransactionResponses },
|
3326
|
+
{ name: "Discard", options: {}, I: TransactionId, O: Empty },
|
3327
|
+
{ name: "Watch", options: {}, I: WatchRequest, O: TransactionId },
|
3328
|
+
{ name: "Unwatch", options: {}, I: TransactionId, O: Empty },
|
3329
|
+
{ name: "GetRange", options: {}, I: KeyRangeRequest, O: StringValue },
|
3330
|
+
{ name: "SetRange", options: {}, I: SetRangeRequest, O: Int64Value },
|
3331
|
+
{ name: "Strlen", options: {}, I: KeyRequest, O: Int64Value },
|
3332
|
+
{ name: "MGet", options: {}, I: KeysRequest, O: RedisValues },
|
3333
|
+
{ name: "MSet", options: {}, I: KeyValuesRequest, O: Empty },
|
3334
|
+
{ name: "Expire", options: {}, I: ExpireRequest, O: Empty },
|
3335
|
+
{ name: "ExpireTime", options: {}, I: KeyRequest, O: Int64Value },
|
3336
|
+
{ name: "ZAdd", options: {}, I: ZAddRequest, O: Int64Value },
|
3337
|
+
{ name: "ZCard", options: {}, I: KeyRequest, O: Int64Value },
|
3338
|
+
{ name: "ZRange", options: {}, I: ZRangeRequest, O: ZMembers },
|
3339
|
+
{ name: "ZRem", options: {}, I: ZRemRequest, O: Int64Value },
|
3340
|
+
{ name: "ZRemRangeByLex", options: {}, I: ZRemRangeByLexRequest, O: Int64Value },
|
3341
|
+
{ name: "ZRemRangeByRank", options: {}, I: ZRemRangeByRankRequest, O: Int64Value },
|
3342
|
+
{ name: "ZRemRangeByScore", options: {}, I: ZRemRangeByScoreRequest, O: Int64Value },
|
3343
|
+
{ name: "ZScore", options: {}, I: ZScoreRequest, O: DoubleValue },
|
3344
|
+
{ name: "ZRank", options: {}, I: ZRankRequest, O: Int64Value },
|
3345
|
+
{ name: "ZIncrBy", options: {}, I: ZIncrByRequest, O: DoubleValue },
|
3346
|
+
{ name: "ZScan", options: {}, I: ZScanRequest, O: ZScanResponse }
|
3347
|
+
]);
|