@devvit/protos 0.11.0-next-2024-07-24-1be38cc96.0 → 0.11.0-next-2024-07-25-e11c6b2a8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1161) hide show
  1. package/index.d.ts +1 -1
  2. package/index.d.ts.map +1 -1
  3. package/index.js +1 -1
  4. package/meta.min.json +117 -156
  5. package/package.json +7 -6
  6. package/protos.min.js +2 -2
  7. package/protos.min.js.map +4 -4
  8. package/schema/.snootobuf/.gitIgnoreMe +1 -0
  9. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/audit.proto +1 -1
  10. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/auth.proto +1 -1
  11. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/organization.proto +1 -1
  12. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/service.proto +1 -1
  13. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/subscription.proto +1 -1
  14. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/ui.proto +1 -1
  15. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/admin.proto +1 -1
  16. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/delivery.proto +13 -7
  17. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/filter.proto +1 -1
  18. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/firehose.proto +1 -1
  19. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/intake.proto +1 -1
  20. package/schema/{devvit → .snootobuf/deps/devvit}/events/v1alpha/events.proto +2 -2
  21. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +17 -0
  22. package/schema/{devvit → .snootobuf/deps/devvit}/options/options.proto +1 -1
  23. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/commentv2.proto +1 -1
  24. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/flair.proto +1 -1
  25. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modaction.proto +1 -1
  26. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modmail.proto +1 -1
  27. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/postv2.proto +1 -1
  28. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/subredditv2.proto +1 -1
  29. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/userv2.proto +1 -1
  30. package/schema/{devvit/data → .snootobuf/deps/devvit}/triggers/v1alpha/triggers.proto +2 -1
  31. package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
  32. package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
  33. package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
  34. package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
  35. package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
  36. package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
  37. package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
  38. package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
  39. package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
  40. package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
  41. package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
  42. package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
  43. package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
  44. package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
  45. package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
  46. package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
  47. package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
  48. package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
  49. package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
  50. package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
  51. package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
  52. package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
  53. package/schema/.snootobuf/deps/enum/vote.proto +12 -0
  54. package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
  55. package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
  56. package/schema/.snootobuf/deps/evaluator/evaluator.proto +112 -0
  57. package/schema/.snootobuf/deps/google/api/auth.proto +181 -0
  58. package/schema/.snootobuf/deps/google/api/backend.proto +51 -0
  59. package/schema/.snootobuf/deps/google/api/billing.proto +67 -0
  60. package/schema/{google → .snootobuf/deps/google}/api/client.proto +37 -37
  61. package/schema/.snootobuf/deps/google/api/config_change.proto +85 -0
  62. package/schema/.snootobuf/deps/google/api/consumer.proto +83 -0
  63. package/schema/.snootobuf/deps/google/api/context.proto +63 -0
  64. package/schema/.snootobuf/deps/google/api/control.proto +33 -0
  65. package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
  66. package/schema/.snootobuf/deps/google/api/documentation.proto +157 -0
  67. package/schema/.snootobuf/deps/google/api/endpoint.proto +71 -0
  68. package/schema/{google → .snootobuf/deps/google}/api/field_behavior.proto +23 -17
  69. package/schema/{google → .snootobuf/deps/google}/api/http.proto +1 -0
  70. package/schema/.snootobuf/deps/google/api/httpbody.proto +76 -0
  71. package/schema/.snootobuf/deps/google/api/label.proto +49 -0
  72. package/schema/.snootobuf/deps/google/api/launch_stage.proto +67 -0
  73. package/schema/.snootobuf/deps/google/api/log.proto +55 -0
  74. package/schema/.snootobuf/deps/google/api/logging.proto +83 -0
  75. package/schema/.snootobuf/deps/google/api/metric.proto +192 -0
  76. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +116 -0
  77. package/schema/.snootobuf/deps/google/api/monitoring.proto +89 -0
  78. package/schema/.snootobuf/deps/google/api/quota.proto +259 -0
  79. package/schema/.snootobuf/deps/google/api/resource.proto +299 -0
  80. package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
  81. package/schema/.snootobuf/deps/google/api/service.proto +175 -0
  82. package/schema/.snootobuf/deps/google/api/source_info.proto +32 -0
  83. package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
  84. package/schema/.snootobuf/deps/google/api/usage.proto +92 -0
  85. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
  86. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
  87. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
  88. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
  89. package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
  90. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
  91. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
  92. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
  93. package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
  94. package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
  95. package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
  96. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
  97. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
  98. package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
  99. package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
  100. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
  101. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
  102. package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
  103. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
  104. package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
  105. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
  106. package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
  107. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
  108. package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
  109. package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
  110. package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
  111. package/schema/.snootobuf/deps/google/type/color.proto +170 -0
  112. package/schema/.snootobuf/deps/google/type/date.proto +50 -0
  113. package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
  114. package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
  115. package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
  116. package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
  117. package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
  118. package/schema/.snootobuf/deps/google/type/money.proto +43 -0
  119. package/schema/.snootobuf/deps/google/type/month.proto +66 -0
  120. package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
  121. package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
  122. package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
  123. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  124. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
  125. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
  126. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
  127. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
  128. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
  129. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
  130. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
  131. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
  132. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
  133. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
  134. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
  135. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
  136. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
  137. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
  138. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
  139. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
  140. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
  141. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
  142. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
  143. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
  144. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
  145. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
  146. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
  147. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
  148. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
  149. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
  150. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
  151. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
  152. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
  153. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
  154. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
  155. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
  156. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
  157. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +69 -0
  158. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +289 -0
  159. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
  160. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +54 -0
  161. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
  162. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
  163. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
  164. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
  165. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
  166. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +32 -0
  167. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
  168. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
  169. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
  170. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +144 -0
  171. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
  172. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
  173. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
  174. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
  175. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  176. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
  177. package/schema/.snootobuf/deps/validate/validate.proto +862 -0
  178. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.client.ts +597 -0
  179. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.ts +191 -0
  180. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.client.ts +49 -0
  181. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.ts +340 -0
  182. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.client.ts +42 -0
  183. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.ts +99 -0
  184. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.client.ts +70 -0
  185. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.ts +334 -0
  186. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/permissions/permissions.ts +324 -0
  187. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.client.ts +37 -0
  188. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.ts +174 -0
  189. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.client.ts +58 -0
  190. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.ts +679 -0
  191. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_type.ts +22 -0
  192. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.client.ts +37 -0
  193. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.ts +131 -0
  194. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/action.ts +84 -0
  195. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.client.ts +43 -0
  196. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.ts +12 -0
  197. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.client.ts +70 -0
  198. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.ts +15 -0
  199. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.client.ts +70 -0
  200. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.ts +15 -0
  201. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.client.ts +68 -0
  202. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.ts +15 -0
  203. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/shared.ts +311 -0
  204. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.client.ts +82 -0
  205. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.ts +77 -0
  206. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.client.ts +120 -0
  207. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.ts +25 -0
  208. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.client.ts +63 -0
  209. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.ts +284 -0
  210. package/schema/.snootobuf/output/devenv_ts_files/devvit/cli/playtest.ts +323 -0
  211. package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.client.ts +37 -0
  212. package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.ts +143 -0
  213. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/actor/actor_type.ts +94 -0
  214. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.client.ts +76 -0
  215. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.ts +659 -0
  216. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/app.ts +2060 -0
  217. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/categories/categories.ts +146 -0
  218. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/info/app_info.ts +389 -0
  219. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/app_publish_request.ts +970 -0
  220. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/note/app_publish_request_note.ts +257 -0
  221. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/review/app_publish_request_review.ts +336 -0
  222. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_settings/app_settings.ts +571 -0
  223. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/app_version.ts +1161 -0
  224. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/info/app_version_info.ts +397 -0
  225. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/audit/audit.ts +646 -0
  226. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/auth/auth.ts +458 -0
  227. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/organization/organization.ts +347 -0
  228. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/subscription/subscription.ts +982 -0
  229. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.client.ts +1071 -0
  230. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.ts +222 -0
  231. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/feedback/feedback.ts +70 -0
  232. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation/installation.ts +1882 -0
  233. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation_settings/installation_settings.ts +575 -0
  234. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.client.ts +41 -0
  235. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.ts +394 -0
  236. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.client.ts +118 -0
  237. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.ts +27 -0
  238. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.ts +180 -0
  239. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.client.ts +41 -0
  240. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.ts +162 -0
  241. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/nutrition/nutrition.ts +245 -0
  242. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/reddit/redditor.ts +98 -0
  243. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.client.ts +84 -0
  244. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.ts +455 -0
  245. package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.client.ts +50 -0
  246. package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.ts +149 -0
  247. package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/wqcleanup.ts +68 -0
  248. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.client.ts +37 -0
  249. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.ts +76 -0
  250. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.client.ts +37 -0
  251. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.ts +76 -0
  252. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.client.ts +114 -0
  253. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.ts +475 -0
  254. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.client.ts +96 -0
  255. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.ts +256 -0
  256. package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/snapshot.ts +80 -0
  257. package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/subreddit_metadata.ts +312 -0
  258. package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/common.ts +22 -0
  259. package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/order.ts +208 -0
  260. package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/product.ts +241 -0
  261. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.client.ts +58 -0
  262. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.ts +380 -0
  263. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.client.ts +57 -0
  264. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.ts +102 -0
  265. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.client.ts +57 -0
  266. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.ts +13 -0
  267. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack_common.ts +705 -0
  268. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/filesystem.ts +168 -0
  269. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.client.ts +37 -0
  270. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.ts +12 -0
  271. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.client.ts +37 -0
  272. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.ts +294 -0
  273. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.client.ts +51 -0
  274. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.ts +304 -0
  275. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.client.ts +72 -0
  276. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.ts +209 -0
  277. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.client.ts +51 -0
  278. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.ts +89 -0
  279. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.client.ts +80 -0
  280. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.ts +198 -0
  281. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.client.ts +83 -0
  282. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.ts +608 -0
  283. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.client.ts +37 -0
  284. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.ts +155 -0
  285. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.client.ts +43 -0
  286. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.ts +187 -0
  287. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.client.ts +81 -0
  288. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.ts +476 -0
  289. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/common/common_msg.ts +3641 -0
  290. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_msg.ts +2310 -0
  291. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.client.ts +270 -0
  292. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.ts +43 -0
  293. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_msg.ts +224 -0
  294. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.client.ts +63 -0
  295. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.ts +14 -0
  296. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.ts +1869 -0
  297. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.client.ts +571 -0
  298. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.ts +52 -0
  299. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_msg.ts +1156 -0
  300. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.client.ts +194 -0
  301. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.ts +27 -0
  302. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_msg.ts +1231 -0
  303. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.client.ts +373 -0
  304. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.ts +46 -0
  305. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_msg.ts +1025 -0
  306. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.client.ts +112 -0
  307. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.ts +23 -0
  308. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_msg.ts +4135 -0
  309. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.client.ts +351 -0
  310. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.ts +52 -0
  311. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_msg.ts +1040 -0
  312. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.client.ts +207 -0
  313. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.ts +34 -0
  314. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_msg.ts +380 -0
  315. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.client.ts +186 -0
  316. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.ts +25 -0
  317. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_msg.ts +11280 -0
  318. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.client.ts +480 -0
  319. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.ts +71 -0
  320. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_msg.ts +1820 -0
  321. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.client.ts +247 -0
  322. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.ts +42 -0
  323. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_msg.ts +4766 -0
  324. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.client.ts +401 -0
  325. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.ts +56 -0
  326. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_msg.ts +1786 -0
  327. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.client.ts +236 -0
  328. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.ts +35 -0
  329. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.client.ts +50 -0
  330. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.ts +15 -0
  331. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.client.ts +518 -0
  332. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.ts +3347 -0
  333. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.client.ts +89 -0
  334. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.ts +575 -0
  335. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.client.ts +41 -0
  336. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.ts +235 -0
  337. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.client.ts +50 -0
  338. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.ts +169 -0
  339. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.client.ts +37 -0
  340. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.ts +76 -0
  341. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.client.ts +41 -0
  342. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.ts +312 -0
  343. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/comment.ts +963 -0
  344. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/common.ts +1099 -0
  345. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.client.ts +50 -0
  346. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.ts +527 -0
  347. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.client.ts +79 -0
  348. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.ts +340 -0
  349. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/post.ts +2063 -0
  350. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/subreddit.ts +1374 -0
  351. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/thing_type.ts +36 -0
  352. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/user.ts +1418 -0
  353. package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.client.ts +78 -0
  354. package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.ts +538 -0
  355. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.client.ts +56 -0
  356. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.ts +13 -0
  357. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.client.ts +36 -0
  358. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.ts +11 -0
  359. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.client.ts +53 -0
  360. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.ts +78 -0
  361. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.client.ts +87 -0
  362. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.ts +92 -0
  363. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.client.ts +37 -0
  364. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.ts +87 -0
  365. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/bundle.ts +859 -0
  366. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/envelope.ts +230 -0
  367. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/runtime_common.ts +251 -0
  368. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/serializable.ts +232 -0
  369. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.client.ts +57 -0
  370. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.ts +82 -0
  371. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.client.ts +41 -0
  372. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.ts +12 -0
  373. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/attributes.ts +642 -0
  374. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/block.ts +1656 -0
  375. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/enums.ts +602 -0
  376. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/rendering.ts +157 -0
  377. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/ui.ts +354 -0
  378. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/common/v1alpha/common.ts +116 -0
  379. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/create_order.ts +217 -0
  380. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/effect.ts +266 -0
  381. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/interval.ts +169 -0
  382. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/navigate_to_url.ts +81 -0
  383. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/realtime_subscriptions.ts +156 -0
  384. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/reload_part.ts +349 -0
  385. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/rerender_ui.ts +71 -0
  386. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_form.ts +162 -0
  387. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_toast.ts +104 -0
  388. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/event.ts +697 -0
  389. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.client.ts +39 -0
  390. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.ts +160 -0
  391. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/field.ts +974 -0
  392. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/form.ts +134 -0
  393. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/type.ts +56 -0
  394. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/value.ts +359 -0
  395. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/toast/toast.ts +314 -0
  396. package/schema/.snootobuf/output/devenv_ts_files/devvit/uuid.ts +70 -0
  397. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/any.ts +322 -0
  398. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/descriptor.ts +3475 -0
  399. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/duration.ts +231 -0
  400. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/empty.ts +81 -0
  401. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/struct.ts +482 -0
  402. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/timestamp.ts +290 -0
  403. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/wrappers.ts +752 -0
  404. package/schema/devvit/dev_portal/admin/waitlist_admin.proto +2 -0
  405. package/schema/devvit/dev_portal/app/app.proto +2 -0
  406. package/schema/devvit/dev_portal/app_publish_request/app_publish_request.proto +2 -0
  407. package/schema/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +2 -0
  408. package/schema/devvit/dev_portal/app_publish_request/review/app_publish_request_review.proto +2 -0
  409. package/schema/devvit/dev_portal/app_settings/app_settings.proto +2 -0
  410. package/schema/devvit/dev_portal/dev_portal.proto +2 -0
  411. package/schema/devvit/dev_portal/feedback/feedback.proto +2 -0
  412. package/schema/devvit/dev_portal/installation_settings/installation_settings.proto +2 -0
  413. package/schema/devvit/dev_portal/nutrition/nutrition.proto +2 -0
  414. package/schema/devvit/dev_portal/waitlist/waitlist.proto +2 -0
  415. package/schema/devvit/gateway/v1alpha/triggers.proto +1 -1
  416. package/schema/snootobuf.devenv.lock +0 -0
  417. package/schema/snootobuf.devenv.yaml +15 -0
  418. package/schema/snootobuf.lock +0 -0
  419. package/schema/snootobuf.redditapi.lock +0 -0
  420. package/schema/snootobuf.redditapi.yaml +14 -0
  421. package/schema/snootobuf.ts.lock +0 -0
  422. package/schema/snootobuf.ts.yaml +35 -0
  423. package/schema/snootobuf.yaml +49 -0
  424. package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +6 -6
  425. package/types/devvit/actor/automation/v1alpha/event_handlers.js +5 -5
  426. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts +342 -0
  427. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts.map +1 -0
  428. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.js +466 -0
  429. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts +175 -0
  430. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts.map +1 -0
  431. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.js +1833 -0
  432. package/types/devvit/actor/bot/bot.d.ts +2 -2
  433. package/types/devvit/actor/bot/bot.js +3 -3
  434. package/types/devvit/actor/bot/bot.twirp-client.d.ts +23 -0
  435. package/types/devvit/actor/bot/bot.twirp-client.d.ts.map +1 -0
  436. package/types/devvit/actor/bot/bot.twirp-client.js +36 -0
  437. package/types/devvit/actor/bot/bot.twirp.d.ts +15 -0
  438. package/types/devvit/actor/bot/bot.twirp.d.ts.map +1 -0
  439. package/types/devvit/actor/bot/bot.twirp.js +154 -0
  440. package/types/devvit/actor/hello/hello.d.ts +1 -1
  441. package/types/devvit/actor/hello/hello.js +2 -2
  442. package/types/devvit/actor/hello/hello.twirp-client.d.ts +19 -0
  443. package/types/devvit/actor/hello/hello.twirp-client.d.ts.map +1 -0
  444. package/types/devvit/actor/hello/hello.twirp-client.js +23 -0
  445. package/types/devvit/actor/hello/hello.twirp.d.ts +12 -0
  446. package/types/devvit/actor/hello/hello.twirp.d.ts.map +1 -0
  447. package/types/devvit/actor/hello/hello.twirp.js +88 -0
  448. package/types/devvit/actor/payments/v1alpha/payments.d.ts +2 -2
  449. package/types/devvit/actor/payments/v1alpha/payments.js +3 -3
  450. package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts +22 -0
  451. package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
  452. package/types/devvit/actor/payments/v1alpha/payments.twirp-client.js +35 -0
  453. package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts +14 -0
  454. package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts.map +1 -0
  455. package/types/devvit/actor/payments/v1alpha/payments.twirp.js +156 -0
  456. package/types/devvit/actor/permissions/permissions.d.ts +1 -1
  457. package/types/devvit/actor/permissions/permissions.js +2 -2
  458. package/types/devvit/actor/producer/producer.d.ts +1 -1
  459. package/types/devvit/actor/producer/producer.js +2 -2
  460. package/types/devvit/actor/producer/producer.twirp-client.d.ts +19 -0
  461. package/types/devvit/actor/producer/producer.twirp-client.d.ts.map +1 -0
  462. package/types/devvit/actor/producer/producer.twirp-client.js +23 -0
  463. package/types/devvit/actor/producer/producer.twirp.d.ts +12 -0
  464. package/types/devvit/actor/producer/producer.twirp.d.ts.map +1 -0
  465. package/types/devvit/actor/producer/producer.twirp.js +88 -0
  466. package/types/devvit/actor/reddit/context_action.d.ts +6 -6
  467. package/types/devvit/actor/reddit/context_action.js +7 -7
  468. package/types/devvit/actor/reddit/context_action.twirp-client.d.ts +23 -0
  469. package/types/devvit/actor/reddit/context_action.twirp-client.d.ts.map +1 -0
  470. package/types/devvit/actor/reddit/context_action.twirp-client.js +36 -0
  471. package/types/devvit/actor/reddit/context_action.twirp.d.ts +15 -0
  472. package/types/devvit/actor/reddit/context_action.twirp.d.ts.map +1 -0
  473. package/types/devvit/actor/reddit/context_action.twirp.js +157 -0
  474. package/types/devvit/actor/reddit/post_filter.d.ts +2 -2
  475. package/types/devvit/actor/reddit/post_filter.js +3 -3
  476. package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts +19 -0
  477. package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts.map +1 -0
  478. package/types/devvit/actor/reddit/post_filter.twirp-client.js +23 -0
  479. package/types/devvit/actor/reddit/post_filter.twirp.d.ts +12 -0
  480. package/types/devvit/actor/reddit/post_filter.twirp.d.ts.map +1 -0
  481. package/types/devvit/actor/reddit/post_filter.twirp.js +88 -0
  482. package/types/devvit/actor/scheduler/action.d.ts +1 -1
  483. package/types/devvit/actor/scheduler/action.js +3 -3
  484. package/types/devvit/actor/scheduler/handler.d.ts +3 -3
  485. package/types/devvit/actor/scheduler/handler.js +3 -3
  486. package/types/devvit/actor/scheduler/handler.twirp-client.d.ts +20 -0
  487. package/types/devvit/actor/scheduler/handler.twirp-client.d.ts.map +1 -0
  488. package/types/devvit/actor/scheduler/handler.twirp-client.js +24 -0
  489. package/types/devvit/actor/scheduler/handler.twirp.d.ts +13 -0
  490. package/types/devvit/actor/scheduler/handler.twirp.d.ts.map +1 -0
  491. package/types/devvit/actor/scheduler/handler.twirp.js +91 -0
  492. package/types/devvit/actor/settings/v1alpha/app_settings.d.ts +2 -2
  493. package/types/devvit/actor/settings/v1alpha/app_settings.js +2 -2
  494. package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts +22 -0
  495. package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts.map +1 -0
  496. package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.js +35 -0
  497. package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts +14 -0
  498. package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts.map +1 -0
  499. package/types/devvit/actor/settings/v1alpha/app_settings.twirp.js +156 -0
  500. package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts +2 -2
  501. package/types/devvit/actor/settings/v1alpha/installation_settings.js +2 -2
  502. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts +22 -0
  503. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts.map +1 -0
  504. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.js +35 -0
  505. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts +14 -0
  506. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts.map +1 -0
  507. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.js +156 -0
  508. package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts +2 -2
  509. package/types/devvit/actor/settings/v1alpha/instance_settings.js +2 -2
  510. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts +22 -0
  511. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts.map +1 -0
  512. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.js +35 -0
  513. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts +14 -0
  514. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts.map +1 -0
  515. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.js +156 -0
  516. package/types/devvit/actor/settings/v1alpha/shared.d.ts +3 -3
  517. package/types/devvit/actor/settings/v1alpha/shared.js +4 -4
  518. package/types/devvit/actor/test/streams.d.ts +1 -1
  519. package/types/devvit/actor/test/streams.js +2 -2
  520. package/types/devvit/actor/test/streams.twirp-client.d.ts +25 -0
  521. package/types/devvit/actor/test/streams.twirp-client.d.ts.map +1 -0
  522. package/types/devvit/actor/test/streams.twirp-client.js +47 -0
  523. package/types/devvit/actor/test/streams.twirp.d.ts +16 -0
  524. package/types/devvit/actor/test/streams.twirp.d.ts.map +1 -0
  525. package/types/devvit/actor/test/streams.twirp.js +222 -0
  526. package/types/devvit/actor/test/wrappertypes.d.ts +2 -2
  527. package/types/devvit/actor/test/wrappertypes.js +2 -2
  528. package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts +40 -0
  529. package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts.map +1 -0
  530. package/types/devvit/actor/test/wrappertypes.twirp-client.js +107 -0
  531. package/types/devvit/actor/test/wrappertypes.twirp.d.ts +26 -0
  532. package/types/devvit/actor/test/wrappertypes.twirp.d.ts.map +1 -0
  533. package/types/devvit/actor/test/wrappertypes.twirp.js +552 -0
  534. package/types/devvit/actor/user_configurable/user_configurable.d.ts +2 -2
  535. package/types/devvit/actor/user_configurable/user_configurable.js +3 -3
  536. package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts +23 -0
  537. package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts.map +1 -0
  538. package/types/devvit/actor/user_configurable/user_configurable.twirp-client.js +36 -0
  539. package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts +15 -0
  540. package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts.map +1 -0
  541. package/types/devvit/actor/user_configurable/user_configurable.twirp.js +157 -0
  542. package/types/devvit/cli/playtest.d.ts +2 -2
  543. package/types/devvit/cli/playtest.js +3 -3
  544. package/types/devvit/data/api/v1alpha/admin.d.ts +4 -4
  545. package/types/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
  546. package/types/devvit/data/api/v1alpha/admin.js +6 -6
  547. package/types/devvit/debug/v1alpha/debug.d.ts +1 -1
  548. package/types/devvit/debug/v1alpha/debug.js +2 -2
  549. package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts +19 -0
  550. package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts.map +1 -0
  551. package/types/devvit/debug/v1alpha/debug.twirp-client.js +23 -0
  552. package/types/devvit/debug/v1alpha/debug.twirp.d.ts +12 -0
  553. package/types/devvit/debug/v1alpha/debug.twirp.d.ts.map +1 -0
  554. package/types/devvit/debug/v1alpha/debug.twirp.js +88 -0
  555. package/types/devvit/dev_portal/actor/actor_type.d.ts +1 -1
  556. package/types/devvit/dev_portal/actor/actor_type.js +2 -2
  557. package/types/devvit/dev_portal/admin/waitlist_admin.d.ts +3 -3
  558. package/types/devvit/dev_portal/admin/waitlist_admin.js +5 -5
  559. package/types/devvit/dev_portal/app/app.d.ts +4 -4
  560. package/types/devvit/dev_portal/app/app.js +6 -6
  561. package/types/devvit/dev_portal/app/info/app_info.d.ts +4 -4
  562. package/types/devvit/dev_portal/app/info/app_info.js +6 -6
  563. package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts +6 -6
  564. package/types/devvit/dev_portal/app_publish_request/app_publish_request.js +8 -8
  565. package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts +2 -2
  566. package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.js +4 -4
  567. package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts +2 -2
  568. package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +4 -4
  569. package/types/devvit/dev_portal/app_settings/app_settings.d.ts +3 -3
  570. package/types/devvit/dev_portal/app_settings/app_settings.js +4 -4
  571. package/types/devvit/dev_portal/app_version/app_version.d.ts +7 -7
  572. package/types/devvit/dev_portal/app_version/app_version.js +9 -9
  573. package/types/devvit/dev_portal/app_version/info/app_version_info.d.ts +1 -1
  574. package/types/devvit/dev_portal/app_version/info/app_version_info.js +4 -4
  575. package/types/devvit/dev_portal/data_api/admin/audit/audit.d.ts +1 -1
  576. package/types/devvit/dev_portal/data_api/admin/audit/audit.js +3 -3
  577. package/types/devvit/dev_portal/data_api/admin/auth/auth.d.ts +3 -3
  578. package/types/devvit/dev_portal/data_api/admin/auth/auth.js +5 -5
  579. package/types/devvit/dev_portal/data_api/admin/organization/organization.d.ts +2 -2
  580. package/types/devvit/dev_portal/data_api/admin/organization/organization.js +3 -3
  581. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.d.ts +4 -4
  582. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.js +5 -5
  583. package/types/devvit/dev_portal/dev_portal.d.ts +20 -20
  584. package/types/devvit/dev_portal/dev_portal.js +20 -20
  585. package/types/devvit/dev_portal/feedback/feedback.d.ts +1 -1
  586. package/types/devvit/dev_portal/feedback/feedback.js +2 -2
  587. package/types/devvit/dev_portal/installation/installation.d.ts +4 -4
  588. package/types/devvit/dev_portal/installation/installation.js +8 -8
  589. package/types/devvit/dev_portal/installation_settings/installation_settings.d.ts +3 -3
  590. package/types/devvit/dev_portal/installation_settings/installation_settings.js +4 -4
  591. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.d.ts +2 -2
  592. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.js +3 -3
  593. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +5 -5
  594. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.js +5 -5
  595. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.d.ts +2 -2
  596. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.js +3 -3
  597. package/types/devvit/dev_portal/internal/media/media.d.ts +1 -1
  598. package/types/devvit/dev_portal/internal/media/media.js +2 -2
  599. package/types/devvit/dev_portal/nutrition/nutrition.d.ts +1 -1
  600. package/types/devvit/dev_portal/nutrition/nutrition.js +2 -2
  601. package/types/devvit/dev_portal/reddit/redditor.d.ts +1 -1
  602. package/types/devvit/dev_portal/reddit/redditor.js +2 -2
  603. package/types/devvit/dev_portal/waitlist/waitlist.d.ts +3 -3
  604. package/types/devvit/dev_portal/waitlist/waitlist.js +5 -5
  605. package/types/devvit/events/v1alpha/events.d.ts +6 -6
  606. package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
  607. package/types/devvit/events/v1alpha/events.js +17 -17
  608. package/types/devvit/events/v1alpha/realtime.d.ts +2 -2
  609. package/types/devvit/events/v1alpha/realtime.js +4 -4
  610. package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts +23 -0
  611. package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts.map +1 -0
  612. package/types/devvit/events/v1alpha/realtime.twirp-client.js +36 -0
  613. package/types/devvit/events/v1alpha/realtime.twirp.d.ts +15 -0
  614. package/types/devvit/events/v1alpha/realtime.twirp.d.ts.map +1 -0
  615. package/types/devvit/events/v1alpha/realtime.twirp.js +157 -0
  616. package/types/devvit/events/v1alpha/wqcleanup.d.ts +1 -1
  617. package/types/devvit/events/v1alpha/wqcleanup.js +2 -2
  618. package/types/devvit/gateway/custom_post_snapshot.d.ts +2 -2
  619. package/types/devvit/gateway/custom_post_snapshot.js +3 -3
  620. package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts +20 -0
  621. package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts.map +1 -0
  622. package/types/devvit/gateway/custom_post_snapshot.twirp-client.js +24 -0
  623. package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts +13 -0
  624. package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts.map +1 -0
  625. package/types/devvit/gateway/custom_post_snapshot.twirp.js +91 -0
  626. package/types/devvit/gateway/resolvers.d.ts +2 -2
  627. package/types/devvit/gateway/resolvers.js +3 -3
  628. package/types/devvit/gateway/resolvers.twirp-client.d.ts +20 -0
  629. package/types/devvit/gateway/resolvers.twirp-client.d.ts.map +1 -0
  630. package/types/devvit/gateway/resolvers.twirp-client.js +24 -0
  631. package/types/devvit/gateway/resolvers.twirp.d.ts +13 -0
  632. package/types/devvit/gateway/resolvers.twirp.d.ts.map +1 -0
  633. package/types/devvit/gateway/resolvers.twirp.js +91 -0
  634. package/types/devvit/gateway/utils/v1alpha/utilities.d.ts +1 -1
  635. package/types/devvit/gateway/utils/v1alpha/utilities.js +2 -2
  636. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts +47 -0
  637. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts.map +1 -0
  638. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.js +93 -0
  639. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts +28 -0
  640. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts.map +1 -0
  641. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.js +440 -0
  642. package/types/devvit/gateway/v1alpha/triggers.d.ts +8 -8
  643. package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
  644. package/types/devvit/gateway/v1alpha/triggers.js +5 -5
  645. package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts +37 -0
  646. package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts.map +1 -0
  647. package/types/devvit/gateway/v1alpha/triggers.twirp-client.js +86 -0
  648. package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts +25 -0
  649. package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts.map +1 -0
  650. package/types/devvit/gateway/v1alpha/triggers.twirp.js +423 -0
  651. package/types/devvit/gql/snapshot.d.ts +1 -1
  652. package/types/devvit/gql/snapshot.js +2 -2
  653. package/types/devvit/gql/subreddit_metadata.d.ts +3 -3
  654. package/types/devvit/gql/subreddit_metadata.js +4 -4
  655. package/types/devvit/options/options.d.ts +1 -1
  656. package/types/devvit/options/options.js +2 -2
  657. package/types/devvit/payments/v1alpha/order.d.ts +3 -3
  658. package/types/devvit/payments/v1alpha/order.js +5 -5
  659. package/types/devvit/payments/v1alpha/product.d.ts +2 -2
  660. package/types/devvit/payments/v1alpha/product.js +3 -3
  661. package/types/devvit/plugin/assetresolver/assetresolver.d.ts +1 -1
  662. package/types/devvit/plugin/assetresolver/assetresolver.js +2 -2
  663. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts +22 -0
  664. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts.map +1 -0
  665. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.js +35 -0
  666. package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts +14 -0
  667. package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts.map +1 -0
  668. package/types/devvit/plugin/assetresolver/assetresolver.twirp.js +156 -0
  669. package/types/devvit/plugin/builder/builder.d.ts +3 -3
  670. package/types/devvit/plugin/builder/builder.js +4 -4
  671. package/types/devvit/plugin/builder/builder.twirp-client.d.ts +23 -0
  672. package/types/devvit/plugin/builder/builder.twirp-client.d.ts.map +1 -0
  673. package/types/devvit/plugin/builder/builder.twirp-client.js +36 -0
  674. package/types/devvit/plugin/builder/builder.twirp.d.ts +15 -0
  675. package/types/devvit/plugin/builder/builder.twirp.d.ts.map +1 -0
  676. package/types/devvit/plugin/builder/builder.twirp.js +154 -0
  677. package/types/devvit/plugin/buildpack/buildpack.d.ts +2 -2
  678. package/types/devvit/plugin/buildpack/buildpack.js +2 -2
  679. package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts +22 -0
  680. package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts.map +1 -0
  681. package/types/devvit/plugin/buildpack/buildpack.twirp-client.js +35 -0
  682. package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts +14 -0
  683. package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts.map +1 -0
  684. package/types/devvit/plugin/buildpack/buildpack.twirp.js +156 -0
  685. package/types/devvit/plugin/buildpack/buildpack_common.d.ts +4 -4
  686. package/types/devvit/plugin/buildpack/buildpack_common.js +6 -6
  687. package/types/devvit/plugin/buildpack/filesystem.d.ts +1 -1
  688. package/types/devvit/plugin/buildpack/filesystem.js +2 -2
  689. package/types/devvit/plugin/clock/clock.d.ts +3 -3
  690. package/types/devvit/plugin/clock/clock.js +3 -3
  691. package/types/devvit/plugin/clock/clock.twirp-client.d.ts +20 -0
  692. package/types/devvit/plugin/clock/clock.twirp-client.d.ts.map +1 -0
  693. package/types/devvit/plugin/clock/clock.twirp-client.js +24 -0
  694. package/types/devvit/plugin/clock/clock.twirp.d.ts +13 -0
  695. package/types/devvit/plugin/clock/clock.twirp.d.ts.map +1 -0
  696. package/types/devvit/plugin/clock/clock.twirp.js +89 -0
  697. package/types/devvit/plugin/http/http.d.ts +1 -1
  698. package/types/devvit/plugin/http/http.js +2 -2
  699. package/types/devvit/plugin/http/http.twirp-client.d.ts +19 -0
  700. package/types/devvit/plugin/http/http.twirp-client.d.ts.map +1 -0
  701. package/types/devvit/plugin/http/http.twirp-client.js +23 -0
  702. package/types/devvit/plugin/http/http.twirp.d.ts +12 -0
  703. package/types/devvit/plugin/http/http.twirp.d.ts.map +1 -0
  704. package/types/devvit/plugin/http/http.twirp.js +88 -0
  705. package/types/devvit/plugin/inspector/inspector.d.ts +3 -3
  706. package/types/devvit/plugin/inspector/inspector.js +4 -4
  707. package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts +23 -0
  708. package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts.map +1 -0
  709. package/types/devvit/plugin/inspector/inspector.twirp-client.js +36 -0
  710. package/types/devvit/plugin/inspector/inspector.twirp.d.ts +15 -0
  711. package/types/devvit/plugin/inspector/inspector.twirp.d.ts.map +1 -0
  712. package/types/devvit/plugin/inspector/inspector.twirp.js +157 -0
  713. package/types/devvit/plugin/kvstore/kvstore.d.ts +2 -2
  714. package/types/devvit/plugin/kvstore/kvstore.js +3 -3
  715. package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts +29 -0
  716. package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts.map +1 -0
  717. package/types/devvit/plugin/kvstore/kvstore.twirp-client.js +60 -0
  718. package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts +19 -0
  719. package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts.map +1 -0
  720. package/types/devvit/plugin/kvstore/kvstore.twirp.js +289 -0
  721. package/types/devvit/plugin/linker/linker.d.ts +4 -4
  722. package/types/devvit/plugin/linker/linker.js +5 -5
  723. package/types/devvit/plugin/linker/linker.twirp-client.d.ts +20 -0
  724. package/types/devvit/plugin/linker/linker.twirp-client.d.ts.map +1 -0
  725. package/types/devvit/plugin/linker/linker.twirp-client.js +24 -0
  726. package/types/devvit/plugin/linker/linker.twirp.d.ts +13 -0
  727. package/types/devvit/plugin/linker/linker.twirp.d.ts.map +1 -0
  728. package/types/devvit/plugin/linker/linker.twirp.js +89 -0
  729. package/types/devvit/plugin/linker/resolver.d.ts +5 -5
  730. package/types/devvit/plugin/linker/resolver.js +6 -6
  731. package/types/devvit/plugin/linker/resolver.twirp-client.d.ts +29 -0
  732. package/types/devvit/plugin/linker/resolver.twirp-client.d.ts.map +1 -0
  733. package/types/devvit/plugin/linker/resolver.twirp-client.js +51 -0
  734. package/types/devvit/plugin/linker/resolver.twirp.d.ts +20 -0
  735. package/types/devvit/plugin/linker/resolver.twirp.d.ts.map +1 -0
  736. package/types/devvit/plugin/linker/resolver.twirp.js +226 -0
  737. package/types/devvit/plugin/logger/logger.d.ts +1 -1
  738. package/types/devvit/plugin/logger/logger.js +4 -4
  739. package/types/devvit/plugin/media/media.d.ts +1 -1
  740. package/types/devvit/plugin/media/media.js +2 -2
  741. package/types/devvit/plugin/media/media.twirp-client.d.ts +19 -0
  742. package/types/devvit/plugin/media/media.twirp-client.d.ts.map +1 -0
  743. package/types/devvit/plugin/media/media.twirp-client.js +23 -0
  744. package/types/devvit/plugin/media/media.twirp.d.ts +12 -0
  745. package/types/devvit/plugin/media/media.twirp.d.ts.map +1 -0
  746. package/types/devvit/plugin/media/media.twirp.js +88 -0
  747. package/types/devvit/plugin/modlog/modlog.d.ts +1 -1
  748. package/types/devvit/plugin/modlog/modlog.js +2 -2
  749. package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts +19 -0
  750. package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts.map +1 -0
  751. package/types/devvit/plugin/modlog/modlog.twirp-client.js +23 -0
  752. package/types/devvit/plugin/modlog/modlog.twirp.d.ts +12 -0
  753. package/types/devvit/plugin/modlog/modlog.twirp.d.ts.map +1 -0
  754. package/types/devvit/plugin/modlog/modlog.twirp.js +88 -0
  755. package/types/devvit/plugin/payments/v1alpha/payments.d.ts +3 -3
  756. package/types/devvit/plugin/payments/v1alpha/payments.js +5 -5
  757. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts +25 -0
  758. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
  759. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.js +47 -0
  760. package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts +16 -0
  761. package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts.map +1 -0
  762. package/types/devvit/plugin/payments/v1alpha/payments.twirp.js +222 -0
  763. package/types/devvit/plugin/redditapi/common/common_msg.d.ts +3 -3
  764. package/types/devvit/plugin/redditapi/common/common_msg.js +6 -6
  765. package/types/devvit/plugin/redditapi/flair/flair_msg.d.ts +1 -1
  766. package/types/devvit/plugin/redditapi/flair/flair_msg.js +3 -3
  767. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts +17 -17
  768. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts.map +1 -1
  769. package/types/devvit/plugin/redditapi/flair/flair_svc.js +47 -126
  770. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts +60 -0
  771. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts.map +1 -0
  772. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.js +181 -0
  773. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts +40 -0
  774. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts.map +1 -0
  775. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.js +950 -0
  776. package/types/devvit/plugin/redditapi/graphql/graphql_msg.d.ts +1 -1
  777. package/types/devvit/plugin/redditapi/graphql/graphql_msg.js +3 -3
  778. package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts +2 -2
  779. package/types/devvit/plugin/redditapi/graphql/graphql_svc.js +2 -2
  780. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts +22 -0
  781. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts.map +1 -0
  782. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.js +35 -0
  783. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts +14 -0
  784. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts.map +1 -0
  785. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.js +156 -0
  786. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +3 -3
  787. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +5 -5
  788. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +27 -27
  789. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
  790. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +89 -388
  791. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +90 -0
  792. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -0
  793. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +301 -0
  794. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +60 -0
  795. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -0
  796. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.js +1610 -0
  797. package/types/devvit/plugin/redditapi/listings/listings_msg.d.ts +2 -2
  798. package/types/devvit/plugin/redditapi/listings/listings_msg.js +4 -4
  799. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +11 -11
  800. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
  801. package/types/devvit/plugin/redditapi/listings/listings_svc.js +21 -55
  802. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts +41 -0
  803. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts.map +1 -0
  804. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.js +108 -0
  805. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts +27 -0
  806. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts.map +1 -0
  807. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.js +553 -0
  808. package/types/devvit/plugin/redditapi/moderation/moderation_msg.d.ts +1 -1
  809. package/types/devvit/plugin/redditapi/moderation/moderation_msg.js +3 -3
  810. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +28 -28
  811. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
  812. package/types/devvit/plugin/redditapi/moderation/moderation_svc.js +81 -361
  813. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts +85 -0
  814. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts.map +1 -0
  815. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.js +278 -0
  816. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts +57 -0
  817. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts.map +1 -0
  818. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.js +1479 -0
  819. package/types/devvit/plugin/redditapi/modnote/modnote_msg.d.ts +1 -1
  820. package/types/devvit/plugin/redditapi/modnote/modnote_msg.js +3 -3
  821. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts +8 -8
  822. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts.map +1 -1
  823. package/types/devvit/plugin/redditapi/modnote/modnote_svc.js +14 -59
  824. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts +32 -0
  825. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts.map +1 -0
  826. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.js +72 -0
  827. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts +21 -0
  828. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts.map +1 -0
  829. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.js +355 -0
  830. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.d.ts +2 -2
  831. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js +4 -4
  832. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +21 -21
  833. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
  834. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js +46 -142
  835. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts +77 -0
  836. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts.map +1 -0
  837. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.js +252 -0
  838. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts +51 -0
  839. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts.map +1 -0
  840. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.js +1345 -0
  841. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.d.ts +1 -1
  842. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.js +4 -4
  843. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts +3 -3
  844. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.js +3 -3
  845. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts +50 -0
  846. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts.map +1 -0
  847. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.js +144 -0
  848. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts +33 -0
  849. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts.map +1 -0
  850. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.js +751 -0
  851. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.d.ts +1 -1
  852. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js +3 -3
  853. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +14 -14
  854. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
  855. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js +34 -101
  856. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts +48 -0
  857. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts.map +1 -0
  858. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.js +133 -0
  859. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts +32 -0
  860. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts.map +1 -0
  861. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.js +686 -0
  862. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.d.ts +3 -3
  863. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.js +5 -5
  864. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +32 -32
  865. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
  866. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.js +73 -243
  867. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts +100 -0
  868. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts.map +1 -0
  869. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.js +338 -0
  870. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts +67 -0
  871. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts.map +1 -0
  872. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.js +1809 -0
  873. package/types/devvit/plugin/redditapi/users/users_msg.d.ts +2 -2
  874. package/types/devvit/plugin/redditapi/users/users_msg.js +4 -4
  875. package/types/devvit/plugin/redditapi/users/users_svc.d.ts +17 -17
  876. package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
  877. package/types/devvit/plugin/redditapi/users/users_svc.js +39 -144
  878. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts +58 -0
  879. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts.map +1 -0
  880. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.js +170 -0
  881. package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts +39 -0
  882. package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts.map +1 -0
  883. package/types/devvit/plugin/redditapi/users/users_svc.twirp.js +885 -0
  884. package/types/devvit/plugin/redditapi/widgets/widgets_msg.d.ts +2 -2
  885. package/types/devvit/plugin/redditapi/widgets/widgets_msg.js +4 -4
  886. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts +21 -21
  887. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts.map +1 -1
  888. package/types/devvit/plugin/redditapi/widgets/widgets_svc.js +69 -298
  889. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts +71 -0
  890. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts.map +1 -0
  891. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.js +228 -0
  892. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts +47 -0
  893. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts.map +1 -0
  894. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.js +1213 -0
  895. package/types/devvit/plugin/redditapi/wiki/wiki_msg.d.ts +2 -2
  896. package/types/devvit/plugin/redditapi/wiki/wiki_msg.js +4 -4
  897. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts +13 -18
  898. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts.map +1 -1
  899. package/types/devvit/plugin/redditapi/wiki/wiki_svc.js +28 -79
  900. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts +47 -0
  901. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts.map +1 -0
  902. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.js +132 -0
  903. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts +31 -0
  904. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts.map +1 -0
  905. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.js +685 -0
  906. package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts +4 -4
  907. package/types/devvit/plugin/redditapiv2/redditapiv2.js +4 -4
  908. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts +24 -0
  909. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts.map +1 -0
  910. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.js +37 -0
  911. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts +16 -0
  912. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts.map +1 -0
  913. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.js +158 -0
  914. package/types/devvit/plugin/redis/redisapi.d.ts +3 -3
  915. package/types/devvit/plugin/redis/redisapi.js +4 -4
  916. package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts +126 -0
  917. package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts.map +1 -0
  918. package/types/devvit/plugin/redis/redisapi.twirp-client.js +445 -0
  919. package/types/devvit/plugin/redis/redisapi.twirp.d.ts +84 -0
  920. package/types/devvit/plugin/redis/redisapi.twirp.d.ts.map +1 -0
  921. package/types/devvit/plugin/redis/redisapi.twirp.js +2402 -0
  922. package/types/devvit/plugin/scheduler/scheduler.d.ts +4 -4
  923. package/types/devvit/plugin/scheduler/scheduler.js +6 -6
  924. package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts +26 -0
  925. package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts.map +1 -0
  926. package/types/devvit/plugin/scheduler/scheduler.twirp-client.js +48 -0
  927. package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts +17 -0
  928. package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts.map +1 -0
  929. package/types/devvit/plugin/scheduler/scheduler.twirp.js +223 -0
  930. package/types/devvit/plugin/settings/v1alpha/settings.d.ts +2 -2
  931. package/types/devvit/plugin/settings/v1alpha/settings.js +4 -4
  932. package/types/devvit/plugin/streambroker/streambroker.d.ts +2 -2
  933. package/types/devvit/plugin/streambroker/streambroker.js +3 -3
  934. package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts +23 -0
  935. package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts.map +1 -0
  936. package/types/devvit/plugin/streambroker/streambroker.twirp-client.js +36 -0
  937. package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts +15 -0
  938. package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts.map +1 -0
  939. package/types/devvit/plugin/streambroker/streambroker.twirp.js +157 -0
  940. package/types/devvit/plugin/timer/timer.d.ts +2 -2
  941. package/types/devvit/plugin/timer/timer.js +3 -3
  942. package/types/devvit/plugin/timer/timer.twirp-client.d.ts +20 -0
  943. package/types/devvit/plugin/timer/timer.twirp-client.d.ts.map +1 -0
  944. package/types/devvit/plugin/timer/timer.twirp-client.js +24 -0
  945. package/types/devvit/plugin/timer/timer.twirp.d.ts +13 -0
  946. package/types/devvit/plugin/timer/timer.twirp.d.ts.map +1 -0
  947. package/types/devvit/plugin/timer/timer.twirp.js +89 -0
  948. package/types/devvit/plugin/v2events/v2events.d.ts +1 -1
  949. package/types/devvit/plugin/v2events/v2events.js +2 -2
  950. package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts +19 -0
  951. package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts.map +1 -0
  952. package/types/devvit/plugin/v2events/v2events.twirp-client.js +23 -0
  953. package/types/devvit/plugin/v2events/v2events.twirp.d.ts +12 -0
  954. package/types/devvit/plugin/v2events/v2events.twirp.d.ts.map +1 -0
  955. package/types/devvit/plugin/v2events/v2events.twirp.js +88 -0
  956. package/types/devvit/reddit/comment.d.ts +2 -2
  957. package/types/devvit/reddit/comment.js +5 -5
  958. package/types/devvit/reddit/common.d.ts +1 -1
  959. package/types/devvit/reddit/common.js +3 -3
  960. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts +3 -3
  961. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.js +5 -5
  962. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts +22 -0
  963. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts.map +1 -0
  964. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.js +35 -0
  965. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts +14 -0
  966. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts.map +1 -0
  967. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.js +156 -0
  968. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -4
  969. package/types/devvit/reddit/custom_post/v1alpha/custom_post.js +6 -6
  970. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts +26 -0
  971. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts.map +1 -0
  972. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.js +48 -0
  973. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts +17 -0
  974. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts.map +1 -0
  975. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.js +223 -0
  976. package/types/devvit/reddit/post.d.ts +2 -2
  977. package/types/devvit/reddit/post.js +5 -5
  978. package/types/devvit/reddit/subreddit.d.ts +2 -2
  979. package/types/devvit/reddit/subreddit.js +4 -4
  980. package/types/devvit/reddit/user.d.ts +2 -2
  981. package/types/devvit/reddit/user.js +4 -4
  982. package/types/devvit/reddit/v2alpha/commentv2.d.ts +1 -1
  983. package/types/devvit/reddit/v2alpha/commentv2.js +2 -2
  984. package/types/devvit/reddit/v2alpha/flair.d.ts +1 -1
  985. package/types/devvit/reddit/v2alpha/flair.js +2 -2
  986. package/types/devvit/reddit/v2alpha/modaction.d.ts +5 -5
  987. package/types/devvit/reddit/v2alpha/modaction.js +7 -7
  988. package/types/devvit/reddit/v2alpha/modmail.d.ts +3 -3
  989. package/types/devvit/reddit/v2alpha/modmail.js +5 -5
  990. package/types/devvit/reddit/v2alpha/postv2.d.ts +2 -2
  991. package/types/devvit/reddit/v2alpha/postv2.js +3 -3
  992. package/types/devvit/reddit/v2alpha/subredditv2.d.ts +1 -1
  993. package/types/devvit/reddit/v2alpha/subredditv2.js +2 -2
  994. package/types/devvit/reddit/v2alpha/userv2.d.ts +2 -2
  995. package/types/devvit/reddit/v2alpha/userv2.js +3 -3
  996. package/types/devvit/remote_logger/remote_logger.d.ts +2 -2
  997. package/types/devvit/remote_logger/remote_logger.js +4 -4
  998. package/types/devvit/runtime/actor/bootstrap.d.ts +3 -3
  999. package/types/devvit/runtime/actor/bootstrap.js +3 -3
  1000. package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts +23 -0
  1001. package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts.map +1 -0
  1002. package/types/devvit/runtime/actor/bootstrap.twirp-client.js +36 -0
  1003. package/types/devvit/runtime/actor/bootstrap.twirp.d.ts +15 -0
  1004. package/types/devvit/runtime/actor/bootstrap.twirp.d.ts.map +1 -0
  1005. package/types/devvit/runtime/actor/bootstrap.twirp.js +157 -0
  1006. package/types/devvit/runtime/actor/echo.d.ts +2 -2
  1007. package/types/devvit/runtime/actor/echo.js +2 -2
  1008. package/types/devvit/runtime/actor/echo.twirp-client.d.ts +19 -0
  1009. package/types/devvit/runtime/actor/echo.twirp-client.d.ts.map +1 -0
  1010. package/types/devvit/runtime/actor/echo.twirp-client.js +23 -0
  1011. package/types/devvit/runtime/actor/echo.twirp.d.ts +12 -0
  1012. package/types/devvit/runtime/actor/echo.twirp.d.ts.map +1 -0
  1013. package/types/devvit/runtime/actor/echo.twirp.js +88 -0
  1014. package/types/devvit/runtime/actor/runtime.d.ts +3 -3
  1015. package/types/devvit/runtime/actor/runtime.js +4 -4
  1016. package/types/devvit/runtime/actor/runtime.twirp-client.d.ts +24 -0
  1017. package/types/devvit/runtime/actor/runtime.twirp-client.d.ts.map +1 -0
  1018. package/types/devvit/runtime/actor/runtime.twirp-client.js +37 -0
  1019. package/types/devvit/runtime/actor/runtime.twirp.d.ts +16 -0
  1020. package/types/devvit/runtime/actor/runtime.twirp.d.ts.map +1 -0
  1021. package/types/devvit/runtime/actor/runtime.twirp.js +158 -0
  1022. package/types/devvit/runtime/actor/supervisor.d.ts +4 -4
  1023. package/types/devvit/runtime/actor/supervisor.js +5 -5
  1024. package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts +28 -0
  1025. package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts.map +1 -0
  1026. package/types/devvit/runtime/actor/supervisor.twirp-client.js +50 -0
  1027. package/types/devvit/runtime/actor/supervisor.twirp.d.ts +19 -0
  1028. package/types/devvit/runtime/actor/supervisor.twirp.d.ts.map +1 -0
  1029. package/types/devvit/runtime/actor/supervisor.twirp.js +225 -0
  1030. package/types/devvit/runtime/actor/v1alpha/health.d.ts +2 -2
  1031. package/types/devvit/runtime/actor/v1alpha/health.js +4 -4
  1032. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts +20 -0
  1033. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts.map +1 -0
  1034. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.js +24 -0
  1035. package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts +13 -0
  1036. package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts.map +1 -0
  1037. package/types/devvit/runtime/actor/v1alpha/health.twirp.js +89 -0
  1038. package/types/devvit/runtime/bundle.d.ts +2 -2
  1039. package/types/devvit/runtime/bundle.js +5 -5
  1040. package/types/devvit/runtime/envelope.d.ts +2 -2
  1041. package/types/devvit/runtime/envelope.js +4 -4
  1042. package/types/devvit/runtime/runtime_common.d.ts +1 -1
  1043. package/types/devvit/runtime/runtime_common.js +3 -3
  1044. package/types/devvit/runtime/serializable.d.ts +1 -1
  1045. package/types/devvit/runtime/serializable.js +2 -2
  1046. package/types/devvit/service/bundle_service.d.ts +3 -3
  1047. package/types/devvit/service/bundle_service.js +4 -4
  1048. package/types/devvit/service/bundle_service.twirp-client.d.ts +24 -0
  1049. package/types/devvit/service/bundle_service.twirp-client.d.ts.map +1 -0
  1050. package/types/devvit/service/bundle_service.twirp-client.js +37 -0
  1051. package/types/devvit/service/bundle_service.twirp.d.ts +16 -0
  1052. package/types/devvit/service/bundle_service.twirp.d.ts.map +1 -0
  1053. package/types/devvit/service/bundle_service.twirp.js +158 -0
  1054. package/types/devvit/service/envelope_service.d.ts +3 -3
  1055. package/types/devvit/service/envelope_service.js +3 -3
  1056. package/types/devvit/service/envelope_service.twirp-client.d.ts +20 -0
  1057. package/types/devvit/service/envelope_service.twirp-client.d.ts.map +1 -0
  1058. package/types/devvit/service/envelope_service.twirp-client.js +24 -0
  1059. package/types/devvit/service/envelope_service.twirp.d.ts +13 -0
  1060. package/types/devvit/service/envelope_service.twirp.d.ts.map +1 -0
  1061. package/types/devvit/service/envelope_service.twirp.js +89 -0
  1062. package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.d.ts +4 -4
  1063. package/types/devvit/triggers/v1alpha/triggers.d.ts.map +1 -0
  1064. package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.js +6 -6
  1065. package/types/devvit/ui/block_kit/v1beta/attributes.d.ts +2 -2
  1066. package/types/devvit/ui/block_kit/v1beta/attributes.js +4 -4
  1067. package/types/devvit/ui/block_kit/v1beta/block.d.ts +3 -3
  1068. package/types/devvit/ui/block_kit/v1beta/block.js +5 -5
  1069. package/types/devvit/ui/block_kit/v1beta/rendering.d.ts +3 -3
  1070. package/types/devvit/ui/block_kit/v1beta/rendering.js +5 -5
  1071. package/types/devvit/ui/block_kit/v1beta/ui.d.ts +5 -5
  1072. package/types/devvit/ui/block_kit/v1beta/ui.js +7 -7
  1073. package/types/devvit/ui/common/v1alpha/common.d.ts +1 -1
  1074. package/types/devvit/ui/common/v1alpha/common.js +2 -2
  1075. package/types/devvit/ui/effects/v1alpha/create_order.d.ts +1 -1
  1076. package/types/devvit/ui/effects/v1alpha/create_order.js +2 -2
  1077. package/types/devvit/ui/effects/v1alpha/effect.d.ts +9 -9
  1078. package/types/devvit/ui/effects/v1alpha/effect.js +10 -10
  1079. package/types/devvit/ui/effects/v1alpha/interval.d.ts +2 -2
  1080. package/types/devvit/ui/effects/v1alpha/interval.js +4 -4
  1081. package/types/devvit/ui/effects/v1alpha/navigate_to_url.d.ts +1 -1
  1082. package/types/devvit/ui/effects/v1alpha/navigate_to_url.js +2 -2
  1083. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.d.ts +2 -2
  1084. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.js +3 -3
  1085. package/types/devvit/ui/effects/v1alpha/reload_part.d.ts +1 -1
  1086. package/types/devvit/ui/effects/v1alpha/reload_part.js +2 -2
  1087. package/types/devvit/ui/effects/v1alpha/rerender_ui.d.ts +1 -1
  1088. package/types/devvit/ui/effects/v1alpha/rerender_ui.js +2 -2
  1089. package/types/devvit/ui/effects/v1alpha/show_form.d.ts +3 -3
  1090. package/types/devvit/ui/effects/v1alpha/show_form.js +4 -4
  1091. package/types/devvit/ui/effects/v1alpha/show_toast.d.ts +2 -2
  1092. package/types/devvit/ui/effects/v1alpha/show_toast.js +3 -3
  1093. package/types/devvit/ui/events/v1alpha/event.d.ts +5 -5
  1094. package/types/devvit/ui/events/v1alpha/event.js +8 -8
  1095. package/types/devvit/ui/events/v1alpha/handle_ui.d.ts +3 -3
  1096. package/types/devvit/ui/events/v1alpha/handle_ui.js +5 -5
  1097. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts +19 -0
  1098. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts.map +1 -0
  1099. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.js +23 -0
  1100. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts +12 -0
  1101. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts.map +1 -0
  1102. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.js +88 -0
  1103. package/types/devvit/ui/form_builder/v1alpha/field.d.ts +3 -3
  1104. package/types/devvit/ui/form_builder/v1alpha/field.js +4 -4
  1105. package/types/devvit/ui/form_builder/v1alpha/form.d.ts +2 -2
  1106. package/types/devvit/ui/form_builder/v1alpha/form.js +3 -3
  1107. package/types/devvit/ui/form_builder/v1alpha/value.d.ts +2 -2
  1108. package/types/devvit/ui/form_builder/v1alpha/value.js +3 -3
  1109. package/types/devvit/ui/toast/toast.d.ts +1 -1
  1110. package/types/devvit/ui/toast/toast.js +2 -2
  1111. package/types/devvit/uuid.d.ts +1 -1
  1112. package/types/devvit/uuid.js +2 -2
  1113. package/types/google/protobuf/any.d.ts +5 -10
  1114. package/types/google/protobuf/any.d.ts.map +1 -1
  1115. package/types/google/protobuf/any.js +2 -2
  1116. package/types/google/protobuf/descriptor.d.ts +39 -435
  1117. package/types/google/protobuf/descriptor.d.ts.map +1 -1
  1118. package/types/google/protobuf/descriptor.js +101 -1605
  1119. package/types/google/protobuf/duration.d.ts +1 -1
  1120. package/types/google/protobuf/duration.js +2 -2
  1121. package/types/google/protobuf/empty.d.ts +1 -1
  1122. package/types/google/protobuf/empty.js +2 -2
  1123. package/types/google/protobuf/struct.d.ts +2 -2
  1124. package/types/google/protobuf/struct.js +3 -3
  1125. package/types/google/protobuf/timestamp.d.ts +2 -2
  1126. package/types/google/protobuf/timestamp.js +2 -2
  1127. package/types/google/protobuf/wrappers.d.ts +1 -1
  1128. package/types/google/protobuf/wrappers.js +2 -2
  1129. package/types/typeRegistry.d.ts +1 -1
  1130. package/schema/buf.strict.yaml +0 -7
  1131. package/schema/buf.yaml +0 -8
  1132. package/types/devvit/data/api/admin/v1alpha/audit.d.ts +0 -159
  1133. package/types/devvit/data/api/admin/v1alpha/audit.d.ts.map +0 -1
  1134. package/types/devvit/data/api/admin/v1alpha/audit.js +0 -776
  1135. package/types/devvit/data/api/admin/v1alpha/auth.d.ts +0 -127
  1136. package/types/devvit/data/api/admin/v1alpha/auth.d.ts.map +0 -1
  1137. package/types/devvit/data/api/admin/v1alpha/auth.js +0 -599
  1138. package/types/devvit/data/api/admin/v1alpha/organization.d.ts +0 -122
  1139. package/types/devvit/data/api/admin/v1alpha/organization.d.ts.map +0 -1
  1140. package/types/devvit/data/api/admin/v1alpha/organization.js +0 -522
  1141. package/types/devvit/data/api/admin/v1alpha/service.d.ts +0 -855
  1142. package/types/devvit/data/api/admin/v1alpha/service.d.ts.map +0 -1
  1143. package/types/devvit/data/api/admin/v1alpha/service.js +0 -254
  1144. package/types/devvit/data/api/admin/v1alpha/subscription.d.ts +0 -167
  1145. package/types/devvit/data/api/admin/v1alpha/subscription.d.ts.map +0 -1
  1146. package/types/devvit/data/api/admin/v1alpha/subscription.js +0 -885
  1147. package/types/devvit/data/api/admin/v1alpha/ui.d.ts +0 -52
  1148. package/types/devvit/data/api/admin/v1alpha/ui.d.ts.map +0 -1
  1149. package/types/devvit/data/api/admin/v1alpha/ui.js +0 -198
  1150. package/types/devvit/data/api/v1alpha/filter.d.ts +0 -160
  1151. package/types/devvit/data/api/v1alpha/filter.d.ts.map +0 -1
  1152. package/types/devvit/data/api/v1alpha/filter.js +0 -983
  1153. package/types/devvit/data/api/v1alpha/intake.d.ts +0 -85
  1154. package/types/devvit/data/api/v1alpha/intake.d.ts.map +0 -1
  1155. package/types/devvit/data/api/v1alpha/intake.js +0 -160
  1156. package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +0 -1
  1157. /package/schema/{buf → .snootobuf/deps/buf}/validate/expression.proto +0 -0
  1158. /package/schema/{buf → .snootobuf/deps/buf}/validate/priv/private.proto +0 -0
  1159. /package/schema/{buf → .snootobuf/deps/buf}/validate/validate.proto +0 -0
  1160. /package/schema/{google → .snootobuf/deps/google}/api/annotations.proto +0 -0
  1161. /package/schema/{openapi → .snootobuf/deps/openapi}/helper.proto +0 -0
@@ -0,0 +1,2402 @@
1
+ import { TwirpServer, TwirpError, TwirpErrorCode, TwirpContentType, chainInterceptors, } from 'twirp-ts';
2
+ import { KeyRequest, SetRequest, KeysRequest, IncrByRequest, HSetRequest, HGetRequest, RedisFieldValues, HDelRequest, HScanRequest, HScanResponse, KeysResponse, HIncrByRequest, TransactionId, TransactionResponses, WatchRequest, KeyRangeRequest, SetRangeRequest, RedisValues, KeyValuesRequest, ExpireRequest, ZAddRequest, ZRangeRequest, ZMembers, ZRemRequest, ZRemRangeByLexRequest, ZRemRangeByRankRequest, ZRemRangeByScoreRequest, ZScoreRequest, ZRankRequest, ZIncrByRequest, ZScanRequest, ZScanResponse, } from './redisapi.js';
3
+ import { StringValue, Int64Value, DoubleValue, } from '../../../google/protobuf/wrappers.js';
4
+ import { Empty } from '../../../google/protobuf/empty.js';
5
+ export var RedisAPIMethod;
6
+ (function (RedisAPIMethod) {
7
+ RedisAPIMethod["Get"] = "Get";
8
+ RedisAPIMethod["Set"] = "Set";
9
+ RedisAPIMethod["Del"] = "Del";
10
+ RedisAPIMethod["Type"] = "Type";
11
+ RedisAPIMethod["IncrBy"] = "IncrBy";
12
+ RedisAPIMethod["HSet"] = "HSet";
13
+ RedisAPIMethod["HGet"] = "HGet";
14
+ RedisAPIMethod["HGetAll"] = "HGetAll";
15
+ RedisAPIMethod["HDel"] = "HDel";
16
+ RedisAPIMethod["HScan"] = "HScan";
17
+ RedisAPIMethod["HKeys"] = "HKeys";
18
+ RedisAPIMethod["HIncrBy"] = "HIncrBy";
19
+ RedisAPIMethod["HLen"] = "HLen";
20
+ RedisAPIMethod["Multi"] = "Multi";
21
+ RedisAPIMethod["Exec"] = "Exec";
22
+ RedisAPIMethod["Discard"] = "Discard";
23
+ RedisAPIMethod["Watch"] = "Watch";
24
+ RedisAPIMethod["Unwatch"] = "Unwatch";
25
+ RedisAPIMethod["GetRange"] = "GetRange";
26
+ RedisAPIMethod["SetRange"] = "SetRange";
27
+ RedisAPIMethod["Strlen"] = "Strlen";
28
+ RedisAPIMethod["MGet"] = "MGet";
29
+ RedisAPIMethod["MSet"] = "MSet";
30
+ RedisAPIMethod["Expire"] = "Expire";
31
+ RedisAPIMethod["ExpireTime"] = "ExpireTime";
32
+ RedisAPIMethod["ZAdd"] = "ZAdd";
33
+ RedisAPIMethod["ZCard"] = "ZCard";
34
+ RedisAPIMethod["ZRange"] = "ZRange";
35
+ RedisAPIMethod["ZRem"] = "ZRem";
36
+ RedisAPIMethod["ZRemRangeByLex"] = "ZRemRangeByLex";
37
+ RedisAPIMethod["ZRemRangeByRank"] = "ZRemRangeByRank";
38
+ RedisAPIMethod["ZRemRangeByScore"] = "ZRemRangeByScore";
39
+ RedisAPIMethod["ZScore"] = "ZScore";
40
+ RedisAPIMethod["ZRank"] = "ZRank";
41
+ RedisAPIMethod["ZIncrBy"] = "ZIncrBy";
42
+ RedisAPIMethod["ZScan"] = "ZScan";
43
+ })(RedisAPIMethod || (RedisAPIMethod = {}));
44
+ export const RedisAPIMethodList = [
45
+ RedisAPIMethod.Get,
46
+ RedisAPIMethod.Set,
47
+ RedisAPIMethod.Del,
48
+ RedisAPIMethod.Type,
49
+ RedisAPIMethod.IncrBy,
50
+ RedisAPIMethod.HSet,
51
+ RedisAPIMethod.HGet,
52
+ RedisAPIMethod.HGetAll,
53
+ RedisAPIMethod.HDel,
54
+ RedisAPIMethod.HScan,
55
+ RedisAPIMethod.HKeys,
56
+ RedisAPIMethod.HIncrBy,
57
+ RedisAPIMethod.HLen,
58
+ RedisAPIMethod.Multi,
59
+ RedisAPIMethod.Exec,
60
+ RedisAPIMethod.Discard,
61
+ RedisAPIMethod.Watch,
62
+ RedisAPIMethod.Unwatch,
63
+ RedisAPIMethod.GetRange,
64
+ RedisAPIMethod.SetRange,
65
+ RedisAPIMethod.Strlen,
66
+ RedisAPIMethod.MGet,
67
+ RedisAPIMethod.MSet,
68
+ RedisAPIMethod.Expire,
69
+ RedisAPIMethod.ExpireTime,
70
+ RedisAPIMethod.ZAdd,
71
+ RedisAPIMethod.ZCard,
72
+ RedisAPIMethod.ZRange,
73
+ RedisAPIMethod.ZRem,
74
+ RedisAPIMethod.ZRemRangeByLex,
75
+ RedisAPIMethod.ZRemRangeByRank,
76
+ RedisAPIMethod.ZRemRangeByScore,
77
+ RedisAPIMethod.ZScore,
78
+ RedisAPIMethod.ZRank,
79
+ RedisAPIMethod.ZIncrBy,
80
+ RedisAPIMethod.ZScan,
81
+ ];
82
+ export function createRedisAPIServer(service) {
83
+ return new TwirpServer({
84
+ service,
85
+ packageName: 'devvit.plugin.redis',
86
+ serviceName: 'RedisAPI',
87
+ methodList: RedisAPIMethodList,
88
+ matchRoute: matchRedisAPIRoute,
89
+ });
90
+ }
91
+ function matchRedisAPIRoute(method, events) {
92
+ switch (method) {
93
+ case 'Get':
94
+ return async (ctx, service, data, interceptors) => {
95
+ ctx = { ...ctx, methodName: 'Get' };
96
+ await events.onMatch(ctx);
97
+ return handleRedisAPIGetRequest(ctx, service, data, interceptors);
98
+ };
99
+ case 'Set':
100
+ return async (ctx, service, data, interceptors) => {
101
+ ctx = { ...ctx, methodName: 'Set' };
102
+ await events.onMatch(ctx);
103
+ return handleRedisAPISetRequest(ctx, service, data, interceptors);
104
+ };
105
+ case 'Del':
106
+ return async (ctx, service, data, interceptors) => {
107
+ ctx = { ...ctx, methodName: 'Del' };
108
+ await events.onMatch(ctx);
109
+ return handleRedisAPIDelRequest(ctx, service, data, interceptors);
110
+ };
111
+ case 'Type':
112
+ return async (ctx, service, data, interceptors) => {
113
+ ctx = { ...ctx, methodName: 'Type' };
114
+ await events.onMatch(ctx);
115
+ return handleRedisAPITypeRequest(ctx, service, data, interceptors);
116
+ };
117
+ case 'IncrBy':
118
+ return async (ctx, service, data, interceptors) => {
119
+ ctx = { ...ctx, methodName: 'IncrBy' };
120
+ await events.onMatch(ctx);
121
+ return handleRedisAPIIncrByRequest(ctx, service, data, interceptors);
122
+ };
123
+ case 'HSet':
124
+ return async (ctx, service, data, interceptors) => {
125
+ ctx = { ...ctx, methodName: 'HSet' };
126
+ await events.onMatch(ctx);
127
+ return handleRedisAPIHSetRequest(ctx, service, data, interceptors);
128
+ };
129
+ case 'HGet':
130
+ return async (ctx, service, data, interceptors) => {
131
+ ctx = { ...ctx, methodName: 'HGet' };
132
+ await events.onMatch(ctx);
133
+ return handleRedisAPIHGetRequest(ctx, service, data, interceptors);
134
+ };
135
+ case 'HGetAll':
136
+ return async (ctx, service, data, interceptors) => {
137
+ ctx = { ...ctx, methodName: 'HGetAll' };
138
+ await events.onMatch(ctx);
139
+ return handleRedisAPIHGetAllRequest(ctx, service, data, interceptors);
140
+ };
141
+ case 'HDel':
142
+ return async (ctx, service, data, interceptors) => {
143
+ ctx = { ...ctx, methodName: 'HDel' };
144
+ await events.onMatch(ctx);
145
+ return handleRedisAPIHDelRequest(ctx, service, data, interceptors);
146
+ };
147
+ case 'HScan':
148
+ return async (ctx, service, data, interceptors) => {
149
+ ctx = { ...ctx, methodName: 'HScan' };
150
+ await events.onMatch(ctx);
151
+ return handleRedisAPIHScanRequest(ctx, service, data, interceptors);
152
+ };
153
+ case 'HKeys':
154
+ return async (ctx, service, data, interceptors) => {
155
+ ctx = { ...ctx, methodName: 'HKeys' };
156
+ await events.onMatch(ctx);
157
+ return handleRedisAPIHKeysRequest(ctx, service, data, interceptors);
158
+ };
159
+ case 'HIncrBy':
160
+ return async (ctx, service, data, interceptors) => {
161
+ ctx = { ...ctx, methodName: 'HIncrBy' };
162
+ await events.onMatch(ctx);
163
+ return handleRedisAPIHIncrByRequest(ctx, service, data, interceptors);
164
+ };
165
+ case 'HLen':
166
+ return async (ctx, service, data, interceptors) => {
167
+ ctx = { ...ctx, methodName: 'HLen' };
168
+ await events.onMatch(ctx);
169
+ return handleRedisAPIHLenRequest(ctx, service, data, interceptors);
170
+ };
171
+ case 'Multi':
172
+ return async (ctx, service, data, interceptors) => {
173
+ ctx = { ...ctx, methodName: 'Multi' };
174
+ await events.onMatch(ctx);
175
+ return handleRedisAPIMultiRequest(ctx, service, data, interceptors);
176
+ };
177
+ case 'Exec':
178
+ return async (ctx, service, data, interceptors) => {
179
+ ctx = { ...ctx, methodName: 'Exec' };
180
+ await events.onMatch(ctx);
181
+ return handleRedisAPIExecRequest(ctx, service, data, interceptors);
182
+ };
183
+ case 'Discard':
184
+ return async (ctx, service, data, interceptors) => {
185
+ ctx = { ...ctx, methodName: 'Discard' };
186
+ await events.onMatch(ctx);
187
+ return handleRedisAPIDiscardRequest(ctx, service, data, interceptors);
188
+ };
189
+ case 'Watch':
190
+ return async (ctx, service, data, interceptors) => {
191
+ ctx = { ...ctx, methodName: 'Watch' };
192
+ await events.onMatch(ctx);
193
+ return handleRedisAPIWatchRequest(ctx, service, data, interceptors);
194
+ };
195
+ case 'Unwatch':
196
+ return async (ctx, service, data, interceptors) => {
197
+ ctx = { ...ctx, methodName: 'Unwatch' };
198
+ await events.onMatch(ctx);
199
+ return handleRedisAPIUnwatchRequest(ctx, service, data, interceptors);
200
+ };
201
+ case 'GetRange':
202
+ return async (ctx, service, data, interceptors) => {
203
+ ctx = { ...ctx, methodName: 'GetRange' };
204
+ await events.onMatch(ctx);
205
+ return handleRedisAPIGetRangeRequest(ctx, service, data, interceptors);
206
+ };
207
+ case 'SetRange':
208
+ return async (ctx, service, data, interceptors) => {
209
+ ctx = { ...ctx, methodName: 'SetRange' };
210
+ await events.onMatch(ctx);
211
+ return handleRedisAPISetRangeRequest(ctx, service, data, interceptors);
212
+ };
213
+ case 'Strlen':
214
+ return async (ctx, service, data, interceptors) => {
215
+ ctx = { ...ctx, methodName: 'Strlen' };
216
+ await events.onMatch(ctx);
217
+ return handleRedisAPIStrlenRequest(ctx, service, data, interceptors);
218
+ };
219
+ case 'MGet':
220
+ return async (ctx, service, data, interceptors) => {
221
+ ctx = { ...ctx, methodName: 'MGet' };
222
+ await events.onMatch(ctx);
223
+ return handleRedisAPIMGetRequest(ctx, service, data, interceptors);
224
+ };
225
+ case 'MSet':
226
+ return async (ctx, service, data, interceptors) => {
227
+ ctx = { ...ctx, methodName: 'MSet' };
228
+ await events.onMatch(ctx);
229
+ return handleRedisAPIMSetRequest(ctx, service, data, interceptors);
230
+ };
231
+ case 'Expire':
232
+ return async (ctx, service, data, interceptors) => {
233
+ ctx = { ...ctx, methodName: 'Expire' };
234
+ await events.onMatch(ctx);
235
+ return handleRedisAPIExpireRequest(ctx, service, data, interceptors);
236
+ };
237
+ case 'ExpireTime':
238
+ return async (ctx, service, data, interceptors) => {
239
+ ctx = { ...ctx, methodName: 'ExpireTime' };
240
+ await events.onMatch(ctx);
241
+ return handleRedisAPIExpireTimeRequest(ctx, service, data, interceptors);
242
+ };
243
+ case 'ZAdd':
244
+ return async (ctx, service, data, interceptors) => {
245
+ ctx = { ...ctx, methodName: 'ZAdd' };
246
+ await events.onMatch(ctx);
247
+ return handleRedisAPIZAddRequest(ctx, service, data, interceptors);
248
+ };
249
+ case 'ZCard':
250
+ return async (ctx, service, data, interceptors) => {
251
+ ctx = { ...ctx, methodName: 'ZCard' };
252
+ await events.onMatch(ctx);
253
+ return handleRedisAPIZCardRequest(ctx, service, data, interceptors);
254
+ };
255
+ case 'ZRange':
256
+ return async (ctx, service, data, interceptors) => {
257
+ ctx = { ...ctx, methodName: 'ZRange' };
258
+ await events.onMatch(ctx);
259
+ return handleRedisAPIZRangeRequest(ctx, service, data, interceptors);
260
+ };
261
+ case 'ZRem':
262
+ return async (ctx, service, data, interceptors) => {
263
+ ctx = { ...ctx, methodName: 'ZRem' };
264
+ await events.onMatch(ctx);
265
+ return handleRedisAPIZRemRequest(ctx, service, data, interceptors);
266
+ };
267
+ case 'ZRemRangeByLex':
268
+ return async (ctx, service, data, interceptors) => {
269
+ ctx = { ...ctx, methodName: 'ZRemRangeByLex' };
270
+ await events.onMatch(ctx);
271
+ return handleRedisAPIZRemRangeByLexRequest(ctx, service, data, interceptors);
272
+ };
273
+ case 'ZRemRangeByRank':
274
+ return async (ctx, service, data, interceptors) => {
275
+ ctx = { ...ctx, methodName: 'ZRemRangeByRank' };
276
+ await events.onMatch(ctx);
277
+ return handleRedisAPIZRemRangeByRankRequest(ctx, service, data, interceptors);
278
+ };
279
+ case 'ZRemRangeByScore':
280
+ return async (ctx, service, data, interceptors) => {
281
+ ctx = { ...ctx, methodName: 'ZRemRangeByScore' };
282
+ await events.onMatch(ctx);
283
+ return handleRedisAPIZRemRangeByScoreRequest(ctx, service, data, interceptors);
284
+ };
285
+ case 'ZScore':
286
+ return async (ctx, service, data, interceptors) => {
287
+ ctx = { ...ctx, methodName: 'ZScore' };
288
+ await events.onMatch(ctx);
289
+ return handleRedisAPIZScoreRequest(ctx, service, data, interceptors);
290
+ };
291
+ case 'ZRank':
292
+ return async (ctx, service, data, interceptors) => {
293
+ ctx = { ...ctx, methodName: 'ZRank' };
294
+ await events.onMatch(ctx);
295
+ return handleRedisAPIZRankRequest(ctx, service, data, interceptors);
296
+ };
297
+ case 'ZIncrBy':
298
+ return async (ctx, service, data, interceptors) => {
299
+ ctx = { ...ctx, methodName: 'ZIncrBy' };
300
+ await events.onMatch(ctx);
301
+ return handleRedisAPIZIncrByRequest(ctx, service, data, interceptors);
302
+ };
303
+ case 'ZScan':
304
+ return async (ctx, service, data, interceptors) => {
305
+ ctx = { ...ctx, methodName: 'ZScan' };
306
+ await events.onMatch(ctx);
307
+ return handleRedisAPIZScanRequest(ctx, service, data, interceptors);
308
+ };
309
+ default:
310
+ events.onNotFound();
311
+ const msg = `no handler found`;
312
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
313
+ }
314
+ }
315
+ function handleRedisAPIGetRequest(ctx, service, data, interceptors) {
316
+ switch (ctx.contentType) {
317
+ case TwirpContentType.JSON:
318
+ return handleRedisAPIGetJSON(ctx, service, data, interceptors);
319
+ case TwirpContentType.Protobuf:
320
+ return handleRedisAPIGetProtobuf(ctx, service, data, interceptors);
321
+ default:
322
+ const msg = 'unexpected Content-Type';
323
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
324
+ }
325
+ }
326
+ function handleRedisAPISetRequest(ctx, service, data, interceptors) {
327
+ switch (ctx.contentType) {
328
+ case TwirpContentType.JSON:
329
+ return handleRedisAPISetJSON(ctx, service, data, interceptors);
330
+ case TwirpContentType.Protobuf:
331
+ return handleRedisAPISetProtobuf(ctx, service, data, interceptors);
332
+ default:
333
+ const msg = 'unexpected Content-Type';
334
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
335
+ }
336
+ }
337
+ function handleRedisAPIDelRequest(ctx, service, data, interceptors) {
338
+ switch (ctx.contentType) {
339
+ case TwirpContentType.JSON:
340
+ return handleRedisAPIDelJSON(ctx, service, data, interceptors);
341
+ case TwirpContentType.Protobuf:
342
+ return handleRedisAPIDelProtobuf(ctx, service, data, interceptors);
343
+ default:
344
+ const msg = 'unexpected Content-Type';
345
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
346
+ }
347
+ }
348
+ function handleRedisAPITypeRequest(ctx, service, data, interceptors) {
349
+ switch (ctx.contentType) {
350
+ case TwirpContentType.JSON:
351
+ return handleRedisAPITypeJSON(ctx, service, data, interceptors);
352
+ case TwirpContentType.Protobuf:
353
+ return handleRedisAPITypeProtobuf(ctx, service, data, interceptors);
354
+ default:
355
+ const msg = 'unexpected Content-Type';
356
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
357
+ }
358
+ }
359
+ function handleRedisAPIIncrByRequest(ctx, service, data, interceptors) {
360
+ switch (ctx.contentType) {
361
+ case TwirpContentType.JSON:
362
+ return handleRedisAPIIncrByJSON(ctx, service, data, interceptors);
363
+ case TwirpContentType.Protobuf:
364
+ return handleRedisAPIIncrByProtobuf(ctx, service, data, interceptors);
365
+ default:
366
+ const msg = 'unexpected Content-Type';
367
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
368
+ }
369
+ }
370
+ function handleRedisAPIHSetRequest(ctx, service, data, interceptors) {
371
+ switch (ctx.contentType) {
372
+ case TwirpContentType.JSON:
373
+ return handleRedisAPIHSetJSON(ctx, service, data, interceptors);
374
+ case TwirpContentType.Protobuf:
375
+ return handleRedisAPIHSetProtobuf(ctx, service, data, interceptors);
376
+ default:
377
+ const msg = 'unexpected Content-Type';
378
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
379
+ }
380
+ }
381
+ function handleRedisAPIHGetRequest(ctx, service, data, interceptors) {
382
+ switch (ctx.contentType) {
383
+ case TwirpContentType.JSON:
384
+ return handleRedisAPIHGetJSON(ctx, service, data, interceptors);
385
+ case TwirpContentType.Protobuf:
386
+ return handleRedisAPIHGetProtobuf(ctx, service, data, interceptors);
387
+ default:
388
+ const msg = 'unexpected Content-Type';
389
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
390
+ }
391
+ }
392
+ function handleRedisAPIHGetAllRequest(ctx, service, data, interceptors) {
393
+ switch (ctx.contentType) {
394
+ case TwirpContentType.JSON:
395
+ return handleRedisAPIHGetAllJSON(ctx, service, data, interceptors);
396
+ case TwirpContentType.Protobuf:
397
+ return handleRedisAPIHGetAllProtobuf(ctx, service, data, interceptors);
398
+ default:
399
+ const msg = 'unexpected Content-Type';
400
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
401
+ }
402
+ }
403
+ function handleRedisAPIHDelRequest(ctx, service, data, interceptors) {
404
+ switch (ctx.contentType) {
405
+ case TwirpContentType.JSON:
406
+ return handleRedisAPIHDelJSON(ctx, service, data, interceptors);
407
+ case TwirpContentType.Protobuf:
408
+ return handleRedisAPIHDelProtobuf(ctx, service, data, interceptors);
409
+ default:
410
+ const msg = 'unexpected Content-Type';
411
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
412
+ }
413
+ }
414
+ function handleRedisAPIHScanRequest(ctx, service, data, interceptors) {
415
+ switch (ctx.contentType) {
416
+ case TwirpContentType.JSON:
417
+ return handleRedisAPIHScanJSON(ctx, service, data, interceptors);
418
+ case TwirpContentType.Protobuf:
419
+ return handleRedisAPIHScanProtobuf(ctx, service, data, interceptors);
420
+ default:
421
+ const msg = 'unexpected Content-Type';
422
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
423
+ }
424
+ }
425
+ function handleRedisAPIHKeysRequest(ctx, service, data, interceptors) {
426
+ switch (ctx.contentType) {
427
+ case TwirpContentType.JSON:
428
+ return handleRedisAPIHKeysJSON(ctx, service, data, interceptors);
429
+ case TwirpContentType.Protobuf:
430
+ return handleRedisAPIHKeysProtobuf(ctx, service, data, interceptors);
431
+ default:
432
+ const msg = 'unexpected Content-Type';
433
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
434
+ }
435
+ }
436
+ function handleRedisAPIHIncrByRequest(ctx, service, data, interceptors) {
437
+ switch (ctx.contentType) {
438
+ case TwirpContentType.JSON:
439
+ return handleRedisAPIHIncrByJSON(ctx, service, data, interceptors);
440
+ case TwirpContentType.Protobuf:
441
+ return handleRedisAPIHIncrByProtobuf(ctx, service, data, interceptors);
442
+ default:
443
+ const msg = 'unexpected Content-Type';
444
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
445
+ }
446
+ }
447
+ function handleRedisAPIHLenRequest(ctx, service, data, interceptors) {
448
+ switch (ctx.contentType) {
449
+ case TwirpContentType.JSON:
450
+ return handleRedisAPIHLenJSON(ctx, service, data, interceptors);
451
+ case TwirpContentType.Protobuf:
452
+ return handleRedisAPIHLenProtobuf(ctx, service, data, interceptors);
453
+ default:
454
+ const msg = 'unexpected Content-Type';
455
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
456
+ }
457
+ }
458
+ function handleRedisAPIMultiRequest(ctx, service, data, interceptors) {
459
+ switch (ctx.contentType) {
460
+ case TwirpContentType.JSON:
461
+ return handleRedisAPIMultiJSON(ctx, service, data, interceptors);
462
+ case TwirpContentType.Protobuf:
463
+ return handleRedisAPIMultiProtobuf(ctx, service, data, interceptors);
464
+ default:
465
+ const msg = 'unexpected Content-Type';
466
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
467
+ }
468
+ }
469
+ function handleRedisAPIExecRequest(ctx, service, data, interceptors) {
470
+ switch (ctx.contentType) {
471
+ case TwirpContentType.JSON:
472
+ return handleRedisAPIExecJSON(ctx, service, data, interceptors);
473
+ case TwirpContentType.Protobuf:
474
+ return handleRedisAPIExecProtobuf(ctx, service, data, interceptors);
475
+ default:
476
+ const msg = 'unexpected Content-Type';
477
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
478
+ }
479
+ }
480
+ function handleRedisAPIDiscardRequest(ctx, service, data, interceptors) {
481
+ switch (ctx.contentType) {
482
+ case TwirpContentType.JSON:
483
+ return handleRedisAPIDiscardJSON(ctx, service, data, interceptors);
484
+ case TwirpContentType.Protobuf:
485
+ return handleRedisAPIDiscardProtobuf(ctx, service, data, interceptors);
486
+ default:
487
+ const msg = 'unexpected Content-Type';
488
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
489
+ }
490
+ }
491
+ function handleRedisAPIWatchRequest(ctx, service, data, interceptors) {
492
+ switch (ctx.contentType) {
493
+ case TwirpContentType.JSON:
494
+ return handleRedisAPIWatchJSON(ctx, service, data, interceptors);
495
+ case TwirpContentType.Protobuf:
496
+ return handleRedisAPIWatchProtobuf(ctx, service, data, interceptors);
497
+ default:
498
+ const msg = 'unexpected Content-Type';
499
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
500
+ }
501
+ }
502
+ function handleRedisAPIUnwatchRequest(ctx, service, data, interceptors) {
503
+ switch (ctx.contentType) {
504
+ case TwirpContentType.JSON:
505
+ return handleRedisAPIUnwatchJSON(ctx, service, data, interceptors);
506
+ case TwirpContentType.Protobuf:
507
+ return handleRedisAPIUnwatchProtobuf(ctx, service, data, interceptors);
508
+ default:
509
+ const msg = 'unexpected Content-Type';
510
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
511
+ }
512
+ }
513
+ function handleRedisAPIGetRangeRequest(ctx, service, data, interceptors) {
514
+ switch (ctx.contentType) {
515
+ case TwirpContentType.JSON:
516
+ return handleRedisAPIGetRangeJSON(ctx, service, data, interceptors);
517
+ case TwirpContentType.Protobuf:
518
+ return handleRedisAPIGetRangeProtobuf(ctx, service, data, interceptors);
519
+ default:
520
+ const msg = 'unexpected Content-Type';
521
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
522
+ }
523
+ }
524
+ function handleRedisAPISetRangeRequest(ctx, service, data, interceptors) {
525
+ switch (ctx.contentType) {
526
+ case TwirpContentType.JSON:
527
+ return handleRedisAPISetRangeJSON(ctx, service, data, interceptors);
528
+ case TwirpContentType.Protobuf:
529
+ return handleRedisAPISetRangeProtobuf(ctx, service, data, interceptors);
530
+ default:
531
+ const msg = 'unexpected Content-Type';
532
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
533
+ }
534
+ }
535
+ function handleRedisAPIStrlenRequest(ctx, service, data, interceptors) {
536
+ switch (ctx.contentType) {
537
+ case TwirpContentType.JSON:
538
+ return handleRedisAPIStrlenJSON(ctx, service, data, interceptors);
539
+ case TwirpContentType.Protobuf:
540
+ return handleRedisAPIStrlenProtobuf(ctx, service, data, interceptors);
541
+ default:
542
+ const msg = 'unexpected Content-Type';
543
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
544
+ }
545
+ }
546
+ function handleRedisAPIMGetRequest(ctx, service, data, interceptors) {
547
+ switch (ctx.contentType) {
548
+ case TwirpContentType.JSON:
549
+ return handleRedisAPIMGetJSON(ctx, service, data, interceptors);
550
+ case TwirpContentType.Protobuf:
551
+ return handleRedisAPIMGetProtobuf(ctx, service, data, interceptors);
552
+ default:
553
+ const msg = 'unexpected Content-Type';
554
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
555
+ }
556
+ }
557
+ function handleRedisAPIMSetRequest(ctx, service, data, interceptors) {
558
+ switch (ctx.contentType) {
559
+ case TwirpContentType.JSON:
560
+ return handleRedisAPIMSetJSON(ctx, service, data, interceptors);
561
+ case TwirpContentType.Protobuf:
562
+ return handleRedisAPIMSetProtobuf(ctx, service, data, interceptors);
563
+ default:
564
+ const msg = 'unexpected Content-Type';
565
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
566
+ }
567
+ }
568
+ function handleRedisAPIExpireRequest(ctx, service, data, interceptors) {
569
+ switch (ctx.contentType) {
570
+ case TwirpContentType.JSON:
571
+ return handleRedisAPIExpireJSON(ctx, service, data, interceptors);
572
+ case TwirpContentType.Protobuf:
573
+ return handleRedisAPIExpireProtobuf(ctx, service, data, interceptors);
574
+ default:
575
+ const msg = 'unexpected Content-Type';
576
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
577
+ }
578
+ }
579
+ function handleRedisAPIExpireTimeRequest(ctx, service, data, interceptors) {
580
+ switch (ctx.contentType) {
581
+ case TwirpContentType.JSON:
582
+ return handleRedisAPIExpireTimeJSON(ctx, service, data, interceptors);
583
+ case TwirpContentType.Protobuf:
584
+ return handleRedisAPIExpireTimeProtobuf(ctx, service, data, interceptors);
585
+ default:
586
+ const msg = 'unexpected Content-Type';
587
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
588
+ }
589
+ }
590
+ function handleRedisAPIZAddRequest(ctx, service, data, interceptors) {
591
+ switch (ctx.contentType) {
592
+ case TwirpContentType.JSON:
593
+ return handleRedisAPIZAddJSON(ctx, service, data, interceptors);
594
+ case TwirpContentType.Protobuf:
595
+ return handleRedisAPIZAddProtobuf(ctx, service, data, interceptors);
596
+ default:
597
+ const msg = 'unexpected Content-Type';
598
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
599
+ }
600
+ }
601
+ function handleRedisAPIZCardRequest(ctx, service, data, interceptors) {
602
+ switch (ctx.contentType) {
603
+ case TwirpContentType.JSON:
604
+ return handleRedisAPIZCardJSON(ctx, service, data, interceptors);
605
+ case TwirpContentType.Protobuf:
606
+ return handleRedisAPIZCardProtobuf(ctx, service, data, interceptors);
607
+ default:
608
+ const msg = 'unexpected Content-Type';
609
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
610
+ }
611
+ }
612
+ function handleRedisAPIZRangeRequest(ctx, service, data, interceptors) {
613
+ switch (ctx.contentType) {
614
+ case TwirpContentType.JSON:
615
+ return handleRedisAPIZRangeJSON(ctx, service, data, interceptors);
616
+ case TwirpContentType.Protobuf:
617
+ return handleRedisAPIZRangeProtobuf(ctx, service, data, interceptors);
618
+ default:
619
+ const msg = 'unexpected Content-Type';
620
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
621
+ }
622
+ }
623
+ function handleRedisAPIZRemRequest(ctx, service, data, interceptors) {
624
+ switch (ctx.contentType) {
625
+ case TwirpContentType.JSON:
626
+ return handleRedisAPIZRemJSON(ctx, service, data, interceptors);
627
+ case TwirpContentType.Protobuf:
628
+ return handleRedisAPIZRemProtobuf(ctx, service, data, interceptors);
629
+ default:
630
+ const msg = 'unexpected Content-Type';
631
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
632
+ }
633
+ }
634
+ function handleRedisAPIZRemRangeByLexRequest(ctx, service, data, interceptors) {
635
+ switch (ctx.contentType) {
636
+ case TwirpContentType.JSON:
637
+ return handleRedisAPIZRemRangeByLexJSON(ctx, service, data, interceptors);
638
+ case TwirpContentType.Protobuf:
639
+ return handleRedisAPIZRemRangeByLexProtobuf(ctx, service, data, interceptors);
640
+ default:
641
+ const msg = 'unexpected Content-Type';
642
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
643
+ }
644
+ }
645
+ function handleRedisAPIZRemRangeByRankRequest(ctx, service, data, interceptors) {
646
+ switch (ctx.contentType) {
647
+ case TwirpContentType.JSON:
648
+ return handleRedisAPIZRemRangeByRankJSON(ctx, service, data, interceptors);
649
+ case TwirpContentType.Protobuf:
650
+ return handleRedisAPIZRemRangeByRankProtobuf(ctx, service, data, interceptors);
651
+ default:
652
+ const msg = 'unexpected Content-Type';
653
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
654
+ }
655
+ }
656
+ function handleRedisAPIZRemRangeByScoreRequest(ctx, service, data, interceptors) {
657
+ switch (ctx.contentType) {
658
+ case TwirpContentType.JSON:
659
+ return handleRedisAPIZRemRangeByScoreJSON(ctx, service, data, interceptors);
660
+ case TwirpContentType.Protobuf:
661
+ return handleRedisAPIZRemRangeByScoreProtobuf(ctx, service, data, interceptors);
662
+ default:
663
+ const msg = 'unexpected Content-Type';
664
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
665
+ }
666
+ }
667
+ function handleRedisAPIZScoreRequest(ctx, service, data, interceptors) {
668
+ switch (ctx.contentType) {
669
+ case TwirpContentType.JSON:
670
+ return handleRedisAPIZScoreJSON(ctx, service, data, interceptors);
671
+ case TwirpContentType.Protobuf:
672
+ return handleRedisAPIZScoreProtobuf(ctx, service, data, interceptors);
673
+ default:
674
+ const msg = 'unexpected Content-Type';
675
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
676
+ }
677
+ }
678
+ function handleRedisAPIZRankRequest(ctx, service, data, interceptors) {
679
+ switch (ctx.contentType) {
680
+ case TwirpContentType.JSON:
681
+ return handleRedisAPIZRankJSON(ctx, service, data, interceptors);
682
+ case TwirpContentType.Protobuf:
683
+ return handleRedisAPIZRankProtobuf(ctx, service, data, interceptors);
684
+ default:
685
+ const msg = 'unexpected Content-Type';
686
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
687
+ }
688
+ }
689
+ function handleRedisAPIZIncrByRequest(ctx, service, data, interceptors) {
690
+ switch (ctx.contentType) {
691
+ case TwirpContentType.JSON:
692
+ return handleRedisAPIZIncrByJSON(ctx, service, data, interceptors);
693
+ case TwirpContentType.Protobuf:
694
+ return handleRedisAPIZIncrByProtobuf(ctx, service, data, interceptors);
695
+ default:
696
+ const msg = 'unexpected Content-Type';
697
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
698
+ }
699
+ }
700
+ function handleRedisAPIZScanRequest(ctx, service, data, interceptors) {
701
+ switch (ctx.contentType) {
702
+ case TwirpContentType.JSON:
703
+ return handleRedisAPIZScanJSON(ctx, service, data, interceptors);
704
+ case TwirpContentType.Protobuf:
705
+ return handleRedisAPIZScanProtobuf(ctx, service, data, interceptors);
706
+ default:
707
+ const msg = 'unexpected Content-Type';
708
+ throw new TwirpError(TwirpErrorCode.BadRoute, msg);
709
+ }
710
+ }
711
+ async function handleRedisAPIGetJSON(ctx, service, data, interceptors) {
712
+ let request;
713
+ let response;
714
+ try {
715
+ const body = JSON.parse(data.toString() || '{}');
716
+ request = KeyRequest.fromJSON(body);
717
+ }
718
+ catch (e) {
719
+ if (e instanceof Error) {
720
+ const msg = 'the json request could not be decoded';
721
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
722
+ }
723
+ }
724
+ if (interceptors && interceptors.length > 0) {
725
+ const interceptor = chainInterceptors(...interceptors);
726
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
727
+ return service.Get(ctx, inputReq);
728
+ });
729
+ }
730
+ else {
731
+ response = await service.Get(ctx, request);
732
+ }
733
+ return JSON.stringify(StringValue.toJSON(response));
734
+ }
735
+ async function handleRedisAPISetJSON(ctx, service, data, interceptors) {
736
+ let request;
737
+ let response;
738
+ try {
739
+ const body = JSON.parse(data.toString() || '{}');
740
+ request = SetRequest.fromJSON(body);
741
+ }
742
+ catch (e) {
743
+ if (e instanceof Error) {
744
+ const msg = 'the json request could not be decoded';
745
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
746
+ }
747
+ }
748
+ if (interceptors && interceptors.length > 0) {
749
+ const interceptor = chainInterceptors(...interceptors);
750
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
751
+ return service.Set(ctx, inputReq);
752
+ });
753
+ }
754
+ else {
755
+ response = await service.Set(ctx, request);
756
+ }
757
+ return JSON.stringify(StringValue.toJSON(response));
758
+ }
759
+ async function handleRedisAPIDelJSON(ctx, service, data, interceptors) {
760
+ let request;
761
+ let response;
762
+ try {
763
+ const body = JSON.parse(data.toString() || '{}');
764
+ request = KeysRequest.fromJSON(body);
765
+ }
766
+ catch (e) {
767
+ if (e instanceof Error) {
768
+ const msg = 'the json request could not be decoded';
769
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
770
+ }
771
+ }
772
+ if (interceptors && interceptors.length > 0) {
773
+ const interceptor = chainInterceptors(...interceptors);
774
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
775
+ return service.Del(ctx, inputReq);
776
+ });
777
+ }
778
+ else {
779
+ response = await service.Del(ctx, request);
780
+ }
781
+ return JSON.stringify(Int64Value.toJSON(response));
782
+ }
783
+ async function handleRedisAPITypeJSON(ctx, service, data, interceptors) {
784
+ let request;
785
+ let response;
786
+ try {
787
+ const body = JSON.parse(data.toString() || '{}');
788
+ request = KeyRequest.fromJSON(body);
789
+ }
790
+ catch (e) {
791
+ if (e instanceof Error) {
792
+ const msg = 'the json request could not be decoded';
793
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
794
+ }
795
+ }
796
+ if (interceptors && interceptors.length > 0) {
797
+ const interceptor = chainInterceptors(...interceptors);
798
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
799
+ return service.Type(ctx, inputReq);
800
+ });
801
+ }
802
+ else {
803
+ response = await service.Type(ctx, request);
804
+ }
805
+ return JSON.stringify(StringValue.toJSON(response));
806
+ }
807
+ async function handleRedisAPIIncrByJSON(ctx, service, data, interceptors) {
808
+ let request;
809
+ let response;
810
+ try {
811
+ const body = JSON.parse(data.toString() || '{}');
812
+ request = IncrByRequest.fromJSON(body);
813
+ }
814
+ catch (e) {
815
+ if (e instanceof Error) {
816
+ const msg = 'the json request could not be decoded';
817
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
818
+ }
819
+ }
820
+ if (interceptors && interceptors.length > 0) {
821
+ const interceptor = chainInterceptors(...interceptors);
822
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
823
+ return service.IncrBy(ctx, inputReq);
824
+ });
825
+ }
826
+ else {
827
+ response = await service.IncrBy(ctx, request);
828
+ }
829
+ return JSON.stringify(Int64Value.toJSON(response));
830
+ }
831
+ async function handleRedisAPIHSetJSON(ctx, service, data, interceptors) {
832
+ let request;
833
+ let response;
834
+ try {
835
+ const body = JSON.parse(data.toString() || '{}');
836
+ request = HSetRequest.fromJSON(body);
837
+ }
838
+ catch (e) {
839
+ if (e instanceof Error) {
840
+ const msg = 'the json request could not be decoded';
841
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
842
+ }
843
+ }
844
+ if (interceptors && interceptors.length > 0) {
845
+ const interceptor = chainInterceptors(...interceptors);
846
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
847
+ return service.HSet(ctx, inputReq);
848
+ });
849
+ }
850
+ else {
851
+ response = await service.HSet(ctx, request);
852
+ }
853
+ return JSON.stringify(Int64Value.toJSON(response));
854
+ }
855
+ async function handleRedisAPIHGetJSON(ctx, service, data, interceptors) {
856
+ let request;
857
+ let response;
858
+ try {
859
+ const body = JSON.parse(data.toString() || '{}');
860
+ request = HGetRequest.fromJSON(body);
861
+ }
862
+ catch (e) {
863
+ if (e instanceof Error) {
864
+ const msg = 'the json request could not be decoded';
865
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
866
+ }
867
+ }
868
+ if (interceptors && interceptors.length > 0) {
869
+ const interceptor = chainInterceptors(...interceptors);
870
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
871
+ return service.HGet(ctx, inputReq);
872
+ });
873
+ }
874
+ else {
875
+ response = await service.HGet(ctx, request);
876
+ }
877
+ return JSON.stringify(StringValue.toJSON(response));
878
+ }
879
+ async function handleRedisAPIHGetAllJSON(ctx, service, data, interceptors) {
880
+ let request;
881
+ let response;
882
+ try {
883
+ const body = JSON.parse(data.toString() || '{}');
884
+ request = KeyRequest.fromJSON(body);
885
+ }
886
+ catch (e) {
887
+ if (e instanceof Error) {
888
+ const msg = 'the json request could not be decoded';
889
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
890
+ }
891
+ }
892
+ if (interceptors && interceptors.length > 0) {
893
+ const interceptor = chainInterceptors(...interceptors);
894
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
895
+ return service.HGetAll(ctx, inputReq);
896
+ });
897
+ }
898
+ else {
899
+ response = await service.HGetAll(ctx, request);
900
+ }
901
+ return JSON.stringify(RedisFieldValues.toJSON(response));
902
+ }
903
+ async function handleRedisAPIHDelJSON(ctx, service, data, interceptors) {
904
+ let request;
905
+ let response;
906
+ try {
907
+ const body = JSON.parse(data.toString() || '{}');
908
+ request = HDelRequest.fromJSON(body);
909
+ }
910
+ catch (e) {
911
+ if (e instanceof Error) {
912
+ const msg = 'the json request could not be decoded';
913
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
914
+ }
915
+ }
916
+ if (interceptors && interceptors.length > 0) {
917
+ const interceptor = chainInterceptors(...interceptors);
918
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
919
+ return service.HDel(ctx, inputReq);
920
+ });
921
+ }
922
+ else {
923
+ response = await service.HDel(ctx, request);
924
+ }
925
+ return JSON.stringify(Int64Value.toJSON(response));
926
+ }
927
+ async function handleRedisAPIHScanJSON(ctx, service, data, interceptors) {
928
+ let request;
929
+ let response;
930
+ try {
931
+ const body = JSON.parse(data.toString() || '{}');
932
+ request = HScanRequest.fromJSON(body);
933
+ }
934
+ catch (e) {
935
+ if (e instanceof Error) {
936
+ const msg = 'the json request could not be decoded';
937
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
938
+ }
939
+ }
940
+ if (interceptors && interceptors.length > 0) {
941
+ const interceptor = chainInterceptors(...interceptors);
942
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
943
+ return service.HScan(ctx, inputReq);
944
+ });
945
+ }
946
+ else {
947
+ response = await service.HScan(ctx, request);
948
+ }
949
+ return JSON.stringify(HScanResponse.toJSON(response));
950
+ }
951
+ async function handleRedisAPIHKeysJSON(ctx, service, data, interceptors) {
952
+ let request;
953
+ let response;
954
+ try {
955
+ const body = JSON.parse(data.toString() || '{}');
956
+ request = KeyRequest.fromJSON(body);
957
+ }
958
+ catch (e) {
959
+ if (e instanceof Error) {
960
+ const msg = 'the json request could not be decoded';
961
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
962
+ }
963
+ }
964
+ if (interceptors && interceptors.length > 0) {
965
+ const interceptor = chainInterceptors(...interceptors);
966
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
967
+ return service.HKeys(ctx, inputReq);
968
+ });
969
+ }
970
+ else {
971
+ response = await service.HKeys(ctx, request);
972
+ }
973
+ return JSON.stringify(KeysResponse.toJSON(response));
974
+ }
975
+ async function handleRedisAPIHIncrByJSON(ctx, service, data, interceptors) {
976
+ let request;
977
+ let response;
978
+ try {
979
+ const body = JSON.parse(data.toString() || '{}');
980
+ request = HIncrByRequest.fromJSON(body);
981
+ }
982
+ catch (e) {
983
+ if (e instanceof Error) {
984
+ const msg = 'the json request could not be decoded';
985
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
986
+ }
987
+ }
988
+ if (interceptors && interceptors.length > 0) {
989
+ const interceptor = chainInterceptors(...interceptors);
990
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
991
+ return service.HIncrBy(ctx, inputReq);
992
+ });
993
+ }
994
+ else {
995
+ response = await service.HIncrBy(ctx, request);
996
+ }
997
+ return JSON.stringify(Int64Value.toJSON(response));
998
+ }
999
+ async function handleRedisAPIHLenJSON(ctx, service, data, interceptors) {
1000
+ let request;
1001
+ let response;
1002
+ try {
1003
+ const body = JSON.parse(data.toString() || '{}');
1004
+ request = KeyRequest.fromJSON(body);
1005
+ }
1006
+ catch (e) {
1007
+ if (e instanceof Error) {
1008
+ const msg = 'the json request could not be decoded';
1009
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1010
+ }
1011
+ }
1012
+ if (interceptors && interceptors.length > 0) {
1013
+ const interceptor = chainInterceptors(...interceptors);
1014
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1015
+ return service.HLen(ctx, inputReq);
1016
+ });
1017
+ }
1018
+ else {
1019
+ response = await service.HLen(ctx, request);
1020
+ }
1021
+ return JSON.stringify(Int64Value.toJSON(response));
1022
+ }
1023
+ async function handleRedisAPIMultiJSON(ctx, service, data, interceptors) {
1024
+ let request;
1025
+ let response;
1026
+ try {
1027
+ const body = JSON.parse(data.toString() || '{}');
1028
+ request = TransactionId.fromJSON(body);
1029
+ }
1030
+ catch (e) {
1031
+ if (e instanceof Error) {
1032
+ const msg = 'the json request could not be decoded';
1033
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1034
+ }
1035
+ }
1036
+ if (interceptors && interceptors.length > 0) {
1037
+ const interceptor = chainInterceptors(...interceptors);
1038
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1039
+ return service.Multi(ctx, inputReq);
1040
+ });
1041
+ }
1042
+ else {
1043
+ response = await service.Multi(ctx, request);
1044
+ }
1045
+ return JSON.stringify(Empty.toJSON(response));
1046
+ }
1047
+ async function handleRedisAPIExecJSON(ctx, service, data, interceptors) {
1048
+ let request;
1049
+ let response;
1050
+ try {
1051
+ const body = JSON.parse(data.toString() || '{}');
1052
+ request = TransactionId.fromJSON(body);
1053
+ }
1054
+ catch (e) {
1055
+ if (e instanceof Error) {
1056
+ const msg = 'the json request could not be decoded';
1057
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1058
+ }
1059
+ }
1060
+ if (interceptors && interceptors.length > 0) {
1061
+ const interceptor = chainInterceptors(...interceptors);
1062
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1063
+ return service.Exec(ctx, inputReq);
1064
+ });
1065
+ }
1066
+ else {
1067
+ response = await service.Exec(ctx, request);
1068
+ }
1069
+ return JSON.stringify(TransactionResponses.toJSON(response));
1070
+ }
1071
+ async function handleRedisAPIDiscardJSON(ctx, service, data, interceptors) {
1072
+ let request;
1073
+ let response;
1074
+ try {
1075
+ const body = JSON.parse(data.toString() || '{}');
1076
+ request = TransactionId.fromJSON(body);
1077
+ }
1078
+ catch (e) {
1079
+ if (e instanceof Error) {
1080
+ const msg = 'the json request could not be decoded';
1081
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1082
+ }
1083
+ }
1084
+ if (interceptors && interceptors.length > 0) {
1085
+ const interceptor = chainInterceptors(...interceptors);
1086
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1087
+ return service.Discard(ctx, inputReq);
1088
+ });
1089
+ }
1090
+ else {
1091
+ response = await service.Discard(ctx, request);
1092
+ }
1093
+ return JSON.stringify(Empty.toJSON(response));
1094
+ }
1095
+ async function handleRedisAPIWatchJSON(ctx, service, data, interceptors) {
1096
+ let request;
1097
+ let response;
1098
+ try {
1099
+ const body = JSON.parse(data.toString() || '{}');
1100
+ request = WatchRequest.fromJSON(body);
1101
+ }
1102
+ catch (e) {
1103
+ if (e instanceof Error) {
1104
+ const msg = 'the json request could not be decoded';
1105
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1106
+ }
1107
+ }
1108
+ if (interceptors && interceptors.length > 0) {
1109
+ const interceptor = chainInterceptors(...interceptors);
1110
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1111
+ return service.Watch(ctx, inputReq);
1112
+ });
1113
+ }
1114
+ else {
1115
+ response = await service.Watch(ctx, request);
1116
+ }
1117
+ return JSON.stringify(TransactionId.toJSON(response));
1118
+ }
1119
+ async function handleRedisAPIUnwatchJSON(ctx, service, data, interceptors) {
1120
+ let request;
1121
+ let response;
1122
+ try {
1123
+ const body = JSON.parse(data.toString() || '{}');
1124
+ request = TransactionId.fromJSON(body);
1125
+ }
1126
+ catch (e) {
1127
+ if (e instanceof Error) {
1128
+ const msg = 'the json request could not be decoded';
1129
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1130
+ }
1131
+ }
1132
+ if (interceptors && interceptors.length > 0) {
1133
+ const interceptor = chainInterceptors(...interceptors);
1134
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1135
+ return service.Unwatch(ctx, inputReq);
1136
+ });
1137
+ }
1138
+ else {
1139
+ response = await service.Unwatch(ctx, request);
1140
+ }
1141
+ return JSON.stringify(Empty.toJSON(response));
1142
+ }
1143
+ async function handleRedisAPIGetRangeJSON(ctx, service, data, interceptors) {
1144
+ let request;
1145
+ let response;
1146
+ try {
1147
+ const body = JSON.parse(data.toString() || '{}');
1148
+ request = KeyRangeRequest.fromJSON(body);
1149
+ }
1150
+ catch (e) {
1151
+ if (e instanceof Error) {
1152
+ const msg = 'the json request could not be decoded';
1153
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1154
+ }
1155
+ }
1156
+ if (interceptors && interceptors.length > 0) {
1157
+ const interceptor = chainInterceptors(...interceptors);
1158
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1159
+ return service.GetRange(ctx, inputReq);
1160
+ });
1161
+ }
1162
+ else {
1163
+ response = await service.GetRange(ctx, request);
1164
+ }
1165
+ return JSON.stringify(StringValue.toJSON(response));
1166
+ }
1167
+ async function handleRedisAPISetRangeJSON(ctx, service, data, interceptors) {
1168
+ let request;
1169
+ let response;
1170
+ try {
1171
+ const body = JSON.parse(data.toString() || '{}');
1172
+ request = SetRangeRequest.fromJSON(body);
1173
+ }
1174
+ catch (e) {
1175
+ if (e instanceof Error) {
1176
+ const msg = 'the json request could not be decoded';
1177
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1178
+ }
1179
+ }
1180
+ if (interceptors && interceptors.length > 0) {
1181
+ const interceptor = chainInterceptors(...interceptors);
1182
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1183
+ return service.SetRange(ctx, inputReq);
1184
+ });
1185
+ }
1186
+ else {
1187
+ response = await service.SetRange(ctx, request);
1188
+ }
1189
+ return JSON.stringify(Int64Value.toJSON(response));
1190
+ }
1191
+ async function handleRedisAPIStrlenJSON(ctx, service, data, interceptors) {
1192
+ let request;
1193
+ let response;
1194
+ try {
1195
+ const body = JSON.parse(data.toString() || '{}');
1196
+ request = KeyRequest.fromJSON(body);
1197
+ }
1198
+ catch (e) {
1199
+ if (e instanceof Error) {
1200
+ const msg = 'the json request could not be decoded';
1201
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1202
+ }
1203
+ }
1204
+ if (interceptors && interceptors.length > 0) {
1205
+ const interceptor = chainInterceptors(...interceptors);
1206
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1207
+ return service.Strlen(ctx, inputReq);
1208
+ });
1209
+ }
1210
+ else {
1211
+ response = await service.Strlen(ctx, request);
1212
+ }
1213
+ return JSON.stringify(Int64Value.toJSON(response));
1214
+ }
1215
+ async function handleRedisAPIMGetJSON(ctx, service, data, interceptors) {
1216
+ let request;
1217
+ let response;
1218
+ try {
1219
+ const body = JSON.parse(data.toString() || '{}');
1220
+ request = KeysRequest.fromJSON(body);
1221
+ }
1222
+ catch (e) {
1223
+ if (e instanceof Error) {
1224
+ const msg = 'the json request could not be decoded';
1225
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1226
+ }
1227
+ }
1228
+ if (interceptors && interceptors.length > 0) {
1229
+ const interceptor = chainInterceptors(...interceptors);
1230
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1231
+ return service.MGet(ctx, inputReq);
1232
+ });
1233
+ }
1234
+ else {
1235
+ response = await service.MGet(ctx, request);
1236
+ }
1237
+ return JSON.stringify(RedisValues.toJSON(response));
1238
+ }
1239
+ async function handleRedisAPIMSetJSON(ctx, service, data, interceptors) {
1240
+ let request;
1241
+ let response;
1242
+ try {
1243
+ const body = JSON.parse(data.toString() || '{}');
1244
+ request = KeyValuesRequest.fromJSON(body);
1245
+ }
1246
+ catch (e) {
1247
+ if (e instanceof Error) {
1248
+ const msg = 'the json request could not be decoded';
1249
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1250
+ }
1251
+ }
1252
+ if (interceptors && interceptors.length > 0) {
1253
+ const interceptor = chainInterceptors(...interceptors);
1254
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1255
+ return service.MSet(ctx, inputReq);
1256
+ });
1257
+ }
1258
+ else {
1259
+ response = await service.MSet(ctx, request);
1260
+ }
1261
+ return JSON.stringify(Empty.toJSON(response));
1262
+ }
1263
+ async function handleRedisAPIExpireJSON(ctx, service, data, interceptors) {
1264
+ let request;
1265
+ let response;
1266
+ try {
1267
+ const body = JSON.parse(data.toString() || '{}');
1268
+ request = ExpireRequest.fromJSON(body);
1269
+ }
1270
+ catch (e) {
1271
+ if (e instanceof Error) {
1272
+ const msg = 'the json request could not be decoded';
1273
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1274
+ }
1275
+ }
1276
+ if (interceptors && interceptors.length > 0) {
1277
+ const interceptor = chainInterceptors(...interceptors);
1278
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1279
+ return service.Expire(ctx, inputReq);
1280
+ });
1281
+ }
1282
+ else {
1283
+ response = await service.Expire(ctx, request);
1284
+ }
1285
+ return JSON.stringify(Empty.toJSON(response));
1286
+ }
1287
+ async function handleRedisAPIExpireTimeJSON(ctx, service, data, interceptors) {
1288
+ let request;
1289
+ let response;
1290
+ try {
1291
+ const body = JSON.parse(data.toString() || '{}');
1292
+ request = KeyRequest.fromJSON(body);
1293
+ }
1294
+ catch (e) {
1295
+ if (e instanceof Error) {
1296
+ const msg = 'the json request could not be decoded';
1297
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1298
+ }
1299
+ }
1300
+ if (interceptors && interceptors.length > 0) {
1301
+ const interceptor = chainInterceptors(...interceptors);
1302
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1303
+ return service.ExpireTime(ctx, inputReq);
1304
+ });
1305
+ }
1306
+ else {
1307
+ response = await service.ExpireTime(ctx, request);
1308
+ }
1309
+ return JSON.stringify(Int64Value.toJSON(response));
1310
+ }
1311
+ async function handleRedisAPIZAddJSON(ctx, service, data, interceptors) {
1312
+ let request;
1313
+ let response;
1314
+ try {
1315
+ const body = JSON.parse(data.toString() || '{}');
1316
+ request = ZAddRequest.fromJSON(body);
1317
+ }
1318
+ catch (e) {
1319
+ if (e instanceof Error) {
1320
+ const msg = 'the json request could not be decoded';
1321
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1322
+ }
1323
+ }
1324
+ if (interceptors && interceptors.length > 0) {
1325
+ const interceptor = chainInterceptors(...interceptors);
1326
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1327
+ return service.ZAdd(ctx, inputReq);
1328
+ });
1329
+ }
1330
+ else {
1331
+ response = await service.ZAdd(ctx, request);
1332
+ }
1333
+ return JSON.stringify(Int64Value.toJSON(response));
1334
+ }
1335
+ async function handleRedisAPIZCardJSON(ctx, service, data, interceptors) {
1336
+ let request;
1337
+ let response;
1338
+ try {
1339
+ const body = JSON.parse(data.toString() || '{}');
1340
+ request = KeyRequest.fromJSON(body);
1341
+ }
1342
+ catch (e) {
1343
+ if (e instanceof Error) {
1344
+ const msg = 'the json request could not be decoded';
1345
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1346
+ }
1347
+ }
1348
+ if (interceptors && interceptors.length > 0) {
1349
+ const interceptor = chainInterceptors(...interceptors);
1350
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1351
+ return service.ZCard(ctx, inputReq);
1352
+ });
1353
+ }
1354
+ else {
1355
+ response = await service.ZCard(ctx, request);
1356
+ }
1357
+ return JSON.stringify(Int64Value.toJSON(response));
1358
+ }
1359
+ async function handleRedisAPIZRangeJSON(ctx, service, data, interceptors) {
1360
+ let request;
1361
+ let response;
1362
+ try {
1363
+ const body = JSON.parse(data.toString() || '{}');
1364
+ request = ZRangeRequest.fromJSON(body);
1365
+ }
1366
+ catch (e) {
1367
+ if (e instanceof Error) {
1368
+ const msg = 'the json request could not be decoded';
1369
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1370
+ }
1371
+ }
1372
+ if (interceptors && interceptors.length > 0) {
1373
+ const interceptor = chainInterceptors(...interceptors);
1374
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1375
+ return service.ZRange(ctx, inputReq);
1376
+ });
1377
+ }
1378
+ else {
1379
+ response = await service.ZRange(ctx, request);
1380
+ }
1381
+ return JSON.stringify(ZMembers.toJSON(response));
1382
+ }
1383
+ async function handleRedisAPIZRemJSON(ctx, service, data, interceptors) {
1384
+ let request;
1385
+ let response;
1386
+ try {
1387
+ const body = JSON.parse(data.toString() || '{}');
1388
+ request = ZRemRequest.fromJSON(body);
1389
+ }
1390
+ catch (e) {
1391
+ if (e instanceof Error) {
1392
+ const msg = 'the json request could not be decoded';
1393
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1394
+ }
1395
+ }
1396
+ if (interceptors && interceptors.length > 0) {
1397
+ const interceptor = chainInterceptors(...interceptors);
1398
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1399
+ return service.ZRem(ctx, inputReq);
1400
+ });
1401
+ }
1402
+ else {
1403
+ response = await service.ZRem(ctx, request);
1404
+ }
1405
+ return JSON.stringify(Int64Value.toJSON(response));
1406
+ }
1407
+ async function handleRedisAPIZRemRangeByLexJSON(ctx, service, data, interceptors) {
1408
+ let request;
1409
+ let response;
1410
+ try {
1411
+ const body = JSON.parse(data.toString() || '{}');
1412
+ request = ZRemRangeByLexRequest.fromJSON(body);
1413
+ }
1414
+ catch (e) {
1415
+ if (e instanceof Error) {
1416
+ const msg = 'the json request could not be decoded';
1417
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1418
+ }
1419
+ }
1420
+ if (interceptors && interceptors.length > 0) {
1421
+ const interceptor = chainInterceptors(...interceptors);
1422
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1423
+ return service.ZRemRangeByLex(ctx, inputReq);
1424
+ });
1425
+ }
1426
+ else {
1427
+ response = await service.ZRemRangeByLex(ctx, request);
1428
+ }
1429
+ return JSON.stringify(Int64Value.toJSON(response));
1430
+ }
1431
+ async function handleRedisAPIZRemRangeByRankJSON(ctx, service, data, interceptors) {
1432
+ let request;
1433
+ let response;
1434
+ try {
1435
+ const body = JSON.parse(data.toString() || '{}');
1436
+ request = ZRemRangeByRankRequest.fromJSON(body);
1437
+ }
1438
+ catch (e) {
1439
+ if (e instanceof Error) {
1440
+ const msg = 'the json request could not be decoded';
1441
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1442
+ }
1443
+ }
1444
+ if (interceptors && interceptors.length > 0) {
1445
+ const interceptor = chainInterceptors(...interceptors);
1446
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1447
+ return service.ZRemRangeByRank(ctx, inputReq);
1448
+ });
1449
+ }
1450
+ else {
1451
+ response = await service.ZRemRangeByRank(ctx, request);
1452
+ }
1453
+ return JSON.stringify(Int64Value.toJSON(response));
1454
+ }
1455
+ async function handleRedisAPIZRemRangeByScoreJSON(ctx, service, data, interceptors) {
1456
+ let request;
1457
+ let response;
1458
+ try {
1459
+ const body = JSON.parse(data.toString() || '{}');
1460
+ request = ZRemRangeByScoreRequest.fromJSON(body);
1461
+ }
1462
+ catch (e) {
1463
+ if (e instanceof Error) {
1464
+ const msg = 'the json request could not be decoded';
1465
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1466
+ }
1467
+ }
1468
+ if (interceptors && interceptors.length > 0) {
1469
+ const interceptor = chainInterceptors(...interceptors);
1470
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1471
+ return service.ZRemRangeByScore(ctx, inputReq);
1472
+ });
1473
+ }
1474
+ else {
1475
+ response = await service.ZRemRangeByScore(ctx, request);
1476
+ }
1477
+ return JSON.stringify(Int64Value.toJSON(response));
1478
+ }
1479
+ async function handleRedisAPIZScoreJSON(ctx, service, data, interceptors) {
1480
+ let request;
1481
+ let response;
1482
+ try {
1483
+ const body = JSON.parse(data.toString() || '{}');
1484
+ request = ZScoreRequest.fromJSON(body);
1485
+ }
1486
+ catch (e) {
1487
+ if (e instanceof Error) {
1488
+ const msg = 'the json request could not be decoded';
1489
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1490
+ }
1491
+ }
1492
+ if (interceptors && interceptors.length > 0) {
1493
+ const interceptor = chainInterceptors(...interceptors);
1494
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1495
+ return service.ZScore(ctx, inputReq);
1496
+ });
1497
+ }
1498
+ else {
1499
+ response = await service.ZScore(ctx, request);
1500
+ }
1501
+ return JSON.stringify(DoubleValue.toJSON(response));
1502
+ }
1503
+ async function handleRedisAPIZRankJSON(ctx, service, data, interceptors) {
1504
+ let request;
1505
+ let response;
1506
+ try {
1507
+ const body = JSON.parse(data.toString() || '{}');
1508
+ request = ZRankRequest.fromJSON(body);
1509
+ }
1510
+ catch (e) {
1511
+ if (e instanceof Error) {
1512
+ const msg = 'the json request could not be decoded';
1513
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1514
+ }
1515
+ }
1516
+ if (interceptors && interceptors.length > 0) {
1517
+ const interceptor = chainInterceptors(...interceptors);
1518
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1519
+ return service.ZRank(ctx, inputReq);
1520
+ });
1521
+ }
1522
+ else {
1523
+ response = await service.ZRank(ctx, request);
1524
+ }
1525
+ return JSON.stringify(Int64Value.toJSON(response));
1526
+ }
1527
+ async function handleRedisAPIZIncrByJSON(ctx, service, data, interceptors) {
1528
+ let request;
1529
+ let response;
1530
+ try {
1531
+ const body = JSON.parse(data.toString() || '{}');
1532
+ request = ZIncrByRequest.fromJSON(body);
1533
+ }
1534
+ catch (e) {
1535
+ if (e instanceof Error) {
1536
+ const msg = 'the json request could not be decoded';
1537
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1538
+ }
1539
+ }
1540
+ if (interceptors && interceptors.length > 0) {
1541
+ const interceptor = chainInterceptors(...interceptors);
1542
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1543
+ return service.ZIncrBy(ctx, inputReq);
1544
+ });
1545
+ }
1546
+ else {
1547
+ response = await service.ZIncrBy(ctx, request);
1548
+ }
1549
+ return JSON.stringify(DoubleValue.toJSON(response));
1550
+ }
1551
+ async function handleRedisAPIZScanJSON(ctx, service, data, interceptors) {
1552
+ let request;
1553
+ let response;
1554
+ try {
1555
+ const body = JSON.parse(data.toString() || '{}');
1556
+ request = ZScanRequest.fromJSON(body);
1557
+ }
1558
+ catch (e) {
1559
+ if (e instanceof Error) {
1560
+ const msg = 'the json request could not be decoded';
1561
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1562
+ }
1563
+ }
1564
+ if (interceptors && interceptors.length > 0) {
1565
+ const interceptor = chainInterceptors(...interceptors);
1566
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1567
+ return service.ZScan(ctx, inputReq);
1568
+ });
1569
+ }
1570
+ else {
1571
+ response = await service.ZScan(ctx, request);
1572
+ }
1573
+ return JSON.stringify(ZScanResponse.toJSON(response));
1574
+ }
1575
+ async function handleRedisAPIGetProtobuf(ctx, service, data, interceptors) {
1576
+ let request;
1577
+ let response;
1578
+ try {
1579
+ request = KeyRequest.decode(data);
1580
+ }
1581
+ catch (e) {
1582
+ if (e instanceof Error) {
1583
+ const msg = 'the protobuf request could not be decoded';
1584
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1585
+ }
1586
+ }
1587
+ if (interceptors && interceptors.length > 0) {
1588
+ const interceptor = chainInterceptors(...interceptors);
1589
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1590
+ return service.Get(ctx, inputReq);
1591
+ });
1592
+ }
1593
+ else {
1594
+ response = await service.Get(ctx, request);
1595
+ }
1596
+ return Buffer.from(StringValue.encode(response).finish());
1597
+ }
1598
+ async function handleRedisAPISetProtobuf(ctx, service, data, interceptors) {
1599
+ let request;
1600
+ let response;
1601
+ try {
1602
+ request = SetRequest.decode(data);
1603
+ }
1604
+ catch (e) {
1605
+ if (e instanceof Error) {
1606
+ const msg = 'the protobuf request could not be decoded';
1607
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1608
+ }
1609
+ }
1610
+ if (interceptors && interceptors.length > 0) {
1611
+ const interceptor = chainInterceptors(...interceptors);
1612
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1613
+ return service.Set(ctx, inputReq);
1614
+ });
1615
+ }
1616
+ else {
1617
+ response = await service.Set(ctx, request);
1618
+ }
1619
+ return Buffer.from(StringValue.encode(response).finish());
1620
+ }
1621
+ async function handleRedisAPIDelProtobuf(ctx, service, data, interceptors) {
1622
+ let request;
1623
+ let response;
1624
+ try {
1625
+ request = KeysRequest.decode(data);
1626
+ }
1627
+ catch (e) {
1628
+ if (e instanceof Error) {
1629
+ const msg = 'the protobuf request could not be decoded';
1630
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1631
+ }
1632
+ }
1633
+ if (interceptors && interceptors.length > 0) {
1634
+ const interceptor = chainInterceptors(...interceptors);
1635
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1636
+ return service.Del(ctx, inputReq);
1637
+ });
1638
+ }
1639
+ else {
1640
+ response = await service.Del(ctx, request);
1641
+ }
1642
+ return Buffer.from(Int64Value.encode(response).finish());
1643
+ }
1644
+ async function handleRedisAPITypeProtobuf(ctx, service, data, interceptors) {
1645
+ let request;
1646
+ let response;
1647
+ try {
1648
+ request = KeyRequest.decode(data);
1649
+ }
1650
+ catch (e) {
1651
+ if (e instanceof Error) {
1652
+ const msg = 'the protobuf request could not be decoded';
1653
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1654
+ }
1655
+ }
1656
+ if (interceptors && interceptors.length > 0) {
1657
+ const interceptor = chainInterceptors(...interceptors);
1658
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1659
+ return service.Type(ctx, inputReq);
1660
+ });
1661
+ }
1662
+ else {
1663
+ response = await service.Type(ctx, request);
1664
+ }
1665
+ return Buffer.from(StringValue.encode(response).finish());
1666
+ }
1667
+ async function handleRedisAPIIncrByProtobuf(ctx, service, data, interceptors) {
1668
+ let request;
1669
+ let response;
1670
+ try {
1671
+ request = IncrByRequest.decode(data);
1672
+ }
1673
+ catch (e) {
1674
+ if (e instanceof Error) {
1675
+ const msg = 'the protobuf request could not be decoded';
1676
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1677
+ }
1678
+ }
1679
+ if (interceptors && interceptors.length > 0) {
1680
+ const interceptor = chainInterceptors(...interceptors);
1681
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1682
+ return service.IncrBy(ctx, inputReq);
1683
+ });
1684
+ }
1685
+ else {
1686
+ response = await service.IncrBy(ctx, request);
1687
+ }
1688
+ return Buffer.from(Int64Value.encode(response).finish());
1689
+ }
1690
+ async function handleRedisAPIHSetProtobuf(ctx, service, data, interceptors) {
1691
+ let request;
1692
+ let response;
1693
+ try {
1694
+ request = HSetRequest.decode(data);
1695
+ }
1696
+ catch (e) {
1697
+ if (e instanceof Error) {
1698
+ const msg = 'the protobuf request could not be decoded';
1699
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1700
+ }
1701
+ }
1702
+ if (interceptors && interceptors.length > 0) {
1703
+ const interceptor = chainInterceptors(...interceptors);
1704
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1705
+ return service.HSet(ctx, inputReq);
1706
+ });
1707
+ }
1708
+ else {
1709
+ response = await service.HSet(ctx, request);
1710
+ }
1711
+ return Buffer.from(Int64Value.encode(response).finish());
1712
+ }
1713
+ async function handleRedisAPIHGetProtobuf(ctx, service, data, interceptors) {
1714
+ let request;
1715
+ let response;
1716
+ try {
1717
+ request = HGetRequest.decode(data);
1718
+ }
1719
+ catch (e) {
1720
+ if (e instanceof Error) {
1721
+ const msg = 'the protobuf request could not be decoded';
1722
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1723
+ }
1724
+ }
1725
+ if (interceptors && interceptors.length > 0) {
1726
+ const interceptor = chainInterceptors(...interceptors);
1727
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1728
+ return service.HGet(ctx, inputReq);
1729
+ });
1730
+ }
1731
+ else {
1732
+ response = await service.HGet(ctx, request);
1733
+ }
1734
+ return Buffer.from(StringValue.encode(response).finish());
1735
+ }
1736
+ async function handleRedisAPIHGetAllProtobuf(ctx, service, data, interceptors) {
1737
+ let request;
1738
+ let response;
1739
+ try {
1740
+ request = KeyRequest.decode(data);
1741
+ }
1742
+ catch (e) {
1743
+ if (e instanceof Error) {
1744
+ const msg = 'the protobuf request could not be decoded';
1745
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1746
+ }
1747
+ }
1748
+ if (interceptors && interceptors.length > 0) {
1749
+ const interceptor = chainInterceptors(...interceptors);
1750
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1751
+ return service.HGetAll(ctx, inputReq);
1752
+ });
1753
+ }
1754
+ else {
1755
+ response = await service.HGetAll(ctx, request);
1756
+ }
1757
+ return Buffer.from(RedisFieldValues.encode(response).finish());
1758
+ }
1759
+ async function handleRedisAPIHDelProtobuf(ctx, service, data, interceptors) {
1760
+ let request;
1761
+ let response;
1762
+ try {
1763
+ request = HDelRequest.decode(data);
1764
+ }
1765
+ catch (e) {
1766
+ if (e instanceof Error) {
1767
+ const msg = 'the protobuf request could not be decoded';
1768
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1769
+ }
1770
+ }
1771
+ if (interceptors && interceptors.length > 0) {
1772
+ const interceptor = chainInterceptors(...interceptors);
1773
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1774
+ return service.HDel(ctx, inputReq);
1775
+ });
1776
+ }
1777
+ else {
1778
+ response = await service.HDel(ctx, request);
1779
+ }
1780
+ return Buffer.from(Int64Value.encode(response).finish());
1781
+ }
1782
+ async function handleRedisAPIHScanProtobuf(ctx, service, data, interceptors) {
1783
+ let request;
1784
+ let response;
1785
+ try {
1786
+ request = HScanRequest.decode(data);
1787
+ }
1788
+ catch (e) {
1789
+ if (e instanceof Error) {
1790
+ const msg = 'the protobuf request could not be decoded';
1791
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1792
+ }
1793
+ }
1794
+ if (interceptors && interceptors.length > 0) {
1795
+ const interceptor = chainInterceptors(...interceptors);
1796
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1797
+ return service.HScan(ctx, inputReq);
1798
+ });
1799
+ }
1800
+ else {
1801
+ response = await service.HScan(ctx, request);
1802
+ }
1803
+ return Buffer.from(HScanResponse.encode(response).finish());
1804
+ }
1805
+ async function handleRedisAPIHKeysProtobuf(ctx, service, data, interceptors) {
1806
+ let request;
1807
+ let response;
1808
+ try {
1809
+ request = KeyRequest.decode(data);
1810
+ }
1811
+ catch (e) {
1812
+ if (e instanceof Error) {
1813
+ const msg = 'the protobuf request could not be decoded';
1814
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1815
+ }
1816
+ }
1817
+ if (interceptors && interceptors.length > 0) {
1818
+ const interceptor = chainInterceptors(...interceptors);
1819
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1820
+ return service.HKeys(ctx, inputReq);
1821
+ });
1822
+ }
1823
+ else {
1824
+ response = await service.HKeys(ctx, request);
1825
+ }
1826
+ return Buffer.from(KeysResponse.encode(response).finish());
1827
+ }
1828
+ async function handleRedisAPIHIncrByProtobuf(ctx, service, data, interceptors) {
1829
+ let request;
1830
+ let response;
1831
+ try {
1832
+ request = HIncrByRequest.decode(data);
1833
+ }
1834
+ catch (e) {
1835
+ if (e instanceof Error) {
1836
+ const msg = 'the protobuf request could not be decoded';
1837
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1838
+ }
1839
+ }
1840
+ if (interceptors && interceptors.length > 0) {
1841
+ const interceptor = chainInterceptors(...interceptors);
1842
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1843
+ return service.HIncrBy(ctx, inputReq);
1844
+ });
1845
+ }
1846
+ else {
1847
+ response = await service.HIncrBy(ctx, request);
1848
+ }
1849
+ return Buffer.from(Int64Value.encode(response).finish());
1850
+ }
1851
+ async function handleRedisAPIHLenProtobuf(ctx, service, data, interceptors) {
1852
+ let request;
1853
+ let response;
1854
+ try {
1855
+ request = KeyRequest.decode(data);
1856
+ }
1857
+ catch (e) {
1858
+ if (e instanceof Error) {
1859
+ const msg = 'the protobuf request could not be decoded';
1860
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1861
+ }
1862
+ }
1863
+ if (interceptors && interceptors.length > 0) {
1864
+ const interceptor = chainInterceptors(...interceptors);
1865
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1866
+ return service.HLen(ctx, inputReq);
1867
+ });
1868
+ }
1869
+ else {
1870
+ response = await service.HLen(ctx, request);
1871
+ }
1872
+ return Buffer.from(Int64Value.encode(response).finish());
1873
+ }
1874
+ async function handleRedisAPIMultiProtobuf(ctx, service, data, interceptors) {
1875
+ let request;
1876
+ let response;
1877
+ try {
1878
+ request = TransactionId.decode(data);
1879
+ }
1880
+ catch (e) {
1881
+ if (e instanceof Error) {
1882
+ const msg = 'the protobuf request could not be decoded';
1883
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1884
+ }
1885
+ }
1886
+ if (interceptors && interceptors.length > 0) {
1887
+ const interceptor = chainInterceptors(...interceptors);
1888
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1889
+ return service.Multi(ctx, inputReq);
1890
+ });
1891
+ }
1892
+ else {
1893
+ response = await service.Multi(ctx, request);
1894
+ }
1895
+ return Buffer.from(Empty.encode(response).finish());
1896
+ }
1897
+ async function handleRedisAPIExecProtobuf(ctx, service, data, interceptors) {
1898
+ let request;
1899
+ let response;
1900
+ try {
1901
+ request = TransactionId.decode(data);
1902
+ }
1903
+ catch (e) {
1904
+ if (e instanceof Error) {
1905
+ const msg = 'the protobuf request could not be decoded';
1906
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1907
+ }
1908
+ }
1909
+ if (interceptors && interceptors.length > 0) {
1910
+ const interceptor = chainInterceptors(...interceptors);
1911
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1912
+ return service.Exec(ctx, inputReq);
1913
+ });
1914
+ }
1915
+ else {
1916
+ response = await service.Exec(ctx, request);
1917
+ }
1918
+ return Buffer.from(TransactionResponses.encode(response).finish());
1919
+ }
1920
+ async function handleRedisAPIDiscardProtobuf(ctx, service, data, interceptors) {
1921
+ let request;
1922
+ let response;
1923
+ try {
1924
+ request = TransactionId.decode(data);
1925
+ }
1926
+ catch (e) {
1927
+ if (e instanceof Error) {
1928
+ const msg = 'the protobuf request could not be decoded';
1929
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1930
+ }
1931
+ }
1932
+ if (interceptors && interceptors.length > 0) {
1933
+ const interceptor = chainInterceptors(...interceptors);
1934
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1935
+ return service.Discard(ctx, inputReq);
1936
+ });
1937
+ }
1938
+ else {
1939
+ response = await service.Discard(ctx, request);
1940
+ }
1941
+ return Buffer.from(Empty.encode(response).finish());
1942
+ }
1943
+ async function handleRedisAPIWatchProtobuf(ctx, service, data, interceptors) {
1944
+ let request;
1945
+ let response;
1946
+ try {
1947
+ request = WatchRequest.decode(data);
1948
+ }
1949
+ catch (e) {
1950
+ if (e instanceof Error) {
1951
+ const msg = 'the protobuf request could not be decoded';
1952
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1953
+ }
1954
+ }
1955
+ if (interceptors && interceptors.length > 0) {
1956
+ const interceptor = chainInterceptors(...interceptors);
1957
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1958
+ return service.Watch(ctx, inputReq);
1959
+ });
1960
+ }
1961
+ else {
1962
+ response = await service.Watch(ctx, request);
1963
+ }
1964
+ return Buffer.from(TransactionId.encode(response).finish());
1965
+ }
1966
+ async function handleRedisAPIUnwatchProtobuf(ctx, service, data, interceptors) {
1967
+ let request;
1968
+ let response;
1969
+ try {
1970
+ request = TransactionId.decode(data);
1971
+ }
1972
+ catch (e) {
1973
+ if (e instanceof Error) {
1974
+ const msg = 'the protobuf request could not be decoded';
1975
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1976
+ }
1977
+ }
1978
+ if (interceptors && interceptors.length > 0) {
1979
+ const interceptor = chainInterceptors(...interceptors);
1980
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
1981
+ return service.Unwatch(ctx, inputReq);
1982
+ });
1983
+ }
1984
+ else {
1985
+ response = await service.Unwatch(ctx, request);
1986
+ }
1987
+ return Buffer.from(Empty.encode(response).finish());
1988
+ }
1989
+ async function handleRedisAPIGetRangeProtobuf(ctx, service, data, interceptors) {
1990
+ let request;
1991
+ let response;
1992
+ try {
1993
+ request = KeyRangeRequest.decode(data);
1994
+ }
1995
+ catch (e) {
1996
+ if (e instanceof Error) {
1997
+ const msg = 'the protobuf request could not be decoded';
1998
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
1999
+ }
2000
+ }
2001
+ if (interceptors && interceptors.length > 0) {
2002
+ const interceptor = chainInterceptors(...interceptors);
2003
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2004
+ return service.GetRange(ctx, inputReq);
2005
+ });
2006
+ }
2007
+ else {
2008
+ response = await service.GetRange(ctx, request);
2009
+ }
2010
+ return Buffer.from(StringValue.encode(response).finish());
2011
+ }
2012
+ async function handleRedisAPISetRangeProtobuf(ctx, service, data, interceptors) {
2013
+ let request;
2014
+ let response;
2015
+ try {
2016
+ request = SetRangeRequest.decode(data);
2017
+ }
2018
+ catch (e) {
2019
+ if (e instanceof Error) {
2020
+ const msg = 'the protobuf request could not be decoded';
2021
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2022
+ }
2023
+ }
2024
+ if (interceptors && interceptors.length > 0) {
2025
+ const interceptor = chainInterceptors(...interceptors);
2026
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2027
+ return service.SetRange(ctx, inputReq);
2028
+ });
2029
+ }
2030
+ else {
2031
+ response = await service.SetRange(ctx, request);
2032
+ }
2033
+ return Buffer.from(Int64Value.encode(response).finish());
2034
+ }
2035
+ async function handleRedisAPIStrlenProtobuf(ctx, service, data, interceptors) {
2036
+ let request;
2037
+ let response;
2038
+ try {
2039
+ request = KeyRequest.decode(data);
2040
+ }
2041
+ catch (e) {
2042
+ if (e instanceof Error) {
2043
+ const msg = 'the protobuf request could not be decoded';
2044
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2045
+ }
2046
+ }
2047
+ if (interceptors && interceptors.length > 0) {
2048
+ const interceptor = chainInterceptors(...interceptors);
2049
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2050
+ return service.Strlen(ctx, inputReq);
2051
+ });
2052
+ }
2053
+ else {
2054
+ response = await service.Strlen(ctx, request);
2055
+ }
2056
+ return Buffer.from(Int64Value.encode(response).finish());
2057
+ }
2058
+ async function handleRedisAPIMGetProtobuf(ctx, service, data, interceptors) {
2059
+ let request;
2060
+ let response;
2061
+ try {
2062
+ request = KeysRequest.decode(data);
2063
+ }
2064
+ catch (e) {
2065
+ if (e instanceof Error) {
2066
+ const msg = 'the protobuf request could not be decoded';
2067
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2068
+ }
2069
+ }
2070
+ if (interceptors && interceptors.length > 0) {
2071
+ const interceptor = chainInterceptors(...interceptors);
2072
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2073
+ return service.MGet(ctx, inputReq);
2074
+ });
2075
+ }
2076
+ else {
2077
+ response = await service.MGet(ctx, request);
2078
+ }
2079
+ return Buffer.from(RedisValues.encode(response).finish());
2080
+ }
2081
+ async function handleRedisAPIMSetProtobuf(ctx, service, data, interceptors) {
2082
+ let request;
2083
+ let response;
2084
+ try {
2085
+ request = KeyValuesRequest.decode(data);
2086
+ }
2087
+ catch (e) {
2088
+ if (e instanceof Error) {
2089
+ const msg = 'the protobuf request could not be decoded';
2090
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2091
+ }
2092
+ }
2093
+ if (interceptors && interceptors.length > 0) {
2094
+ const interceptor = chainInterceptors(...interceptors);
2095
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2096
+ return service.MSet(ctx, inputReq);
2097
+ });
2098
+ }
2099
+ else {
2100
+ response = await service.MSet(ctx, request);
2101
+ }
2102
+ return Buffer.from(Empty.encode(response).finish());
2103
+ }
2104
+ async function handleRedisAPIExpireProtobuf(ctx, service, data, interceptors) {
2105
+ let request;
2106
+ let response;
2107
+ try {
2108
+ request = ExpireRequest.decode(data);
2109
+ }
2110
+ catch (e) {
2111
+ if (e instanceof Error) {
2112
+ const msg = 'the protobuf request could not be decoded';
2113
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2114
+ }
2115
+ }
2116
+ if (interceptors && interceptors.length > 0) {
2117
+ const interceptor = chainInterceptors(...interceptors);
2118
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2119
+ return service.Expire(ctx, inputReq);
2120
+ });
2121
+ }
2122
+ else {
2123
+ response = await service.Expire(ctx, request);
2124
+ }
2125
+ return Buffer.from(Empty.encode(response).finish());
2126
+ }
2127
+ async function handleRedisAPIExpireTimeProtobuf(ctx, service, data, interceptors) {
2128
+ let request;
2129
+ let response;
2130
+ try {
2131
+ request = KeyRequest.decode(data);
2132
+ }
2133
+ catch (e) {
2134
+ if (e instanceof Error) {
2135
+ const msg = 'the protobuf request could not be decoded';
2136
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2137
+ }
2138
+ }
2139
+ if (interceptors && interceptors.length > 0) {
2140
+ const interceptor = chainInterceptors(...interceptors);
2141
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2142
+ return service.ExpireTime(ctx, inputReq);
2143
+ });
2144
+ }
2145
+ else {
2146
+ response = await service.ExpireTime(ctx, request);
2147
+ }
2148
+ return Buffer.from(Int64Value.encode(response).finish());
2149
+ }
2150
+ async function handleRedisAPIZAddProtobuf(ctx, service, data, interceptors) {
2151
+ let request;
2152
+ let response;
2153
+ try {
2154
+ request = ZAddRequest.decode(data);
2155
+ }
2156
+ catch (e) {
2157
+ if (e instanceof Error) {
2158
+ const msg = 'the protobuf request could not be decoded';
2159
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2160
+ }
2161
+ }
2162
+ if (interceptors && interceptors.length > 0) {
2163
+ const interceptor = chainInterceptors(...interceptors);
2164
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2165
+ return service.ZAdd(ctx, inputReq);
2166
+ });
2167
+ }
2168
+ else {
2169
+ response = await service.ZAdd(ctx, request);
2170
+ }
2171
+ return Buffer.from(Int64Value.encode(response).finish());
2172
+ }
2173
+ async function handleRedisAPIZCardProtobuf(ctx, service, data, interceptors) {
2174
+ let request;
2175
+ let response;
2176
+ try {
2177
+ request = KeyRequest.decode(data);
2178
+ }
2179
+ catch (e) {
2180
+ if (e instanceof Error) {
2181
+ const msg = 'the protobuf request could not be decoded';
2182
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2183
+ }
2184
+ }
2185
+ if (interceptors && interceptors.length > 0) {
2186
+ const interceptor = chainInterceptors(...interceptors);
2187
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2188
+ return service.ZCard(ctx, inputReq);
2189
+ });
2190
+ }
2191
+ else {
2192
+ response = await service.ZCard(ctx, request);
2193
+ }
2194
+ return Buffer.from(Int64Value.encode(response).finish());
2195
+ }
2196
+ async function handleRedisAPIZRangeProtobuf(ctx, service, data, interceptors) {
2197
+ let request;
2198
+ let response;
2199
+ try {
2200
+ request = ZRangeRequest.decode(data);
2201
+ }
2202
+ catch (e) {
2203
+ if (e instanceof Error) {
2204
+ const msg = 'the protobuf request could not be decoded';
2205
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2206
+ }
2207
+ }
2208
+ if (interceptors && interceptors.length > 0) {
2209
+ const interceptor = chainInterceptors(...interceptors);
2210
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2211
+ return service.ZRange(ctx, inputReq);
2212
+ });
2213
+ }
2214
+ else {
2215
+ response = await service.ZRange(ctx, request);
2216
+ }
2217
+ return Buffer.from(ZMembers.encode(response).finish());
2218
+ }
2219
+ async function handleRedisAPIZRemProtobuf(ctx, service, data, interceptors) {
2220
+ let request;
2221
+ let response;
2222
+ try {
2223
+ request = ZRemRequest.decode(data);
2224
+ }
2225
+ catch (e) {
2226
+ if (e instanceof Error) {
2227
+ const msg = 'the protobuf request could not be decoded';
2228
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2229
+ }
2230
+ }
2231
+ if (interceptors && interceptors.length > 0) {
2232
+ const interceptor = chainInterceptors(...interceptors);
2233
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2234
+ return service.ZRem(ctx, inputReq);
2235
+ });
2236
+ }
2237
+ else {
2238
+ response = await service.ZRem(ctx, request);
2239
+ }
2240
+ return Buffer.from(Int64Value.encode(response).finish());
2241
+ }
2242
+ async function handleRedisAPIZRemRangeByLexProtobuf(ctx, service, data, interceptors) {
2243
+ let request;
2244
+ let response;
2245
+ try {
2246
+ request = ZRemRangeByLexRequest.decode(data);
2247
+ }
2248
+ catch (e) {
2249
+ if (e instanceof Error) {
2250
+ const msg = 'the protobuf request could not be decoded';
2251
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2252
+ }
2253
+ }
2254
+ if (interceptors && interceptors.length > 0) {
2255
+ const interceptor = chainInterceptors(...interceptors);
2256
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2257
+ return service.ZRemRangeByLex(ctx, inputReq);
2258
+ });
2259
+ }
2260
+ else {
2261
+ response = await service.ZRemRangeByLex(ctx, request);
2262
+ }
2263
+ return Buffer.from(Int64Value.encode(response).finish());
2264
+ }
2265
+ async function handleRedisAPIZRemRangeByRankProtobuf(ctx, service, data, interceptors) {
2266
+ let request;
2267
+ let response;
2268
+ try {
2269
+ request = ZRemRangeByRankRequest.decode(data);
2270
+ }
2271
+ catch (e) {
2272
+ if (e instanceof Error) {
2273
+ const msg = 'the protobuf request could not be decoded';
2274
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2275
+ }
2276
+ }
2277
+ if (interceptors && interceptors.length > 0) {
2278
+ const interceptor = chainInterceptors(...interceptors);
2279
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2280
+ return service.ZRemRangeByRank(ctx, inputReq);
2281
+ });
2282
+ }
2283
+ else {
2284
+ response = await service.ZRemRangeByRank(ctx, request);
2285
+ }
2286
+ return Buffer.from(Int64Value.encode(response).finish());
2287
+ }
2288
+ async function handleRedisAPIZRemRangeByScoreProtobuf(ctx, service, data, interceptors) {
2289
+ let request;
2290
+ let response;
2291
+ try {
2292
+ request = ZRemRangeByScoreRequest.decode(data);
2293
+ }
2294
+ catch (e) {
2295
+ if (e instanceof Error) {
2296
+ const msg = 'the protobuf request could not be decoded';
2297
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2298
+ }
2299
+ }
2300
+ if (interceptors && interceptors.length > 0) {
2301
+ const interceptor = chainInterceptors(...interceptors);
2302
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2303
+ return service.ZRemRangeByScore(ctx, inputReq);
2304
+ });
2305
+ }
2306
+ else {
2307
+ response = await service.ZRemRangeByScore(ctx, request);
2308
+ }
2309
+ return Buffer.from(Int64Value.encode(response).finish());
2310
+ }
2311
+ async function handleRedisAPIZScoreProtobuf(ctx, service, data, interceptors) {
2312
+ let request;
2313
+ let response;
2314
+ try {
2315
+ request = ZScoreRequest.decode(data);
2316
+ }
2317
+ catch (e) {
2318
+ if (e instanceof Error) {
2319
+ const msg = 'the protobuf request could not be decoded';
2320
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2321
+ }
2322
+ }
2323
+ if (interceptors && interceptors.length > 0) {
2324
+ const interceptor = chainInterceptors(...interceptors);
2325
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2326
+ return service.ZScore(ctx, inputReq);
2327
+ });
2328
+ }
2329
+ else {
2330
+ response = await service.ZScore(ctx, request);
2331
+ }
2332
+ return Buffer.from(DoubleValue.encode(response).finish());
2333
+ }
2334
+ async function handleRedisAPIZRankProtobuf(ctx, service, data, interceptors) {
2335
+ let request;
2336
+ let response;
2337
+ try {
2338
+ request = ZRankRequest.decode(data);
2339
+ }
2340
+ catch (e) {
2341
+ if (e instanceof Error) {
2342
+ const msg = 'the protobuf request could not be decoded';
2343
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2344
+ }
2345
+ }
2346
+ if (interceptors && interceptors.length > 0) {
2347
+ const interceptor = chainInterceptors(...interceptors);
2348
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2349
+ return service.ZRank(ctx, inputReq);
2350
+ });
2351
+ }
2352
+ else {
2353
+ response = await service.ZRank(ctx, request);
2354
+ }
2355
+ return Buffer.from(Int64Value.encode(response).finish());
2356
+ }
2357
+ async function handleRedisAPIZIncrByProtobuf(ctx, service, data, interceptors) {
2358
+ let request;
2359
+ let response;
2360
+ try {
2361
+ request = ZIncrByRequest.decode(data);
2362
+ }
2363
+ catch (e) {
2364
+ if (e instanceof Error) {
2365
+ const msg = 'the protobuf request could not be decoded';
2366
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2367
+ }
2368
+ }
2369
+ if (interceptors && interceptors.length > 0) {
2370
+ const interceptor = chainInterceptors(...interceptors);
2371
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2372
+ return service.ZIncrBy(ctx, inputReq);
2373
+ });
2374
+ }
2375
+ else {
2376
+ response = await service.ZIncrBy(ctx, request);
2377
+ }
2378
+ return Buffer.from(DoubleValue.encode(response).finish());
2379
+ }
2380
+ async function handleRedisAPIZScanProtobuf(ctx, service, data, interceptors) {
2381
+ let request;
2382
+ let response;
2383
+ try {
2384
+ request = ZScanRequest.decode(data);
2385
+ }
2386
+ catch (e) {
2387
+ if (e instanceof Error) {
2388
+ const msg = 'the protobuf request could not be decoded';
2389
+ throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
2390
+ }
2391
+ }
2392
+ if (interceptors && interceptors.length > 0) {
2393
+ const interceptor = chainInterceptors(...interceptors);
2394
+ response = await interceptor(ctx, request, (ctx, inputReq) => {
2395
+ return service.ZScan(ctx, inputReq);
2396
+ });
2397
+ }
2398
+ else {
2399
+ response = await service.ZScan(ctx, request);
2400
+ }
2401
+ return Buffer.from(ZScanResponse.encode(response).finish());
2402
+ }