@opentdf/sdk 0.17.0 → 0.19.0-beta.167

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 (117) hide show
  1. package/dist/cjs/src/platform/authorization/authorization_pb.js +2 -3
  2. package/dist/cjs/src/platform/authorization/v2/authorization_pb.js +2 -2
  3. package/dist/cjs/src/platform/buf/validate/validate_pb.js +17 -11
  4. package/dist/cjs/src/platform/entityresolution/entity_resolution_pb.js +2 -3
  5. package/dist/cjs/src/platform/entityresolution/v2/entity_resolution_pb.js +15 -9
  6. package/dist/cjs/src/platform/kas/kas_pb.js +2 -4
  7. package/dist/cjs/src/platform/policy/actions/actions_pb.js +2 -2
  8. package/dist/cjs/src/platform/policy/attributes/attributes_pb.js +79 -43
  9. package/dist/cjs/src/platform/policy/kasregistry/key_access_server_registry_pb.js +121 -56
  10. package/dist/cjs/src/platform/policy/namespaces/namespaces_pb.js +54 -44
  11. package/dist/cjs/src/platform/policy/objects_pb.js +58 -39
  12. package/dist/cjs/src/platform/policy/obligations/obligations_pb.js +85 -30
  13. package/dist/cjs/src/platform/policy/registeredresources/registered_resources_pb.js +53 -22
  14. package/dist/cjs/src/platform/policy/resourcemapping/resource_mapping_pb.js +2 -2
  15. package/dist/cjs/src/platform/policy/selectors_pb.js +38 -5
  16. package/dist/cjs/src/platform/policy/subjectmapping/subject_mapping_pb.js +78 -24
  17. package/dist/cjs/src/platform/policy/unsafe/unsafe_pb.js +3 -2
  18. package/dist/cjs/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +2 -3
  19. package/dist/cjs/src/policy/api.js +1 -30
  20. package/dist/cjs/src/version.js +1 -1
  21. package/dist/types/src/platform/authorization/authorization_pb.d.ts.map +1 -1
  22. package/dist/types/src/platform/authorization/v2/authorization_pb.d.ts +3 -3
  23. package/dist/types/src/platform/authorization/v2/authorization_pb.d.ts.map +1 -1
  24. package/dist/types/src/platform/buf/validate/validate_pb.d.ts +392 -155
  25. package/dist/types/src/platform/buf/validate/validate_pb.d.ts.map +1 -1
  26. package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts.map +1 -1
  27. package/dist/types/src/platform/entityresolution/v2/entity_resolution_pb.d.ts +33 -0
  28. package/dist/types/src/platform/entityresolution/v2/entity_resolution_pb.d.ts.map +1 -1
  29. package/dist/types/src/platform/kas/kas_pb.d.ts +173 -7
  30. package/dist/types/src/platform/kas/kas_pb.d.ts.map +1 -1
  31. package/dist/types/src/platform/policy/actions/actions_pb.d.ts +40 -0
  32. package/dist/types/src/platform/policy/actions/actions_pb.d.ts.map +1 -1
  33. package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts +119 -4
  34. package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts.map +1 -1
  35. package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +124 -2
  36. package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts.map +1 -1
  37. package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts +53 -114
  38. package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts.map +1 -1
  39. package/dist/types/src/platform/policy/objects_pb.d.ts +85 -38
  40. package/dist/types/src/platform/policy/objects_pb.d.ts.map +1 -1
  41. package/dist/types/src/platform/policy/obligations/obligations_pb.d.ts +157 -4
  42. package/dist/types/src/platform/policy/obligations/obligations_pb.d.ts.map +1 -1
  43. package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts +85 -2
  44. package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts.map +1 -1
  45. package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +60 -2
  46. package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts.map +1 -1
  47. package/dist/types/src/platform/policy/selectors_pb.d.ts +41 -1
  48. package/dist/types/src/platform/policy/selectors_pb.d.ts.map +1 -1
  49. package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +147 -2
  50. package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts.map +1 -1
  51. package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts +10 -0
  52. package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts.map +1 -1
  53. package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts.map +1 -1
  54. package/dist/types/src/policy/api.d.ts +0 -2
  55. package/dist/types/src/policy/api.d.ts.map +1 -1
  56. package/dist/types/src/version.d.ts +1 -1
  57. package/dist/web/src/platform/authorization/authorization_pb.js +2 -3
  58. package/dist/web/src/platform/authorization/v2/authorization_pb.js +2 -2
  59. package/dist/web/src/platform/buf/validate/validate_pb.js +17 -11
  60. package/dist/web/src/platform/entityresolution/entity_resolution_pb.js +2 -3
  61. package/dist/web/src/platform/entityresolution/v2/entity_resolution_pb.js +14 -8
  62. package/dist/web/src/platform/kas/kas_pb.js +2 -4
  63. package/dist/web/src/platform/policy/actions/actions_pb.js +2 -2
  64. package/dist/web/src/platform/policy/attributes/attributes_pb.js +79 -43
  65. package/dist/web/src/platform/policy/kasregistry/key_access_server_registry_pb.js +120 -55
  66. package/dist/web/src/platform/policy/namespaces/namespaces_pb.js +54 -44
  67. package/dist/web/src/platform/policy/objects_pb.js +56 -37
  68. package/dist/web/src/platform/policy/obligations/obligations_pb.js +85 -30
  69. package/dist/web/src/platform/policy/registeredresources/registered_resources_pb.js +53 -22
  70. package/dist/web/src/platform/policy/resourcemapping/resource_mapping_pb.js +2 -2
  71. package/dist/web/src/platform/policy/selectors_pb.js +38 -5
  72. package/dist/web/src/platform/policy/subjectmapping/subject_mapping_pb.js +78 -24
  73. package/dist/web/src/platform/policy/unsafe/unsafe_pb.js +3 -2
  74. package/dist/web/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +2 -3
  75. package/dist/web/src/policy/api.js +1 -29
  76. package/dist/web/src/version.js +1 -1
  77. package/package.json +1 -1
  78. package/src/platform/authorization/authorization_pb.ts +1 -2
  79. package/src/platform/authorization/v2/authorization_pb.ts +4 -4
  80. package/src/platform/buf/validate/validate_pb.ts +437 -163
  81. package/src/platform/entityresolution/entity_resolution_pb.ts +1 -2
  82. package/src/platform/entityresolution/v2/entity_resolution_pb.ts +47 -7
  83. package/src/platform/kas/kas_pb.ts +174 -10
  84. package/src/platform/policy/actions/actions_pb.ts +47 -1
  85. package/src/platform/policy/attributes/attributes_pb.ts +181 -46
  86. package/src/platform/policy/kasregistry/key_access_server_registry_pb.ts +202 -56
  87. package/src/platform/policy/namespaces/namespaces_pb.ts +77 -144
  88. package/src/platform/policy/objects_pb.ts +129 -73
  89. package/src/platform/policy/obligations/obligations_pb.ts +214 -33
  90. package/src/platform/policy/registeredresources/registered_resources_pb.ts +125 -24
  91. package/src/platform/policy/resourcemapping/resource_mapping_pb.ts +70 -3
  92. package/src/platform/policy/selectors_pb.ts +54 -5
  93. package/src/platform/policy/subjectmapping/subject_mapping_pb.ts +200 -25
  94. package/src/platform/policy/unsafe/unsafe_pb.ts +13 -1
  95. package/src/platform/wellknownconfiguration/wellknown_configuration_pb.ts +1 -2
  96. package/src/policy/api.ts +0 -40
  97. package/src/version.ts +1 -1
  98. package/dist/cjs/src/platform/google/api/annotations_pb.js +0 -30
  99. package/dist/cjs/src/platform/google/api/http_pb.js +0 -37
  100. package/dist/cjs/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +0 -68
  101. package/dist/cjs/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +0 -307
  102. package/dist/types/src/platform/google/api/annotations_pb.d.ts +0 -14
  103. package/dist/types/src/platform/google/api/annotations_pb.d.ts.map +0 -1
  104. package/dist/types/src/platform/google/api/http_pb.d.ts +0 -441
  105. package/dist/types/src/platform/google/api/http_pb.d.ts.map +0 -1
  106. package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts +0 -62
  107. package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts.map +0 -1
  108. package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +0 -1441
  109. package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +0 -1
  110. package/dist/web/src/platform/google/api/annotations_pb.js +0 -27
  111. package/dist/web/src/platform/google/api/http_pb.js +0 -34
  112. package/dist/web/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +0 -65
  113. package/dist/web/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +0 -304
  114. package/src/platform/google/api/annotations_pb.ts +0 -39
  115. package/src/platform/google/api/http_pb.ts +0 -474
  116. package/src/platform/protoc-gen-openapiv2/options/annotations_pb.ts +0 -83
  117. package/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.ts +0 -1615
@@ -1,5 +1,5 @@
1
1
  import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { Duration, FieldDescriptorProto_Type, FieldOptions, MessageOptions, OneofOptions, Timestamp } from "@bufbuild/protobuf/wkt";
2
+ import type { Duration, FieldDescriptorProto_Type, FieldMask, FieldOptions, MessageOptions, OneofOptions, Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
5
5
  * Describes the file buf/validate/validate.proto.
@@ -63,6 +63,29 @@ export declare const RuleSchema: GenMessage<Rule>;
63
63
  * @generated from message buf.validate.MessageRules
64
64
  */
65
65
  export type MessageRules = Message<"buf.validate.MessageRules"> & {
66
+ /**
67
+ * `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation
68
+ * rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax.
69
+ *
70
+ * This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for
71
+ * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
72
+ * be same as the `expression`.
73
+ *
74
+ * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
75
+ *
76
+ * ```proto
77
+ * message MyMessage {
78
+ * // The field `foo` must be greater than 42.
79
+ * option (buf.validate.message).cel_expression = "this.foo > 42";
80
+ * // The field `foo` must be less than 84.
81
+ * option (buf.validate.message).cel_expression = "this.foo < 84";
82
+ * optional int32 foo = 1;
83
+ * }
84
+ * ```
85
+ *
86
+ * @generated from field: repeated string cel_expression = 5;
87
+ */
88
+ celExpression: string[];
66
89
  /**
67
90
  * `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message.
68
91
  * These rules are written in Common Expression Language (CEL) syntax. For more information,
@@ -74,7 +97,7 @@ export type MessageRules = Message<"buf.validate.MessageRules"> & {
74
97
  * // The field `foo` must be greater than 42.
75
98
  * option (buf.validate.message).cel = {
76
99
  * id: "my_message.value",
77
- * message: "value must be greater than 42",
100
+ * message: "must be greater than 42",
78
101
  * expression: "this.foo > 42",
79
102
  * };
80
103
  * optional int32 foo = 1;
@@ -194,6 +217,26 @@ export declare const OneofRulesSchema: GenMessage<OneofRules>;
194
217
  * @generated from message buf.validate.FieldRules
195
218
  */
196
219
  export type FieldRules = Message<"buf.validate.FieldRules"> & {
220
+ /**
221
+ * `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation
222
+ * rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax.
223
+ *
224
+ * This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for
225
+ * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
226
+ * be same as the `expression`.
227
+ *
228
+ * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
229
+ *
230
+ * ```proto
231
+ * message MyMessage {
232
+ * // The field `value` must be greater than 42.
233
+ * optional int32 value = 1 [(buf.validate.field).cel_expression = "this > 42"];
234
+ * }
235
+ * ```
236
+ *
237
+ * @generated from field: repeated string cel_expression = 29;
238
+ */
239
+ celExpression: string[];
197
240
  /**
198
241
  * `cel` is a repeated field used to represent a textual expression
199
242
  * in the Common Expression Language (CEL) syntax. For more information,
@@ -204,7 +247,7 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & {
204
247
  * // The field `value` must be greater than 42.
205
248
  * optional int32 value = 1 [(buf.validate.field).cel = {
206
249
  * id: "my_message.value",
207
- * message: "value must be greater than 42",
250
+ * message: "must be greater than 42",
208
251
  * expression: "this > 42",
209
252
  * }];
210
253
  * }
@@ -241,7 +284,8 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & {
241
284
  * the fields are set and valid.
242
285
  *
243
286
  * Fields that don't track presence are always validated by Protovalidate,
244
- * whether they are set or not. It is not necessary to add `required`:
287
+ * whether they are set or not. It is not necessary to add `required`. It
288
+ * can be added to indicate that the field cannot be the zero value.
245
289
  *
246
290
  * ```proto
247
291
  * syntax="proto3";
@@ -252,9 +296,14 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & {
252
296
  * (buf.validate.field).string.email = true
253
297
  * ];
254
298
  * // `repeated.min_items` always applies, even to an empty list.
255
- * repeated string labels = 4 [
299
+ * repeated string labels = 2 [
256
300
  * (buf.validate.field).repeated.min_items = 1
257
301
  * ];
302
+ * // `required`, for fields that don't track presence, indicates
303
+ * // the value of the field can't be the zero value.
304
+ * int32 zero_value_not_allowed = 3 [
305
+ * (buf.validate.field).required = true
306
+ * ];
258
307
  * }
259
308
  * ```
260
309
  *
@@ -414,6 +463,12 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & {
414
463
  */
415
464
  value: DurationRules;
416
465
  case: "duration";
466
+ } | {
467
+ /**
468
+ * @generated from field: buf.validate.FieldMaskRules field_mask = 28;
469
+ */
470
+ value: FieldMaskRules;
471
+ case: "fieldMask";
417
472
  } | {
418
473
  /**
419
474
  * @generated from field: buf.validate.TimestampRules timestamp = 22;
@@ -447,7 +502,7 @@ export type PredefinedRules = Message<"buf.validate.PredefinedRules"> & {
447
502
  * // The field `value` must be greater than 42.
448
503
  * optional int32 value = 1 [(buf.validate.predefined).cel = {
449
504
  * id: "my_message.value",
450
- * message: "value must be greater than 42",
505
+ * message: "must be greater than 42",
451
506
  * expression: "this > 42",
452
507
  * }];
453
508
  * }
@@ -494,7 +549,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
494
549
  *
495
550
  * ```proto
496
551
  * message MyFloat {
497
- * // value must be less than 10.0
552
+ * // must be less than 10.0
498
553
  * float value = 1 [(buf.validate.field).float.lt = 10.0];
499
554
  * }
500
555
  * ```
@@ -511,7 +566,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
511
566
  *
512
567
  * ```proto
513
568
  * message MyFloat {
514
- * // value must be less than or equal to 10.0
569
+ * // must be less than or equal to 10.0
515
570
  * float value = 1 [(buf.validate.field).float.lte = 10.0];
516
571
  * }
517
572
  * ```
@@ -537,13 +592,13 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
537
592
  *
538
593
  * ```proto
539
594
  * message MyFloat {
540
- * // value must be greater than 5.0 [float.gt]
595
+ * // must be greater than 5.0 [float.gt]
541
596
  * float value = 1 [(buf.validate.field).float.gt = 5.0];
542
597
  *
543
- * // value must be greater than 5 and less than 10.0 [float.gt_lt]
598
+ * // must be greater than 5 and less than 10.0 [float.gt_lt]
544
599
  * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
545
600
  *
546
- * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
601
+ * // must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
547
602
  * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
548
603
  * }
549
604
  * ```
@@ -562,13 +617,13 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
562
617
  *
563
618
  * ```proto
564
619
  * message MyFloat {
565
- * // value must be greater than or equal to 5.0 [float.gte]
620
+ * // must be greater than or equal to 5.0 [float.gte]
566
621
  * float value = 1 [(buf.validate.field).float.gte = 5.0];
567
622
  *
568
- * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
623
+ * // must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
569
624
  * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
570
625
  *
571
- * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
626
+ * // must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
572
627
  * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
573
628
  * }
574
629
  * ```
@@ -588,7 +643,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
588
643
  *
589
644
  * ```proto
590
645
  * message MyFloat {
591
- * // value must be in list [1.0, 2.0, 3.0]
646
+ * // must be in list [1.0, 2.0, 3.0]
592
647
  * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
593
648
  * }
594
649
  * ```
@@ -597,7 +652,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
597
652
  */
598
653
  in: number[];
599
654
  /**
600
- * `in` requires the field value to not be equal to any of the specified
655
+ * `not_in` requires the field value to not be equal to any of the specified
601
656
  * values. If the field value is one of the specified values, an error
602
657
  * message is generated.
603
658
  *
@@ -673,7 +728,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
673
728
  *
674
729
  * ```proto
675
730
  * message MyDouble {
676
- * // value must be less than 10.0
731
+ * // must be less than 10.0
677
732
  * double value = 1 [(buf.validate.field).double.lt = 10.0];
678
733
  * }
679
734
  * ```
@@ -690,7 +745,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
690
745
  *
691
746
  * ```proto
692
747
  * message MyDouble {
693
- * // value must be less than or equal to 10.0
748
+ * // must be less than or equal to 10.0
694
749
  * double value = 1 [(buf.validate.field).double.lte = 10.0];
695
750
  * }
696
751
  * ```
@@ -716,13 +771,13 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
716
771
  *
717
772
  * ```proto
718
773
  * message MyDouble {
719
- * // value must be greater than 5.0 [double.gt]
774
+ * // must be greater than 5.0 [double.gt]
720
775
  * double value = 1 [(buf.validate.field).double.gt = 5.0];
721
776
  *
722
- * // value must be greater than 5 and less than 10.0 [double.gt_lt]
777
+ * // must be greater than 5 and less than 10.0 [double.gt_lt]
723
778
  * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
724
779
  *
725
- * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
780
+ * // must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
726
781
  * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
727
782
  * }
728
783
  * ```
@@ -741,13 +796,13 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
741
796
  *
742
797
  * ```proto
743
798
  * message MyDouble {
744
- * // value must be greater than or equal to 5.0 [double.gte]
799
+ * // must be greater than or equal to 5.0 [double.gte]
745
800
  * double value = 1 [(buf.validate.field).double.gte = 5.0];
746
801
  *
747
- * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
802
+ * // must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
748
803
  * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
749
804
  *
750
- * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
805
+ * // must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
751
806
  * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
752
807
  * }
753
808
  * ```
@@ -767,7 +822,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
767
822
  *
768
823
  * ```proto
769
824
  * message MyDouble {
770
- * // value must be in list [1.0, 2.0, 3.0]
825
+ * // must be in list [1.0, 2.0, 3.0]
771
826
  * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
772
827
  * }
773
828
  * ```
@@ -852,7 +907,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
852
907
  *
853
908
  * ```proto
854
909
  * message MyInt32 {
855
- * // value must be less than 10
910
+ * // must be less than 10
856
911
  * int32 value = 1 [(buf.validate.field).int32.lt = 10];
857
912
  * }
858
913
  * ```
@@ -869,7 +924,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
869
924
  *
870
925
  * ```proto
871
926
  * message MyInt32 {
872
- * // value must be less than or equal to 10
927
+ * // must be less than or equal to 10
873
928
  * int32 value = 1 [(buf.validate.field).int32.lte = 10];
874
929
  * }
875
930
  * ```
@@ -895,13 +950,13 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
895
950
  *
896
951
  * ```proto
897
952
  * message MyInt32 {
898
- * // value must be greater than 5 [int32.gt]
953
+ * // must be greater than 5 [int32.gt]
899
954
  * int32 value = 1 [(buf.validate.field).int32.gt = 5];
900
955
  *
901
- * // value must be greater than 5 and less than 10 [int32.gt_lt]
956
+ * // must be greater than 5 and less than 10 [int32.gt_lt]
902
957
  * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
903
958
  *
904
- * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
959
+ * // must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
905
960
  * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
906
961
  * }
907
962
  * ```
@@ -920,13 +975,13 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
920
975
  *
921
976
  * ```proto
922
977
  * message MyInt32 {
923
- * // value must be greater than or equal to 5 [int32.gte]
978
+ * // must be greater than or equal to 5 [int32.gte]
924
979
  * int32 value = 1 [(buf.validate.field).int32.gte = 5];
925
980
  *
926
- * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
981
+ * // must be greater than or equal to 5 and less than 10 [int32.gte_lt]
927
982
  * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
928
983
  *
929
- * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
984
+ * // must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
930
985
  * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
931
986
  * }
932
987
  * ```
@@ -946,7 +1001,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
946
1001
  *
947
1002
  * ```proto
948
1003
  * message MyInt32 {
949
- * // value must be in list [1, 2, 3]
1004
+ * // must be in list [1, 2, 3]
950
1005
  * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
951
1006
  * }
952
1007
  * ```
@@ -1024,7 +1079,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1024
1079
  *
1025
1080
  * ```proto
1026
1081
  * message MyInt64 {
1027
- * // value must be less than 10
1082
+ * // must be less than 10
1028
1083
  * int64 value = 1 [(buf.validate.field).int64.lt = 10];
1029
1084
  * }
1030
1085
  * ```
@@ -1041,7 +1096,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1041
1096
  *
1042
1097
  * ```proto
1043
1098
  * message MyInt64 {
1044
- * // value must be less than or equal to 10
1099
+ * // must be less than or equal to 10
1045
1100
  * int64 value = 1 [(buf.validate.field).int64.lte = 10];
1046
1101
  * }
1047
1102
  * ```
@@ -1067,13 +1122,13 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1067
1122
  *
1068
1123
  * ```proto
1069
1124
  * message MyInt64 {
1070
- * // value must be greater than 5 [int64.gt]
1125
+ * // must be greater than 5 [int64.gt]
1071
1126
  * int64 value = 1 [(buf.validate.field).int64.gt = 5];
1072
1127
  *
1073
- * // value must be greater than 5 and less than 10 [int64.gt_lt]
1128
+ * // must be greater than 5 and less than 10 [int64.gt_lt]
1074
1129
  * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
1075
1130
  *
1076
- * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
1131
+ * // must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
1077
1132
  * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
1078
1133
  * }
1079
1134
  * ```
@@ -1092,13 +1147,13 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1092
1147
  *
1093
1148
  * ```proto
1094
1149
  * message MyInt64 {
1095
- * // value must be greater than or equal to 5 [int64.gte]
1150
+ * // must be greater than or equal to 5 [int64.gte]
1096
1151
  * int64 value = 1 [(buf.validate.field).int64.gte = 5];
1097
1152
  *
1098
- * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
1153
+ * // must be greater than or equal to 5 and less than 10 [int64.gte_lt]
1099
1154
  * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
1100
1155
  *
1101
- * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
1156
+ * // must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
1102
1157
  * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
1103
1158
  * }
1104
1159
  * ```
@@ -1118,7 +1173,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1118
1173
  *
1119
1174
  * ```proto
1120
1175
  * message MyInt64 {
1121
- * // value must be in list [1, 2, 3]
1176
+ * // must be in list [1, 2, 3]
1122
1177
  * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
1123
1178
  * }
1124
1179
  * ```
@@ -1196,7 +1251,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1196
1251
  *
1197
1252
  * ```proto
1198
1253
  * message MyUInt32 {
1199
- * // value must be less than 10
1254
+ * // must be less than 10
1200
1255
  * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
1201
1256
  * }
1202
1257
  * ```
@@ -1213,7 +1268,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1213
1268
  *
1214
1269
  * ```proto
1215
1270
  * message MyUInt32 {
1216
- * // value must be less than or equal to 10
1271
+ * // must be less than or equal to 10
1217
1272
  * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
1218
1273
  * }
1219
1274
  * ```
@@ -1239,13 +1294,13 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1239
1294
  *
1240
1295
  * ```proto
1241
1296
  * message MyUInt32 {
1242
- * // value must be greater than 5 [uint32.gt]
1297
+ * // must be greater than 5 [uint32.gt]
1243
1298
  * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
1244
1299
  *
1245
- * // value must be greater than 5 and less than 10 [uint32.gt_lt]
1300
+ * // must be greater than 5 and less than 10 [uint32.gt_lt]
1246
1301
  * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
1247
1302
  *
1248
- * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
1303
+ * // must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
1249
1304
  * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
1250
1305
  * }
1251
1306
  * ```
@@ -1264,13 +1319,13 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1264
1319
  *
1265
1320
  * ```proto
1266
1321
  * message MyUInt32 {
1267
- * // value must be greater than or equal to 5 [uint32.gte]
1322
+ * // must be greater than or equal to 5 [uint32.gte]
1268
1323
  * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
1269
1324
  *
1270
- * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
1325
+ * // must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
1271
1326
  * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
1272
1327
  *
1273
- * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
1328
+ * // must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
1274
1329
  * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
1275
1330
  * }
1276
1331
  * ```
@@ -1290,7 +1345,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1290
1345
  *
1291
1346
  * ```proto
1292
1347
  * message MyUInt32 {
1293
- * // value must be in list [1, 2, 3]
1348
+ * // must be in list [1, 2, 3]
1294
1349
  * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
1295
1350
  * }
1296
1351
  * ```
@@ -1368,7 +1423,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1368
1423
  *
1369
1424
  * ```proto
1370
1425
  * message MyUInt64 {
1371
- * // value must be less than 10
1426
+ * // must be less than 10
1372
1427
  * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
1373
1428
  * }
1374
1429
  * ```
@@ -1385,7 +1440,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1385
1440
  *
1386
1441
  * ```proto
1387
1442
  * message MyUInt64 {
1388
- * // value must be less than or equal to 10
1443
+ * // must be less than or equal to 10
1389
1444
  * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
1390
1445
  * }
1391
1446
  * ```
@@ -1411,13 +1466,13 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1411
1466
  *
1412
1467
  * ```proto
1413
1468
  * message MyUInt64 {
1414
- * // value must be greater than 5 [uint64.gt]
1469
+ * // must be greater than 5 [uint64.gt]
1415
1470
  * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
1416
1471
  *
1417
- * // value must be greater than 5 and less than 10 [uint64.gt_lt]
1472
+ * // must be greater than 5 and less than 10 [uint64.gt_lt]
1418
1473
  * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
1419
1474
  *
1420
- * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
1475
+ * // must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
1421
1476
  * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
1422
1477
  * }
1423
1478
  * ```
@@ -1436,13 +1491,13 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1436
1491
  *
1437
1492
  * ```proto
1438
1493
  * message MyUInt64 {
1439
- * // value must be greater than or equal to 5 [uint64.gte]
1494
+ * // must be greater than or equal to 5 [uint64.gte]
1440
1495
  * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
1441
1496
  *
1442
- * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
1497
+ * // must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
1443
1498
  * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
1444
1499
  *
1445
- * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
1500
+ * // must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
1446
1501
  * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
1447
1502
  * }
1448
1503
  * ```
@@ -1462,7 +1517,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1462
1517
  *
1463
1518
  * ```proto
1464
1519
  * message MyUInt64 {
1465
- * // value must be in list [1, 2, 3]
1520
+ * // must be in list [1, 2, 3]
1466
1521
  * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
1467
1522
  * }
1468
1523
  * ```
@@ -1539,7 +1594,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1539
1594
  *
1540
1595
  * ```proto
1541
1596
  * message MySInt32 {
1542
- * // value must be less than 10
1597
+ * // must be less than 10
1543
1598
  * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
1544
1599
  * }
1545
1600
  * ```
@@ -1556,7 +1611,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1556
1611
  *
1557
1612
  * ```proto
1558
1613
  * message MySInt32 {
1559
- * // value must be less than or equal to 10
1614
+ * // must be less than or equal to 10
1560
1615
  * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
1561
1616
  * }
1562
1617
  * ```
@@ -1582,13 +1637,13 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1582
1637
  *
1583
1638
  * ```proto
1584
1639
  * message MySInt32 {
1585
- * // value must be greater than 5 [sint32.gt]
1640
+ * // must be greater than 5 [sint32.gt]
1586
1641
  * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
1587
1642
  *
1588
- * // value must be greater than 5 and less than 10 [sint32.gt_lt]
1643
+ * // must be greater than 5 and less than 10 [sint32.gt_lt]
1589
1644
  * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
1590
1645
  *
1591
- * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
1646
+ * // must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
1592
1647
  * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
1593
1648
  * }
1594
1649
  * ```
@@ -1607,13 +1662,13 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1607
1662
  *
1608
1663
  * ```proto
1609
1664
  * message MySInt32 {
1610
- * // value must be greater than or equal to 5 [sint32.gte]
1665
+ * // must be greater than or equal to 5 [sint32.gte]
1611
1666
  * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
1612
1667
  *
1613
- * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
1668
+ * // must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
1614
1669
  * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
1615
1670
  *
1616
- * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
1671
+ * // must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
1617
1672
  * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
1618
1673
  * }
1619
1674
  * ```
@@ -1633,7 +1688,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1633
1688
  *
1634
1689
  * ```proto
1635
1690
  * message MySInt32 {
1636
- * // value must be in list [1, 2, 3]
1691
+ * // must be in list [1, 2, 3]
1637
1692
  * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
1638
1693
  * }
1639
1694
  * ```
@@ -1710,7 +1765,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1710
1765
  *
1711
1766
  * ```proto
1712
1767
  * message MySInt64 {
1713
- * // value must be less than 10
1768
+ * // must be less than 10
1714
1769
  * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
1715
1770
  * }
1716
1771
  * ```
@@ -1727,7 +1782,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1727
1782
  *
1728
1783
  * ```proto
1729
1784
  * message MySInt64 {
1730
- * // value must be less than or equal to 10
1785
+ * // must be less than or equal to 10
1731
1786
  * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
1732
1787
  * }
1733
1788
  * ```
@@ -1753,13 +1808,13 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1753
1808
  *
1754
1809
  * ```proto
1755
1810
  * message MySInt64 {
1756
- * // value must be greater than 5 [sint64.gt]
1811
+ * // must be greater than 5 [sint64.gt]
1757
1812
  * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
1758
1813
  *
1759
- * // value must be greater than 5 and less than 10 [sint64.gt_lt]
1814
+ * // must be greater than 5 and less than 10 [sint64.gt_lt]
1760
1815
  * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
1761
1816
  *
1762
- * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
1817
+ * // must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
1763
1818
  * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
1764
1819
  * }
1765
1820
  * ```
@@ -1778,13 +1833,13 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1778
1833
  *
1779
1834
  * ```proto
1780
1835
  * message MySInt64 {
1781
- * // value must be greater than or equal to 5 [sint64.gte]
1836
+ * // must be greater than or equal to 5 [sint64.gte]
1782
1837
  * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
1783
1838
  *
1784
- * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
1839
+ * // must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
1785
1840
  * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
1786
1841
  *
1787
- * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
1842
+ * // must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
1788
1843
  * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
1789
1844
  * }
1790
1845
  * ```
@@ -1804,7 +1859,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1804
1859
  *
1805
1860
  * ```proto
1806
1861
  * message MySInt64 {
1807
- * // value must be in list [1, 2, 3]
1862
+ * // must be in list [1, 2, 3]
1808
1863
  * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
1809
1864
  * }
1810
1865
  * ```
@@ -1881,7 +1936,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
1881
1936
  *
1882
1937
  * ```proto
1883
1938
  * message MyFixed32 {
1884
- * // value must be less than 10
1939
+ * // must be less than 10
1885
1940
  * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
1886
1941
  * }
1887
1942
  * ```
@@ -1898,7 +1953,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
1898
1953
  *
1899
1954
  * ```proto
1900
1955
  * message MyFixed32 {
1901
- * // value must be less than or equal to 10
1956
+ * // must be less than or equal to 10
1902
1957
  * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
1903
1958
  * }
1904
1959
  * ```
@@ -1924,13 +1979,13 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
1924
1979
  *
1925
1980
  * ```proto
1926
1981
  * message MyFixed32 {
1927
- * // value must be greater than 5 [fixed32.gt]
1982
+ * // must be greater than 5 [fixed32.gt]
1928
1983
  * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
1929
1984
  *
1930
- * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
1985
+ * // must be greater than 5 and less than 10 [fixed32.gt_lt]
1931
1986
  * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
1932
1987
  *
1933
- * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
1988
+ * // must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
1934
1989
  * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
1935
1990
  * }
1936
1991
  * ```
@@ -1949,13 +2004,13 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
1949
2004
  *
1950
2005
  * ```proto
1951
2006
  * message MyFixed32 {
1952
- * // value must be greater than or equal to 5 [fixed32.gte]
2007
+ * // must be greater than or equal to 5 [fixed32.gte]
1953
2008
  * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
1954
2009
  *
1955
- * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
2010
+ * // must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
1956
2011
  * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
1957
2012
  *
1958
- * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
2013
+ * // must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
1959
2014
  * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
1960
2015
  * }
1961
2016
  * ```
@@ -1975,7 +2030,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
1975
2030
  *
1976
2031
  * ```proto
1977
2032
  * message MyFixed32 {
1978
- * // value must be in list [1, 2, 3]
2033
+ * // must be in list [1, 2, 3]
1979
2034
  * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
1980
2035
  * }
1981
2036
  * ```
@@ -2052,7 +2107,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2052
2107
  *
2053
2108
  * ```proto
2054
2109
  * message MyFixed64 {
2055
- * // value must be less than 10
2110
+ * // must be less than 10
2056
2111
  * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
2057
2112
  * }
2058
2113
  * ```
@@ -2069,7 +2124,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2069
2124
  *
2070
2125
  * ```proto
2071
2126
  * message MyFixed64 {
2072
- * // value must be less than or equal to 10
2127
+ * // must be less than or equal to 10
2073
2128
  * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
2074
2129
  * }
2075
2130
  * ```
@@ -2095,13 +2150,13 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2095
2150
  *
2096
2151
  * ```proto
2097
2152
  * message MyFixed64 {
2098
- * // value must be greater than 5 [fixed64.gt]
2153
+ * // must be greater than 5 [fixed64.gt]
2099
2154
  * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
2100
2155
  *
2101
- * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
2156
+ * // must be greater than 5 and less than 10 [fixed64.gt_lt]
2102
2157
  * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
2103
2158
  *
2104
- * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
2159
+ * // must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
2105
2160
  * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
2106
2161
  * }
2107
2162
  * ```
@@ -2120,13 +2175,13 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2120
2175
  *
2121
2176
  * ```proto
2122
2177
  * message MyFixed64 {
2123
- * // value must be greater than or equal to 5 [fixed64.gte]
2178
+ * // must be greater than or equal to 5 [fixed64.gte]
2124
2179
  * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
2125
2180
  *
2126
- * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
2181
+ * // must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
2127
2182
  * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
2128
2183
  *
2129
- * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
2184
+ * // must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
2130
2185
  * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
2131
2186
  * }
2132
2187
  * ```
@@ -2146,7 +2201,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2146
2201
  *
2147
2202
  * ```proto
2148
2203
  * message MyFixed64 {
2149
- * // value must be in list [1, 2, 3]
2204
+ * // must be in list [1, 2, 3]
2150
2205
  * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
2151
2206
  * }
2152
2207
  * ```
@@ -2223,7 +2278,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2223
2278
  *
2224
2279
  * ```proto
2225
2280
  * message MySFixed32 {
2226
- * // value must be less than 10
2281
+ * // must be less than 10
2227
2282
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
2228
2283
  * }
2229
2284
  * ```
@@ -2240,7 +2295,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2240
2295
  *
2241
2296
  * ```proto
2242
2297
  * message MySFixed32 {
2243
- * // value must be less than or equal to 10
2298
+ * // must be less than or equal to 10
2244
2299
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
2245
2300
  * }
2246
2301
  * ```
@@ -2266,13 +2321,13 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2266
2321
  *
2267
2322
  * ```proto
2268
2323
  * message MySFixed32 {
2269
- * // value must be greater than 5 [sfixed32.gt]
2324
+ * // must be greater than 5 [sfixed32.gt]
2270
2325
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
2271
2326
  *
2272
- * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
2327
+ * // must be greater than 5 and less than 10 [sfixed32.gt_lt]
2273
2328
  * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
2274
2329
  *
2275
- * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
2330
+ * // must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
2276
2331
  * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
2277
2332
  * }
2278
2333
  * ```
@@ -2291,13 +2346,13 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2291
2346
  *
2292
2347
  * ```proto
2293
2348
  * message MySFixed32 {
2294
- * // value must be greater than or equal to 5 [sfixed32.gte]
2349
+ * // must be greater than or equal to 5 [sfixed32.gte]
2295
2350
  * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
2296
2351
  *
2297
- * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
2352
+ * // must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
2298
2353
  * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
2299
2354
  *
2300
- * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
2355
+ * // must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
2301
2356
  * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
2302
2357
  * }
2303
2358
  * ```
@@ -2317,7 +2372,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2317
2372
  *
2318
2373
  * ```proto
2319
2374
  * message MySFixed32 {
2320
- * // value must be in list [1, 2, 3]
2375
+ * // must be in list [1, 2, 3]
2321
2376
  * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
2322
2377
  * }
2323
2378
  * ```
@@ -2394,7 +2449,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2394
2449
  *
2395
2450
  * ```proto
2396
2451
  * message MySFixed64 {
2397
- * // value must be less than 10
2452
+ * // must be less than 10
2398
2453
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
2399
2454
  * }
2400
2455
  * ```
@@ -2411,7 +2466,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2411
2466
  *
2412
2467
  * ```proto
2413
2468
  * message MySFixed64 {
2414
- * // value must be less than or equal to 10
2469
+ * // must be less than or equal to 10
2415
2470
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
2416
2471
  * }
2417
2472
  * ```
@@ -2437,13 +2492,13 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2437
2492
  *
2438
2493
  * ```proto
2439
2494
  * message MySFixed64 {
2440
- * // value must be greater than 5 [sfixed64.gt]
2495
+ * // must be greater than 5 [sfixed64.gt]
2441
2496
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
2442
2497
  *
2443
- * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
2498
+ * // must be greater than 5 and less than 10 [sfixed64.gt_lt]
2444
2499
  * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
2445
2500
  *
2446
- * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
2501
+ * // must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
2447
2502
  * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
2448
2503
  * }
2449
2504
  * ```
@@ -2462,13 +2517,13 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2462
2517
  *
2463
2518
  * ```proto
2464
2519
  * message MySFixed64 {
2465
- * // value must be greater than or equal to 5 [sfixed64.gte]
2520
+ * // must be greater than or equal to 5 [sfixed64.gte]
2466
2521
  * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
2467
2522
  *
2468
- * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
2523
+ * // must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
2469
2524
  * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
2470
2525
  *
2471
- * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
2526
+ * // must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
2472
2527
  * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
2473
2528
  * }
2474
2529
  * ```
@@ -2488,7 +2543,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2488
2543
  *
2489
2544
  * ```proto
2490
2545
  * message MySFixed64 {
2491
- * // value must be in list [1, 2, 3]
2546
+ * // must be in list [1, 2, 3]
2492
2547
  * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
2493
2548
  * }
2494
2549
  * ```
@@ -2777,7 +2832,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2777
2832
  *
2778
2833
  * ```proto
2779
2834
  * message MyString {
2780
- * // value must be in list ["apple", "banana"]
2835
+ * // must be in list ["apple", "banana"]
2781
2836
  * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
2782
2837
  * }
2783
2838
  * ```
@@ -2819,7 +2874,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2819
2874
  *
2820
2875
  * ```proto
2821
2876
  * message MyString {
2822
- * // value must be a valid email address
2877
+ * // must be a valid email address
2823
2878
  * string value = 1 [(buf.validate.field).string.email = true];
2824
2879
  * }
2825
2880
  * ```
@@ -2845,7 +2900,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2845
2900
  *
2846
2901
  * ```proto
2847
2902
  * message MyString {
2848
- * // value must be a valid hostname
2903
+ * // must be a valid hostname
2849
2904
  * string value = 1 [(buf.validate.field).string.hostname = true];
2850
2905
  * }
2851
2906
  * ```
@@ -2870,7 +2925,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2870
2925
  *
2871
2926
  * ```proto
2872
2927
  * message MyString {
2873
- * // value must be a valid IP address
2928
+ * // must be a valid IP address
2874
2929
  * string value = 1 [(buf.validate.field).string.ip = true];
2875
2930
  * }
2876
2931
  * ```
@@ -2887,7 +2942,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2887
2942
  *
2888
2943
  * ```proto
2889
2944
  * message MyString {
2890
- * // value must be a valid IPv4 address
2945
+ * // must be a valid IPv4 address
2891
2946
  * string value = 1 [(buf.validate.field).string.ipv4 = true];
2892
2947
  * }
2893
2948
  * ```
@@ -2904,7 +2959,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2904
2959
  *
2905
2960
  * ```proto
2906
2961
  * message MyString {
2907
- * // value must be a valid IPv6 address
2962
+ * // must be a valid IPv6 address
2908
2963
  * string value = 1 [(buf.validate.field).string.ipv6 = true];
2909
2964
  * }
2910
2965
  * ```
@@ -2925,7 +2980,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2925
2980
  *
2926
2981
  * ```proto
2927
2982
  * message MyString {
2928
- * // value must be a valid URI
2983
+ * // must be a valid URI
2929
2984
  * string value = 1 [(buf.validate.field).string.uri = true];
2930
2985
  * }
2931
2986
  * ```
@@ -2949,7 +3004,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2949
3004
  *
2950
3005
  * ```proto
2951
3006
  * message MyString {
2952
- * // value must be a valid URI Reference
3007
+ * // must be a valid URI Reference
2953
3008
  * string value = 1 [(buf.validate.field).string.uri_ref = true];
2954
3009
  * }
2955
3010
  * ```
@@ -2967,7 +3022,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2967
3022
  *
2968
3023
  * ```proto
2969
3024
  * message MyString {
2970
- * // value must be a valid hostname, or ip address
3025
+ * // must be a valid hostname, or ip address
2971
3026
  * string value = 1 [(buf.validate.field).string.address = true];
2972
3027
  * }
2973
3028
  * ```
@@ -2984,7 +3039,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
2984
3039
  *
2985
3040
  * ```proto
2986
3041
  * message MyString {
2987
- * // value must be a valid UUID
3042
+ * // must be a valid UUID
2988
3043
  * string value = 1 [(buf.validate.field).string.uuid = true];
2989
3044
  * }
2990
3045
  * ```
@@ -3002,7 +3057,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3002
3057
  *
3003
3058
  * ```proto
3004
3059
  * message MyString {
3005
- * // value must be a valid trimmed UUID
3060
+ * // must be a valid trimmed UUID
3006
3061
  * string value = 1 [(buf.validate.field).string.tuuid = true];
3007
3062
  * }
3008
3063
  * ```
@@ -3020,7 +3075,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3020
3075
  *
3021
3076
  * ```proto
3022
3077
  * message MyString {
3023
- * // value must be a valid IP with prefix length
3078
+ * // must be a valid IP with prefix length
3024
3079
  * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
3025
3080
  * }
3026
3081
  * ```
@@ -3038,7 +3093,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3038
3093
  *
3039
3094
  * ```proto
3040
3095
  * message MyString {
3041
- * // value must be a valid IPv4 address with prefix length
3096
+ * // must be a valid IPv4 address with prefix length
3042
3097
  * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
3043
3098
  * }
3044
3099
  * ```
@@ -3056,7 +3111,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3056
3111
  *
3057
3112
  * ```proto
3058
3113
  * message MyString {
3059
- * // value must be a valid IPv6 address prefix length
3114
+ * // must be a valid IPv6 address prefix length
3060
3115
  * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
3061
3116
  * }
3062
3117
  * ```
@@ -3079,7 +3134,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3079
3134
  *
3080
3135
  * ```proto
3081
3136
  * message MyString {
3082
- * // value must be a valid IP prefix
3137
+ * // must be a valid IP prefix
3083
3138
  * string value = 1 [(buf.validate.field).string.ip_prefix = true];
3084
3139
  * }
3085
3140
  * ```
@@ -3102,7 +3157,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3102
3157
  *
3103
3158
  * ```proto
3104
3159
  * message MyString {
3105
- * // value must be a valid IPv4 prefix
3160
+ * // must be a valid IPv4 prefix
3106
3161
  * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
3107
3162
  * }
3108
3163
  * ```
@@ -3125,7 +3180,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3125
3180
  *
3126
3181
  * ```proto
3127
3182
  * message MyString {
3128
- * // value must be a valid IPv6 prefix
3183
+ * // must be a valid IPv6 prefix
3129
3184
  * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
3130
3185
  * }
3131
3186
  * ```
@@ -3136,7 +3191,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3136
3191
  case: "ipv6Prefix";
3137
3192
  } | {
3138
3193
  /**
3139
- * `host_and_port` specifies that the field value must be valid host/port
3194
+ * `host_and_port` specifies that the field value must be a valid host/port
3140
3195
  * pair—for example, "example.com:8080".
3141
3196
  *
3142
3197
  * The host can be one of:
@@ -3151,6 +3206,85 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3151
3206
  */
3152
3207
  value: boolean;
3153
3208
  case: "hostAndPort";
3209
+ } | {
3210
+ /**
3211
+ * `ulid` specifies that the field value must be a valid ULID (Universally Unique
3212
+ * Lexicographically Sortable Identifier) as defined by the [ULID specification](https://github.com/ulid/spec).
3213
+ * If the field value isn't a valid ULID, an error message will be generated.
3214
+ *
3215
+ * ```proto
3216
+ * message MyString {
3217
+ * // must be a valid ULID
3218
+ * string value = 1 [(buf.validate.field).string.ulid = true];
3219
+ * }
3220
+ * ```
3221
+ *
3222
+ * @generated from field: bool ulid = 35;
3223
+ */
3224
+ value: boolean;
3225
+ case: "ulid";
3226
+ } | {
3227
+ /**
3228
+ * `protobuf_fqn` specifies that the field value must be a valid fully-qualified
3229
+ * Protobuf name as defined by the [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
3230
+ *
3231
+ * A fully-qualified Protobuf name is a dot-separated list of Protobuf identifiers,
3232
+ * where each identifier starts with a letter or underscore and is followed by zero or
3233
+ * more letters, underscores, or digits.
3234
+ *
3235
+ * Examples: "buf.validate", "google.protobuf.Timestamp", "my_package.MyMessage".
3236
+ *
3237
+ * Note: historically, fully-qualified Protobuf names were represented with a leading
3238
+ * dot (for example, ".buf.validate.StringRules"). Modern Protobuf does not use the
3239
+ * leading dot, and most fully-qualified names are represented without it. Use
3240
+ * `protobuf_dot_fqn` if a leading dot is required.
3241
+ *
3242
+ * If the field value isn't a valid fully-qualified Protobuf name, an error message
3243
+ * will be generated.
3244
+ *
3245
+ * ```proto
3246
+ * message MyString {
3247
+ * // value must be a valid fully-qualified Protobuf name
3248
+ * string value = 1 [(buf.validate.field).string.protobuf_fqn = true];
3249
+ * }
3250
+ * ```
3251
+ *
3252
+ * @generated from field: bool protobuf_fqn = 37;
3253
+ */
3254
+ value: boolean;
3255
+ case: "protobufFqn";
3256
+ } | {
3257
+ /**
3258
+ * `protobuf_dot_fqn` specifies that the field value must be a valid fully-qualified
3259
+ * Protobuf name with a leading dot, as defined by the
3260
+ * [Protobuf Language Specification](https://protobuf.com/docs/language-spec).
3261
+ *
3262
+ * A fully-qualified Protobuf name with a leading dot is a dot followed by a
3263
+ * dot-separated list of Protobuf identifiers, where each identifier starts with a
3264
+ * letter or underscore and is followed by zero or more letters, underscores, or
3265
+ * digits.
3266
+ *
3267
+ * Examples: ".buf.validate", ".google.protobuf.Timestamp", ".my_package.MyMessage".
3268
+ *
3269
+ * Note: this is the historical representation of fully-qualified Protobuf names,
3270
+ * where a leading dot denotes an absolute reference. Modern Protobuf does not use
3271
+ * the leading dot, and most fully-qualified names are represented without it. Most
3272
+ * users will want to use `protobuf_fqn` instead.
3273
+ *
3274
+ * If the field value isn't a valid fully-qualified Protobuf name with a leading dot,
3275
+ * an error message will be generated.
3276
+ *
3277
+ * ```proto
3278
+ * message MyString {
3279
+ * // value must be a valid fully-qualified Protobuf name with a leading dot
3280
+ * string value = 1 [(buf.validate.field).string.protobuf_dot_fqn = true];
3281
+ * }
3282
+ * ```
3283
+ *
3284
+ * @generated from field: bool protobuf_dot_fqn = 38;
3285
+ */
3286
+ value: boolean;
3287
+ case: "protobufDotFqn";
3154
3288
  } | {
3155
3289
  /**
3156
3290
  * `well_known_regex` specifies a common well-known pattern
@@ -3159,7 +3293,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3159
3293
  *
3160
3294
  * ```proto
3161
3295
  * message MyString {
3162
- * // value must be a valid HTTP header value
3296
+ * // must be a valid HTTP header value
3163
3297
  * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
3164
3298
  * }
3165
3299
  * ```
@@ -3235,7 +3369,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3235
3369
  *
3236
3370
  * ```proto
3237
3371
  * message MyBytes {
3238
- * // value must be "\x01\x02\x03\x04"
3372
+ * // must be "\x01\x02\x03\x04"
3239
3373
  * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
3240
3374
  * }
3241
3375
  * ```
@@ -3279,7 +3413,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3279
3413
  *
3280
3414
  * ```proto
3281
3415
  * message MyBytes {
3282
- * // value must be at most 6 bytes.
3416
+ * // must be at most 6 bytes.
3283
3417
  * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
3284
3418
  * }
3285
3419
  * ```
@@ -3339,7 +3473,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3339
3473
  * the string.
3340
3474
  * If the field value doesn't meet the requirement, an error message is generated.
3341
3475
  *
3342
- * ```protobuf
3476
+ * ```proto
3343
3477
  * message MyBytes {
3344
3478
  * // value does not contain \x02\x03
3345
3479
  * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
@@ -3354,7 +3488,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3354
3488
  * values. If the field value doesn't match any of the specified values, an
3355
3489
  * error message is generated.
3356
3490
  *
3357
- * ```protobuf
3491
+ * ```proto
3358
3492
  * message MyBytes {
3359
3493
  * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
3360
3494
  * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
@@ -3393,7 +3527,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3393
3527
  *
3394
3528
  * ```proto
3395
3529
  * message MyBytes {
3396
- * // value must be a valid IP address
3530
+ * // must be a valid IP address
3397
3531
  * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
3398
3532
  * }
3399
3533
  * ```
@@ -3409,7 +3543,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3409
3543
  *
3410
3544
  * ```proto
3411
3545
  * message MyBytes {
3412
- * // value must be a valid IPv4 address
3546
+ * // must be a valid IPv4 address
3413
3547
  * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
3414
3548
  * }
3415
3549
  * ```
@@ -3424,7 +3558,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3424
3558
  * If the field value doesn't meet this rule, an error message is generated.
3425
3559
  * ```proto
3426
3560
  * message MyBytes {
3427
- * // value must be a valid IPv6 address
3561
+ * // must be a valid IPv6 address
3428
3562
  * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
3429
3563
  * }
3430
3564
  * ```
@@ -3433,6 +3567,24 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3433
3567
  */
3434
3568
  value: boolean;
3435
3569
  case: "ipv6";
3570
+ } | {
3571
+ /**
3572
+ * `uuid` ensures that the field value encodes 128-bit UUID data as defined
3573
+ * by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
3574
+ * The field must contain exactly 16 bytes representing the UUID. If the
3575
+ * field value isn't a valid UUID, an error message will be generated.
3576
+ *
3577
+ * ```proto
3578
+ * message MyBytes {
3579
+ * // must be a valid UUID
3580
+ * optional bytes value = 1 [(buf.validate.field).bytes.uuid = true];
3581
+ * }
3582
+ * ```
3583
+ *
3584
+ * @generated from field: bool uuid = 15;
3585
+ */
3586
+ value: boolean;
3587
+ case: "uuid";
3436
3588
  } | {
3437
3589
  case: undefined;
3438
3590
  value?: undefined;
@@ -3762,7 +3914,7 @@ export type AnyRules = Message<"buf.validate.AnyRules"> & {
3762
3914
  */
3763
3915
  in: string[];
3764
3916
  /**
3765
- * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
3917
+ * `not_in` requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
3766
3918
  *
3767
3919
  * ```proto
3768
3920
  * message MyAny {
@@ -3814,7 +3966,7 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
3814
3966
  *
3815
3967
  * ```proto
3816
3968
  * message MyDuration {
3817
- * // value must be less than 5s
3969
+ * // must be less than 5s
3818
3970
  * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
3819
3971
  * }
3820
3972
  * ```
@@ -3831,7 +3983,7 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
3831
3983
  *
3832
3984
  * ```proto
3833
3985
  * message MyDuration {
3834
- * // value must be less than or equal to 10s
3986
+ * // must be less than or equal to 10s
3835
3987
  * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
3836
3988
  * }
3837
3989
  * ```
@@ -3908,7 +4060,7 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
3908
4060
  *
3909
4061
  * ```proto
3910
4062
  * message MyDuration {
3911
- * // value must be in list [1s, 2s, 3s]
4063
+ * // must be in list [1s, 2s, 3s]
3912
4064
  * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
3913
4065
  * }
3914
4066
  * ```
@@ -3955,6 +4107,90 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
3955
4107
  * Use `create(DurationRulesSchema)` to create a new message.
3956
4108
  */
3957
4109
  export declare const DurationRulesSchema: GenMessage<DurationRules>;
4110
+ /**
4111
+ * FieldMaskRules describe rules applied exclusively to the `google.protobuf.FieldMask` well-known type.
4112
+ *
4113
+ * @generated from message buf.validate.FieldMaskRules
4114
+ */
4115
+ export type FieldMaskRules = Message<"buf.validate.FieldMaskRules"> & {
4116
+ /**
4117
+ * `const` dictates that the field must match the specified value of the `google.protobuf.FieldMask` type exactly.
4118
+ * If the field's value deviates from the specified value, an error message
4119
+ * will be generated.
4120
+ *
4121
+ * ```proto
4122
+ * message MyFieldMask {
4123
+ * // value must equal ["a"]
4124
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask.const = {
4125
+ * paths: ["a"]
4126
+ * }];
4127
+ * }
4128
+ * ```
4129
+ *
4130
+ * @generated from field: optional google.protobuf.FieldMask const = 1;
4131
+ */
4132
+ const?: FieldMask;
4133
+ /**
4134
+ * `in` requires the field value to only contain paths matching specified
4135
+ * values or their subpaths.
4136
+ * If any of the field value's paths doesn't match the rule,
4137
+ * an error message is generated.
4138
+ * See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask
4139
+ *
4140
+ * ```proto
4141
+ * message MyFieldMask {
4142
+ * // The `value` FieldMask must only contain paths listed in `in`.
4143
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
4144
+ * in: ["a", "b", "c.a"]
4145
+ * }];
4146
+ * }
4147
+ * ```
4148
+ *
4149
+ * @generated from field: repeated string in = 2;
4150
+ */
4151
+ in: string[];
4152
+ /**
4153
+ * `not_in` requires the field value to not contain paths matching specified
4154
+ * values or their subpaths.
4155
+ * If any of the field value's paths matches the rule,
4156
+ * an error message is generated.
4157
+ * See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask
4158
+ *
4159
+ * ```proto
4160
+ * message MyFieldMask {
4161
+ * // The `value` FieldMask shall not contain paths listed in `not_in`.
4162
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
4163
+ * not_in: ["forbidden", "immutable", "c.a"]
4164
+ * }];
4165
+ * }
4166
+ * ```
4167
+ *
4168
+ * @generated from field: repeated string not_in = 3;
4169
+ */
4170
+ notIn: string[];
4171
+ /**
4172
+ * `example` specifies values that the field may have. These values SHOULD
4173
+ * conform to other rules. `example` values will not impact validation
4174
+ * but may be used as helpful guidance on how to populate the given field.
4175
+ *
4176
+ * ```proto
4177
+ * message MyFieldMask {
4178
+ * google.protobuf.FieldMask value = 1 [
4179
+ * (buf.validate.field).field_mask.example = { paths: ["a", "b"] },
4180
+ * (buf.validate.field).field_mask.example = { paths: ["c.a", "d"] },
4181
+ * ];
4182
+ * }
4183
+ * ```
4184
+ *
4185
+ * @generated from field: repeated google.protobuf.FieldMask example = 4;
4186
+ */
4187
+ example: FieldMask[];
4188
+ };
4189
+ /**
4190
+ * Describes the message buf.validate.FieldMaskRules.
4191
+ * Use `create(FieldMaskRulesSchema)` to create a new message.
4192
+ */
4193
+ export declare const FieldMaskRulesSchema: GenMessage<FieldMaskRules>;
3958
4194
  /**
3959
4195
  * TimestampRules describe the rules applied exclusively to the `google.protobuf.Timestamp` well-known type.
3960
4196
  *
@@ -3979,12 +4215,12 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
3979
4215
  */
3980
4216
  lessThan: {
3981
4217
  /**
3982
- * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
4218
+ * `lt` requires the timestamp field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
3983
4219
  *
3984
4220
  * ```proto
3985
- * message MyDuration {
3986
- * // duration must be less than 'P3D' [duration.lt]
3987
- * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
4221
+ * message MyTimestamp {
4222
+ * // timestamp must be less than '2023-01-01T00:00:00Z' [timestamp.lt]
4223
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lt = { seconds: 1672444800 }];
3988
4224
  * }
3989
4225
  * ```
3990
4226
  *
@@ -3994,7 +4230,7 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
3994
4230
  case: "lt";
3995
4231
  } | {
3996
4232
  /**
3997
- * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
4233
+ * `lte` requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
3998
4234
  *
3999
4235
  * ```proto
4000
4236
  * message MyTimestamp {
@@ -4013,7 +4249,7 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4013
4249
  *
4014
4250
  * ```proto
4015
4251
  * message MyTimestamp {
4016
- * // value must be less than now
4252
+ * // must be less than now
4017
4253
  * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
4018
4254
  * }
4019
4255
  * ```
@@ -4085,7 +4321,7 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4085
4321
  *
4086
4322
  * ```proto
4087
4323
  * message MyTimestamp {
4088
- * // value must be greater than now
4324
+ * // must be greater than now
4089
4325
  * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
4090
4326
  * }
4091
4327
  * ```
@@ -4103,7 +4339,7 @@ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4103
4339
  *
4104
4340
  * ```proto
4105
4341
  * message MyTimestamp {
4106
- * // value must be within 1 hour of now
4342
+ * // must be within 1 hour of now
4107
4343
  * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
4108
4344
  * }
4109
4345
  * ```
@@ -4507,7 +4743,8 @@ export declare enum Ignore {
4507
4743
  * // The field's rules will always be ignored, including any validations
4508
4744
  * // on value's fields.
4509
4745
  * MyOtherMessage value = 1 [
4510
- * (buf.validate.field).ignore = IGNORE_ALWAYS];
4746
+ * (buf.validate.field).ignore = IGNORE_ALWAYS
4747
+ * ];
4511
4748
  * }
4512
4749
  * ```
4513
4750
  *
@@ -4575,7 +4812,7 @@ export declare const field: GenExtension<FieldOptions, FieldRules>;
4575
4812
  * extend buf.validate.Int32Rules {
4576
4813
  * bool is_zero [(buf.validate.predefined).cel = {
4577
4814
  * id: "int32.is_zero",
4578
- * message: "value must be zero",
4815
+ * message: "must be zero",
4579
4816
  * expression: "!rule || this == 0",
4580
4817
  * }];
4581
4818
  * }