@devvit/protos 0.11.4 → 0.11.5-next-2024-12-09-8401a61d8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/meta.min.json +7814 -0
  2. package/package.json +4 -4
  3. package/protos.min.js +2 -0
  4. package/protos.min.js.map +7 -0
  5. package/schema/.snootobuf/deps/buf/validate/expression.proto +92 -0
  6. package/schema/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
  7. package/schema/.snootobuf/deps/buf/validate/validate.proto +4130 -0
  8. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
  9. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
  10. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
  11. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
  12. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
  13. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
  14. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
  15. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
  16. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +773 -0
  17. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
  18. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +100 -0
  19. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
  20. package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
  21. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
  22. package/schema/.snootobuf/deps/devvit/options/options.proto +98 -0
  23. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +29 -0
  24. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
  25. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
  26. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
  27. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +107 -0
  28. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
  29. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
  30. package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
  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 +203 -0
  57. package/schema/.snootobuf/deps/google/api/annotations.proto +31 -0
  58. package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +288 -0
  59. package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +175 -0
  60. package/schema/.snootobuf/deps/google/api/auth.proto +237 -0
  61. package/schema/.snootobuf/deps/google/api/backend.proto +185 -0
  62. package/schema/.snootobuf/deps/google/api/billing.proto +77 -0
  63. package/schema/.snootobuf/deps/google/api/client.proto +431 -0
  64. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +322 -0
  65. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +315 -0
  66. package/schema/.snootobuf/deps/google/api/config_change.proto +84 -0
  67. package/schema/.snootobuf/deps/google/api/consumer.proto +82 -0
  68. package/schema/.snootobuf/deps/google/api/context.proto +92 -0
  69. package/schema/.snootobuf/deps/google/api/control.proto +41 -0
  70. package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
  71. package/schema/.snootobuf/deps/google/api/documentation.proto +168 -0
  72. package/schema/.snootobuf/deps/google/api/endpoint.proto +69 -0
  73. package/schema/.snootobuf/deps/google/api/error_reason.proto +589 -0
  74. package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +183 -0
  75. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
  76. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
  77. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
  78. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
  79. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
  80. package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
  81. package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
  82. package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
  83. package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
  84. package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
  85. package/schema/.snootobuf/deps/google/api/field_behavior.proto +104 -0
  86. package/schema/.snootobuf/deps/google/api/field_info.proto +106 -0
  87. package/schema/.snootobuf/deps/google/api/http.proto +371 -0
  88. package/schema/.snootobuf/deps/google/api/httpbody.proto +81 -0
  89. package/schema/.snootobuf/deps/google/api/label.proto +48 -0
  90. package/schema/.snootobuf/deps/google/api/launch_stage.proto +72 -0
  91. package/schema/.snootobuf/deps/google/api/log.proto +54 -0
  92. package/schema/.snootobuf/deps/google/api/logging.proto +81 -0
  93. package/schema/.snootobuf/deps/google/api/metric.proto +268 -0
  94. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +130 -0
  95. package/schema/.snootobuf/deps/google/api/monitoring.proto +107 -0
  96. package/schema/.snootobuf/deps/google/api/policy.proto +85 -0
  97. package/schema/.snootobuf/deps/google/api/quota.proto +184 -0
  98. package/schema/.snootobuf/deps/google/api/resource.proto +243 -0
  99. package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
  100. package/schema/.snootobuf/deps/google/api/service.proto +191 -0
  101. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
  102. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
  103. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
  104. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
  105. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
  106. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
  107. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
  108. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
  109. package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
  110. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
  111. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +508 -0
  112. package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
  113. package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +305 -0
  114. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
  115. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +793 -0
  116. package/schema/.snootobuf/deps/google/api/source_info.proto +31 -0
  117. package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
  118. package/schema/.snootobuf/deps/google/api/usage.proto +96 -0
  119. package/schema/.snootobuf/deps/google/api/visibility.proto +113 -0
  120. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
  121. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
  122. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
  123. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
  124. package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
  125. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
  126. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
  127. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
  128. package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
  129. package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
  130. package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
  131. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
  132. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
  133. package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
  134. package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
  135. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
  136. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
  137. package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
  138. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
  139. package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
  140. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
  141. package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
  142. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
  143. package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
  144. package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
  145. package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
  146. package/schema/.snootobuf/deps/google/type/color.proto +170 -0
  147. package/schema/.snootobuf/deps/google/type/date.proto +50 -0
  148. package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
  149. package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
  150. package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
  151. package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
  152. package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
  153. package/schema/.snootobuf/deps/google/type/money.proto +43 -0
  154. package/schema/.snootobuf/deps/google/type/month.proto +66 -0
  155. package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
  156. package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
  157. package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
  158. package/schema/.snootobuf/deps/openapi/helper.proto +20 -0
  159. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  160. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
  161. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
  162. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
  163. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
  164. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
  165. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
  166. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
  167. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
  168. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
  169. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
  170. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
  171. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
  172. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
  173. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
  174. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
  175. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
  176. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
  177. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
  178. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
  179. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
  180. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
  181. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
  182. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
  183. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
  184. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
  185. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
  186. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
  187. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
  188. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
  189. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
  190. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
  191. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
  192. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
  193. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
  194. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
  195. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
  196. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +89 -0
  197. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +322 -0
  198. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
  199. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
  200. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
  201. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +48 -0
  202. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
  203. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
  204. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
  205. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
  206. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +23 -0
  207. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
  208. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
  209. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +49 -0
  210. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
  211. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
  212. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
  213. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
  214. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +195 -0
  215. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
  216. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
  217. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
  218. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
  219. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  220. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
  221. package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
  222. package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
  223. package/schema/.snootobuf/deps/validate/validate.proto +862 -0
  224. package/schema/devvit/dev_portal/app/app.proto +3 -0
  225. package/schema/devvit/dev_portal/app/info/app_info.proto +13 -1
  226. package/schema/devvit/dev_portal/dev_portal.proto +9 -0
  227. package/schema/devvit/dev_portal/payments/payments_verification.proto +31 -0
  228. package/schema/devvit/ui/block_kit/v1beta/ui.proto +1 -1
  229. package/schema/devvit/ui/effects/web_view/v1alpha/fullscreen.proto +7 -1
  230. package/schema/snootobuf.devenv.lock +1227 -662
  231. package/schema/snootobuf.lock +1228 -662
  232. package/schema/snootobuf.redditapi.lock +1226 -662
  233. package/schema/snootobuf.ts.lock +1227 -662
  234. package/types/devvit/dev_portal/app/app.d.ts +2 -0
  235. package/types/devvit/dev_portal/app/app.d.ts.map +1 -1
  236. package/types/devvit/dev_portal/app/app.js +17 -0
  237. package/types/devvit/dev_portal/app/info/app_info.d.ts +13 -0
  238. package/types/devvit/dev_portal/app/info/app_info.d.ts.map +1 -1
  239. package/types/devvit/dev_portal/app/info/app_info.js +17 -0
  240. package/types/devvit/dev_portal/dev_portal.d.ts +113 -3
  241. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  242. package/types/devvit/dev_portal/dev_portal.js +32 -0
  243. package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +17 -0
  244. package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
  245. package/types/devvit/dev_portal/dev_portal.twirp-client.js +23 -0
  246. package/types/devvit/dev_portal/dev_portal.twirp.d.ts +9 -0
  247. package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
  248. package/types/devvit/dev_portal/dev_portal.twirp.js +89 -0
  249. package/types/devvit/dev_portal/payments/payments_verification.d.ts +59 -0
  250. package/types/devvit/dev_portal/payments/payments_verification.d.ts.map +1 -0
  251. package/types/devvit/dev_portal/payments/payments_verification.js +163 -0
  252. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -0
  253. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
  254. package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.d.ts +8 -1
  255. package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.d.ts.map +1 -1
  256. package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.js +15 -1
@@ -0,0 +1,72 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.admin.v1alpha;
4
+
5
+ import "devvit/data/api/admin/v1alpha/organization.proto";
6
+ import "google/protobuf/timestamp.proto";
7
+
8
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/admin";
9
+
10
+ enum AuditLogEventType {
11
+ DATA_SUBSCRIPTION_CREATE = 0;
12
+ DATA_SUBSCRIPTION_UPDATE = 1;
13
+ DATA_SUBSCRIPTION_DELETE = 2;
14
+ DATA_TOKEN_CREATE = 3;
15
+ DATA_TOKEN_REVOKE = 4;
16
+ ORGANIZATION_DELETE = 5;
17
+ }
18
+
19
+ message AuditLogEvent {
20
+ string id = 1; // unique identifier for the event
21
+ google.protobuf.Timestamp created_at = 2; // when the event was created
22
+ string user_id = 3; // t2_ id of the user who performed the action
23
+ AuditLogEventType type = 4; // type of the event
24
+ string organization_id = 5; // id of the organization the event is associated with
25
+ oneof payload {
26
+ DataTokenCreateAuditLogEventPayload data_token_create_payload = 6;
27
+ DataTokenRevokeAuditLogEventPayload data_token_revoke_payload = 7;
28
+ DataSubscriptionCreateAuditLogEventPayload data_subscription_create_payload = 8;
29
+ DataSubscriptionUpdateAuditLogEventPayload data_subscription_update_payload = 9;
30
+ DataSubscriptionDeleteAuditLogEventPayload data_subscription_delete_payload = 10;
31
+ OrganizationDeleteAuditLogEventPayload organization_delete_payload = 11;
32
+ }
33
+ }
34
+
35
+ message DataTokenCreateAuditLogEventPayload {
36
+ string token_id = 1; // id of the data token that was created
37
+ google.protobuf.Timestamp expiration = 2; // expiration date of the data token
38
+ }
39
+
40
+ message DataTokenRevokeAuditLogEventPayload {
41
+ string token_id = 1; // id of the data token that was revoked
42
+ }
43
+
44
+ message DataSubscriptionCreateAuditLogEventPayload {
45
+ string subscription_id = 1;
46
+ }
47
+
48
+ message DataSubscriptionUpdateAuditLogEventPayload {
49
+ string subscription_id = 1;
50
+ }
51
+
52
+ message DataSubscriptionDeleteAuditLogEventPayload {
53
+ string subscription_id = 1;
54
+ }
55
+
56
+ message OrganizationDeleteAuditLogEventPayload {
57
+ Organization organization = 1;
58
+ }
59
+
60
+ message GetAuditLogEventsByOrganizationNameRequest {
61
+ string organization_name = 1;
62
+ }
63
+
64
+ message GetAuditLogEventsByOrganizationNameResponse {
65
+ repeated AuditLogEvent events = 1;
66
+ }
67
+
68
+ message CreateAuditLogEventRequest {
69
+ AuditLogEvent event = 1;
70
+ }
71
+
72
+ message CreateAuditLogEventResponse {}
@@ -0,0 +1,49 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.admin.v1alpha;
4
+
5
+ import "google/protobuf/duration.proto";
6
+ import "google/protobuf/timestamp.proto";
7
+
8
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/admin";
9
+
10
+ message AccessToken {
11
+ string id = 1;
12
+ string organization_id = 2;
13
+ google.protobuf.Timestamp created_at = 3;
14
+ google.protobuf.Timestamp expires_at = 4;
15
+ bool is_revoked = 5;
16
+ }
17
+
18
+ message CreateAccessTokenRequest {
19
+ string organization_name = 1;
20
+ google.protobuf.Duration expires_in = 2;
21
+ }
22
+
23
+ message CreateAccessTokenResponse {
24
+ string token = 1;
25
+ google.protobuf.Timestamp expires_at = 2;
26
+ string token_id = 3;
27
+ }
28
+
29
+ message GetAccessTokenByIdRequest {
30
+ string id = 1;
31
+ }
32
+
33
+ message GetAccessTokenByIdResponse {
34
+ AccessToken token = 1;
35
+ }
36
+
37
+ message GetAccessTokensByOrganizationNameRequest {
38
+ string organization_name = 1;
39
+ }
40
+
41
+ message GetAccessTokensByOrganizationNameResponse {
42
+ repeated AccessToken tokens = 1;
43
+ }
44
+
45
+ message RevokeAccessTokenByIdRequest {
46
+ string token_id = 1;
47
+ }
48
+
49
+ message RevokeAccessTokenByIdResponse {}
@@ -0,0 +1,54 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.admin.v1alpha;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+
7
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/admin";
8
+
9
+ message Organization {
10
+ string id = 1;
11
+ string name = 2;
12
+ bool is_internal = 3;
13
+ google.protobuf.Timestamp contract_end_date = 4;
14
+ }
15
+
16
+ message CreateOrganizationRequest {
17
+ string name = 1;
18
+ bool is_internal = 2;
19
+ google.protobuf.Timestamp contract_end_date = 3;
20
+ }
21
+
22
+ message CreateOrganizationResponse {
23
+ Organization organization = 1;
24
+ }
25
+
26
+ message DeleteOrganizationRequest {
27
+ string id = 1;
28
+ }
29
+
30
+ message DeleteOrganizationResponse {
31
+ Organization organization = 1;
32
+ }
33
+
34
+ message GetOrganizationByNameRequest {
35
+ string name = 1;
36
+ }
37
+
38
+ message GetOrganizationByNameResponse {
39
+ Organization organization = 1;
40
+ }
41
+
42
+ message GetOrganizationByIdRequest {
43
+ string id = 1;
44
+ }
45
+
46
+ message GetOrganizationByIdResponse {
47
+ Organization organization = 1;
48
+ }
49
+
50
+ message GetOrganizationsRequest {}
51
+
52
+ message GetOrganizationsResponse {
53
+ repeated Organization organizations = 1;
54
+ }
@@ -0,0 +1,46 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.admin.v1alpha;
4
+
5
+ import "devvit/data/api/admin/v1alpha/audit.proto";
6
+ import "devvit/data/api/admin/v1alpha/auth.proto";
7
+ import "devvit/data/api/admin/v1alpha/organization.proto";
8
+ import "devvit/data/api/admin/v1alpha/subscription.proto";
9
+ import "devvit/data/api/admin/v1alpha/ui.proto";
10
+ import "devvit/data/api/admin/v1alpha/user.proto";
11
+
12
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/admin";
13
+
14
+ service Admin {
15
+ // Auth
16
+ rpc CreateAccessToken(CreateAccessTokenRequest) returns (CreateAccessTokenResponse);
17
+ rpc GetAccessTokenById(GetAccessTokenByIdRequest) returns (GetAccessTokenByIdResponse);
18
+ rpc GetAccessTokensByOrganizationName(GetAccessTokensByOrganizationNameRequest) returns (GetAccessTokensByOrganizationNameResponse);
19
+ rpc RevokeAccessTokenById(RevokeAccessTokenByIdRequest) returns (RevokeAccessTokenByIdResponse);
20
+
21
+ // Subscriptions
22
+ rpc CreateSubscription(CreateSubscriptionRequest) returns (CreateSubscriptionResponse);
23
+ rpc GetSubscriptionById(GetSubscriptionByIdRequest) returns (GetSubscriptionByIdResponse);
24
+ rpc GetSubscriptionsByOrganizationName(GetSubscriptionsByOrganizationNameRequest) returns (GetSubscriptionsByOrganizationNameResponse);
25
+ rpc UpdateSubscription(UpdateSubscriptionRequest) returns (UpdateSubscriptionResponse);
26
+ rpc DeleteSubscription(DeleteSubscriptionRequest) returns (DeleteSubscriptionResponse);
27
+
28
+ // Organizations
29
+ rpc CreateOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse);
30
+ rpc DeleteOrganization(DeleteOrganizationRequest) returns (DeleteOrganizationResponse);
31
+ rpc GetOrganizationById(GetOrganizationByIdRequest) returns (GetOrganizationByIdResponse);
32
+ rpc GetOrganizationByName(GetOrganizationByNameRequest) returns (GetOrganizationByNameResponse);
33
+ rpc GetOrganizations(GetOrganizationsRequest) returns (GetOrganizationsResponse);
34
+
35
+ // Audit Logs
36
+ rpc GetAuditLogEventsByOrganizationName(GetAuditLogEventsByOrganizationNameRequest) returns (GetAuditLogEventsByOrganizationNameResponse);
37
+ rpc CreateAuditLogEvent(CreateAuditLogEventRequest) returns (CreateAuditLogEventResponse);
38
+
39
+ // UI Helpers
40
+ rpc UIGetHydratedOrganizations(UIGetOrganizationsRequest) returns (UIGetOrganizationsResponse);
41
+
42
+ rpc CreateUser(CreateUserRequest) returns (CreateUserResponse);
43
+ rpc GetUsersByOrgId(GetUsersByOrgIdRequest) returns (GetUsersByOrgIdResponse);
44
+ rpc GetUserById(GetUserByIdRequest) returns (GetUserByIdResponse);
45
+ rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse);
46
+ }
@@ -0,0 +1,72 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.admin.v1alpha;
4
+
5
+ import "devvit/options/options.proto";
6
+ import "devvit/reddit/v2alpha/subredditv2.proto";
7
+
8
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/admin";
9
+
10
+ message Subscription {
11
+ string id = 1;
12
+ string name = 2;
13
+ string organization_id = 3;
14
+ string description = 4;
15
+ repeated devvit.options.FirehoseEvent events = 5;
16
+ repeated string subreddits = 6;
17
+ repeated devvit.reddit.v2alpha.SubredditRating subreddit_ratings = 7;
18
+ }
19
+
20
+ message CreateSubscriptionRequest {
21
+ repeated devvit.options.FirehoseEvent events = 1;
22
+ repeated string subreddits = 2;
23
+ repeated devvit.reddit.v2alpha.SubredditRating subreddit_ratings = 3;
24
+ string organization_id = 4;
25
+ string name = 5;
26
+ string description = 6;
27
+ }
28
+
29
+ message CreateSubscriptionResponse {
30
+ Subscription subscription = 1;
31
+ }
32
+
33
+ message GetSubscriptionByIdRequest {
34
+ string subscription_id = 1;
35
+ }
36
+
37
+ message GetSubscriptionByIdResponse {
38
+ Subscription subscription = 1;
39
+ }
40
+
41
+ message GetSubscriptionsByOrganizationNameRequest {
42
+ string organization_name = 1;
43
+ }
44
+
45
+ message GetSubscriptionsByOrganizationNameResponse {
46
+ repeated Subscription subscriptions = 1;
47
+ }
48
+
49
+ message UpdateSubscriptionRequest {
50
+ // Id of the subscription to update
51
+ string subscription_id = 1;
52
+ // New name of the subscription
53
+ optional string name = 2;
54
+ // New description of the subscription
55
+ optional string description = 3;
56
+ // New events. Will overwrite the array of existing events.
57
+ repeated devvit.options.FirehoseEvent events = 4;
58
+ // New subreddits. Will overwrite the array of existing subreddits.
59
+ repeated string subreddits = 5;
60
+ // New subreddit ratings. Will overwrite the array of existing subreddit ratings.
61
+ repeated devvit.reddit.v2alpha.SubredditRating subreddit_ratings = 6;
62
+ }
63
+
64
+ message UpdateSubscriptionResponse {
65
+ Subscription subscription = 1;
66
+ }
67
+
68
+ message DeleteSubscriptionRequest {
69
+ string subscription_id = 1;
70
+ }
71
+
72
+ message DeleteSubscriptionResponse {}
@@ -0,0 +1,20 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.admin.v1alpha;
4
+
5
+ import "devvit/data/api/admin/v1alpha/auth.proto";
6
+ import "devvit/data/api/admin/v1alpha/organization.proto";
7
+ import "devvit/data/api/admin/v1alpha/subscription.proto";
8
+
9
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/admin";
10
+
11
+ message UIGetOrganizationsRequest {}
12
+
13
+ message UIGetOrganizationsResponse {
14
+ message HydratedOrganization {
15
+ Organization organization = 1;
16
+ repeated Subscription subscriptions = 2;
17
+ repeated AccessToken acccess_tokens = 3;
18
+ }
19
+ repeated HydratedOrganization organizations = 1;
20
+ }
@@ -0,0 +1,45 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.admin.v1alpha;
4
+
5
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/admin";
6
+
7
+ message User {
8
+ string t2id = 1;
9
+ string org_id = 2;
10
+ string username = 3;
11
+ }
12
+
13
+ message CreateUserRequest {
14
+ string t2id = 1;
15
+ string org_id = 2;
16
+ string username = 3;
17
+ }
18
+
19
+ message CreateUserResponse {
20
+ User user = 1;
21
+ }
22
+
23
+ message GetUsersByOrgIdRequest {
24
+ string id = 1;
25
+ }
26
+
27
+ message GetUsersByOrgIdResponse {
28
+ repeated User users = 1;
29
+ }
30
+
31
+ message GetUserByIdRequest {
32
+ string t2id = 1;
33
+ }
34
+
35
+ message GetUserByIdResponse {
36
+ User user = 1;
37
+ }
38
+
39
+ message DeleteUserRequest {
40
+ string t2id = 1;
41
+ }
42
+
43
+ message DeleteUserResponse {
44
+ User user = 1;
45
+ }
@@ -0,0 +1,54 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.data.api.v1alpha;
4
+
5
+ import "devvit/options/options.proto";
6
+ import "devvit/reddit/v2alpha/subredditv2.proto";
7
+ import "google/protobuf/duration.proto";
8
+ import "google/protobuf/timestamp.proto";
9
+
10
+ option go_package = "github.snooguts.net/reddit/data-api-firehose/generated/protos/types/v1alpha";
11
+
12
+ message DataToken {
13
+ string id = 1;
14
+ string organization_id = 2;
15
+ google.protobuf.Timestamp created_at = 3;
16
+ google.protobuf.Timestamp expires_at = 4;
17
+ bool is_revoked = 5;
18
+ }
19
+
20
+ message DataSubscription {
21
+ string id = 1;
22
+ devvit.options.DataTier tier = 2;
23
+ repeated devvit.options.FirehoseEvent events = 3;
24
+ repeated string subreddits = 4;
25
+
26
+ repeated devvit.reddit.v2alpha.SubredditRating subreddit_ratings = 5;
27
+ string organization_id = 6;
28
+ string name = 7;
29
+ optional string description = 8;
30
+ }
31
+
32
+ message Organization {
33
+ string id = 1;
34
+ string name = 2;
35
+ repeated DataSubscription subscriptions = 3;
36
+ repeated DataToken tokens = 4;
37
+ google.protobuf.Timestamp contract_end_date = 5;
38
+ }
39
+
40
+ message DataApiAuthTokenRequest {
41
+ string customer = 1;
42
+ google.protobuf.Duration expires_in = 2;
43
+ }
44
+
45
+ message DataApiAuthTokenResponse {
46
+ string id = 1;
47
+ string token = 2;
48
+ google.protobuf.Timestamp expires_at = 3;
49
+ }
50
+
51
+ // DataApiAuthTokenIssuer is the service that issues auth tokens for the data api
52
+ service DataApiAuthTokenIssuer {
53
+ rpc GenerateAuthToken(DataApiAuthTokenRequest) returns (DataApiAuthTokenResponse);
54
+ }