@devvit/protos 0.11.6-next-2025-01-28-ba7ef7fe2.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,287 +0,0 @@
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
- }
@@ -1,246 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,57 +0,0 @@
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
- }