@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,288 +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.apikeys.v2;
18
-
19
- import "google/api/annotations.proto";
20
- import "google/api/apikeys/v2/resources.proto";
21
- import "google/api/client.proto";
22
- import "google/api/field_behavior.proto";
23
- import "google/api/resource.proto";
24
- import "google/longrunning/operations.proto";
25
- import "google/protobuf/empty.proto";
26
- import "google/protobuf/field_mask.proto";
27
-
28
- option csharp_namespace = "Google.Cloud.ApiKeys.V2";
29
- option go_package = "cloud.google.com/go/apikeys/apiv2/apikeyspb;apikeyspb";
30
- option java_multiple_files = true;
31
- option java_outer_classname = "ApiKeysProto";
32
- option java_package = "com.google.api.apikeys.v2";
33
- option php_namespace = "Google\\Cloud\\ApiKeys\\V2";
34
- option ruby_package = "Google::Cloud::ApiKeys::V2";
35
-
36
- // Manages the API keys associated with projects.
37
- service ApiKeys {
38
- option (google.api.default_host) = "apikeys.googleapis.com";
39
- option (google.api.oauth_scopes) =
40
- "https://www.googleapis.com/auth/cloud-platform,"
41
- "https://www.googleapis.com/auth/cloud-platform.read-only";
42
-
43
- // Creates a new API key.
44
- //
45
- // NOTE: Key is a global resource; hence the only supported value for
46
- // location is `global`.
47
- rpc CreateKey(CreateKeyRequest) returns (google.longrunning.Operation) {
48
- option (google.api.http) = {
49
- post: "/v2/{parent=projects/*/locations/*}/keys"
50
- body: "key"
51
- };
52
- option (google.api.method_signature) = "parent,key,key_id";
53
- option (google.longrunning.operation_info) = {
54
- response_type: "Key"
55
- metadata_type: "google.protobuf.Empty"
56
- };
57
- }
58
-
59
- // Lists the API keys owned by a project. The key string of the API key
60
- // isn't included in the response.
61
- //
62
- // NOTE: Key is a global resource; hence the only supported value for
63
- // location is `global`.
64
- rpc ListKeys(ListKeysRequest) returns (ListKeysResponse) {
65
- option (google.api.http) = {
66
- get: "/v2/{parent=projects/*/locations/*}/keys"
67
- };
68
- option (google.api.method_signature) = "parent";
69
- }
70
-
71
- // Gets the metadata for an API key. The key string of the API key
72
- // isn't included in the response.
73
- //
74
- // NOTE: Key is a global resource; hence the only supported value for
75
- // location is `global`.
76
- rpc GetKey(GetKeyRequest) returns (Key) {
77
- option (google.api.http) = {
78
- get: "/v2/{name=projects/*/locations/*/keys/*}"
79
- };
80
- option (google.api.method_signature) = "name";
81
- }
82
-
83
- // Get the key string for an API key.
84
- //
85
- // NOTE: Key is a global resource; hence the only supported value for
86
- // location is `global`.
87
- rpc GetKeyString(GetKeyStringRequest) returns (GetKeyStringResponse) {
88
- option (google.api.http) = {
89
- get: "/v2/{name=projects/*/locations/*/keys/*}/keyString"
90
- };
91
- option (google.api.method_signature) = "name";
92
- }
93
-
94
- // Patches the modifiable fields of an API key.
95
- // The key string of the API key isn't included in the response.
96
- //
97
- // NOTE: Key is a global resource; hence the only supported value for
98
- // location is `global`.
99
- rpc UpdateKey(UpdateKeyRequest) returns (google.longrunning.Operation) {
100
- option (google.api.http) = {
101
- patch: "/v2/{key.name=projects/*/locations/*/keys/*}"
102
- body: "key"
103
- };
104
- option (google.api.method_signature) = "key,update_mask";
105
- option (google.longrunning.operation_info) = {
106
- response_type: "Key"
107
- metadata_type: "google.protobuf.Empty"
108
- };
109
- }
110
-
111
- // Deletes an API key. Deleted key can be retrieved within 30 days of
112
- // deletion. Afterward, key will be purged from the project.
113
- //
114
- // NOTE: Key is a global resource; hence the only supported value for
115
- // location is `global`.
116
- rpc DeleteKey(DeleteKeyRequest) returns (google.longrunning.Operation) {
117
- option (google.api.http) = {
118
- delete: "/v2/{name=projects/*/locations/*/keys/*}"
119
- };
120
- option (google.api.method_signature) = "name";
121
- option (google.longrunning.operation_info) = {
122
- response_type: "Key"
123
- metadata_type: "google.protobuf.Empty"
124
- };
125
- }
126
-
127
- // Undeletes an API key which was deleted within 30 days.
128
- //
129
- // NOTE: Key is a global resource; hence the only supported value for
130
- // location is `global`.
131
- rpc UndeleteKey(UndeleteKeyRequest) returns (google.longrunning.Operation) {
132
- option (google.api.http) = {
133
- post: "/v2/{name=projects/*/locations/*/keys/*}:undelete"
134
- body: "*"
135
- };
136
- option (google.longrunning.operation_info) = {
137
- response_type: "Key"
138
- metadata_type: "google.protobuf.Empty"
139
- };
140
- }
141
-
142
- // Find the parent project and resource name of the API
143
- // key that matches the key string in the request. If the API key has been
144
- // purged, resource name will not be set.
145
- // The service account must have the `apikeys.keys.lookup` permission
146
- // on the parent project.
147
- rpc LookupKey(LookupKeyRequest) returns (LookupKeyResponse) {
148
- option (google.api.http) = {
149
- get: "/v2/keys:lookupKey"
150
- };
151
- }
152
- }
153
-
154
- // Request message for `CreateKey` method.
155
- message CreateKeyRequest {
156
- // Required. The project in which the API key is created.
157
- string parent = 1 [
158
- (google.api.field_behavior) = REQUIRED,
159
- (google.api.resource_reference) = {
160
- child_type: "apikeys.googleapis.com/Key"
161
- }
162
- ];
163
-
164
- // Required. The API key fields to set at creation time.
165
- // You can configure only the `display_name`, `restrictions`, and
166
- // `annotations` fields.
167
- Key key = 2 [(google.api.field_behavior) = REQUIRED];
168
-
169
- // User specified key id (optional). If specified, it will become the final
170
- // component of the key resource name.
171
- //
172
- // The id must be unique within the project, must conform with RFC-1034,
173
- // is restricted to lower-cased letters, and has a maximum length of 63
174
- // characters. In another word, the id must match the regular
175
- // expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
176
- //
177
- // The id must NOT be a UUID-like string.
178
- string key_id = 3;
179
- }
180
-
181
- // Request message for `ListKeys` method.
182
- message ListKeysRequest {
183
- // Required. Lists all API keys associated with this project.
184
- string parent = 1 [
185
- (google.api.field_behavior) = REQUIRED,
186
- (google.api.resource_reference) = {
187
- child_type: "apikeys.googleapis.com/Key"
188
- }
189
- ];
190
-
191
- // Optional. Specifies the maximum number of results to be returned at a time.
192
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
193
-
194
- // Optional. Requests a specific page of results.
195
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
196
-
197
- // Optional. Indicate that keys deleted in the past 30 days should also be
198
- // returned.
199
- bool show_deleted = 6 [(google.api.field_behavior) = OPTIONAL];
200
- }
201
-
202
- // Response message for `ListKeys` method.
203
- message ListKeysResponse {
204
- // A list of API keys.
205
- repeated Key keys = 1;
206
-
207
- // The pagination token for the next page of results.
208
- string next_page_token = 2;
209
- }
210
-
211
- // Request message for `GetKey` method.
212
- message GetKeyRequest {
213
- // Required. The resource name of the API key to get.
214
- string name = 1 [
215
- (google.api.field_behavior) = REQUIRED,
216
- (google.api.resource_reference) = { type: "apikeys.googleapis.com/Key" }
217
- ];
218
- }
219
-
220
- // Request message for `GetKeyString` method.
221
- message GetKeyStringRequest {
222
- // Required. The resource name of the API key to be retrieved.
223
- string name = 1 [
224
- (google.api.field_behavior) = REQUIRED,
225
- (google.api.resource_reference) = { type: "apikeys.googleapis.com/Key" }
226
- ];
227
- }
228
-
229
- // Response message for `GetKeyString` method.
230
- message GetKeyStringResponse {
231
- // An encrypted and signed value of the key.
232
- string key_string = 1;
233
- }
234
-
235
- // Request message for `UpdateKey` method.
236
- message UpdateKeyRequest {
237
- // Required. Set the `name` field to the resource name of the API key to be
238
- // updated. You can update only the `display_name`, `restrictions`, and
239
- // `annotations` fields.
240
- Key key = 1 [(google.api.field_behavior) = REQUIRED];
241
-
242
- // The field mask specifies which fields to be updated as part of this
243
- // request. All other fields are ignored.
244
- // Mutable fields are: `display_name`, `restrictions`, and `annotations`.
245
- // If an update mask is not provided, the service treats it as an implied mask
246
- // equivalent to all allowed fields that are set on the wire. If the field
247
- // mask has a special value "*", the service treats it equivalent to replace
248
- // all allowed mutable fields.
249
- google.protobuf.FieldMask update_mask = 2;
250
- }
251
-
252
- // Request message for `DeleteKey` method.
253
- message DeleteKeyRequest {
254
- // Required. The resource name of the API key to be deleted.
255
- string name = 1 [
256
- (google.api.field_behavior) = REQUIRED,
257
- (google.api.resource_reference) = { type: "apikeys.googleapis.com/Key" }
258
- ];
259
-
260
- // Optional. The etag known to the client for the expected state of the key.
261
- // This is to be used for optimistic concurrency.
262
- string etag = 2 [(google.api.field_behavior) = OPTIONAL];
263
- }
264
-
265
- // Request message for `UndeleteKey` method.
266
- message UndeleteKeyRequest {
267
- // Required. The resource name of the API key to be undeleted.
268
- string name = 1 [
269
- (google.api.field_behavior) = REQUIRED,
270
- (google.api.resource_reference) = { type: "apikeys.googleapis.com/Key" }
271
- ];
272
- }
273
-
274
- // Request message for `LookupKey` method.
275
- message LookupKeyRequest {
276
- // Required. Finds the project that owns the key string value.
277
- string key_string = 1 [(google.api.field_behavior) = REQUIRED];
278
- }
279
-
280
- // Response message for `LookupKey` method.
281
- message LookupKeyResponse {
282
- // The project that owns the key with the value specified in the request.
283
- string parent = 1;
284
-
285
- // The resource name of the API key. If the API key has been purged,
286
- // resource name is empty.
287
- string name = 2;
288
- }
@@ -1,175 +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.apikeys.v2;
18
-
19
- import "google/api/field_behavior.proto";
20
- import "google/api/resource.proto";
21
- import "google/protobuf/timestamp.proto";
22
-
23
- option csharp_namespace = "Google.Cloud.ApiKeys.V2";
24
- option go_package = "cloud.google.com/go/apikeys/apiv2/apikeyspb;apikeyspb";
25
- option java_multiple_files = true;
26
- option java_outer_classname = "ResourcesProto";
27
- option java_package = "com.google.api.apikeys.v2";
28
- option php_namespace = "Google\\Cloud\\ApiKeys\\V2";
29
- option ruby_package = "Google::Cloud::ApiKeys::V2";
30
-
31
- // The representation of a key managed by the API Keys API.
32
- message Key {
33
- option (google.api.resource) = {
34
- type: "apikeys.googleapis.com/Key"
35
- pattern: "projects/{project}/locations/{location}/keys/{key}"
36
- plural: "keys"
37
- singular: "key"
38
- style: DECLARATIVE_FRIENDLY
39
- };
40
-
41
- // Output only. The resource name of the key.
42
- // The `name` has the form:
43
- // `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`.
44
- // For example:
45
- // `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2`
46
- //
47
- // NOTE: Key is a global resource; hence the only supported value for
48
- // location is `global`.
49
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
50
-
51
- // Output only. Unique id in UUID4 format.
52
- string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
53
-
54
- // Human-readable display name of this key that you can modify.
55
- // The maximum length is 63 characters.
56
- string display_name = 2;
57
-
58
- // Output only. An encrypted and signed value held by this key.
59
- // This field can be accessed only through the `GetKeyString` method.
60
- string key_string = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
61
-
62
- // Output only. A timestamp identifying the time this key was originally
63
- // created.
64
- google.protobuf.Timestamp create_time = 4
65
- [(google.api.field_behavior) = OUTPUT_ONLY];
66
-
67
- // Output only. A timestamp identifying the time this key was last
68
- // updated.
69
- google.protobuf.Timestamp update_time = 6
70
- [(google.api.field_behavior) = OUTPUT_ONLY];
71
-
72
- // Output only. A timestamp when this key was deleted. If the resource is not
73
- // deleted, this must be empty.
74
- google.protobuf.Timestamp delete_time = 7
75
- [(google.api.field_behavior) = OUTPUT_ONLY];
76
-
77
- // Annotations is an unstructured key-value map stored with a policy that
78
- // may be set by external tools to store and retrieve arbitrary metadata.
79
- // They are not queryable and should be preserved when modifying objects.
80
- map<string, string> annotations = 8;
81
-
82
- // Key restrictions.
83
- Restrictions restrictions = 9;
84
-
85
- // Output only. A checksum computed by the server based on the current value
86
- // of the Key resource. This may be sent on update and delete requests to
87
- // ensure the client has an up-to-date value before proceeding. See
88
- // https://google.aip.dev/154.
89
- string etag = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
90
- }
91
-
92
- // Describes the restrictions on the key.
93
- message Restrictions {
94
- // The websites, IP addresses, Android apps, or iOS apps (the clients) that
95
- // are allowed to use the key. You can specify only one type of client
96
- // restrictions per key.
97
- oneof client_restrictions {
98
- // The HTTP referrers (websites) that are allowed to use the key.
99
- BrowserKeyRestrictions browser_key_restrictions = 1;
100
-
101
- // The IP addresses of callers that are allowed to use the key.
102
- ServerKeyRestrictions server_key_restrictions = 2;
103
-
104
- // The Android apps that are allowed to use the key.
105
- AndroidKeyRestrictions android_key_restrictions = 3;
106
-
107
- // The iOS apps that are allowed to use the key.
108
- IosKeyRestrictions ios_key_restrictions = 4;
109
- }
110
-
111
- // A restriction for a specific service and optionally one or
112
- // more specific methods. Requests are allowed if they
113
- // match any of these restrictions. If no restrictions are
114
- // specified, all targets are allowed.
115
- repeated ApiTarget api_targets = 5;
116
- }
117
-
118
- // The HTTP referrers (websites) that are allowed to use the key.
119
- message BrowserKeyRestrictions {
120
- // A list of regular expressions for the referrer URLs that are allowed
121
- // to make API calls with this key.
122
- repeated string allowed_referrers = 1;
123
- }
124
-
125
- // The IP addresses of callers that are allowed to use the key.
126
- message ServerKeyRestrictions {
127
- // A list of the caller IP addresses that are allowed to make API calls
128
- // with this key.
129
- repeated string allowed_ips = 1;
130
- }
131
-
132
- // The Android apps that are allowed to use the key.
133
- message AndroidKeyRestrictions {
134
- // A list of Android applications that are allowed to make API calls with
135
- // this key.
136
- repeated AndroidApplication allowed_applications = 1;
137
- }
138
-
139
- // Identifier of an Android application for key use.
140
- message AndroidApplication {
141
- // The SHA1 fingerprint of the application. For example, both sha1 formats are
142
- // acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or
143
- // DA39A3EE5E6B4B0D3255BFEF95601890AFD80709.
144
- // Output format is the latter.
145
- string sha1_fingerprint = 1;
146
-
147
- // The package name of the application.
148
- string package_name = 2;
149
- }
150
-
151
- // The iOS apps that are allowed to use the key.
152
- message IosKeyRestrictions {
153
- // A list of bundle IDs that are allowed when making API calls with this key.
154
- repeated string allowed_bundle_ids = 1;
155
- }
156
-
157
- // A restriction for a specific service and optionally one or multiple
158
- // specific methods. Both fields are case insensitive.
159
- message ApiTarget {
160
- // The service for this restriction. It should be the canonical
161
- // service name, for example: `translate.googleapis.com`.
162
- // You can use [`gcloud services list`](/sdk/gcloud/reference/services/list)
163
- // to get a list of services that are enabled in the project.
164
- string service = 1;
165
-
166
- // Optional. List of one or more methods that can be called.
167
- // If empty, all methods for the service are allowed. A wildcard
168
- // (*) can be used as the last symbol.
169
- // Valid examples:
170
- // `google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
171
- // `TranslateText`
172
- // `Get*`
173
- // `translate.googleapis.com.Get*`
174
- repeated string methods = 2 [(google.api.field_behavior) = OPTIONAL];
175
- }