@devvit/protos 0.11.6-next-2025-01-27-b8c6b7794.0 → 0.11.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. package/package.json +4 -4
  2. package/schema/devvit/plugin/buildpack/buildpack_common.proto +1 -6
  3. package/schema/snootobuf.devenv.lock +102 -210
  4. package/schema/snootobuf.lock +102 -210
  5. package/schema/snootobuf.redditapi.lock +102 -210
  6. package/schema/snootobuf.ts.lock +102 -210
  7. package/types/devvit/dev_portal/dev_portal.d.ts +0 -2
  8. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  9. package/types/devvit/plugin/builder/builder.d.ts +0 -4
  10. package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
  11. package/types/devvit/plugin/buildpack/buildpack.d.ts +0 -8
  12. package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
  13. package/types/devvit/plugin/buildpack/buildpack_common.d.ts +0 -3
  14. package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
  15. package/types/devvit/plugin/buildpack/buildpack_common.js +1 -37
  16. package/types/devvit/plugin/linker/linker.d.ts +0 -2
  17. package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
  18. package/types/devvit/plugin/linker/resolver.d.ts +0 -2
  19. package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
  20. package/meta.min.json +0 -7820
  21. package/protos.min.js +0 -2
  22. package/protos.min.js.map +0 -7
  23. package/schema/.snootobuf/deps/buf/validate/expression.proto +0 -92
  24. package/schema/.snootobuf/deps/buf/validate/priv/private.proto +0 -41
  25. package/schema/.snootobuf/deps/buf/validate/validate.proto +0 -4130
  26. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +0 -72
  27. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +0 -49
  28. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +0 -54
  29. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +0 -46
  30. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +0 -72
  31. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +0 -20
  32. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +0 -45
  33. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +0 -54
  34. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +0 -773
  35. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +0 -66
  36. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +0 -100
  37. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +0 -19
  38. package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +0 -446
  39. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +0 -24
  40. package/schema/.snootobuf/deps/devvit/options/options.proto +0 -98
  41. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +0 -29
  42. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +0 -25
  43. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +0 -53
  44. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +0 -56
  45. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +0 -107
  46. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +0 -41
  47. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +0 -23
  48. package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +0 -162
  49. package/schema/.snootobuf/deps/enum/account_gender_category.proto +0 -14
  50. package/schema/.snootobuf/deps/enum/approval_status.proto +0 -15
  51. package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +0 -12
  52. package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +0 -13
  53. package/schema/.snootobuf/deps/enum/ban_info_action.proto +0 -12
  54. package/schema/.snootobuf/deps/enum/block_relation_type.proto +0 -11
  55. package/schema/.snootobuf/deps/enum/comment_sort.proto +0 -18
  56. package/schema/.snootobuf/deps/enum/comment_type.proto +0 -11
  57. package/schema/.snootobuf/deps/enum/crowd_control_level.proto +0 -12
  58. package/schema/.snootobuf/deps/enum/discussion_type.proto +0 -10
  59. package/schema/.snootobuf/deps/enum/distinguish_type.proto +0 -14
  60. package/schema/.snootobuf/deps/enum/flair_position.proto +0 -11
  61. package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +0 -12
  62. package/schema/.snootobuf/deps/enum/link_content_type.proto +0 -11
  63. package/schema/.snootobuf/deps/enum/link_type.proto +0 -11
  64. package/schema/.snootobuf/deps/enum/link_visibility.proto +0 -11
  65. package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +0 -11
  66. package/schema/.snootobuf/deps/enum/promo_layout.proto +0 -11
  67. package/schema/.snootobuf/deps/enum/removed_by_type.proto +0 -18
  68. package/schema/.snootobuf/deps/enum/spam_level.proto +0 -11
  69. package/schema/.snootobuf/deps/enum/subreddit_type.proto +0 -16
  70. package/schema/.snootobuf/deps/enum/verdict.proto +0 -14
  71. package/schema/.snootobuf/deps/enum/vote.proto +0 -12
  72. package/schema/.snootobuf/deps/enum/whitelist_status.proto +0 -17
  73. package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +0 -12
  74. package/schema/.snootobuf/deps/evaluator/evaluator.proto +0 -203
  75. package/schema/.snootobuf/deps/google/api/annotations.proto +0 -31
  76. package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +0 -288
  77. package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +0 -175
  78. package/schema/.snootobuf/deps/google/api/auth.proto +0 -237
  79. package/schema/.snootobuf/deps/google/api/backend.proto +0 -185
  80. package/schema/.snootobuf/deps/google/api/billing.proto +0 -77
  81. package/schema/.snootobuf/deps/google/api/client.proto +0 -431
  82. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
  83. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +0 -315
  84. package/schema/.snootobuf/deps/google/api/config_change.proto +0 -84
  85. package/schema/.snootobuf/deps/google/api/consumer.proto +0 -82
  86. package/schema/.snootobuf/deps/google/api/context.proto +0 -92
  87. package/schema/.snootobuf/deps/google/api/control.proto +0 -41
  88. package/schema/.snootobuf/deps/google/api/distribution.proto +0 -213
  89. package/schema/.snootobuf/deps/google/api/documentation.proto +0 -168
  90. package/schema/.snootobuf/deps/google/api/endpoint.proto +0 -69
  91. package/schema/.snootobuf/deps/google/api/error_reason.proto +0 -589
  92. package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
  93. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +0 -343
  94. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +0 -118
  95. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +0 -53
  96. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +0 -438
  97. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +0 -115
  98. package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +0 -84
  99. package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +0 -125
  100. package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +0 -265
  101. package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +0 -62
  102. package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +0 -114
  103. package/schema/.snootobuf/deps/google/api/field_behavior.proto +0 -104
  104. package/schema/.snootobuf/deps/google/api/field_info.proto +0 -106
  105. package/schema/.snootobuf/deps/google/api/http.proto +0 -371
  106. package/schema/.snootobuf/deps/google/api/httpbody.proto +0 -81
  107. package/schema/.snootobuf/deps/google/api/label.proto +0 -48
  108. package/schema/.snootobuf/deps/google/api/launch_stage.proto +0 -72
  109. package/schema/.snootobuf/deps/google/api/log.proto +0 -54
  110. package/schema/.snootobuf/deps/google/api/logging.proto +0 -81
  111. package/schema/.snootobuf/deps/google/api/metric.proto +0 -268
  112. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +0 -130
  113. package/schema/.snootobuf/deps/google/api/monitoring.proto +0 -107
  114. package/schema/.snootobuf/deps/google/api/policy.proto +0 -85
  115. package/schema/.snootobuf/deps/google/api/quota.proto +0 -184
  116. package/schema/.snootobuf/deps/google/api/resource.proto +0 -243
  117. package/schema/.snootobuf/deps/google/api/routing.proto +0 -461
  118. package/schema/.snootobuf/deps/google/api/service.proto +0 -191
  119. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +0 -124
  120. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +0 -166
  121. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +0 -93
  122. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +0 -126
  123. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +0 -81
  124. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +0 -123
  125. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +0 -245
  126. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +0 -260
  127. package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +0 -196
  128. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +0 -295
  129. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +0 -508
  130. package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +0 -130
  131. package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +0 -305
  132. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +0 -458
  133. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
  134. package/schema/.snootobuf/deps/google/api/source_info.proto +0 -31
  135. package/schema/.snootobuf/deps/google/api/system_parameter.proto +0 -96
  136. package/schema/.snootobuf/deps/google/api/usage.proto +0 -96
  137. package/schema/.snootobuf/deps/google/api/visibility.proto +0 -113
  138. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +0 -150
  139. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +0 -1087
  140. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +0 -145
  141. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +0 -34
  142. package/schema/.snootobuf/deps/google/iam/v1/options.proto +0 -41
  143. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +0 -240
  144. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +0 -92
  145. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +0 -72
  146. package/schema/.snootobuf/deps/google/longrunning/operations.proto +0 -247
  147. package/schema/.snootobuf/deps/google/protobuf/any.proto +0 -158
  148. package/schema/.snootobuf/deps/google/protobuf/api.proto +0 -208
  149. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +0 -183
  150. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +0 -921
  151. package/schema/.snootobuf/deps/google/protobuf/duration.proto +0 -116
  152. package/schema/.snootobuf/deps/google/protobuf/empty.proto +0 -51
  153. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +0 -245
  154. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +0 -48
  155. package/schema/.snootobuf/deps/google/protobuf/struct.proto +0 -95
  156. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +0 -147
  157. package/schema/.snootobuf/deps/google/protobuf/type.proto +0 -187
  158. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +0 -123
  159. package/schema/.snootobuf/deps/google/rpc/code.proto +0 -186
  160. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +0 -287
  161. package/schema/.snootobuf/deps/google/rpc/error_details.proto +0 -246
  162. package/schema/.snootobuf/deps/google/rpc/status.proto +0 -47
  163. package/schema/.snootobuf/deps/google/type/calendar_period.proto +0 -57
  164. package/schema/.snootobuf/deps/google/type/color.proto +0 -170
  165. package/schema/.snootobuf/deps/google/type/date.proto +0 -50
  166. package/schema/.snootobuf/deps/google/type/datetime.proto +0 -97
  167. package/schema/.snootobuf/deps/google/type/dayofweek.proto +0 -51
  168. package/schema/.snootobuf/deps/google/type/expr.proto +0 -51
  169. package/schema/.snootobuf/deps/google/type/fraction.proto +0 -34
  170. package/schema/.snootobuf/deps/google/type/latlng.proto +0 -37
  171. package/schema/.snootobuf/deps/google/type/money.proto +0 -43
  172. package/schema/.snootobuf/deps/google/type/month.proto +0 -66
  173. package/schema/.snootobuf/deps/google/type/postal_address.proto +0 -135
  174. package/schema/.snootobuf/deps/google/type/quaternion.proto +0 -95
  175. package/schema/.snootobuf/deps/google/type/timeofday.proto +0 -44
  176. package/schema/.snootobuf/deps/openapi/helper.proto +0 -20
  177. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
  178. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -118
  179. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +0 -55
  180. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +0 -579
  181. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +0 -43
  182. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +0 -82
  183. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +0 -221
  184. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +0 -78
  185. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +0 -189
  186. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +0 -29
  187. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +0 -417
  188. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +0 -72
  189. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +0 -25
  190. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +0 -52
  191. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +0 -16
  192. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +0 -20
  193. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +0 -149
  194. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +0 -197
  195. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +0 -116
  196. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +0 -25
  197. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +0 -101
  198. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +0 -34
  199. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +0 -798
  200. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +0 -186
  201. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +0 -110
  202. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +0 -51
  203. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +0 -1202
  204. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +0 -85
  205. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +0 -363
  206. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +0 -301
  207. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +0 -2869
  208. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +0 -15
  209. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +0 -11
  210. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +0 -48
  211. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +0 -70
  212. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +0 -11
  213. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +0 -17
  214. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +0 -89
  215. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +0 -322
  216. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +0 -17
  217. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +0 -14
  218. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +0 -15
  219. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +0 -48
  220. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +0 -31
  221. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +0 -26
  222. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +0 -15
  223. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +0 -52
  224. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +0 -23
  225. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +0 -28
  226. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +0 -17
  227. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +0 -49
  228. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +0 -20
  229. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +0 -17
  230. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +0 -158
  231. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +0 -18
  232. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +0 -195
  233. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +0 -44
  234. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +0 -200
  235. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +0 -18
  236. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +0 -210
  237. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
  238. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -135
  239. package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +0 -29
  240. package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +0 -3292
  241. package/schema/.snootobuf/deps/validate/validate.proto +0 -862
@@ -1,85 +0,0 @@
1
- // Copyright 2024 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.api;
18
-
19
- import "google/protobuf/descriptor.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "PolicyProto";
25
- option java_package = "com.google.api";
26
- option objc_class_prefix = "GAPI";
27
-
28
- // Provides `google.api.field_policy` annotation at proto fields.
29
- extend google.protobuf.FieldOptions {
30
- // See [FieldPolicy][].
31
- FieldPolicy field_policy = 158361448;
32
- }
33
-
34
- // Provides `google.api.method_policy` annotation at proto methods.
35
- extend google.protobuf.MethodOptions {
36
- // See [MethodPolicy][].
37
- MethodPolicy method_policy = 161893301;
38
- }
39
-
40
- // Google API Policy Annotation
41
- //
42
- // This message defines a simple API policy annotation that can be used to
43
- // annotate API request and response message fields with applicable policies.
44
- // One field may have multiple applicable policies that must all be satisfied
45
- // before a request can be processed. This policy annotation is used to
46
- // generate the overall policy that will be used for automatic runtime
47
- // policy enforcement and documentation generation.
48
- message FieldPolicy {
49
- // Selects one or more request or response message fields to apply this
50
- // `FieldPolicy`.
51
- //
52
- // When a `FieldPolicy` is used in proto annotation, the selector must
53
- // be left as empty. The service config generator will automatically fill
54
- // the correct value.
55
- //
56
- // When a `FieldPolicy` is used in service config, the selector must be a
57
- // comma-separated string with valid request or response field paths,
58
- // such as "foo.bar" or "foo.bar,foo.baz".
59
- string selector = 1;
60
-
61
- // Specifies the required permission(s) for the resource referred to by the
62
- // field. It requires the field contains a valid resource reference, and
63
- // the request must pass the permission checks to proceed. For example,
64
- // "resourcemanager.projects.get".
65
- string resource_permission = 2;
66
-
67
- // Specifies the resource type for the resource referred to by the field.
68
- string resource_type = 3;
69
- }
70
-
71
- // Defines policies applying to an RPC method.
72
- message MethodPolicy {
73
- // Selects a method to which these policies should be enforced, for example,
74
- // "google.pubsub.v1.Subscriber.CreateSubscription".
75
- //
76
- // Refer to [selector][google.api.DocumentationRule.selector] for syntax
77
- // details.
78
- //
79
- // NOTE: This field must not be set in the proto annotation. It will be
80
- // automatically filled by the service config compiler .
81
- string selector = 9;
82
-
83
- // Policies that are applicable to the request message.
84
- repeated FieldPolicy request_policies = 2;
85
- }
@@ -1,184 +0,0 @@
1
- // Copyright 2024 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.api;
18
-
19
- option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "QuotaProto";
22
- option java_package = "com.google.api";
23
- option objc_class_prefix = "GAPI";
24
-
25
- // Quota configuration helps to achieve fairness and budgeting in service
26
- // usage.
27
- //
28
- // The metric based quota configuration works this way:
29
- // - The service configuration defines a set of metrics.
30
- // - For API calls, the quota.metric_rules maps methods to metrics with
31
- // corresponding costs.
32
- // - The quota.limits defines limits on the metrics, which will be used for
33
- // quota checks at runtime.
34
- //
35
- // An example quota configuration in yaml format:
36
- //
37
- // quota:
38
- // limits:
39
- //
40
- // - name: apiWriteQpsPerProject
41
- // metric: library.googleapis.com/write_calls
42
- // unit: "1/min/{project}" # rate limit for consumer projects
43
- // values:
44
- // STANDARD: 10000
45
- //
46
- //
47
- // (The metric rules bind all methods to the read_calls metric,
48
- // except for the UpdateBook and DeleteBook methods. These two methods
49
- // are mapped to the write_calls metric, with the UpdateBook method
50
- // consuming at twice rate as the DeleteBook method.)
51
- // metric_rules:
52
- // - selector: "*"
53
- // metric_costs:
54
- // library.googleapis.com/read_calls: 1
55
- // - selector: google.example.library.v1.LibraryService.UpdateBook
56
- // metric_costs:
57
- // library.googleapis.com/write_calls: 2
58
- // - selector: google.example.library.v1.LibraryService.DeleteBook
59
- // metric_costs:
60
- // library.googleapis.com/write_calls: 1
61
- //
62
- // Corresponding Metric definition:
63
- //
64
- // metrics:
65
- // - name: library.googleapis.com/read_calls
66
- // display_name: Read requests
67
- // metric_kind: DELTA
68
- // value_type: INT64
69
- //
70
- // - name: library.googleapis.com/write_calls
71
- // display_name: Write requests
72
- // metric_kind: DELTA
73
- // value_type: INT64
74
- //
75
- //
76
- message Quota {
77
- // List of QuotaLimit definitions for the service.
78
- repeated QuotaLimit limits = 3;
79
-
80
- // List of MetricRule definitions, each one mapping a selected method to one
81
- // or more metrics.
82
- repeated MetricRule metric_rules = 4;
83
- }
84
-
85
- // Bind API methods to metrics. Binding a method to a metric causes that
86
- // metric's configured quota behaviors to apply to the method call.
87
- message MetricRule {
88
- // Selects the methods to which this rule applies.
89
- //
90
- // Refer to [selector][google.api.DocumentationRule.selector] for syntax
91
- // details.
92
- string selector = 1;
93
-
94
- // Metrics to update when the selected methods are called, and the associated
95
- // cost applied to each metric.
96
- //
97
- // The key of the map is the metric name, and the values are the amount
98
- // increased for the metric against which the quota limits are defined.
99
- // The value must not be negative.
100
- map<string, int64> metric_costs = 2;
101
- }
102
-
103
- // `QuotaLimit` defines a specific limit that applies over a specified duration
104
- // for a limit type. There can be at most one limit for a duration and limit
105
- // type combination defined within a `QuotaGroup`.
106
- message QuotaLimit {
107
- // Name of the quota limit.
108
- //
109
- // The name must be provided, and it must be unique within the service. The
110
- // name can only include alphanumeric characters as well as '-'.
111
- //
112
- // The maximum length of the limit name is 64 characters.
113
- string name = 6;
114
-
115
- // Optional. User-visible, extended description for this quota limit.
116
- // Should be used only when more context is needed to understand this limit
117
- // than provided by the limit's display name (see: `display_name`).
118
- string description = 2;
119
-
120
- // Default number of tokens that can be consumed during the specified
121
- // duration. This is the number of tokens assigned when a client
122
- // application developer activates the service for his/her project.
123
- //
124
- // Specifying a value of 0 will block all requests. This can be used if you
125
- // are provisioning quota to selected consumers and blocking others.
126
- // Similarly, a value of -1 will indicate an unlimited quota. No other
127
- // negative values are allowed.
128
- //
129
- // Used by group-based quotas only.
130
- int64 default_limit = 3;
131
-
132
- // Maximum number of tokens that can be consumed during the specified
133
- // duration. Client application developers can override the default limit up
134
- // to this maximum. If specified, this value cannot be set to a value less
135
- // than the default limit. If not specified, it is set to the default limit.
136
- //
137
- // To allow clients to apply overrides with no upper bound, set this to -1,
138
- // indicating unlimited maximum quota.
139
- //
140
- // Used by group-based quotas only.
141
- int64 max_limit = 4;
142
-
143
- // Free tier value displayed in the Developers Console for this limit.
144
- // The free tier is the number of tokens that will be subtracted from the
145
- // billed amount when billing is enabled.
146
- // This field can only be set on a limit with duration "1d", in a billable
147
- // group; it is invalid on any other limit. If this field is not set, it
148
- // defaults to 0, indicating that there is no free tier for this service.
149
- //
150
- // Used by group-based quotas only.
151
- int64 free_tier = 7;
152
-
153
- // Duration of this limit in textual notation. Must be "100s" or "1d".
154
- //
155
- // Used by group-based quotas only.
156
- string duration = 5;
157
-
158
- // The name of the metric this quota limit applies to. The quota limits with
159
- // the same metric will be checked together during runtime. The metric must be
160
- // defined within the service config.
161
- string metric = 8;
162
-
163
- // Specify the unit of the quota limit. It uses the same syntax as
164
- // [Metric.unit][]. The supported unit kinds are determined by the quota
165
- // backend system.
166
- //
167
- // Here are some examples:
168
- // * "1/min/{project}" for quota per minute per project.
169
- //
170
- // Note: the order of unit components is insignificant.
171
- // The "1" at the beginning is required to follow the metric unit syntax.
172
- string unit = 9;
173
-
174
- // Tiered limit values. You must specify this as a key:value pair, with an
175
- // integer value that is the maximum number of requests allowed for the
176
- // specified unit. Currently only STANDARD is supported.
177
- map<string, int64> values = 10;
178
-
179
- // User-visible display name for this limit.
180
- // Optional. If not set, the UI will provide a default display name based on
181
- // the quota configuration. This field can be used to override the default
182
- // display name generated from the configuration.
183
- string display_name = 12;
184
- }
@@ -1,243 +0,0 @@
1
- // Copyright 2024 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.api;
18
-
19
- import "google/protobuf/descriptor.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "ResourceProto";
25
- option java_package = "com.google.api";
26
- option objc_class_prefix = "GAPI";
27
-
28
- extend google.protobuf.FieldOptions {
29
- // An annotation that describes a resource reference, see
30
- // [ResourceReference][].
31
- google.api.ResourceReference resource_reference = 1055;
32
- }
33
-
34
- extend google.protobuf.FileOptions {
35
- // An annotation that describes a resource definition without a corresponding
36
- // message; see [ResourceDescriptor][].
37
- repeated google.api.ResourceDescriptor resource_definition = 1053;
38
- }
39
-
40
- extend google.protobuf.MessageOptions {
41
- // An annotation that describes a resource definition, see
42
- // [ResourceDescriptor][].
43
- google.api.ResourceDescriptor resource = 1053;
44
- }
45
-
46
- // A simple descriptor of a resource type.
47
- //
48
- // ResourceDescriptor annotates a resource message (either by means of a
49
- // protobuf annotation or use in the service config), and associates the
50
- // resource's schema, the resource type, and the pattern of the resource name.
51
- //
52
- // Example:
53
- //
54
- // message Topic {
55
- // // Indicates this message defines a resource schema.
56
- // // Declares the resource type in the format of {service}/{kind}.
57
- // // For Kubernetes resources, the format is {api group}/{kind}.
58
- // option (google.api.resource) = {
59
- // type: "pubsub.googleapis.com/Topic"
60
- // pattern: "projects/{project}/topics/{topic}"
61
- // };
62
- // }
63
- //
64
- // The ResourceDescriptor Yaml config will look like:
65
- //
66
- // resources:
67
- // - type: "pubsub.googleapis.com/Topic"
68
- // pattern: "projects/{project}/topics/{topic}"
69
- //
70
- // Sometimes, resources have multiple patterns, typically because they can
71
- // live under multiple parents.
72
- //
73
- // Example:
74
- //
75
- // message LogEntry {
76
- // option (google.api.resource) = {
77
- // type: "logging.googleapis.com/LogEntry"
78
- // pattern: "projects/{project}/logs/{log}"
79
- // pattern: "folders/{folder}/logs/{log}"
80
- // pattern: "organizations/{organization}/logs/{log}"
81
- // pattern: "billingAccounts/{billing_account}/logs/{log}"
82
- // };
83
- // }
84
- //
85
- // The ResourceDescriptor Yaml config will look like:
86
- //
87
- // resources:
88
- // - type: 'logging.googleapis.com/LogEntry'
89
- // pattern: "projects/{project}/logs/{log}"
90
- // pattern: "folders/{folder}/logs/{log}"
91
- // pattern: "organizations/{organization}/logs/{log}"
92
- // pattern: "billingAccounts/{billing_account}/logs/{log}"
93
- message ResourceDescriptor {
94
- // A description of the historical or future-looking state of the
95
- // resource pattern.
96
- enum History {
97
- // The "unset" value.
98
- HISTORY_UNSPECIFIED = 0;
99
-
100
- // The resource originally had one pattern and launched as such, and
101
- // additional patterns were added later.
102
- ORIGINALLY_SINGLE_PATTERN = 1;
103
-
104
- // The resource has one pattern, but the API owner expects to add more
105
- // later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
106
- // that from being necessary once there are multiple patterns.)
107
- FUTURE_MULTI_PATTERN = 2;
108
- }
109
-
110
- // A flag representing a specific style that a resource claims to conform to.
111
- enum Style {
112
- // The unspecified value. Do not use.
113
- STYLE_UNSPECIFIED = 0;
114
-
115
- // This resource is intended to be "declarative-friendly".
116
- //
117
- // Declarative-friendly resources must be more strictly consistent, and
118
- // setting this to true communicates to tools that this resource should
119
- // adhere to declarative-friendly expectations.
120
- //
121
- // Note: This is used by the API linter (linter.aip.dev) to enable
122
- // additional checks.
123
- DECLARATIVE_FRIENDLY = 1;
124
- }
125
-
126
- // The resource type. It must be in the format of
127
- // {service_name}/{resource_type_kind}. The `resource_type_kind` must be
128
- // singular and must not include version numbers.
129
- //
130
- // Example: `storage.googleapis.com/Bucket`
131
- //
132
- // The value of the resource_type_kind must follow the regular expression
133
- // /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
134
- // should use PascalCase (UpperCamelCase). The maximum number of
135
- // characters allowed for the `resource_type_kind` is 100.
136
- string type = 1;
137
-
138
- // Optional. The relative resource name pattern associated with this resource
139
- // type. The DNS prefix of the full resource name shouldn't be specified here.
140
- //
141
- // The path pattern must follow the syntax, which aligns with HTTP binding
142
- // syntax:
143
- //
144
- // Template = Segment { "/" Segment } ;
145
- // Segment = LITERAL | Variable ;
146
- // Variable = "{" LITERAL "}" ;
147
- //
148
- // Examples:
149
- //
150
- // - "projects/{project}/topics/{topic}"
151
- // - "projects/{project}/knowledgeBases/{knowledge_base}"
152
- //
153
- // The components in braces correspond to the IDs for each resource in the
154
- // hierarchy. It is expected that, if multiple patterns are provided,
155
- // the same component name (e.g. "project") refers to IDs of the same
156
- // type of resource.
157
- repeated string pattern = 2;
158
-
159
- // Optional. The field on the resource that designates the resource name
160
- // field. If omitted, this is assumed to be "name".
161
- string name_field = 3;
162
-
163
- // Optional. The historical or future-looking state of the resource pattern.
164
- //
165
- // Example:
166
- //
167
- // // The InspectTemplate message originally only supported resource
168
- // // names with organization, and project was added later.
169
- // message InspectTemplate {
170
- // option (google.api.resource) = {
171
- // type: "dlp.googleapis.com/InspectTemplate"
172
- // pattern:
173
- // "organizations/{organization}/inspectTemplates/{inspect_template}"
174
- // pattern: "projects/{project}/inspectTemplates/{inspect_template}"
175
- // history: ORIGINALLY_SINGLE_PATTERN
176
- // };
177
- // }
178
- History history = 4;
179
-
180
- // The plural name used in the resource name and permission names, such as
181
- // 'projects' for the resource name of 'projects/{project}' and the permission
182
- // name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
183
- // to this is for Nested Collections that have stuttering names, as defined
184
- // in [AIP-122](https://google.aip.dev/122#nested-collections), where the
185
- // collection ID in the resource name pattern does not necessarily directly
186
- // match the `plural` value.
187
- //
188
- // It is the same concept of the `plural` field in k8s CRD spec
189
- // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
190
- //
191
- // Note: The plural form is required even for singleton resources. See
192
- // https://aip.dev/156
193
- string plural = 5;
194
-
195
- // The same concept of the `singular` field in k8s CRD spec
196
- // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
197
- // Such as "project" for the `resourcemanager.googleapis.com/Project` type.
198
- string singular = 6;
199
-
200
- // Style flag(s) for this resource.
201
- // These indicate that a resource is expected to conform to a given
202
- // style. See the specific style flags for additional information.
203
- repeated Style style = 10;
204
- }
205
-
206
- // Defines a proto annotation that describes a string field that refers to
207
- // an API resource.
208
- message ResourceReference {
209
- // The resource type that the annotated field references.
210
- //
211
- // Example:
212
- //
213
- // message Subscription {
214
- // string topic = 2 [(google.api.resource_reference) = {
215
- // type: "pubsub.googleapis.com/Topic"
216
- // }];
217
- // }
218
- //
219
- // Occasionally, a field may reference an arbitrary resource. In this case,
220
- // APIs use the special value * in their resource reference.
221
- //
222
- // Example:
223
- //
224
- // message GetIamPolicyRequest {
225
- // string resource = 2 [(google.api.resource_reference) = {
226
- // type: "*"
227
- // }];
228
- // }
229
- string type = 1;
230
-
231
- // The resource type of a child collection that the annotated field
232
- // references. This is useful for annotating the `parent` field that
233
- // doesn't have a fixed resource type.
234
- //
235
- // Example:
236
- //
237
- // message ListLogEntriesRequest {
238
- // string parent = 1 [(google.api.resource_reference) = {
239
- // child_type: "logging.googleapis.com/LogEntry"
240
- // };
241
- // }
242
- string child_type = 2;
243
- }