@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,196 +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.servicecontrol.v2;
18
-
19
- import "google/api/annotations.proto";
20
- import "google/api/client.proto";
21
- import "google/rpc/context/attribute_context.proto";
22
- import "google/rpc/status.proto";
23
-
24
- option cc_enable_arenas = true;
25
- option csharp_namespace = "Google.Cloud.ServiceControl.V2";
26
- option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v2;servicecontrol";
27
- option java_multiple_files = true;
28
- option java_outer_classname = "ServiceControllerProto";
29
- option java_package = "com.google.api.servicecontrol.v2";
30
- option objc_class_prefix = "GASC";
31
- option php_namespace = "Google\\Cloud\\ServiceControl\\V2";
32
- option ruby_package = "Google::Cloud::ServiceControl::V2";
33
-
34
- // [Service Control API
35
- // v2](https://cloud.google.com/service-infrastructure/docs/service-control/access-control)
36
- //
37
- // Private Preview. This feature is only available for approved services.
38
- //
39
- // This API provides admission control and telemetry reporting for services
40
- // that are integrated with [Service
41
- // Infrastructure](https://cloud.google.com/service-infrastructure).
42
- service ServiceController {
43
- option (google.api.default_host) = "servicecontrol.googleapis.com";
44
- option (google.api.oauth_scopes) =
45
- "https://www.googleapis.com/auth/cloud-platform,"
46
- "https://www.googleapis.com/auth/servicecontrol";
47
-
48
- // Private Preview. This feature is only available for approved services.
49
- //
50
- // This method provides admission control for services that are integrated
51
- // with [Service
52
- // Infrastructure](https://cloud.google.com/service-infrastructure). It checks
53
- // whether an operation should be allowed based on the service configuration
54
- // and relevant policies. It must be called before the operation is executed.
55
- // For more information, see
56
- // [Admission
57
- // Control](https://cloud.google.com/service-infrastructure/docs/admission-control).
58
- //
59
- // NOTE: The admission control has an expected policy propagation delay of
60
- // 60s. The caller **must** not depend on the most recent policy changes.
61
- //
62
- // NOTE: The admission control has a hard limit of 1 referenced resources
63
- // per call. If an operation refers to more than 1 resources, the caller
64
- // must call the Check method multiple times.
65
- //
66
- // This method requires the `servicemanagement.services.check` permission
67
- // on the specified service. For more information, see
68
- // [Service Control API Access
69
- // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).
70
- rpc Check(CheckRequest) returns (CheckResponse) {
71
- option (google.api.http) = {
72
- post: "/v2/services/{service_name}:check"
73
- body: "*"
74
- };
75
- }
76
-
77
- // Private Preview. This feature is only available for approved services.
78
- //
79
- // This method provides telemetry reporting for services that are integrated
80
- // with [Service
81
- // Infrastructure](https://cloud.google.com/service-infrastructure). It
82
- // reports a list of operations that have occurred on a service. It must be
83
- // called after the operations have been executed. For more information, see
84
- // [Telemetry
85
- // Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting).
86
- //
87
- // NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB
88
- // per Report call. It is recommended to have no more than 100 operations per
89
- // call.
90
- //
91
- // This method requires the `servicemanagement.services.report` permission
92
- // on the specified service. For more information, see
93
- // [Service Control API Access
94
- // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).
95
- rpc Report(ReportRequest) returns (ReportResponse) {
96
- option (google.api.http) = {
97
- post: "/v2/services/{service_name}:report"
98
- body: "*"
99
- };
100
- }
101
- }
102
-
103
- // Request message for the Check method.
104
- message CheckRequest {
105
- // The service name as specified in its service configuration. For example,
106
- // `"pubsub.googleapis.com"`.
107
- //
108
- // See
109
- // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
110
- // for the definition of a service name.
111
- string service_name = 1;
112
-
113
- // Specifies the version of the service configuration that should be used to
114
- // process the request. Must not be empty. Set this field to 'latest' to
115
- // specify using the latest configuration.
116
- string service_config_id = 2;
117
-
118
- // Describes attributes about the operation being executed by the service.
119
- google.rpc.context.AttributeContext attributes = 3;
120
-
121
- // Describes the resources and the policies applied to each resource.
122
- repeated ResourceInfo resources = 4;
123
-
124
- // Optional. Contains a comma-separated list of flags.
125
- string flags = 5;
126
- }
127
-
128
- // Describes a resource referenced in the request.
129
- message ResourceInfo {
130
- // The name of the resource referenced in the request.
131
- string name = 1;
132
-
133
- // The resource type in the format of "{service}/{kind}".
134
- string type = 2;
135
-
136
- // The resource permission needed for this request.
137
- // The format must be "{service}/{plural}.{verb}".
138
- string permission = 3;
139
-
140
- // Optional. The identifier of the container of this resource. For Google
141
- // Cloud APIs, the resource container must be one of the following formats:
142
- // - `projects/<project-id or project-number>`
143
- // - `folders/<folder-id>`
144
- // - `organizations/<organization-id>`
145
- // For the policy enforcement on the container level (VPCSC and Location
146
- // Policy check), this field takes precedence on the container extracted from
147
- // name when presents.
148
- string container = 4;
149
-
150
- // Optional. The location of the resource. The value must be a valid zone,
151
- // region or multiregion. For example: "europe-west4" or
152
- // "northamerica-northeast1-a"
153
- string location = 5;
154
- }
155
-
156
- // Response message for the Check method.
157
- message CheckResponse {
158
- // Operation is allowed when this field is not set. Any non-'OK' status
159
- // indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
160
- // would contain additional details about the denial.
161
- google.rpc.Status status = 1;
162
-
163
- // Returns a set of request contexts generated from the `CheckRequest`.
164
- map<string, string> headers = 2;
165
- }
166
-
167
- // Request message for the Report method.
168
- message ReportRequest {
169
- // The service name as specified in its service configuration. For example,
170
- // `"pubsub.googleapis.com"`.
171
- //
172
- // See
173
- // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
174
- // for the definition of a service name.
175
- string service_name = 1;
176
-
177
- // Specifies the version of the service configuration that should be used to
178
- // process the request. Must not be empty. Set this field to 'latest' to
179
- // specify using the latest configuration.
180
- string service_config_id = 2;
181
-
182
- // Describes the list of operations to be reported. Each operation is
183
- // represented as an AttributeContext, and contains all attributes around an
184
- // API access.
185
- repeated google.rpc.context.AttributeContext operations = 3;
186
- }
187
-
188
- // Response message for the Report method.
189
- // If the request contains any invalid data, the server returns an RPC error.
190
- message ReportResponse {}
191
-
192
- // Message containing resource details in a batch mode.
193
- message ResourceInfoList {
194
- // The resource details.
195
- repeated ResourceInfo resources = 1;
196
- }
@@ -1,295 +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.servicemanagement.v1;
18
-
19
- import "google/api/config_change.proto";
20
- import "google/api/field_behavior.proto";
21
- import "google/protobuf/timestamp.proto";
22
-
23
- option csharp_namespace = "Google.Cloud.ServiceManagement.V1";
24
- option go_package = "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb;servicemanagementpb";
25
- option java_multiple_files = true;
26
- option java_outer_classname = "ResourcesProto";
27
- option java_package = "com.google.api.servicemanagement.v1";
28
- option objc_class_prefix = "GASM";
29
- option php_namespace = "Google\\Cloud\\ServiceManagement\\V1";
30
- option ruby_package = "Google::Cloud::ServiceManagement::V1";
31
-
32
- // The full representation of a Service that is managed by
33
- // Google Service Management.
34
- message ManagedService {
35
- // The name of the service. See the
36
- // [overview](https://cloud.google.com/service-infrastructure/docs/overview)
37
- // for naming requirements.
38
- string service_name = 2;
39
-
40
- // ID of the project that produces and owns this service.
41
- string producer_project_id = 3;
42
- }
43
-
44
- // The metadata associated with a long running operation resource.
45
- message OperationMetadata {
46
- // Represents the status of one operation step.
47
- message Step {
48
- // The short description of the step.
49
- string description = 2;
50
-
51
- // The status code.
52
- Status status = 4;
53
- }
54
-
55
- // Code describes the status of the operation (or one of its steps).
56
- enum Status {
57
- // Unspecifed code.
58
- STATUS_UNSPECIFIED = 0;
59
-
60
- // The operation or step has completed without errors.
61
- DONE = 1;
62
-
63
- // The operation or step has not started yet.
64
- NOT_STARTED = 2;
65
-
66
- // The operation or step is in progress.
67
- IN_PROGRESS = 3;
68
-
69
- // The operation or step has completed with errors. If the operation is
70
- // rollbackable, the rollback completed with errors too.
71
- FAILED = 4;
72
-
73
- // The operation or step has completed with cancellation.
74
- CANCELLED = 5;
75
- }
76
-
77
- // The full name of the resources that this operation is directly
78
- // associated with.
79
- repeated string resource_names = 1;
80
-
81
- // Detailed status information for each step. The order is undetermined.
82
- repeated Step steps = 2;
83
-
84
- // Percentage of completion of this operation, ranging from 0 to 100.
85
- int32 progress_percentage = 3;
86
-
87
- // The start time of the operation.
88
- google.protobuf.Timestamp start_time = 4;
89
- }
90
-
91
- // Represents a diagnostic message (error or warning)
92
- message Diagnostic {
93
- // The kind of diagnostic information possible.
94
- enum Kind {
95
- // Warnings and errors
96
- WARNING = 0;
97
-
98
- // Only errors
99
- ERROR = 1;
100
- }
101
-
102
- // File name and line number of the error or warning.
103
- string location = 1;
104
-
105
- // The kind of diagnostic information provided.
106
- Kind kind = 2;
107
-
108
- // Message describing the error or warning.
109
- string message = 3;
110
- }
111
-
112
- // Represents a source file which is used to generate the service configuration
113
- // defined by `google.api.Service`.
114
- message ConfigSource {
115
- // A unique ID for a specific instance of this message, typically assigned
116
- // by the client for tracking purpose. If empty, the server may choose to
117
- // generate one instead.
118
- string id = 5;
119
-
120
- // Set of source configuration files that are used to generate a service
121
- // configuration (`google.api.Service`).
122
- repeated ConfigFile files = 2;
123
- }
124
-
125
- // Generic specification of a source configuration file
126
- message ConfigFile {
127
- enum FileType {
128
- // Unknown file type.
129
- FILE_TYPE_UNSPECIFIED = 0;
130
-
131
- // YAML-specification of service.
132
- SERVICE_CONFIG_YAML = 1;
133
-
134
- // OpenAPI specification, serialized in JSON.
135
- OPEN_API_JSON = 2;
136
-
137
- // OpenAPI specification, serialized in YAML.
138
- OPEN_API_YAML = 3;
139
-
140
- // FileDescriptorSet, generated by protoc.
141
- //
142
- // To generate, use protoc with imports and source info included.
143
- // For an example test.proto file, the following command would put the value
144
- // in a new file named out.pb.
145
- //
146
- // $protoc --include_imports --include_source_info test.proto -o out.pb
147
- FILE_DESCRIPTOR_SET_PROTO = 4;
148
-
149
- // Uncompiled Proto file. Used for storage and display purposes only,
150
- // currently server-side compilation is not supported. Should match the
151
- // inputs to 'protoc' command used to generated FILE_DESCRIPTOR_SET_PROTO. A
152
- // file of this type can only be included if at least one file of type
153
- // FILE_DESCRIPTOR_SET_PROTO is included.
154
- PROTO_FILE = 6;
155
- }
156
-
157
- // The file name of the configuration file (full or relative path).
158
- string file_path = 1;
159
-
160
- // The bytes that constitute the file.
161
- bytes file_contents = 3;
162
-
163
- // The type of configuration file this represents.
164
- FileType file_type = 4;
165
- }
166
-
167
- // Represents a service configuration with its name and id.
168
- message ConfigRef {
169
- // Resource name of a service config. It must have the following
170
- // format: "services/{service name}/configs/{config id}".
171
- string name = 1;
172
- }
173
-
174
- // Change report associated with a particular service configuration.
175
- //
176
- // It contains a list of ConfigChanges based on the comparison between
177
- // two service configurations.
178
- message ChangeReport {
179
- // List of changes between two service configurations.
180
- // The changes will be alphabetically sorted based on the identifier
181
- // of each change.
182
- // A ConfigChange identifier is a dot separated path to the configuration.
183
- // Example: visibility.rules[selector='LibraryService.CreateBook'].restriction
184
- repeated google.api.ConfigChange config_changes = 1;
185
- }
186
-
187
- // A rollout resource that defines how service configuration versions are pushed
188
- // to control plane systems. Typically, you create a new version of the
189
- // service config, and then create a Rollout to push the service config.
190
- message Rollout {
191
- // Strategy that specifies how clients of Google Service Controller want to
192
- // send traffic to use different config versions. This is generally
193
- // used by API proxy to split traffic based on your configured percentage for
194
- // each config version.
195
- //
196
- // One example of how to gradually rollout a new service configuration using
197
- // this
198
- // strategy:
199
- // Day 1
200
- //
201
- // Rollout {
202
- // id: "example.googleapis.com/rollout_20160206"
203
- // traffic_percent_strategy {
204
- // percentages: {
205
- // "example.googleapis.com/20160201": 70.00
206
- // "example.googleapis.com/20160206": 30.00
207
- // }
208
- // }
209
- // }
210
- //
211
- // Day 2
212
- //
213
- // Rollout {
214
- // id: "example.googleapis.com/rollout_20160207"
215
- // traffic_percent_strategy: {
216
- // percentages: {
217
- // "example.googleapis.com/20160206": 100.00
218
- // }
219
- // }
220
- // }
221
- message TrafficPercentStrategy {
222
- // Maps service configuration IDs to their corresponding traffic percentage.
223
- // Key is the service configuration ID, Value is the traffic percentage
224
- // which must be greater than 0.0 and the sum must equal to 100.0.
225
- map<string, double> percentages = 1;
226
- }
227
-
228
- // Strategy used to delete a service. This strategy is a placeholder only
229
- // used by the system generated rollout to delete a service.
230
- message DeleteServiceStrategy {}
231
-
232
- // Status of a Rollout.
233
- enum RolloutStatus {
234
- // No status specified.
235
- ROLLOUT_STATUS_UNSPECIFIED = 0;
236
-
237
- // The Rollout is in progress.
238
- IN_PROGRESS = 1;
239
-
240
- // The Rollout has completed successfully.
241
- SUCCESS = 2;
242
-
243
- // The Rollout has been cancelled. This can happen if you have overlapping
244
- // Rollout pushes, and the previous ones will be cancelled.
245
- CANCELLED = 3;
246
-
247
- // The Rollout has failed and the rollback attempt has failed too.
248
- FAILED = 4;
249
-
250
- // The Rollout has not started yet and is pending for execution.
251
- PENDING = 5;
252
-
253
- // The Rollout has failed and rolled back to the previous successful
254
- // Rollout.
255
- FAILED_ROLLED_BACK = 6;
256
- }
257
-
258
- // Optional. Unique identifier of this Rollout. Must be no longer than 63
259
- // characters and only lower case letters, digits, '.', '_' and '-' are
260
- // allowed.
261
- //
262
- // If not specified by client, the server will generate one. The generated id
263
- // will have the form of <date><revision number>, where "date" is the create
264
- // date in ISO 8601 format. "revision number" is a monotonically increasing
265
- // positive number that is reset every day for each service.
266
- // An example of the generated rollout_id is '2016-02-16r1'
267
- string rollout_id = 1 [(google.api.field_behavior) = OPTIONAL];
268
-
269
- // Creation time of the rollout. Readonly.
270
- google.protobuf.Timestamp create_time = 2;
271
-
272
- // The user who created the Rollout. Readonly.
273
- string created_by = 3;
274
-
275
- // The status of this rollout. Readonly. In case of a failed rollout,
276
- // the system will automatically rollback to the current Rollout
277
- // version. Readonly.
278
- RolloutStatus status = 4;
279
-
280
- // Strategy that defines which versions of service configurations should be
281
- // pushed
282
- // and how they should be used at runtime.
283
- oneof strategy {
284
- // Google Service Control selects service configurations based on
285
- // traffic percentage.
286
- TrafficPercentStrategy traffic_percent_strategy = 5;
287
-
288
- // The strategy associated with a rollout to delete a `ManagedService`.
289
- // Readonly.
290
- DeleteServiceStrategy delete_service_strategy = 200;
291
- }
292
-
293
- // The name of the service associated with this Rollout.
294
- string service_name = 8;
295
- }