@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,287 @@
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.rpc.context;
18
+
19
+ import "google/protobuf/struct.proto";
20
+ import "google/protobuf/timestamp.proto";
21
+
22
+ option cc_enable_arenas = true;
23
+ option go_package = "google.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context";
24
+ option java_multiple_files = true;
25
+ option java_outer_classname = "AttributeContextProto";
26
+ option java_package = "com.google.rpc.context";
27
+
28
+ // This message defines the standard attribute vocabulary for Google APIs.
29
+ //
30
+ // An attribute is a piece of metadata that describes an activity on a network
31
+ // service. For example, the size of an HTTP request, or the status code of
32
+ // an HTTP response.
33
+ //
34
+ // Each attribute has a type and a name, which is logically defined as
35
+ // a proto message field in `AttributeContext`. The field type becomes the
36
+ // attribute type, and the field path becomes the attribute name. For example,
37
+ // the attribute `source.ip` maps to field `AttributeContext.source.ip`.
38
+ //
39
+ // This message definition is guaranteed not to have any wire breaking change.
40
+ // So you can use it directly for passing attributes across different systems.
41
+ //
42
+ // NOTE: Different system may generate different subset of attributes. Please
43
+ // verify the system specification before relying on an attribute generated
44
+ // a system.
45
+ message AttributeContext {
46
+ // This message defines attributes for a node that handles a network request.
47
+ // The node can be either a service or an application that sends, forwards,
48
+ // or receives the request. Service peers should fill in
49
+ // `principal` and `labels` as appropriate.
50
+ message Peer {
51
+ // The IP address of the peer.
52
+ string ip = 1;
53
+
54
+ // The network port of the peer.
55
+ int64 port = 2;
56
+
57
+ // The labels associated with the peer.
58
+ map<string, string> labels = 6;
59
+
60
+ // The identity of this peer. Similar to `Request.auth.principal`, but
61
+ // relative to the peer instead of the request. For example, the
62
+ // idenity associated with a load balancer that forwared the request.
63
+ string principal = 7;
64
+
65
+ // The CLDR country/region code associated with the above IP address.
66
+ // If the IP address is private, the `region_code` should reflect the
67
+ // physical location where this peer is running.
68
+ string region_code = 8;
69
+ }
70
+
71
+ // This message defines attributes associated with API operations, such as
72
+ // a network API request. The terminology is based on the conventions used
73
+ // by Google APIs, Istio, and OpenAPI.
74
+ message Api {
75
+ // The API service name. It is a logical identifier for a networked API,
76
+ // such as "pubsub.googleapis.com". The naming syntax depends on the
77
+ // API management system being used for handling the request.
78
+ string service = 1;
79
+
80
+ // The API operation name. For gRPC requests, it is the fully qualified API
81
+ // method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
82
+ // requests, it is the `operationId`, such as "getPet".
83
+ string operation = 2;
84
+
85
+ // The API protocol used for sending the request, such as "http", "https",
86
+ // "grpc", or "internal".
87
+ string protocol = 3;
88
+
89
+ // The API version associated with the API operation above, such as "v1" or
90
+ // "v1alpha1".
91
+ string version = 4;
92
+ }
93
+
94
+ // This message defines request authentication attributes. Terminology is
95
+ // based on the JSON Web Token (JWT) standard, but the terms also
96
+ // correlate to concepts in other standards.
97
+ message Auth {
98
+ // The authenticated principal. Reflects the issuer (`iss`) and subject
99
+ // (`sub`) claims within a JWT. The issuer and subject should be `/`
100
+ // delimited, with `/` percent-encoded within the subject fragment. For
101
+ // Google accounts, the principal format is:
102
+ // "https://accounts.google.com/{id}"
103
+ string principal = 1;
104
+
105
+ // The intended audience(s) for this authentication information. Reflects
106
+ // the audience (`aud`) claim within a JWT. The audience
107
+ // value(s) depends on the `issuer`, but typically include one or more of
108
+ // the following pieces of information:
109
+ //
110
+ // * The services intended to receive the credential such as
111
+ // ["pubsub.googleapis.com", "storage.googleapis.com"]
112
+ // * A set of service-based scopes. For example,
113
+ // ["https://www.googleapis.com/auth/cloud-platform"]
114
+ // * The client id of an app, such as the Firebase project id for JWTs
115
+ // from Firebase Auth.
116
+ //
117
+ // Consult the documentation for the credential issuer to determine the
118
+ // information provided.
119
+ repeated string audiences = 2;
120
+
121
+ // The authorized presenter of the credential. Reflects the optional
122
+ // Authorized Presenter (`azp`) claim within a JWT or the
123
+ // OAuth client id. For example, a Google Cloud Platform client id looks
124
+ // as follows: "123456789012.apps.googleusercontent.com".
125
+ string presenter = 3;
126
+
127
+ // Structured claims presented with the credential. JWTs include
128
+ // `{key: value}` pairs for standard and private claims. The following
129
+ // is a subset of the standard required and optional claims that would
130
+ // typically be presented for a Google-based JWT:
131
+ //
132
+ // {'iss': 'accounts.google.com',
133
+ // 'sub': '113289723416554971153',
134
+ // 'aud': ['123456789012', 'pubsub.googleapis.com'],
135
+ // 'azp': '123456789012.apps.googleusercontent.com',
136
+ // 'email': 'jsmith@example.com',
137
+ // 'iat': 1353601026,
138
+ // 'exp': 1353604926}
139
+ //
140
+ // SAML assertions are similarly specified, but with an identity provider
141
+ // dependent structure.
142
+ google.protobuf.Struct claims = 4;
143
+
144
+ // A list of access level resource names that allow resources to be
145
+ // accessed by authenticated requester. It is part of Secure GCP processing
146
+ // for the incoming request. An access level string has the format:
147
+ // "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
148
+ //
149
+ // Example:
150
+ // "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
151
+ repeated string access_levels = 5;
152
+ }
153
+
154
+ // This message defines attributes for an HTTP request. If the actual
155
+ // request is not an HTTP request, the runtime system should try to map
156
+ // the actual request to an equivalent HTTP request.
157
+ message Request {
158
+ // The unique ID for a request, which can be propagated to downstream
159
+ // systems. The ID should have low probability of collision
160
+ // within a single day for a specific service.
161
+ string id = 1;
162
+
163
+ // The HTTP request method, such as `GET`, `POST`.
164
+ string method = 2;
165
+
166
+ // The HTTP request headers. If multiple headers share the same key, they
167
+ // must be merged according to the HTTP spec. All header keys must be
168
+ // lowercased, because HTTP header keys are case-insensitive.
169
+ map<string, string> headers = 3;
170
+
171
+ // The HTTP URL path.
172
+ string path = 4;
173
+
174
+ // The HTTP request `Host` header value.
175
+ string host = 5;
176
+
177
+ // The HTTP URL scheme, such as `http` and `https`.
178
+ string scheme = 6;
179
+
180
+ // The HTTP URL query in the format of `name1=value1&name2=value2`, as it
181
+ // appears in the first line of the HTTP request. No decoding is performed.
182
+ string query = 7;
183
+
184
+ // The timestamp when the `destination` service receives the first byte of
185
+ // the request.
186
+ google.protobuf.Timestamp time = 9;
187
+
188
+ // The HTTP request size in bytes. If unknown, it must be -1.
189
+ int64 size = 10;
190
+
191
+ // The network protocol used with the request, such as "http/1.1",
192
+ // "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
193
+ // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
194
+ // for details.
195
+ string protocol = 11;
196
+
197
+ // A special parameter for request reason. It is used by security systems
198
+ // to associate auditing information with a request.
199
+ string reason = 12;
200
+
201
+ // The request authentication. May be absent for unauthenticated requests.
202
+ // Derived from the HTTP request `Authorization` header or equivalent.
203
+ Auth auth = 13;
204
+ }
205
+
206
+ // This message defines attributes for a typical network response. It
207
+ // generally models semantics of an HTTP response.
208
+ message Response {
209
+ // The HTTP response status code, such as `200` and `404`.
210
+ int64 code = 1;
211
+
212
+ // The HTTP response size in bytes. If unknown, it must be -1.
213
+ int64 size = 2;
214
+
215
+ // The HTTP response headers. If multiple headers share the same key, they
216
+ // must be merged according to HTTP spec. All header keys must be
217
+ // lowercased, because HTTP header keys are case-insensitive.
218
+ map<string, string> headers = 3;
219
+
220
+ // The timestamp when the `destination` service generates the first byte of
221
+ // the response.
222
+ google.protobuf.Timestamp time = 4;
223
+ }
224
+
225
+ // This message defines core attributes for a resource. A resource is an
226
+ // addressable (named) entity provided by the destination service. For
227
+ // example, a file stored on a network storage service.
228
+ message Resource {
229
+ // The name of the service that this resource belongs to, such as
230
+ // `pubsub.googleapis.com`. The service may be different from the DNS
231
+ // hostname that actually serves the request.
232
+ string service = 1;
233
+
234
+ // The stable identifier (name) of a resource on the `service`. A resource
235
+ // can be logically identified as "//{resource.service}/{resource.name}".
236
+ // The differences between a resource name and a URI are:
237
+ //
238
+ // * Resource name is a logical identifier, independent of network
239
+ // protocol and API version. For example,
240
+ // `//pubsub.googleapis.com/projects/123/topics/news-feed`.
241
+ // * URI often includes protocol and version information, so it can
242
+ // be used directly by applications. For example,
243
+ // `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
244
+ //
245
+ // See https://cloud.google.com/apis/design/resource_names for details.
246
+ string name = 2;
247
+
248
+ // The type of the resource. The syntax is platform-specific because
249
+ // different platforms define their resources differently.
250
+ //
251
+ // For Google APIs, the type format must be "{service}/{kind}".
252
+ string type = 3;
253
+
254
+ // The labels or tags on the resource, such as AWS resource tags and
255
+ // Kubernetes resource labels.
256
+ map<string, string> labels = 4;
257
+ }
258
+
259
+ // The origin of a network activity. In a multi hop network activity,
260
+ // the origin represents the sender of the first hop. For the first hop,
261
+ // the `source` and the `origin` must have the same content.
262
+ Peer origin = 7;
263
+
264
+ // The source of a network activity, such as starting a TCP connection.
265
+ // In a multi hop network activity, the source represents the sender of the
266
+ // last hop.
267
+ Peer source = 1;
268
+
269
+ // The destination of a network activity, such as accepting a TCP connection.
270
+ // In a multi hop network activity, the destination represents the receiver of
271
+ // the last hop.
272
+ Peer destination = 2;
273
+
274
+ // Represents a network request, such as an HTTP request.
275
+ Request request = 3;
276
+
277
+ // Represents a network response, such as an HTTP response.
278
+ Response response = 4;
279
+
280
+ // Represents a target resource that is involved with a network activity.
281
+ // If multiple resources are involved with an activity, this must be the
282
+ // primary one.
283
+ Resource resource = 5;
284
+
285
+ // Represents an API operation that is involved to a network activity.
286
+ Api api = 6;
287
+ }
@@ -0,0 +1,246 @@
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.rpc;
18
+
19
+ import "google/protobuf/duration.proto";
20
+
21
+ option go_package = "google.golang.org/genproto/googleapis/rpc/errdetails;errdetails";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "ErrorDetailsProto";
24
+ option java_package = "com.google.rpc";
25
+ option objc_class_prefix = "RPC";
26
+
27
+ // Describes when the clients can retry a failed request. Clients could ignore
28
+ // the recommendation here or retry when this information is missing from error
29
+ // responses.
30
+ //
31
+ // It's always recommended that clients should use exponential backoff when
32
+ // retrying.
33
+ //
34
+ // Clients should wait until `retry_delay` amount of time has passed since
35
+ // receiving the error response before retrying. If retrying requests also
36
+ // fail, clients should use an exponential backoff scheme to gradually increase
37
+ // the delay between retries based on `retry_delay`, until either a maximum
38
+ // number of retries have been reached or a maximum retry delay cap has been
39
+ // reached.
40
+ message RetryInfo {
41
+ // Clients should wait at least this long between retrying the same request.
42
+ google.protobuf.Duration retry_delay = 1;
43
+ }
44
+
45
+ // Describes additional debugging info.
46
+ message DebugInfo {
47
+ // The stack trace entries indicating where the error occurred.
48
+ repeated string stack_entries = 1;
49
+
50
+ // Additional debugging information provided by the server.
51
+ string detail = 2;
52
+ }
53
+
54
+ // Describes how a quota check failed.
55
+ //
56
+ // For example if a daily limit was exceeded for the calling project,
57
+ // a service could respond with a QuotaFailure detail containing the project
58
+ // id and the description of the quota limit that was exceeded. If the
59
+ // calling project hasn't enabled the service in the developer console, then
60
+ // a service could respond with the project id and set `service_disabled`
61
+ // to true.
62
+ //
63
+ // Also see RetryInfo and Help types for other details about handling a
64
+ // quota failure.
65
+ message QuotaFailure {
66
+ // A message type used to describe a single quota violation. For example, a
67
+ // daily quota or a custom quota that was exceeded.
68
+ message Violation {
69
+ // The subject on which the quota check failed.
70
+ // For example, "clientip:<ip address of client>" or "project:<Google
71
+ // developer project id>".
72
+ string subject = 1;
73
+
74
+ // A description of how the quota check failed. Clients can use this
75
+ // description to find more about the quota configuration in the service's
76
+ // public documentation, or find the relevant quota limit to adjust through
77
+ // developer console.
78
+ //
79
+ // For example: "Service disabled" or "Daily Limit for read operations
80
+ // exceeded".
81
+ string description = 2;
82
+ }
83
+
84
+ // Describes all quota violations.
85
+ repeated Violation violations = 1;
86
+ }
87
+
88
+ // Describes the cause of the error with structured details.
89
+ //
90
+ // Example of an error when contacting the "pubsub.googleapis.com" API when it
91
+ // is not enabled:
92
+ // { "reason": "API_DISABLED"
93
+ // "domain": "googleapis.com"
94
+ // "metadata": {
95
+ // "resource": "projects/123",
96
+ // "service": "pubsub.googleapis.com"
97
+ // }
98
+ // }
99
+ // This response indicates that the pubsub.googleapis.com API is not enabled.
100
+ //
101
+ // Example of an error that is returned when attempting to create a Spanner
102
+ // instance in a region that is out of stock:
103
+ // { "reason": "STOCKOUT"
104
+ // "domain": "spanner.googleapis.com",
105
+ // "metadata": {
106
+ // "availableRegions": "us-central1,us-east2"
107
+ // }
108
+ // }
109
+ //
110
+ message ErrorInfo {
111
+ // The reason of the error. This is a constant value that identifies the
112
+ // proximate cause of the error. Error reasons are unique within a particular
113
+ // domain of errors. This should be at most 63 characters and match
114
+ // /[A-Z0-9_]+/.
115
+ string reason = 1;
116
+
117
+ // The logical grouping to which the "reason" belongs. Often "domain" will
118
+ // contain the registered service name of the tool or product that is the
119
+ // source of the error. Example: "pubsub.googleapis.com". If the error is
120
+ // common across many APIs, the first segment of the example above will be
121
+ // omitted. The value will be, "googleapis.com".
122
+ string domain = 2;
123
+
124
+ // Additional structured details about this error.
125
+ //
126
+ // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
127
+ // length. When identifying the current value of an exceeded limit, the units
128
+ // should be contained in the key, not the value. For example, rather than
129
+ // {"instanceLimit": "100/request"}, should be returned as,
130
+ // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
131
+ // instances that can be created in a single (batch) request.
132
+ map<string, string> metadata = 3;
133
+ }
134
+
135
+ // Describes what preconditions have failed.
136
+ //
137
+ // For example, if an RPC failed because it required the Terms of Service to be
138
+ // acknowledged, it could list the terms of service violation in the
139
+ // PreconditionFailure message.
140
+ message PreconditionFailure {
141
+ // A message type used to describe a single precondition failure.
142
+ message Violation {
143
+ // The type of PreconditionFailure. We recommend using a service-specific
144
+ // enum type to define the supported precondition violation subjects. For
145
+ // example, "TOS" for "Terms of Service violation".
146
+ string type = 1;
147
+
148
+ // The subject, relative to the type, that failed.
149
+ // For example, "google.com/cloud" relative to the "TOS" type would indicate
150
+ // which terms of service is being referenced.
151
+ string subject = 2;
152
+
153
+ // A description of how the precondition failed. Developers can use this
154
+ // description to understand how to fix the failure.
155
+ //
156
+ // For example: "Terms of service not accepted".
157
+ string description = 3;
158
+ }
159
+
160
+ // Describes all precondition violations.
161
+ repeated Violation violations = 1;
162
+ }
163
+
164
+ // Describes violations in a client request. This error type focuses on the
165
+ // syntactic aspects of the request.
166
+ message BadRequest {
167
+ // A message type used to describe a single bad request field.
168
+ message FieldViolation {
169
+ // A path leading to a field in the request body. The value will be a
170
+ // sequence of dot-separated identifiers that identify a protocol buffer
171
+ // field. E.g., "field_violations.field" would identify this field.
172
+ string field = 1;
173
+
174
+ // A description of why the request element is bad.
175
+ string description = 2;
176
+ }
177
+
178
+ // Describes all violations in a client request.
179
+ repeated FieldViolation field_violations = 1;
180
+ }
181
+
182
+ // Contains metadata about the request that clients can attach when filing a bug
183
+ // or providing other forms of feedback.
184
+ message RequestInfo {
185
+ // An opaque string that should only be interpreted by the service generating
186
+ // it. For example, it can be used to identify requests in the service's logs.
187
+ string request_id = 1;
188
+
189
+ // Any data that was used to serve this request. For example, an encrypted
190
+ // stack trace that can be sent back to the service provider for debugging.
191
+ string serving_data = 2;
192
+ }
193
+
194
+ // Describes the resource that is being accessed.
195
+ message ResourceInfo {
196
+ // A name for the type of resource being accessed, e.g. "sql table",
197
+ // "cloud storage bucket", "file", "Google calendar"; or the type URL
198
+ // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
199
+ string resource_type = 1;
200
+
201
+ // The name of the resource being accessed. For example, a shared calendar
202
+ // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
203
+ // error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
204
+ string resource_name = 2;
205
+
206
+ // The owner of the resource (optional).
207
+ // For example, "user:<owner email>" or "project:<Google developer project
208
+ // id>".
209
+ string owner = 3;
210
+
211
+ // Describes what error is encountered when accessing this resource.
212
+ // For example, updating a cloud project may require the `writer` permission
213
+ // on the developer console project.
214
+ string description = 4;
215
+ }
216
+
217
+ // Provides links to documentation or for performing an out of band action.
218
+ //
219
+ // For example, if a quota check failed with an error indicating the calling
220
+ // project hasn't enabled the accessed service, this can contain a URL pointing
221
+ // directly to the right place in the developer console to flip the bit.
222
+ message Help {
223
+ // Describes a URL link.
224
+ message Link {
225
+ // Describes what the link offers.
226
+ string description = 1;
227
+
228
+ // The URL of the link.
229
+ string url = 2;
230
+ }
231
+
232
+ // URL(s) pointing to additional information on handling the current error.
233
+ repeated Link links = 1;
234
+ }
235
+
236
+ // Provides a localized error message that is safe to return to the user
237
+ // which can be attached to an RPC error.
238
+ message LocalizedMessage {
239
+ // The locale used following the specification defined at
240
+ // http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
241
+ // Examples are: "en-US", "fr-CH", "es-MX"
242
+ string locale = 1;
243
+
244
+ // The localized error message in the above locale.
245
+ string message = 2;
246
+ }
@@ -0,0 +1,47 @@
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.rpc;
18
+
19
+ import "google/protobuf/any.proto";
20
+
21
+ option cc_enable_arenas = true;
22
+ option go_package = "google.golang.org/genproto/googleapis/rpc/status;status";
23
+ option java_multiple_files = true;
24
+ option java_outer_classname = "StatusProto";
25
+ option java_package = "com.google.rpc";
26
+ option objc_class_prefix = "RPC";
27
+
28
+ // The `Status` type defines a logical error model that is suitable for
29
+ // different programming environments, including REST APIs and RPC APIs. It is
30
+ // used by [gRPC](https://github.com/grpc). Each `Status` message contains
31
+ // three pieces of data: error code, error message, and error details.
32
+ //
33
+ // You can find out more about this error model and how to work with it in the
34
+ // [API Design Guide](https://cloud.google.com/apis/design/errors).
35
+ message Status {
36
+ // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
37
+ int32 code = 1;
38
+
39
+ // A developer-facing error message, which should be in English. Any
40
+ // user-facing error message should be localized and sent in the
41
+ // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
42
+ string message = 2;
43
+
44
+ // A list of messages that carry the error details. There is a common set of
45
+ // message types for APIs to use.
46
+ repeated google.protobuf.Any details = 3;
47
+ }
@@ -0,0 +1,57 @@
1
+ // Copyright 2019 Google LLC.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ //
15
+
16
+ syntax = "proto3";
17
+
18
+ package google.type;
19
+
20
+ option go_package = "google.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod";
21
+ option java_multiple_files = true;
22
+ option java_outer_classname = "CalendarPeriodProto";
23
+ option java_package = "com.google.type";
24
+ option objc_class_prefix = "GTP";
25
+
26
+ // A `CalendarPeriod` represents the abstract concept of a time period that has
27
+ // a canonical start. Grammatically, "the start of the current
28
+ // `CalendarPeriod`." All calendar times begin at midnight UTC.
29
+ enum CalendarPeriod {
30
+ // Undefined period, raises an error.
31
+ CALENDAR_PERIOD_UNSPECIFIED = 0;
32
+
33
+ // A day.
34
+ DAY = 1;
35
+
36
+ // A week. Weeks begin on Monday, following
37
+ // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
38
+ WEEK = 2;
39
+
40
+ // A fortnight. The first calendar fortnight of the year begins at the start
41
+ // of week 1 according to
42
+ // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
43
+ FORTNIGHT = 3;
44
+
45
+ // A month.
46
+ MONTH = 4;
47
+
48
+ // A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
49
+ // year.
50
+ QUARTER = 5;
51
+
52
+ // A half-year. Half-years start on dates 1-Jan and 1-Jul.
53
+ HALF = 6;
54
+
55
+ // A year.
56
+ YEAR = 7;
57
+ }