@devvit/protos 0.11.13-next-2025-04-21-1f6713d72.0 → 0.11.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/package.json +5 -5
  2. package/schema/devvit/ui/effects/web_view/v1alpha/post_message.proto +2 -4
  3. package/schema/snootobuf.devenv.lock +54 -104
  4. package/schema/snootobuf.lock +54 -104
  5. package/schema/snootobuf.redditapi.lock +54 -104
  6. package/schema/snootobuf.ts.lock +54 -104
  7. package/types/devvit/ui/effects/web_view/v1alpha/post_message.d.ts +4 -6
  8. package/types/devvit/ui/effects/web_view/v1alpha/post_message.d.ts.map +1 -1
  9. package/types/devvit/ui/effects/web_view/v1alpha/post_message.js +1 -15
  10. package/meta.min.json +0 -7869
  11. package/protos.min.js +0 -2
  12. package/protos.min.js.map +0 -7
  13. package/schema/.snootobuf/deps/buf/validate/expression.proto +0 -92
  14. package/schema/.snootobuf/deps/buf/validate/priv/private.proto +0 -41
  15. package/schema/.snootobuf/deps/buf/validate/validate.proto +0 -4130
  16. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +0 -72
  17. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +0 -49
  18. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +0 -54
  19. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +0 -46
  20. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +0 -72
  21. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +0 -20
  22. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +0 -45
  23. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +0 -54
  24. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +0 -773
  25. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +0 -66
  26. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +0 -100
  27. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +0 -19
  28. package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +0 -446
  29. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +0 -24
  30. package/schema/.snootobuf/deps/devvit/options/options.proto +0 -98
  31. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +0 -29
  32. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +0 -25
  33. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +0 -53
  34. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +0 -56
  35. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +0 -107
  36. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +0 -41
  37. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +0 -23
  38. package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +0 -162
  39. package/schema/.snootobuf/deps/enum/account_gender_category.proto +0 -14
  40. package/schema/.snootobuf/deps/enum/approval_status.proto +0 -15
  41. package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +0 -12
  42. package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +0 -13
  43. package/schema/.snootobuf/deps/enum/ban_info_action.proto +0 -12
  44. package/schema/.snootobuf/deps/enum/block_relation_type.proto +0 -11
  45. package/schema/.snootobuf/deps/enum/comment_sort.proto +0 -18
  46. package/schema/.snootobuf/deps/enum/comment_type.proto +0 -11
  47. package/schema/.snootobuf/deps/enum/crowd_control_level.proto +0 -12
  48. package/schema/.snootobuf/deps/enum/discussion_type.proto +0 -10
  49. package/schema/.snootobuf/deps/enum/distinguish_type.proto +0 -14
  50. package/schema/.snootobuf/deps/enum/flair_position.proto +0 -11
  51. package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +0 -12
  52. package/schema/.snootobuf/deps/enum/link_content_type.proto +0 -11
  53. package/schema/.snootobuf/deps/enum/link_type.proto +0 -11
  54. package/schema/.snootobuf/deps/enum/link_visibility.proto +0 -11
  55. package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +0 -11
  56. package/schema/.snootobuf/deps/enum/promo_layout.proto +0 -11
  57. package/schema/.snootobuf/deps/enum/removed_by_type.proto +0 -18
  58. package/schema/.snootobuf/deps/enum/spam_level.proto +0 -11
  59. package/schema/.snootobuf/deps/enum/subreddit_type.proto +0 -16
  60. package/schema/.snootobuf/deps/enum/verdict.proto +0 -14
  61. package/schema/.snootobuf/deps/enum/vote.proto +0 -12
  62. package/schema/.snootobuf/deps/enum/whitelist_status.proto +0 -17
  63. package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +0 -12
  64. package/schema/.snootobuf/deps/evaluator/evaluator.proto +0 -203
  65. package/schema/.snootobuf/deps/google/api/annotations.proto +0 -31
  66. package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +0 -288
  67. package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +0 -175
  68. package/schema/.snootobuf/deps/google/api/auth.proto +0 -237
  69. package/schema/.snootobuf/deps/google/api/backend.proto +0 -185
  70. package/schema/.snootobuf/deps/google/api/billing.proto +0 -77
  71. package/schema/.snootobuf/deps/google/api/client.proto +0 -431
  72. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
  73. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +0 -315
  74. package/schema/.snootobuf/deps/google/api/config_change.proto +0 -84
  75. package/schema/.snootobuf/deps/google/api/consumer.proto +0 -82
  76. package/schema/.snootobuf/deps/google/api/context.proto +0 -92
  77. package/schema/.snootobuf/deps/google/api/control.proto +0 -41
  78. package/schema/.snootobuf/deps/google/api/distribution.proto +0 -213
  79. package/schema/.snootobuf/deps/google/api/documentation.proto +0 -168
  80. package/schema/.snootobuf/deps/google/api/endpoint.proto +0 -69
  81. package/schema/.snootobuf/deps/google/api/error_reason.proto +0 -589
  82. package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
  83. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +0 -343
  84. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +0 -118
  85. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +0 -53
  86. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +0 -438
  87. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +0 -115
  88. package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +0 -84
  89. package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +0 -125
  90. package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +0 -265
  91. package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +0 -62
  92. package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +0 -114
  93. package/schema/.snootobuf/deps/google/api/field_behavior.proto +0 -104
  94. package/schema/.snootobuf/deps/google/api/field_info.proto +0 -106
  95. package/schema/.snootobuf/deps/google/api/http.proto +0 -371
  96. package/schema/.snootobuf/deps/google/api/httpbody.proto +0 -81
  97. package/schema/.snootobuf/deps/google/api/label.proto +0 -48
  98. package/schema/.snootobuf/deps/google/api/launch_stage.proto +0 -72
  99. package/schema/.snootobuf/deps/google/api/log.proto +0 -54
  100. package/schema/.snootobuf/deps/google/api/logging.proto +0 -81
  101. package/schema/.snootobuf/deps/google/api/metric.proto +0 -268
  102. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +0 -130
  103. package/schema/.snootobuf/deps/google/api/monitoring.proto +0 -107
  104. package/schema/.snootobuf/deps/google/api/policy.proto +0 -85
  105. package/schema/.snootobuf/deps/google/api/quota.proto +0 -184
  106. package/schema/.snootobuf/deps/google/api/resource.proto +0 -243
  107. package/schema/.snootobuf/deps/google/api/routing.proto +0 -461
  108. package/schema/.snootobuf/deps/google/api/service.proto +0 -191
  109. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +0 -124
  110. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +0 -166
  111. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +0 -93
  112. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +0 -126
  113. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +0 -81
  114. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +0 -123
  115. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +0 -245
  116. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +0 -260
  117. package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +0 -196
  118. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +0 -295
  119. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +0 -508
  120. package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +0 -130
  121. package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +0 -305
  122. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +0 -458
  123. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
  124. package/schema/.snootobuf/deps/google/api/source_info.proto +0 -31
  125. package/schema/.snootobuf/deps/google/api/system_parameter.proto +0 -96
  126. package/schema/.snootobuf/deps/google/api/usage.proto +0 -96
  127. package/schema/.snootobuf/deps/google/api/visibility.proto +0 -113
  128. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +0 -150
  129. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +0 -1087
  130. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +0 -145
  131. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +0 -34
  132. package/schema/.snootobuf/deps/google/iam/v1/options.proto +0 -41
  133. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +0 -240
  134. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +0 -92
  135. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +0 -72
  136. package/schema/.snootobuf/deps/google/longrunning/operations.proto +0 -247
  137. package/schema/.snootobuf/deps/google/protobuf/any.proto +0 -158
  138. package/schema/.snootobuf/deps/google/protobuf/api.proto +0 -208
  139. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +0 -183
  140. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +0 -921
  141. package/schema/.snootobuf/deps/google/protobuf/duration.proto +0 -116
  142. package/schema/.snootobuf/deps/google/protobuf/empty.proto +0 -51
  143. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +0 -245
  144. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +0 -48
  145. package/schema/.snootobuf/deps/google/protobuf/struct.proto +0 -95
  146. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +0 -147
  147. package/schema/.snootobuf/deps/google/protobuf/type.proto +0 -187
  148. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +0 -123
  149. package/schema/.snootobuf/deps/google/rpc/code.proto +0 -186
  150. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +0 -287
  151. package/schema/.snootobuf/deps/google/rpc/error_details.proto +0 -246
  152. package/schema/.snootobuf/deps/google/rpc/status.proto +0 -47
  153. package/schema/.snootobuf/deps/google/type/calendar_period.proto +0 -57
  154. package/schema/.snootobuf/deps/google/type/color.proto +0 -170
  155. package/schema/.snootobuf/deps/google/type/date.proto +0 -50
  156. package/schema/.snootobuf/deps/google/type/datetime.proto +0 -97
  157. package/schema/.snootobuf/deps/google/type/dayofweek.proto +0 -51
  158. package/schema/.snootobuf/deps/google/type/expr.proto +0 -51
  159. package/schema/.snootobuf/deps/google/type/fraction.proto +0 -34
  160. package/schema/.snootobuf/deps/google/type/latlng.proto +0 -37
  161. package/schema/.snootobuf/deps/google/type/money.proto +0 -43
  162. package/schema/.snootobuf/deps/google/type/month.proto +0 -66
  163. package/schema/.snootobuf/deps/google/type/postal_address.proto +0 -135
  164. package/schema/.snootobuf/deps/google/type/quaternion.proto +0 -95
  165. package/schema/.snootobuf/deps/google/type/timeofday.proto +0 -44
  166. package/schema/.snootobuf/deps/openapi/helper.proto +0 -20
  167. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
  168. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -118
  169. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +0 -55
  170. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +0 -579
  171. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +0 -43
  172. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +0 -82
  173. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +0 -221
  174. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +0 -78
  175. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +0 -189
  176. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +0 -29
  177. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +0 -417
  178. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +0 -72
  179. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +0 -25
  180. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +0 -52
  181. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +0 -16
  182. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +0 -20
  183. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +0 -149
  184. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +0 -197
  185. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +0 -116
  186. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +0 -25
  187. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +0 -101
  188. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +0 -34
  189. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +0 -798
  190. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +0 -186
  191. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +0 -110
  192. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +0 -51
  193. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +0 -1202
  194. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +0 -85
  195. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +0 -363
  196. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +0 -301
  197. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +0 -2869
  198. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +0 -15
  199. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +0 -11
  200. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +0 -48
  201. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +0 -70
  202. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +0 -11
  203. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +0 -17
  204. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +0 -89
  205. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +0 -322
  206. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +0 -17
  207. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +0 -14
  208. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +0 -15
  209. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +0 -48
  210. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +0 -31
  211. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +0 -26
  212. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +0 -15
  213. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +0 -52
  214. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +0 -23
  215. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +0 -28
  216. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +0 -17
  217. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +0 -49
  218. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +0 -20
  219. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +0 -17
  220. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +0 -158
  221. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +0 -18
  222. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +0 -195
  223. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +0 -44
  224. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +0 -200
  225. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +0 -18
  226. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +0 -210
  227. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
  228. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -135
  229. package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +0 -29
  230. package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +0 -3292
  231. package/schema/.snootobuf/deps/validate/validate.proto +0 -862
@@ -1,92 +0,0 @@
1
- // Copyright 2023 Buf Technologies, Inc.
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 buf.validate;
18
-
19
- option go_package = "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "ExpressionProto";
22
- option java_package = "build.buf.validate";
23
-
24
- // `Constraint` represents a validation rule written in the Common Expression
25
- // Language (CEL) syntax. Each Constraint includes a unique identifier, an
26
- // optional error message, and the CEL expression to evaluate. For more
27
- // information on CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
28
- //
29
- // ```proto
30
- // message Foo {
31
- // option (buf.validate.message).cel = {
32
- // id: "foo.bar"
33
- // message: "bar must be greater than 0"
34
- // expression: "this.bar > 0"
35
- // };
36
- // int32 bar = 1;
37
- // }
38
- // ```
39
- message Constraint {
40
- // `id` is a string that serves as a machine-readable name for this Constraint.
41
- // It should be unique within its scope, which could be either a message or a field.
42
- string id = 1;
43
-
44
- // `message` is an optional field that provides a human-readable error message
45
- // for this Constraint when the CEL expression evaluates to false. If a
46
- // non-empty message is provided, any strings resulting from the CEL
47
- // expression evaluation are ignored.
48
- string message = 2;
49
-
50
- // `expression` is the actual CEL expression that will be evaluated for
51
- // validation. This string must resolve to either a boolean or a string
52
- // value. If the expression evaluates to false or a non-empty string, the
53
- // validation is considered failed, and the message is rejected.
54
- string expression = 3;
55
- }
56
-
57
- // `Violations` is a collection of `Violation` messages. This message type is returned by
58
- // protovalidate when a proto message fails to meet the requirements set by the `Constraint` validation rules.
59
- // Each individual violation is represented by a `Violation` message.
60
- message Violations {
61
- // `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
62
- repeated Violation violations = 1;
63
- }
64
-
65
- // `Violation` represents a single instance where a validation rule, expressed
66
- // as a `Constraint`, was not met. It provides information about the field that
67
- // caused the violation, the specific constraint that wasn't fulfilled, and a
68
- // human-readable error message.
69
- //
70
- // ```json
71
- // {
72
- // "fieldPath": "bar",
73
- // "constraintId": "foo.bar",
74
- // "message": "bar must be greater than 0"
75
- // }
76
- // ```
77
- message Violation {
78
- // `field_path` is a machine-readable identifier that points to the specific field that failed the validation.
79
- // This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
80
- string field_path = 1;
81
-
82
- // `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
83
- // This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
84
- string constraint_id = 2;
85
-
86
- // `message` is a human-readable error message that describes the nature of the violation.
87
- // This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
88
- string message = 3;
89
-
90
- // `for_key` indicates whether the violation was caused by a map key, rather than a value.
91
- bool for_key = 4;
92
- }
@@ -1,41 +0,0 @@
1
- // Copyright 2023 Buf Technologies, Inc.
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 buf.validate.priv;
18
-
19
- import "google/protobuf/descriptor.proto";
20
-
21
- option go_package = "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate/priv";
22
- option java_multiple_files = true;
23
- option java_outer_classname = "PrivateProto";
24
- option java_package = "build.buf.validate.priv";
25
-
26
- extend google.protobuf.FieldOptions {
27
- // Do not use. Internal to protovalidate library
28
- optional FieldConstraints field = 1160;
29
- }
30
-
31
- // Do not use. Internal to protovalidate library
32
- message FieldConstraints {
33
- repeated Constraint cel = 1;
34
- }
35
-
36
- // Do not use. Internal to protovalidate library
37
- message Constraint {
38
- string id = 1;
39
- string message = 2;
40
- string expression = 3;
41
- }