@xeonr/upload-pool-sdk 1.0.0

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 (402) hide show
  1. package/README.md +83 -0
  2. package/dist/errors.d.ts +14 -0
  3. package/dist/errors.d.ts.map +1 -0
  4. package/dist/errors.js +15 -0
  5. package/dist/errors.js.map +1 -0
  6. package/dist/index.d.ts +27 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +27 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/job-context.d.ts +18 -0
  11. package/dist/job-context.d.ts.map +1 -0
  12. package/dist/job-context.js +176 -0
  13. package/dist/job-context.js.map +1 -0
  14. package/dist/pool.d.ts +16 -0
  15. package/dist/pool.d.ts.map +1 -0
  16. package/dist/pool.js +111 -0
  17. package/dist/pool.js.map +1 -0
  18. package/dist/protocol/buf/validate/expression_pb.d.ts +128 -0
  19. package/dist/protocol/buf/validate/expression_pb.d.ts.map +1 -0
  20. package/dist/protocol/buf/validate/expression_pb.js +34 -0
  21. package/dist/protocol/buf/validate/expression_pb.js.map +1 -0
  22. package/dist/protocol/buf/validate/priv/private_pb.d.ts +54 -0
  23. package/dist/protocol/buf/validate/priv/private_pb.d.ts.map +1 -0
  24. package/dist/protocol/buf/validate/priv/private_pb.js +36 -0
  25. package/dist/protocol/buf/validate/priv/private_pb.js.map +1 -0
  26. package/dist/protocol/buf/validate/validate_pb.d.ts +3685 -0
  27. package/dist/protocol/buf/validate/validate_pb.d.ts.map +1 -0
  28. package/dist/protocol/buf/validate/validate_pb.js +223 -0
  29. package/dist/protocol/buf/validate/validate_pb.js.map +1 -0
  30. package/dist/protocol/gnostic/discovery/v1/discovery_pb.d.ts +816 -0
  31. package/dist/protocol/gnostic/discovery/v1/discovery_pb.d.ts.map +1 -0
  32. package/dist/protocol/gnostic/discovery/v1/discovery_pb.js +160 -0
  33. package/dist/protocol/gnostic/discovery/v1/discovery_pb.js.map +1 -0
  34. package/dist/protocol/gnostic/openapi/v2/openapiv2_pb.d.ts +2229 -0
  35. package/dist/protocol/gnostic/openapi/v2/openapiv2_pb.d.ts.map +1 -0
  36. package/dist/protocol/gnostic/openapi/v2/openapiv2_pb.js +320 -0
  37. package/dist/protocol/gnostic/openapi/v2/openapiv2_pb.js.map +1 -0
  38. package/dist/protocol/gnostic/openapi/v3/annotations_pb.d.ts +24 -0
  39. package/dist/protocol/gnostic/openapi/v3/annotations_pb.d.ts.map +1 -0
  40. package/dist/protocol/gnostic/openapi/v3/annotations_pb.js +37 -0
  41. package/dist/protocol/gnostic/openapi/v3/annotations_pb.js.map +1 -0
  42. package/dist/protocol/gnostic/openapi/v3/openapiv3_pb.d.ts +2245 -0
  43. package/dist/protocol/gnostic/openapi/v3/openapiv3_pb.d.ts.map +1 -0
  44. package/dist/protocol/gnostic/openapi/v3/openapiv3_pb.js +410 -0
  45. package/dist/protocol/gnostic/openapi/v3/openapiv3_pb.js.map +1 -0
  46. package/dist/protocol/google/api/annotations_pb.d.ts +14 -0
  47. package/dist/protocol/google/api/annotations_pb.d.ts.map +1 -0
  48. package/dist/protocol/google/api/annotations_pb.js +27 -0
  49. package/dist/protocol/google/api/annotations_pb.js.map +1 -0
  50. package/dist/protocol/google/api/client_pb.d.ts +1034 -0
  51. package/dist/protocol/google/api/client_pb.d.ts.map +1 -0
  52. package/dist/protocol/google/api/client_pb.js +338 -0
  53. package/dist/protocol/google/api/client_pb.js.map +1 -0
  54. package/dist/protocol/google/api/expr/v1alpha1/checked_pb.d.ts +672 -0
  55. package/dist/protocol/google/api/expr/v1alpha1/checked_pb.d.ts.map +1 -0
  56. package/dist/protocol/google/api/expr/v1alpha1/checked_pb.js +176 -0
  57. package/dist/protocol/google/api/expr/v1alpha1/checked_pb.js.map +1 -0
  58. package/dist/protocol/google/api/expr/v1alpha1/eval_pb.d.ts +185 -0
  59. package/dist/protocol/google/api/expr/v1alpha1/eval_pb.d.ts.map +1 -0
  60. package/dist/protocol/google/api/expr/v1alpha1/eval_pb.js +46 -0
  61. package/dist/protocol/google/api/expr/v1alpha1/eval_pb.js.map +1 -0
  62. package/dist/protocol/google/api/expr/v1alpha1/explain_pb.d.ts +68 -0
  63. package/dist/protocol/google/api/expr/v1alpha1/explain_pb.d.ts.map +1 -0
  64. package/dist/protocol/google/api/expr/v1alpha1/explain_pb.js +32 -0
  65. package/dist/protocol/google/api/expr/v1alpha1/explain_pb.js.map +1 -0
  66. package/dist/protocol/google/api/expr/v1alpha1/syntax_pb.d.ts +796 -0
  67. package/dist/protocol/google/api/expr/v1alpha1/syntax_pb.d.ts.map +1 -0
  68. package/dist/protocol/google/api/expr/v1alpha1/syntax_pb.js +128 -0
  69. package/dist/protocol/google/api/expr/v1alpha1/syntax_pb.js.map +1 -0
  70. package/dist/protocol/google/api/expr/v1alpha1/value_pb.d.ts +224 -0
  71. package/dist/protocol/google/api/expr/v1alpha1/value_pb.d.ts.map +1 -0
  72. package/dist/protocol/google/api/expr/v1alpha1/value_pb.js +45 -0
  73. package/dist/protocol/google/api/expr/v1alpha1/value_pb.js.map +1 -0
  74. package/dist/protocol/google/api/expr/v1beta1/decl_pb.d.ts +151 -0
  75. package/dist/protocol/google/api/expr/v1beta1/decl_pb.d.ts.map +1 -0
  76. package/dist/protocol/google/api/expr/v1beta1/decl_pb.js +41 -0
  77. package/dist/protocol/google/api/expr/v1beta1/decl_pb.js.map +1 -0
  78. package/dist/protocol/google/api/expr/v1beta1/eval_pb.d.ts +203 -0
  79. package/dist/protocol/google/api/expr/v1beta1/eval_pb.d.ts.map +1 -0
  80. package/dist/protocol/google/api/expr/v1beta1/eval_pb.js +52 -0
  81. package/dist/protocol/google/api/expr/v1beta1/eval_pb.js.map +1 -0
  82. package/dist/protocol/google/api/expr/v1beta1/expr_pb.d.ts +504 -0
  83. package/dist/protocol/google/api/expr/v1beta1/expr_pb.d.ts.map +1 -0
  84. package/dist/protocol/google/api/expr/v1beta1/expr_pb.js +72 -0
  85. package/dist/protocol/google/api/expr/v1beta1/expr_pb.js.map +1 -0
  86. package/dist/protocol/google/api/expr/v1beta1/source_pb.d.ts +86 -0
  87. package/dist/protocol/google/api/expr/v1beta1/source_pb.d.ts.map +1 -0
  88. package/dist/protocol/google/api/expr/v1beta1/source_pb.js +30 -0
  89. package/dist/protocol/google/api/expr/v1beta1/source_pb.js.map +1 -0
  90. package/dist/protocol/google/api/expr/v1beta1/value_pb.d.ts +224 -0
  91. package/dist/protocol/google/api/expr/v1beta1/value_pb.d.ts.map +1 -0
  92. package/dist/protocol/google/api/expr/v1beta1/value_pb.js +46 -0
  93. package/dist/protocol/google/api/expr/v1beta1/value_pb.js.map +1 -0
  94. package/dist/protocol/google/api/field_behavior_pb.d.ts +122 -0
  95. package/dist/protocol/google/api/field_behavior_pb.d.ts.map +1 -0
  96. package/dist/protocol/google/api/field_behavior_pb.js +136 -0
  97. package/dist/protocol/google/api/field_behavior_pb.js.map +1 -0
  98. package/dist/protocol/google/api/field_info_pb.d.ts +140 -0
  99. package/dist/protocol/google/api/field_info_pb.d.ts.map +1 -0
  100. package/dist/protocol/google/api/field_info_pb.js +108 -0
  101. package/dist/protocol/google/api/field_info_pb.js.map +1 -0
  102. package/dist/protocol/google/api/http_pb.d.ts +441 -0
  103. package/dist/protocol/google/api/http_pb.d.ts.map +1 -0
  104. package/dist/protocol/google/api/http_pb.js +34 -0
  105. package/dist/protocol/google/api/http_pb.js.map +1 -0
  106. package/dist/protocol/google/api/httpbody_pb.d.ts +81 -0
  107. package/dist/protocol/google/api/httpbody_pb.d.ts.map +1 -0
  108. package/dist/protocol/google/api/httpbody_pb.js +25 -0
  109. package/dist/protocol/google/api/httpbody_pb.js.map +1 -0
  110. package/dist/protocol/google/api/launch_stage_pb.d.ts +87 -0
  111. package/dist/protocol/google/api/launch_stage_pb.d.ts.map +1 -0
  112. package/dist/protocol/google/api/launch_stage_pb.js +101 -0
  113. package/dist/protocol/google/api/launch_stage_pb.js.map +1 -0
  114. package/dist/protocol/google/api/resource_pb.d.ts +304 -0
  115. package/dist/protocol/google/api/resource_pb.d.ts.map +1 -0
  116. package/dist/protocol/google/api/resource_pb.js +116 -0
  117. package/dist/protocol/google/api/resource_pb.js.map +1 -0
  118. package/dist/protocol/google/api/routing_pb.d.ts +476 -0
  119. package/dist/protocol/google/api/routing_pb.d.ts.map +1 -0
  120. package/dist/protocol/google/api/routing_pb.js +36 -0
  121. package/dist/protocol/google/api/routing_pb.js.map +1 -0
  122. package/dist/protocol/google/api/visibility_pb.d.ts +128 -0
  123. package/dist/protocol/google/api/visibility_pb.d.ts.map +1 -0
  124. package/dist/protocol/google/api/visibility_pb.js +66 -0
  125. package/dist/protocol/google/api/visibility_pb.js.map +1 -0
  126. package/dist/protocol/google/bytestream/bytestream_pb.d.ts +278 -0
  127. package/dist/protocol/google/bytestream/bytestream_pb.d.ts.map +1 -0
  128. package/dist/protocol/google/bytestream/bytestream_pb.js +77 -0
  129. package/dist/protocol/google/bytestream/bytestream_pb.js.map +1 -0
  130. package/dist/protocol/google/geo/type/viewport_pb.d.ts +66 -0
  131. package/dist/protocol/google/geo/type/viewport_pb.d.ts.map +1 -0
  132. package/dist/protocol/google/geo/type/viewport_pb.js +26 -0
  133. package/dist/protocol/google/geo/type/viewport_pb.js.map +1 -0
  134. package/dist/protocol/google/iam/v1/iam_policy_pb.d.ts +193 -0
  135. package/dist/protocol/google/iam/v1/iam_policy_pb.d.ts.map +1 -0
  136. package/dist/protocol/google/iam/v1/iam_policy_pb.js +76 -0
  137. package/dist/protocol/google/iam/v1/iam_policy_pb.js.map +1 -0
  138. package/dist/protocol/google/iam/v1/options_pb.d.ts +42 -0
  139. package/dist/protocol/google/iam/v1/options_pb.d.ts.map +1 -0
  140. package/dist/protocol/google/iam/v1/options_pb.js +24 -0
  141. package/dist/protocol/google/iam/v1/options_pb.js.map +1 -0
  142. package/dist/protocol/google/iam/v1/policy_pb.d.ts +571 -0
  143. package/dist/protocol/google/iam/v1/policy_pb.d.ts.map +1 -0
  144. package/dist/protocol/google/iam/v1/policy_pb.js +152 -0
  145. package/dist/protocol/google/iam/v1/policy_pb.js.map +1 -0
  146. package/dist/protocol/google/longrunning/operations_pb.d.ts +398 -0
  147. package/dist/protocol/google/longrunning/operations_pb.d.ts.map +1 -0
  148. package/dist/protocol/google/longrunning/operations_pb.js +89 -0
  149. package/dist/protocol/google/longrunning/operations_pb.js.map +1 -0
  150. package/dist/protocol/google/rpc/code_pb.d.ts +228 -0
  151. package/dist/protocol/google/rpc/code_pb.d.ts.map +1 -0
  152. package/dist/protocol/google/rpc/code_pb.js +242 -0
  153. package/dist/protocol/google/rpc/code_pb.js.map +1 -0
  154. package/dist/protocol/google/rpc/context/attribute_context_pb.d.ts +560 -0
  155. package/dist/protocol/google/rpc/context/attribute_context_pb.d.ts.map +1 -0
  156. package/dist/protocol/google/rpc/context/attribute_context_pb.js +55 -0
  157. package/dist/protocol/google/rpc/context/attribute_context_pb.js.map +1 -0
  158. package/dist/protocol/google/rpc/error_details_pb.d.ts +581 -0
  159. package/dist/protocol/google/rpc/error_details_pb.d.ts.map +1 -0
  160. package/dist/protocol/google/rpc/error_details_pb.js +90 -0
  161. package/dist/protocol/google/rpc/error_details_pb.js.map +1 -0
  162. package/dist/protocol/google/rpc/status_pb.d.ts +49 -0
  163. package/dist/protocol/google/rpc/status_pb.d.ts.map +1 -0
  164. package/dist/protocol/google/rpc/status_pb.js +25 -0
  165. package/dist/protocol/google/rpc/status_pb.js.map +1 -0
  166. package/dist/protocol/google/type/calendar_period_pb.d.ts +71 -0
  167. package/dist/protocol/google/type/calendar_period_pb.d.ts.map +1 -0
  168. package/dist/protocol/google/type/calendar_period_pb.js +85 -0
  169. package/dist/protocol/google/type/calendar_period_pb.js.map +1 -0
  170. package/dist/protocol/google/type/color_pb.d.ts +176 -0
  171. package/dist/protocol/google/type/color_pb.d.ts.map +1 -0
  172. package/dist/protocol/google/type/color_pb.js +25 -0
  173. package/dist/protocol/google/type/color_pb.js.map +1 -0
  174. package/dist/protocol/google/type/date_pb.d.ts +56 -0
  175. package/dist/protocol/google/type/date_pb.d.ts.map +1 -0
  176. package/dist/protocol/google/type/date_pb.js +24 -0
  177. package/dist/protocol/google/type/date_pb.js.map +1 -0
  178. package/dist/protocol/google/type/datetime_pb.d.ts +148 -0
  179. package/dist/protocol/google/type/datetime_pb.d.ts.map +1 -0
  180. package/dist/protocol/google/type/datetime_pb.js +30 -0
  181. package/dist/protocol/google/type/datetime_pb.js.map +1 -0
  182. package/dist/protocol/google/type/dayofweek_pb.d.ts +65 -0
  183. package/dist/protocol/google/type/dayofweek_pb.d.ts.map +1 -0
  184. package/dist/protocol/google/type/dayofweek_pb.js +79 -0
  185. package/dist/protocol/google/type/dayofweek_pb.js.map +1 -0
  186. package/dist/protocol/google/type/decimal_pb.d.ts +89 -0
  187. package/dist/protocol/google/type/decimal_pb.d.ts.map +1 -0
  188. package/dist/protocol/google/type/decimal_pb.js +24 -0
  189. package/dist/protocol/google/type/decimal_pb.js.map +1 -0
  190. package/dist/protocol/google/type/expr_pb.d.ts +78 -0
  191. package/dist/protocol/google/type/expr_pb.d.ts.map +1 -0
  192. package/dist/protocol/google/type/expr_pb.js +24 -0
  193. package/dist/protocol/google/type/expr_pb.js.map +1 -0
  194. package/dist/protocol/google/type/fraction_pb.d.ts +32 -0
  195. package/dist/protocol/google/type/fraction_pb.d.ts.map +1 -0
  196. package/dist/protocol/google/type/fraction_pb.js +24 -0
  197. package/dist/protocol/google/type/fraction_pb.js.map +1 -0
  198. package/dist/protocol/google/type/interval_pb.d.ts +43 -0
  199. package/dist/protocol/google/type/interval_pb.d.ts.map +1 -0
  200. package/dist/protocol/google/type/interval_pb.js +25 -0
  201. package/dist/protocol/google/type/interval_pb.js.map +1 -0
  202. package/dist/protocol/google/type/latlng_pb.d.ts +35 -0
  203. package/dist/protocol/google/type/latlng_pb.d.ts.map +1 -0
  204. package/dist/protocol/google/type/latlng_pb.js +24 -0
  205. package/dist/protocol/google/type/latlng_pb.js.map +1 -0
  206. package/dist/protocol/google/type/localized_text_pb.d.ts +35 -0
  207. package/dist/protocol/google/type/localized_text_pb.d.ts.map +1 -0
  208. package/dist/protocol/google/type/localized_text_pb.js +24 -0
  209. package/dist/protocol/google/type/localized_text_pb.js.map +1 -0
  210. package/dist/protocol/google/type/money_pb.d.ts +43 -0
  211. package/dist/protocol/google/type/money_pb.d.ts.map +1 -0
  212. package/dist/protocol/google/type/money_pb.js +24 -0
  213. package/dist/protocol/google/type/money_pb.js.map +1 -0
  214. package/dist/protocol/google/type/month_pb.d.ts +95 -0
  215. package/dist/protocol/google/type/month_pb.d.ts.map +1 -0
  216. package/dist/protocol/google/type/month_pb.js +109 -0
  217. package/dist/protocol/google/type/month_pb.js.map +1 -0
  218. package/dist/protocol/google/type/phone_number_pb.d.ts +145 -0
  219. package/dist/protocol/google/type/phone_number_pb.d.ts.map +1 -0
  220. package/dist/protocol/google/type/phone_number_pb.js +29 -0
  221. package/dist/protocol/google/type/phone_number_pb.js.map +1 -0
  222. package/dist/protocol/google/type/postal_address_pb.d.ts +160 -0
  223. package/dist/protocol/google/type/postal_address_pb.d.ts.map +1 -0
  224. package/dist/protocol/google/type/postal_address_pb.js +24 -0
  225. package/dist/protocol/google/type/postal_address_pb.js.map +1 -0
  226. package/dist/protocol/google/type/quaternion_pb.d.ts +99 -0
  227. package/dist/protocol/google/type/quaternion_pb.d.ts.map +1 -0
  228. package/dist/protocol/google/type/quaternion_pb.js +24 -0
  229. package/dist/protocol/google/type/quaternion_pb.js.map +1 -0
  230. package/dist/protocol/google/type/timeofday_pb.d.ts +52 -0
  231. package/dist/protocol/google/type/timeofday_pb.d.ts.map +1 -0
  232. package/dist/protocol/google/type/timeofday_pb.js +24 -0
  233. package/dist/protocol/google/type/timeofday_pb.js.map +1 -0
  234. package/dist/protocol/uplim/api/v1/account_pb.d.ts +144 -0
  235. package/dist/protocol/uplim/api/v1/account_pb.d.ts.map +1 -0
  236. package/dist/protocol/uplim/api/v1/account_pb.js +100 -0
  237. package/dist/protocol/uplim/api/v1/account_pb.js.map +1 -0
  238. package/dist/protocol/uplim/api/v1/auth_pb.d.ts +231 -0
  239. package/dist/protocol/uplim/api/v1/auth_pb.d.ts.map +1 -0
  240. package/dist/protocol/uplim/api/v1/auth_pb.js +65 -0
  241. package/dist/protocol/uplim/api/v1/auth_pb.js.map +1 -0
  242. package/dist/protocol/uplim/api/v1/buckets_pb.d.ts +1920 -0
  243. package/dist/protocol/uplim/api/v1/buckets_pb.d.ts.map +1 -0
  244. package/dist/protocol/uplim/api/v1/buckets_pb.js +471 -0
  245. package/dist/protocol/uplim/api/v1/buckets_pb.js.map +1 -0
  246. package/dist/protocol/uplim/api/v1/content_type_matcher_pb.d.ts +398 -0
  247. package/dist/protocol/uplim/api/v1/content_type_matcher_pb.d.ts.map +1 -0
  248. package/dist/protocol/uplim/api/v1/content_type_matcher_pb.js +79 -0
  249. package/dist/protocol/uplim/api/v1/content_type_matcher_pb.js.map +1 -0
  250. package/dist/protocol/uplim/api/v1/events_pb.d.ts +767 -0
  251. package/dist/protocol/uplim/api/v1/events_pb.d.ts.map +1 -0
  252. package/dist/protocol/uplim/api/v1/events_pb.js +242 -0
  253. package/dist/protocol/uplim/api/v1/events_pb.js.map +1 -0
  254. package/dist/protocol/uplim/api/v1/integration_admin_pb.d.ts +1059 -0
  255. package/dist/protocol/uplim/api/v1/integration_admin_pb.d.ts.map +1 -0
  256. package/dist/protocol/uplim/api/v1/integration_admin_pb.js +209 -0
  257. package/dist/protocol/uplim/api/v1/integration_admin_pb.js.map +1 -0
  258. package/dist/protocol/uplim/api/v1/integration_install_pb.d.ts +313 -0
  259. package/dist/protocol/uplim/api/v1/integration_install_pb.d.ts.map +1 -0
  260. package/dist/protocol/uplim/api/v1/integration_install_pb.js +129 -0
  261. package/dist/protocol/uplim/api/v1/integration_install_pb.js.map +1 -0
  262. package/dist/protocol/uplim/api/v1/integration_types_pb.d.ts +767 -0
  263. package/dist/protocol/uplim/api/v1/integration_types_pb.d.ts.map +1 -0
  264. package/dist/protocol/uplim/api/v1/integration_types_pb.js +221 -0
  265. package/dist/protocol/uplim/api/v1/integration_types_pb.js.map +1 -0
  266. package/dist/protocol/uplim/api/v1/integrations_pb.d.ts +807 -0
  267. package/dist/protocol/uplim/api/v1/integrations_pb.d.ts.map +1 -0
  268. package/dist/protocol/uplim/api/v1/integrations_pb.js +169 -0
  269. package/dist/protocol/uplim/api/v1/integrations_pb.js.map +1 -0
  270. package/dist/protocol/uplim/api/v1/internal_pb.d.ts +204 -0
  271. package/dist/protocol/uplim/api/v1/internal_pb.d.ts.map +1 -0
  272. package/dist/protocol/uplim/api/v1/internal_pb.js +118 -0
  273. package/dist/protocol/uplim/api/v1/internal_pb.js.map +1 -0
  274. package/dist/protocol/uplim/api/v1/metadata_pb.d.ts +265 -0
  275. package/dist/protocol/uplim/api/v1/metadata_pb.d.ts.map +1 -0
  276. package/dist/protocol/uplim/api/v1/metadata_pb.js +50 -0
  277. package/dist/protocol/uplim/api/v1/metadata_pb.js.map +1 -0
  278. package/dist/protocol/uplim/api/v1/public-buckets_pb.d.ts +64 -0
  279. package/dist/protocol/uplim/api/v1/public-buckets_pb.d.ts.map +1 -0
  280. package/dist/protocol/uplim/api/v1/public-buckets_pb.js +28 -0
  281. package/dist/protocol/uplim/api/v1/public-buckets_pb.js.map +1 -0
  282. package/dist/protocol/uplim/api/v1/public-uploads_pb.d.ts +461 -0
  283. package/dist/protocol/uplim/api/v1/public-uploads_pb.d.ts.map +1 -0
  284. package/dist/protocol/uplim/api/v1/public-uploads_pb.js +139 -0
  285. package/dist/protocol/uplim/api/v1/public-uploads_pb.js.map +1 -0
  286. package/dist/protocol/uplim/api/v1/upload-aliases_pb.d.ts +396 -0
  287. package/dist/protocol/uplim/api/v1/upload-aliases_pb.d.ts.map +1 -0
  288. package/dist/protocol/uplim/api/v1/upload-aliases_pb.js +69 -0
  289. package/dist/protocol/uplim/api/v1/upload-aliases_pb.js.map +1 -0
  290. package/dist/protocol/uplim/api/v1/uploads_pb.d.ts +3736 -0
  291. package/dist/protocol/uplim/api/v1/uploads_pb.d.ts.map +1 -0
  292. package/dist/protocol/uplim/api/v1/uploads_pb.js +732 -0
  293. package/dist/protocol/uplim/api/v1/uploads_pb.js.map +1 -0
  294. package/dist/protocol/uplim/workflow/v1/activities_pb.d.ts +394 -0
  295. package/dist/protocol/uplim/workflow/v1/activities_pb.d.ts.map +1 -0
  296. package/dist/protocol/uplim/workflow/v1/activities_pb.js +122 -0
  297. package/dist/protocol/uplim/workflow/v1/activities_pb.js.map +1 -0
  298. package/dist/protocol/uplim/workflow/v1/integration_queue_admin_pb.d.ts +486 -0
  299. package/dist/protocol/uplim/workflow/v1/integration_queue_admin_pb.d.ts.map +1 -0
  300. package/dist/protocol/uplim/workflow/v1/integration_queue_admin_pb.js +158 -0
  301. package/dist/protocol/uplim/workflow/v1/integration_queue_admin_pb.js.map +1 -0
  302. package/dist/protocol/uplim/workflow/v1/integration_queue_pb.d.ts +289 -0
  303. package/dist/protocol/uplim/workflow/v1/integration_queue_pb.d.ts.map +1 -0
  304. package/dist/protocol/uplim/workflow/v1/integration_queue_pb.js +66 -0
  305. package/dist/protocol/uplim/workflow/v1/integration_queue_pb.js.map +1 -0
  306. package/dist/protocol/uplim/workflow/v1/workflows_pb.d.ts +602 -0
  307. package/dist/protocol/uplim/workflow/v1/workflows_pb.d.ts.map +1 -0
  308. package/dist/protocol/uplim/workflow/v1/workflows_pb.js +194 -0
  309. package/dist/protocol/uplim/workflow/v1/workflows_pb.js.map +1 -0
  310. package/dist/rpc-clients.d.ts +9 -0
  311. package/dist/rpc-clients.d.ts.map +1 -0
  312. package/dist/rpc-clients.js +24 -0
  313. package/dist/rpc-clients.js.map +1 -0
  314. package/dist/sse-client.d.ts +20 -0
  315. package/dist/sse-client.d.ts.map +1 -0
  316. package/dist/sse-client.js +68 -0
  317. package/dist/sse-client.js.map +1 -0
  318. package/dist/types.d.ts +174 -0
  319. package/dist/types.d.ts.map +1 -0
  320. package/dist/types.js +17 -0
  321. package/dist/types.js.map +1 -0
  322. package/package.json +47 -0
  323. package/src/errors.ts +14 -0
  324. package/src/index.ts +41 -0
  325. package/src/job-context.ts +244 -0
  326. package/src/pool.ts +143 -0
  327. package/src/protocol/buf/validate/expression_pb.ts +163 -0
  328. package/src/protocol/buf/validate/priv/private_pb.ts +86 -0
  329. package/src/protocol/buf/validate/validate_pb.ts +3802 -0
  330. package/src/protocol/gnostic/discovery/v1/discovery_pb.ts +1020 -0
  331. package/src/protocol/gnostic/openapi/v2/openapiv2_pb.ts +2679 -0
  332. package/src/protocol/gnostic/openapi/v3/annotations_pb.ts +55 -0
  333. package/src/protocol/gnostic/openapi/v3/openapiv3_pb.ts +2660 -0
  334. package/src/protocol/google/api/annotations_pb.ts +39 -0
  335. package/src/protocol/google/api/client_pb.ts +1183 -0
  336. package/src/protocol/google/api/expr/v1alpha1/checked_pb.ts +751 -0
  337. package/src/protocol/google/api/expr/v1alpha1/eval_pb.ts +222 -0
  338. package/src/protocol/google/api/expr/v1alpha1/explain_pb.ts +98 -0
  339. package/src/protocol/google/api/expr/v1alpha1/syntax_pb.ts +882 -0
  340. package/src/protocol/google/api/expr/v1alpha1/value_pb.ts +260 -0
  341. package/src/protocol/google/api/expr/v1beta1/decl_pb.ts +191 -0
  342. package/src/protocol/google/api/expr/v1beta1/eval_pb.ts +244 -0
  343. package/src/protocol/google/api/expr/v1beta1/expr_pb.ts +565 -0
  344. package/src/protocol/google/api/expr/v1beta1/source_pb.ts +117 -0
  345. package/src/protocol/google/api/expr/v1beta1/value_pb.ts +261 -0
  346. package/src/protocol/google/api/field_behavior_pb.ts +157 -0
  347. package/src/protocol/google/api/field_info_pb.ts +178 -0
  348. package/src/protocol/google/api/http_pb.ts +474 -0
  349. package/src/protocol/google/api/httpbody_pb.ts +108 -0
  350. package/src/protocol/google/api/launch_stage_pb.ts +118 -0
  351. package/src/protocol/google/api/resource_pb.ts +354 -0
  352. package/src/protocol/google/api/routing_pb.ts +507 -0
  353. package/src/protocol/google/api/visibility_pb.ts +169 -0
  354. package/src/protocol/google/bytestream/bytestream_pb.ts +325 -0
  355. package/src/protocol/google/geo/type/viewport_pb.ts +93 -0
  356. package/src/protocol/google/iam/v1/iam_policy_pb.ts +239 -0
  357. package/src/protocol/google/iam/v1/options_pb.ts +66 -0
  358. package/src/protocol/google/iam/v1/policy_pb.ts +644 -0
  359. package/src/protocol/google/longrunning/operations_pb.ts +460 -0
  360. package/src/protocol/google/rpc/code_pb.ts +268 -0
  361. package/src/protocol/google/rpc/context/attribute_context_pb.ts +638 -0
  362. package/src/protocol/google/rpc/error_details_pb.ts +662 -0
  363. package/src/protocol/google/rpc/status_pb.ts +76 -0
  364. package/src/protocol/google/type/calendar_period_pb.ts +102 -0
  365. package/src/protocol/google/type/color_pb.ts +204 -0
  366. package/src/protocol/google/type/date_pb.ts +82 -0
  367. package/src/protocol/google/type/datetime_pb.ts +181 -0
  368. package/src/protocol/google/type/dayofweek_pb.ts +96 -0
  369. package/src/protocol/google/type/decimal_pb.ts +113 -0
  370. package/src/protocol/google/type/expr_pb.ts +105 -0
  371. package/src/protocol/google/type/fraction_pb.ts +57 -0
  372. package/src/protocol/google/type/interval_pb.ts +69 -0
  373. package/src/protocol/google/type/latlng_pb.ts +60 -0
  374. package/src/protocol/google/type/localized_text_pb.ts +60 -0
  375. package/src/protocol/google/type/money_pb.ts +69 -0
  376. package/src/protocol/google/type/month_pb.ts +131 -0
  377. package/src/protocol/google/type/phone_number_pb.ts +171 -0
  378. package/src/protocol/google/type/postal_address_pb.ts +194 -0
  379. package/src/protocol/google/type/quaternion_pb.ts +126 -0
  380. package/src/protocol/google/type/timeofday_pb.ts +79 -0
  381. package/src/protocol/uplim/api/v1/account_pb.ts +178 -0
  382. package/src/protocol/uplim/api/v1/auth_pb.ts +278 -0
  383. package/src/protocol/uplim/api/v1/buckets_pb.ts +2214 -0
  384. package/src/protocol/uplim/api/v1/content_type_matcher_pb.ts +448 -0
  385. package/src/protocol/uplim/api/v1/events_pb.ts +874 -0
  386. package/src/protocol/uplim/api/v1/integration_admin_pb.ts +1237 -0
  387. package/src/protocol/uplim/api/v1/integration_install_pb.ts +386 -0
  388. package/src/protocol/uplim/api/v1/integration_types_pb.ts +896 -0
  389. package/src/protocol/uplim/api/v1/integrations_pb.ts +944 -0
  390. package/src/protocol/uplim/api/v1/internal_pb.ts +234 -0
  391. package/src/protocol/uplim/api/v1/metadata_pb.ts +305 -0
  392. package/src/protocol/uplim/api/v1/public-buckets_pb.ts +83 -0
  393. package/src/protocol/uplim/api/v1/public-uploads_pb.ts +543 -0
  394. package/src/protocol/uplim/api/v1/upload-aliases_pb.ts +468 -0
  395. package/src/protocol/uplim/api/v1/uploads_pb.ts +4294 -0
  396. package/src/protocol/uplim/workflow/v1/activities_pb.ts +488 -0
  397. package/src/protocol/uplim/workflow/v1/integration_queue_admin_pb.ts +594 -0
  398. package/src/protocol/uplim/workflow/v1/integration_queue_pb.ts +353 -0
  399. package/src/protocol/uplim/workflow/v1/workflows_pb.ts +746 -0
  400. package/src/rpc-clients.ts +29 -0
  401. package/src/sse-client.ts +83 -0
  402. package/src/types.ts +169 -0
@@ -0,0 +1,3685 @@
1
+ import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Constraint } from "./expression_pb.js";
3
+ import type { Duration, FieldOptions, MessageOptions, OneofOptions, Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file buf/validate/validate.proto.
7
+ */
8
+ export declare const file_buf_validate_validate: GenFile;
9
+ /**
10
+ * MessageConstraints represents validation rules that are applied to the entire message.
11
+ * It includes disabling options and a list of Constraint messages representing Common Expression Language (CEL) validation rules.
12
+ *
13
+ * @generated from message buf.validate.MessageConstraints
14
+ */
15
+ export type MessageConstraints = Message<"buf.validate.MessageConstraints"> & {
16
+ /**
17
+ * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
18
+ * This includes any fields within the message that would otherwise support validation.
19
+ *
20
+ * ```proto
21
+ * message MyMessage {
22
+ * // validation will be bypassed for this message
23
+ * option (buf.validate.message).disabled = true;
24
+ * }
25
+ * ```
26
+ *
27
+ * @generated from field: optional bool disabled = 1;
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
32
+ * These constraints are written in Common Expression Language (CEL) syntax. For more information on
33
+ * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
34
+ *
35
+ *
36
+ * ```proto
37
+ * message MyMessage {
38
+ * // The field `foo` must be greater than 42.
39
+ * option (buf.validate.message).cel = {
40
+ * id: "my_message.value",
41
+ * message: "value must be greater than 42",
42
+ * expression: "this.foo > 42",
43
+ * };
44
+ * optional int32 foo = 1;
45
+ * }
46
+ * ```
47
+ *
48
+ * @generated from field: repeated buf.validate.Constraint cel = 3;
49
+ */
50
+ cel: Constraint[];
51
+ };
52
+ /**
53
+ * Describes the message buf.validate.MessageConstraints.
54
+ * Use `create(MessageConstraintsSchema)` to create a new message.
55
+ */
56
+ export declare const MessageConstraintsSchema: GenMessage<MessageConstraints>;
57
+ /**
58
+ * The `OneofConstraints` message type enables you to manage constraints for
59
+ * oneof fields in your protobuf messages.
60
+ *
61
+ * @generated from message buf.validate.OneofConstraints
62
+ */
63
+ export type OneofConstraints = Message<"buf.validate.OneofConstraints"> & {
64
+ /**
65
+ * If `required` is true, exactly one field of the oneof must be present. A
66
+ * validation error is returned if no fields in the oneof are present. The
67
+ * field itself may still be a default value; further constraints
68
+ * should be placed on the fields themselves to ensure they are valid values,
69
+ * such as `min_len` or `gt`.
70
+ *
71
+ * ```proto
72
+ * message MyMessage {
73
+ * oneof value {
74
+ * // Either `a` or `b` must be set. If `a` is set, it must also be
75
+ * // non-empty; whereas if `b` is set, it can still be an empty string.
76
+ * option (buf.validate.oneof).required = true;
77
+ * string a = 1 [(buf.validate.field).string.min_len = 1];
78
+ * string b = 2;
79
+ * }
80
+ * }
81
+ * ```
82
+ *
83
+ * @generated from field: optional bool required = 1;
84
+ */
85
+ required?: boolean;
86
+ };
87
+ /**
88
+ * Describes the message buf.validate.OneofConstraints.
89
+ * Use `create(OneofConstraintsSchema)` to create a new message.
90
+ */
91
+ export declare const OneofConstraintsSchema: GenMessage<OneofConstraints>;
92
+ /**
93
+ * FieldRules encapsulates the rules for each type of field. Depending on the
94
+ * field, the correct set should be used to ensure proper validations.
95
+ *
96
+ * @generated from message buf.validate.FieldConstraints
97
+ */
98
+ export type FieldConstraints = Message<"buf.validate.FieldConstraints"> & {
99
+ /**
100
+ * `cel` is a repeated field used to represent a textual expression
101
+ * in the Common Expression Language (CEL) syntax. For more information on
102
+ * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
103
+ *
104
+ * ```proto
105
+ * message MyMessage {
106
+ * // The field `value` must be greater than 42.
107
+ * optional int32 value = 1 [(buf.validate.field).cel = {
108
+ * id: "my_message.value",
109
+ * message: "value must be greater than 42",
110
+ * expression: "this > 42",
111
+ * }];
112
+ * }
113
+ * ```
114
+ *
115
+ * @generated from field: repeated buf.validate.Constraint cel = 23;
116
+ */
117
+ cel: Constraint[];
118
+ /**
119
+ * `skipped` is an optional boolean attribute that specifies that the
120
+ * validation rules of this field should not be evaluated. If skipped is set to
121
+ * true, any validation rules set for the field will be ignored.
122
+ *
123
+ * ```proto
124
+ * message MyMessage {
125
+ * // The field `value` must not be set.
126
+ * optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true];
127
+ * }
128
+ * ```
129
+ *
130
+ * @generated from field: bool skipped = 24;
131
+ */
132
+ skipped: boolean;
133
+ /**
134
+ * If `required` is true, the field must be populated. Field presence can be
135
+ * described as "serialized in the wire format," which follows the following rules:
136
+ *
137
+ * - the following "nullable" fields must be explicitly set to be considered present:
138
+ * - singular message fields (whose fields may be unpopulated/default values)
139
+ * - member fields of a oneof (may be their default value)
140
+ * - proto3 optional fields (may be their default value)
141
+ * - proto2 scalar fields
142
+ * - proto3 scalar fields must be non-zero to be considered present
143
+ * - repeated and map fields must be non-empty to be considered present
144
+ *
145
+ * ```proto
146
+ * message MyMessage {
147
+ * // The field `value` must be set to a non-null value.
148
+ * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
149
+ * }
150
+ * ```
151
+ *
152
+ * @generated from field: bool required = 25;
153
+ */
154
+ required: boolean;
155
+ /**
156
+ * DEPRECATED: use ignore=IGNORE_EMPTY instead.
157
+ *
158
+ * @generated from field: bool ignore_empty = 26 [deprecated = true];
159
+ * @deprecated
160
+ */
161
+ ignoreEmpty: boolean;
162
+ /**
163
+ * Skip validation on the field if its value matches the specified rule.
164
+ *
165
+ * ```proto
166
+ * message UpdateRequest {
167
+ * // The uri rule only applies if the field is populated and not an empty
168
+ * // string.
169
+ * optional string url = 1 [
170
+ * (buf.validate.field).ignore = IGNORE_DEFAULT,
171
+ * (buf.validate.field).string.uri = true,
172
+ * ];
173
+ * }
174
+ * ```
175
+ *
176
+ * @generated from field: buf.validate.Ignore ignore = 27;
177
+ */
178
+ ignore: Ignore;
179
+ /**
180
+ * @generated from oneof buf.validate.FieldConstraints.type
181
+ */
182
+ type: {
183
+ /**
184
+ * Scalar Field Types
185
+ *
186
+ * @generated from field: buf.validate.FloatRules float = 1;
187
+ */
188
+ value: FloatRules;
189
+ case: "float";
190
+ } | {
191
+ /**
192
+ * @generated from field: buf.validate.DoubleRules double = 2;
193
+ */
194
+ value: DoubleRules;
195
+ case: "double";
196
+ } | {
197
+ /**
198
+ * @generated from field: buf.validate.Int32Rules int32 = 3;
199
+ */
200
+ value: Int32Rules;
201
+ case: "int32";
202
+ } | {
203
+ /**
204
+ * @generated from field: buf.validate.Int64Rules int64 = 4;
205
+ */
206
+ value: Int64Rules;
207
+ case: "int64";
208
+ } | {
209
+ /**
210
+ * @generated from field: buf.validate.UInt32Rules uint32 = 5;
211
+ */
212
+ value: UInt32Rules;
213
+ case: "uint32";
214
+ } | {
215
+ /**
216
+ * @generated from field: buf.validate.UInt64Rules uint64 = 6;
217
+ */
218
+ value: UInt64Rules;
219
+ case: "uint64";
220
+ } | {
221
+ /**
222
+ * @generated from field: buf.validate.SInt32Rules sint32 = 7;
223
+ */
224
+ value: SInt32Rules;
225
+ case: "sint32";
226
+ } | {
227
+ /**
228
+ * @generated from field: buf.validate.SInt64Rules sint64 = 8;
229
+ */
230
+ value: SInt64Rules;
231
+ case: "sint64";
232
+ } | {
233
+ /**
234
+ * @generated from field: buf.validate.Fixed32Rules fixed32 = 9;
235
+ */
236
+ value: Fixed32Rules;
237
+ case: "fixed32";
238
+ } | {
239
+ /**
240
+ * @generated from field: buf.validate.Fixed64Rules fixed64 = 10;
241
+ */
242
+ value: Fixed64Rules;
243
+ case: "fixed64";
244
+ } | {
245
+ /**
246
+ * @generated from field: buf.validate.SFixed32Rules sfixed32 = 11;
247
+ */
248
+ value: SFixed32Rules;
249
+ case: "sfixed32";
250
+ } | {
251
+ /**
252
+ * @generated from field: buf.validate.SFixed64Rules sfixed64 = 12;
253
+ */
254
+ value: SFixed64Rules;
255
+ case: "sfixed64";
256
+ } | {
257
+ /**
258
+ * @generated from field: buf.validate.BoolRules bool = 13;
259
+ */
260
+ value: BoolRules;
261
+ case: "bool";
262
+ } | {
263
+ /**
264
+ * @generated from field: buf.validate.StringRules string = 14;
265
+ */
266
+ value: StringRules;
267
+ case: "string";
268
+ } | {
269
+ /**
270
+ * @generated from field: buf.validate.BytesRules bytes = 15;
271
+ */
272
+ value: BytesRules;
273
+ case: "bytes";
274
+ } | {
275
+ /**
276
+ * Complex Field Types
277
+ *
278
+ * @generated from field: buf.validate.EnumRules enum = 16;
279
+ */
280
+ value: EnumRules;
281
+ case: "enum";
282
+ } | {
283
+ /**
284
+ * @generated from field: buf.validate.RepeatedRules repeated = 18;
285
+ */
286
+ value: RepeatedRules;
287
+ case: "repeated";
288
+ } | {
289
+ /**
290
+ * @generated from field: buf.validate.MapRules map = 19;
291
+ */
292
+ value: MapRules;
293
+ case: "map";
294
+ } | {
295
+ /**
296
+ * Well-Known Field Types
297
+ *
298
+ * @generated from field: buf.validate.AnyRules any = 20;
299
+ */
300
+ value: AnyRules;
301
+ case: "any";
302
+ } | {
303
+ /**
304
+ * @generated from field: buf.validate.DurationRules duration = 21;
305
+ */
306
+ value: DurationRules;
307
+ case: "duration";
308
+ } | {
309
+ /**
310
+ * @generated from field: buf.validate.TimestampRules timestamp = 22;
311
+ */
312
+ value: TimestampRules;
313
+ case: "timestamp";
314
+ } | {
315
+ case: undefined;
316
+ value?: undefined;
317
+ };
318
+ };
319
+ /**
320
+ * Describes the message buf.validate.FieldConstraints.
321
+ * Use `create(FieldConstraintsSchema)` to create a new message.
322
+ */
323
+ export declare const FieldConstraintsSchema: GenMessage<FieldConstraints>;
324
+ /**
325
+ * FloatRules describes the constraints applied to `float` values. These
326
+ * rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.
327
+ *
328
+ * @generated from message buf.validate.FloatRules
329
+ */
330
+ export type FloatRules = Message<"buf.validate.FloatRules"> & {
331
+ /**
332
+ * `const` requires the field value to exactly match the specified value. If
333
+ * the field value doesn't match, an error message is generated.
334
+ *
335
+ * ```proto
336
+ * message MyFloat {
337
+ * // value must equal 42.0
338
+ * float value = 1 [(buf.validate.field).float.const = 42.0];
339
+ * }
340
+ * ```
341
+ *
342
+ * @generated from field: optional float const = 1;
343
+ */
344
+ const?: number;
345
+ /**
346
+ * @generated from oneof buf.validate.FloatRules.less_than
347
+ */
348
+ lessThan: {
349
+ /**
350
+ * `lt` requires the field value to be less than the specified value (field <
351
+ * value). If the field value is equal to or greater than the specified value,
352
+ * an error message is generated.
353
+ *
354
+ * ```proto
355
+ * message MyFloat {
356
+ * // value must be less than 10.0
357
+ * float value = 1 [(buf.validate.field).float.lt = 10.0];
358
+ * }
359
+ * ```
360
+ *
361
+ * @generated from field: float lt = 2;
362
+ */
363
+ value: number;
364
+ case: "lt";
365
+ } | {
366
+ /**
367
+ * `lte` requires the field value to be less than or equal to the specified
368
+ * value (field <= value). If the field value is greater than the specified
369
+ * value, an error message is generated.
370
+ *
371
+ * ```proto
372
+ * message MyFloat {
373
+ * // value must be less than or equal to 10.0
374
+ * float value = 1 [(buf.validate.field).float.lte = 10.0];
375
+ * }
376
+ * ```
377
+ *
378
+ * @generated from field: float lte = 3;
379
+ */
380
+ value: number;
381
+ case: "lte";
382
+ } | {
383
+ case: undefined;
384
+ value?: undefined;
385
+ };
386
+ /**
387
+ * @generated from oneof buf.validate.FloatRules.greater_than
388
+ */
389
+ greaterThan: {
390
+ /**
391
+ * `gt` requires the field value to be greater than the specified value
392
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
393
+ * `lte`, the range is reversed, and the field value must be outside the
394
+ * specified range. If the field value doesn't meet the required conditions,
395
+ * an error message is generated.
396
+ *
397
+ * ```proto
398
+ * message MyFloat {
399
+ * // value must be greater than 5.0 [float.gt]
400
+ * float value = 1 [(buf.validate.field).float.gt = 5.0];
401
+ *
402
+ * // value must be greater than 5 and less than 10.0 [float.gt_lt]
403
+ * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
404
+ *
405
+ * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
406
+ * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
407
+ * }
408
+ * ```
409
+ *
410
+ * @generated from field: float gt = 4;
411
+ */
412
+ value: number;
413
+ case: "gt";
414
+ } | {
415
+ /**
416
+ * `gte` requires the field value to be greater than or equal to the specified
417
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
418
+ * or `lte`, the range is reversed, and the field value must be outside the
419
+ * specified range. If the field value doesn't meet the required conditions,
420
+ * an error message is generated.
421
+ *
422
+ * ```proto
423
+ * message MyFloat {
424
+ * // value must be greater than or equal to 5.0 [float.gte]
425
+ * float value = 1 [(buf.validate.field).float.gte = 5.0];
426
+ *
427
+ * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
428
+ * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
429
+ *
430
+ * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
431
+ * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
432
+ * }
433
+ * ```
434
+ *
435
+ * @generated from field: float gte = 5;
436
+ */
437
+ value: number;
438
+ case: "gte";
439
+ } | {
440
+ case: undefined;
441
+ value?: undefined;
442
+ };
443
+ /**
444
+ * `in` requires the field value to be equal to one of the specified values.
445
+ * If the field value isn't one of the specified values, an error message
446
+ * is generated.
447
+ *
448
+ * ```proto
449
+ * message MyFloat {
450
+ * // value must be in list [1.0, 2.0, 3.0]
451
+ * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
452
+ * }
453
+ * ```
454
+ *
455
+ * @generated from field: repeated float in = 6;
456
+ */
457
+ in: number[];
458
+ /**
459
+ * `in` requires the field value to not be equal to any of the specified
460
+ * values. If the field value is one of the specified values, an error
461
+ * message is generated.
462
+ *
463
+ * ```proto
464
+ * message MyFloat {
465
+ * // value must not be in list [1.0, 2.0, 3.0]
466
+ * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
467
+ * }
468
+ * ```
469
+ *
470
+ * @generated from field: repeated float not_in = 7;
471
+ */
472
+ notIn: number[];
473
+ /**
474
+ * `finite` requires the field value to be finite. If the field value is
475
+ * infinite or NaN, an error message is generated.
476
+ *
477
+ * @generated from field: bool finite = 8;
478
+ */
479
+ finite: boolean;
480
+ };
481
+ /**
482
+ * Describes the message buf.validate.FloatRules.
483
+ * Use `create(FloatRulesSchema)` to create a new message.
484
+ */
485
+ export declare const FloatRulesSchema: GenMessage<FloatRules>;
486
+ /**
487
+ * DoubleRules describes the constraints applied to `double` values. These
488
+ * rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.
489
+ *
490
+ * @generated from message buf.validate.DoubleRules
491
+ */
492
+ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
493
+ /**
494
+ * `const` requires the field value to exactly match the specified value. If
495
+ * the field value doesn't match, an error message is generated.
496
+ *
497
+ * ```proto
498
+ * message MyDouble {
499
+ * // value must equal 42.0
500
+ * double value = 1 [(buf.validate.field).double.const = 42.0];
501
+ * }
502
+ * ```
503
+ *
504
+ * @generated from field: optional double const = 1;
505
+ */
506
+ const?: number;
507
+ /**
508
+ * @generated from oneof buf.validate.DoubleRules.less_than
509
+ */
510
+ lessThan: {
511
+ /**
512
+ * `lt` requires the field value to be less than the specified value (field <
513
+ * value). If the field value is equal to or greater than the specified
514
+ * value, an error message is generated.
515
+ *
516
+ * ```proto
517
+ * message MyDouble {
518
+ * // value must be less than 10.0
519
+ * double value = 1 [(buf.validate.field).double.lt = 10.0];
520
+ * }
521
+ * ```
522
+ *
523
+ * @generated from field: double lt = 2;
524
+ */
525
+ value: number;
526
+ case: "lt";
527
+ } | {
528
+ /**
529
+ * `lte` requires the field value to be less than or equal to the specified value
530
+ * (field <= value). If the field value is greater than the specified value,
531
+ * an error message is generated.
532
+ *
533
+ * ```proto
534
+ * message MyDouble {
535
+ * // value must be less than or equal to 10.0
536
+ * double value = 1 [(buf.validate.field).double.lte = 10.0];
537
+ * }
538
+ * ```
539
+ *
540
+ * @generated from field: double lte = 3;
541
+ */
542
+ value: number;
543
+ case: "lte";
544
+ } | {
545
+ case: undefined;
546
+ value?: undefined;
547
+ };
548
+ /**
549
+ * @generated from oneof buf.validate.DoubleRules.greater_than
550
+ */
551
+ greaterThan: {
552
+ /**
553
+ * `gt` requires the field value to be greater than the specified value
554
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
555
+ * the range is reversed, and the field value must be outside the specified
556
+ * range. If the field value doesn't meet the required conditions, an error
557
+ * message is generated.
558
+ *
559
+ * ```proto
560
+ * message MyDouble {
561
+ * // value must be greater than 5.0 [double.gt]
562
+ * double value = 1 [(buf.validate.field).double.gt = 5.0];
563
+ *
564
+ * // value must be greater than 5 and less than 10.0 [double.gt_lt]
565
+ * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
566
+ *
567
+ * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
568
+ * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
569
+ * }
570
+ * ```
571
+ *
572
+ * @generated from field: double gt = 4;
573
+ */
574
+ value: number;
575
+ case: "gt";
576
+ } | {
577
+ /**
578
+ * `gte` requires the field value to be greater than or equal to the specified
579
+ * value (exclusive). If the value of `gte` is larger than a specified `lt` or
580
+ * `lte`, the range is reversed, and the field value must be outside the
581
+ * specified range. If the field value doesn't meet the required conditions,
582
+ * an error message is generated.
583
+ *
584
+ * ```proto
585
+ * message MyDouble {
586
+ * // value must be greater than or equal to 5.0 [double.gte]
587
+ * double value = 1 [(buf.validate.field).double.gte = 5.0];
588
+ *
589
+ * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
590
+ * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
591
+ *
592
+ * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
593
+ * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
594
+ * }
595
+ * ```
596
+ *
597
+ * @generated from field: double gte = 5;
598
+ */
599
+ value: number;
600
+ case: "gte";
601
+ } | {
602
+ case: undefined;
603
+ value?: undefined;
604
+ };
605
+ /**
606
+ * `in` requires the field value to be equal to one of the specified values.
607
+ * If the field value isn't one of the specified values, an error message is
608
+ * generated.
609
+ *
610
+ * ```proto
611
+ * message MyDouble {
612
+ * // value must be in list [1.0, 2.0, 3.0]
613
+ * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] };
614
+ * }
615
+ * ```
616
+ *
617
+ * @generated from field: repeated double in = 6;
618
+ */
619
+ in: number[];
620
+ /**
621
+ * `not_in` requires the field value to not be equal to any of the specified
622
+ * values. If the field value is one of the specified values, an error
623
+ * message is generated.
624
+ *
625
+ * ```proto
626
+ * message MyDouble {
627
+ * // value must not be in list [1.0, 2.0, 3.0]
628
+ * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] };
629
+ * }
630
+ * ```
631
+ *
632
+ * @generated from field: repeated double not_in = 7;
633
+ */
634
+ notIn: number[];
635
+ /**
636
+ * `finite` requires the field value to be finite. If the field value is
637
+ * infinite or NaN, an error message is generated.
638
+ *
639
+ * @generated from field: bool finite = 8;
640
+ */
641
+ finite: boolean;
642
+ };
643
+ /**
644
+ * Describes the message buf.validate.DoubleRules.
645
+ * Use `create(DoubleRulesSchema)` to create a new message.
646
+ */
647
+ export declare const DoubleRulesSchema: GenMessage<DoubleRules>;
648
+ /**
649
+ * Int32Rules describes the constraints applied to `int32` values. These
650
+ * rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.
651
+ *
652
+ * @generated from message buf.validate.Int32Rules
653
+ */
654
+ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
655
+ /**
656
+ * `const` requires the field value to exactly match the specified value. If
657
+ * the field value doesn't match, an error message is generated.
658
+ *
659
+ * ```proto
660
+ * message MyInt32 {
661
+ * // value must equal 42
662
+ * int32 value = 1 [(buf.validate.field).int32.const = 42];
663
+ * }
664
+ * ```
665
+ *
666
+ * @generated from field: optional int32 const = 1;
667
+ */
668
+ const?: number;
669
+ /**
670
+ * @generated from oneof buf.validate.Int32Rules.less_than
671
+ */
672
+ lessThan: {
673
+ /**
674
+ * `lt` requires the field value to be less than the specified value (field
675
+ * < value). If the field value is equal to or greater than the specified
676
+ * value, an error message is generated.
677
+ *
678
+ * ```proto
679
+ * message MyInt32 {
680
+ * // value must be less than 10
681
+ * int32 value = 1 [(buf.validate.field).int32.lt = 10];
682
+ * }
683
+ * ```
684
+ *
685
+ * @generated from field: int32 lt = 2;
686
+ */
687
+ value: number;
688
+ case: "lt";
689
+ } | {
690
+ /**
691
+ * `lte` requires the field value to be less than or equal to the specified
692
+ * value (field <= value). If the field value is greater than the specified
693
+ * value, an error message is generated.
694
+ *
695
+ * ```proto
696
+ * message MyInt32 {
697
+ * // value must be less than or equal to 10
698
+ * int32 value = 1 [(buf.validate.field).int32.lte = 10];
699
+ * }
700
+ * ```
701
+ *
702
+ * @generated from field: int32 lte = 3;
703
+ */
704
+ value: number;
705
+ case: "lte";
706
+ } | {
707
+ case: undefined;
708
+ value?: undefined;
709
+ };
710
+ /**
711
+ * @generated from oneof buf.validate.Int32Rules.greater_than
712
+ */
713
+ greaterThan: {
714
+ /**
715
+ * `gt` requires the field value to be greater than the specified value
716
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
717
+ * `lte`, the range is reversed, and the field value must be outside the
718
+ * specified range. If the field value doesn't meet the required conditions,
719
+ * an error message is generated.
720
+ *
721
+ * ```proto
722
+ * message MyInt32 {
723
+ * // value must be greater than 5 [int32.gt]
724
+ * int32 value = 1 [(buf.validate.field).int32.gt = 5];
725
+ *
726
+ * // value must be greater than 5 and less than 10 [int32.gt_lt]
727
+ * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
728
+ *
729
+ * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
730
+ * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
731
+ * }
732
+ * ```
733
+ *
734
+ * @generated from field: int32 gt = 4;
735
+ */
736
+ value: number;
737
+ case: "gt";
738
+ } | {
739
+ /**
740
+ * `gte` requires the field value to be greater than or equal to the specified value
741
+ * (exclusive). If the value of `gte` is larger than a specified `lt` or
742
+ * `lte`, the range is reversed, and the field value must be outside the
743
+ * specified range. If the field value doesn't meet the required conditions,
744
+ * an error message is generated.
745
+ *
746
+ * ```proto
747
+ * message MyInt32 {
748
+ * // value must be greater than or equal to 5 [int32.gte]
749
+ * int32 value = 1 [(buf.validate.field).int32.gte = 5];
750
+ *
751
+ * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
752
+ * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
753
+ *
754
+ * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
755
+ * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
756
+ * }
757
+ * ```
758
+ *
759
+ * @generated from field: int32 gte = 5;
760
+ */
761
+ value: number;
762
+ case: "gte";
763
+ } | {
764
+ case: undefined;
765
+ value?: undefined;
766
+ };
767
+ /**
768
+ * `in` requires the field value to be equal to one of the specified values.
769
+ * If the field value isn't one of the specified values, an error message is
770
+ * generated.
771
+ *
772
+ * ```proto
773
+ * message MyInt32 {
774
+ * // value must be in list [1, 2, 3]
775
+ * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] };
776
+ * }
777
+ * ```
778
+ *
779
+ * @generated from field: repeated int32 in = 6;
780
+ */
781
+ in: number[];
782
+ /**
783
+ * `not_in` requires the field value to not be equal to any of the specified
784
+ * values. If the field value is one of the specified values, an error message
785
+ * is generated.
786
+ *
787
+ * ```proto
788
+ * message MyInt32 {
789
+ * // value must not be in list [1, 2, 3]
790
+ * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] };
791
+ * }
792
+ * ```
793
+ *
794
+ * @generated from field: repeated int32 not_in = 7;
795
+ */
796
+ notIn: number[];
797
+ };
798
+ /**
799
+ * Describes the message buf.validate.Int32Rules.
800
+ * Use `create(Int32RulesSchema)` to create a new message.
801
+ */
802
+ export declare const Int32RulesSchema: GenMessage<Int32Rules>;
803
+ /**
804
+ * Int64Rules describes the constraints applied to `int64` values. These
805
+ * rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.
806
+ *
807
+ * @generated from message buf.validate.Int64Rules
808
+ */
809
+ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
810
+ /**
811
+ * `const` requires the field value to exactly match the specified value. If
812
+ * the field value doesn't match, an error message is generated.
813
+ *
814
+ * ```proto
815
+ * message MyInt64 {
816
+ * // value must equal 42
817
+ * int64 value = 1 [(buf.validate.field).int64.const = 42];
818
+ * }
819
+ * ```
820
+ *
821
+ * @generated from field: optional int64 const = 1 [jstype = JS_STRING];
822
+ */
823
+ const?: string;
824
+ /**
825
+ * @generated from oneof buf.validate.Int64Rules.less_than
826
+ */
827
+ lessThan: {
828
+ /**
829
+ * `lt` requires the field value to be less than the specified value (field <
830
+ * value). If the field value is equal to or greater than the specified value,
831
+ * an error message is generated.
832
+ *
833
+ * ```proto
834
+ * message MyInt64 {
835
+ * // value must be less than 10
836
+ * int64 value = 1 [(buf.validate.field).int64.lt = 10];
837
+ * }
838
+ * ```
839
+ *
840
+ * @generated from field: int64 lt = 2 [jstype = JS_STRING];
841
+ */
842
+ value: string;
843
+ case: "lt";
844
+ } | {
845
+ /**
846
+ * `lte` requires the field value to be less than or equal to the specified
847
+ * value (field <= value). If the field value is greater than the specified
848
+ * value, an error message is generated.
849
+ *
850
+ * ```proto
851
+ * message MyInt64 {
852
+ * // value must be less than or equal to 10
853
+ * int64 value = 1 [(buf.validate.field).int64.lte = 10];
854
+ * }
855
+ * ```
856
+ *
857
+ * @generated from field: int64 lte = 3 [jstype = JS_STRING];
858
+ */
859
+ value: string;
860
+ case: "lte";
861
+ } | {
862
+ case: undefined;
863
+ value?: undefined;
864
+ };
865
+ /**
866
+ * @generated from oneof buf.validate.Int64Rules.greater_than
867
+ */
868
+ greaterThan: {
869
+ /**
870
+ * `gt` requires the field value to be greater than the specified value
871
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
872
+ * `lte`, the range is reversed, and the field value must be outside the
873
+ * specified range. If the field value doesn't meet the required conditions,
874
+ * an error message is generated.
875
+ *
876
+ * ```proto
877
+ * message MyInt64 {
878
+ * // value must be greater than 5 [int64.gt]
879
+ * int64 value = 1 [(buf.validate.field).int64.gt = 5];
880
+ *
881
+ * // value must be greater than 5 and less than 10 [int64.gt_lt]
882
+ * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
883
+ *
884
+ * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
885
+ * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
886
+ * }
887
+ * ```
888
+ *
889
+ * @generated from field: int64 gt = 4 [jstype = JS_STRING];
890
+ */
891
+ value: string;
892
+ case: "gt";
893
+ } | {
894
+ /**
895
+ * `gte` requires the field value to be greater than or equal to the specified
896
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
897
+ * or `lte`, the range is reversed, and the field value must be outside the
898
+ * specified range. If the field value doesn't meet the required conditions,
899
+ * an error message is generated.
900
+ *
901
+ * ```proto
902
+ * message MyInt64 {
903
+ * // value must be greater than or equal to 5 [int64.gte]
904
+ * int64 value = 1 [(buf.validate.field).int64.gte = 5];
905
+ *
906
+ * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
907
+ * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
908
+ *
909
+ * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
910
+ * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
911
+ * }
912
+ * ```
913
+ *
914
+ * @generated from field: int64 gte = 5 [jstype = JS_STRING];
915
+ */
916
+ value: string;
917
+ case: "gte";
918
+ } | {
919
+ case: undefined;
920
+ value?: undefined;
921
+ };
922
+ /**
923
+ * `in` requires the field value to be equal to one of the specified values.
924
+ * If the field value isn't one of the specified values, an error message is
925
+ * generated.
926
+ *
927
+ * ```proto
928
+ * message MyInt64 {
929
+ * // value must be in list [1, 2, 3]
930
+ * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] };
931
+ * }
932
+ * ```
933
+ *
934
+ * @generated from field: repeated int64 in = 6 [jstype = JS_STRING];
935
+ */
936
+ in: string[];
937
+ /**
938
+ * `not_in` requires the field value to not be equal to any of the specified
939
+ * values. If the field value is one of the specified values, an error
940
+ * message is generated.
941
+ *
942
+ * ```proto
943
+ * message MyInt64 {
944
+ * // value must not be in list [1, 2, 3]
945
+ * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] };
946
+ * }
947
+ * ```
948
+ *
949
+ * @generated from field: repeated int64 not_in = 7 [jstype = JS_STRING];
950
+ */
951
+ notIn: string[];
952
+ };
953
+ /**
954
+ * Describes the message buf.validate.Int64Rules.
955
+ * Use `create(Int64RulesSchema)` to create a new message.
956
+ */
957
+ export declare const Int64RulesSchema: GenMessage<Int64Rules>;
958
+ /**
959
+ * UInt32Rules describes the constraints applied to `uint32` values. These
960
+ * rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.
961
+ *
962
+ * @generated from message buf.validate.UInt32Rules
963
+ */
964
+ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
965
+ /**
966
+ * `const` requires the field value to exactly match the specified value. If
967
+ * the field value doesn't match, an error message is generated.
968
+ *
969
+ * ```proto
970
+ * message MyUInt32 {
971
+ * // value must equal 42
972
+ * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
973
+ * }
974
+ * ```
975
+ *
976
+ * @generated from field: optional uint32 const = 1;
977
+ */
978
+ const?: number;
979
+ /**
980
+ * @generated from oneof buf.validate.UInt32Rules.less_than
981
+ */
982
+ lessThan: {
983
+ /**
984
+ * `lt` requires the field value to be less than the specified value (field <
985
+ * value). If the field value is equal to or greater than the specified value,
986
+ * an error message is generated.
987
+ *
988
+ * ```proto
989
+ * message MyUInt32 {
990
+ * // value must be less than 10
991
+ * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
992
+ * }
993
+ * ```
994
+ *
995
+ * @generated from field: uint32 lt = 2;
996
+ */
997
+ value: number;
998
+ case: "lt";
999
+ } | {
1000
+ /**
1001
+ * `lte` requires the field value to be less than or equal to the specified
1002
+ * value (field <= value). If the field value is greater than the specified
1003
+ * value, an error message is generated.
1004
+ *
1005
+ * ```proto
1006
+ * message MyUInt32 {
1007
+ * // value must be less than or equal to 10
1008
+ * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
1009
+ * }
1010
+ * ```
1011
+ *
1012
+ * @generated from field: uint32 lte = 3;
1013
+ */
1014
+ value: number;
1015
+ case: "lte";
1016
+ } | {
1017
+ case: undefined;
1018
+ value?: undefined;
1019
+ };
1020
+ /**
1021
+ * @generated from oneof buf.validate.UInt32Rules.greater_than
1022
+ */
1023
+ greaterThan: {
1024
+ /**
1025
+ * `gt` requires the field value to be greater than the specified value
1026
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1027
+ * `lte`, the range is reversed, and the field value must be outside the
1028
+ * specified range. If the field value doesn't meet the required conditions,
1029
+ * an error message is generated.
1030
+ *
1031
+ * ```proto
1032
+ * message MyUInt32 {
1033
+ * // value must be greater than 5 [uint32.gt]
1034
+ * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
1035
+ *
1036
+ * // value must be greater than 5 and less than 10 [uint32.gt_lt]
1037
+ * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
1038
+ *
1039
+ * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
1040
+ * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
1041
+ * }
1042
+ * ```
1043
+ *
1044
+ * @generated from field: uint32 gt = 4;
1045
+ */
1046
+ value: number;
1047
+ case: "gt";
1048
+ } | {
1049
+ /**
1050
+ * `gte` requires the field value to be greater than or equal to the specified
1051
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1052
+ * or `lte`, the range is reversed, and the field value must be outside the
1053
+ * specified range. If the field value doesn't meet the required conditions,
1054
+ * an error message is generated.
1055
+ *
1056
+ * ```proto
1057
+ * message MyUInt32 {
1058
+ * // value must be greater than or equal to 5 [uint32.gte]
1059
+ * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
1060
+ *
1061
+ * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
1062
+ * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
1063
+ *
1064
+ * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
1065
+ * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
1066
+ * }
1067
+ * ```
1068
+ *
1069
+ * @generated from field: uint32 gte = 5;
1070
+ */
1071
+ value: number;
1072
+ case: "gte";
1073
+ } | {
1074
+ case: undefined;
1075
+ value?: undefined;
1076
+ };
1077
+ /**
1078
+ * `in` requires the field value to be equal to one of the specified values.
1079
+ * If the field value isn't one of the specified values, an error message is
1080
+ * generated.
1081
+ *
1082
+ * ```proto
1083
+ * message MyUInt32 {
1084
+ * // value must be in list [1, 2, 3]
1085
+ * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] };
1086
+ * }
1087
+ * ```
1088
+ *
1089
+ * @generated from field: repeated uint32 in = 6;
1090
+ */
1091
+ in: number[];
1092
+ /**
1093
+ * `not_in` requires the field value to not be equal to any of the specified
1094
+ * values. If the field value is one of the specified values, an error
1095
+ * message is generated.
1096
+ *
1097
+ * ```proto
1098
+ * message MyUInt32 {
1099
+ * // value must not be in list [1, 2, 3]
1100
+ * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] };
1101
+ * }
1102
+ * ```
1103
+ *
1104
+ * @generated from field: repeated uint32 not_in = 7;
1105
+ */
1106
+ notIn: number[];
1107
+ };
1108
+ /**
1109
+ * Describes the message buf.validate.UInt32Rules.
1110
+ * Use `create(UInt32RulesSchema)` to create a new message.
1111
+ */
1112
+ export declare const UInt32RulesSchema: GenMessage<UInt32Rules>;
1113
+ /**
1114
+ * UInt64Rules describes the constraints applied to `uint64` values. These
1115
+ * rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.
1116
+ *
1117
+ * @generated from message buf.validate.UInt64Rules
1118
+ */
1119
+ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1120
+ /**
1121
+ * `const` requires the field value to exactly match the specified value. If
1122
+ * the field value doesn't match, an error message is generated.
1123
+ *
1124
+ * ```proto
1125
+ * message MyUInt64 {
1126
+ * // value must equal 42
1127
+ * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
1128
+ * }
1129
+ * ```
1130
+ *
1131
+ * @generated from field: optional uint64 const = 1 [jstype = JS_STRING];
1132
+ */
1133
+ const?: string;
1134
+ /**
1135
+ * @generated from oneof buf.validate.UInt64Rules.less_than
1136
+ */
1137
+ lessThan: {
1138
+ /**
1139
+ * `lt` requires the field value to be less than the specified value (field <
1140
+ * value). If the field value is equal to or greater than the specified value,
1141
+ * an error message is generated.
1142
+ *
1143
+ * ```proto
1144
+ * message MyUInt64 {
1145
+ * // value must be less than 10
1146
+ * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
1147
+ * }
1148
+ * ```
1149
+ *
1150
+ * @generated from field: uint64 lt = 2 [jstype = JS_STRING];
1151
+ */
1152
+ value: string;
1153
+ case: "lt";
1154
+ } | {
1155
+ /**
1156
+ * `lte` requires the field value to be less than or equal to the specified
1157
+ * value (field <= value). If the field value is greater than the specified
1158
+ * value, an error message is generated.
1159
+ *
1160
+ * ```proto
1161
+ * message MyUInt64 {
1162
+ * // value must be less than or equal to 10
1163
+ * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
1164
+ * }
1165
+ * ```
1166
+ *
1167
+ * @generated from field: uint64 lte = 3 [jstype = JS_STRING];
1168
+ */
1169
+ value: string;
1170
+ case: "lte";
1171
+ } | {
1172
+ case: undefined;
1173
+ value?: undefined;
1174
+ };
1175
+ /**
1176
+ * @generated from oneof buf.validate.UInt64Rules.greater_than
1177
+ */
1178
+ greaterThan: {
1179
+ /**
1180
+ * `gt` requires the field value to be greater than the specified value
1181
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1182
+ * `lte`, the range is reversed, and the field value must be outside the
1183
+ * specified range. If the field value doesn't meet the required conditions,
1184
+ * an error message is generated.
1185
+ *
1186
+ * ```proto
1187
+ * message MyUInt64 {
1188
+ * // value must be greater than 5 [uint64.gt]
1189
+ * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
1190
+ *
1191
+ * // value must be greater than 5 and less than 10 [uint64.gt_lt]
1192
+ * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
1193
+ *
1194
+ * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
1195
+ * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
1196
+ * }
1197
+ * ```
1198
+ *
1199
+ * @generated from field: uint64 gt = 4 [jstype = JS_STRING];
1200
+ */
1201
+ value: string;
1202
+ case: "gt";
1203
+ } | {
1204
+ /**
1205
+ * `gte` requires the field value to be greater than or equal to the specified
1206
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1207
+ * or `lte`, the range is reversed, and the field value must be outside the
1208
+ * specified range. If the field value doesn't meet the required conditions,
1209
+ * an error message is generated.
1210
+ *
1211
+ * ```proto
1212
+ * message MyUInt64 {
1213
+ * // value must be greater than or equal to 5 [uint64.gte]
1214
+ * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
1215
+ *
1216
+ * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
1217
+ * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
1218
+ *
1219
+ * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
1220
+ * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
1221
+ * }
1222
+ * ```
1223
+ *
1224
+ * @generated from field: uint64 gte = 5 [jstype = JS_STRING];
1225
+ */
1226
+ value: string;
1227
+ case: "gte";
1228
+ } | {
1229
+ case: undefined;
1230
+ value?: undefined;
1231
+ };
1232
+ /**
1233
+ * `in` requires the field value to be equal to one of the specified values.
1234
+ * If the field value isn't one of the specified values, an error message is
1235
+ * generated.
1236
+ *
1237
+ * ```proto
1238
+ * message MyUInt64 {
1239
+ * // value must be in list [1, 2, 3]
1240
+ * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] };
1241
+ * }
1242
+ * ```
1243
+ *
1244
+ * @generated from field: repeated uint64 in = 6 [jstype = JS_STRING];
1245
+ */
1246
+ in: string[];
1247
+ /**
1248
+ * `not_in` requires the field value to not be equal to any of the specified
1249
+ * values. If the field value is one of the specified values, an error
1250
+ * message is generated.
1251
+ *
1252
+ * ```proto
1253
+ * message MyUInt64 {
1254
+ * // value must not be in list [1, 2, 3]
1255
+ * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] };
1256
+ * }
1257
+ * ```
1258
+ *
1259
+ * @generated from field: repeated uint64 not_in = 7 [jstype = JS_STRING];
1260
+ */
1261
+ notIn: string[];
1262
+ };
1263
+ /**
1264
+ * Describes the message buf.validate.UInt64Rules.
1265
+ * Use `create(UInt64RulesSchema)` to create a new message.
1266
+ */
1267
+ export declare const UInt64RulesSchema: GenMessage<UInt64Rules>;
1268
+ /**
1269
+ * SInt32Rules describes the constraints applied to `sint32` values.
1270
+ *
1271
+ * @generated from message buf.validate.SInt32Rules
1272
+ */
1273
+ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1274
+ /**
1275
+ * `const` requires the field value to exactly match the specified value. If
1276
+ * the field value doesn't match, an error message is generated.
1277
+ *
1278
+ * ```proto
1279
+ * message MySInt32 {
1280
+ * // value must equal 42
1281
+ * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
1282
+ * }
1283
+ * ```
1284
+ *
1285
+ * @generated from field: optional sint32 const = 1;
1286
+ */
1287
+ const?: number;
1288
+ /**
1289
+ * @generated from oneof buf.validate.SInt32Rules.less_than
1290
+ */
1291
+ lessThan: {
1292
+ /**
1293
+ * `lt` requires the field value to be less than the specified value (field
1294
+ * < value). If the field value is equal to or greater than the specified
1295
+ * value, an error message is generated.
1296
+ *
1297
+ * ```proto
1298
+ * message MySInt32 {
1299
+ * // value must be less than 10
1300
+ * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
1301
+ * }
1302
+ * ```
1303
+ *
1304
+ * @generated from field: sint32 lt = 2;
1305
+ */
1306
+ value: number;
1307
+ case: "lt";
1308
+ } | {
1309
+ /**
1310
+ * `lte` requires the field value to be less than or equal to the specified
1311
+ * value (field <= value). If the field value is greater than the specified
1312
+ * value, an error message is generated.
1313
+ *
1314
+ * ```proto
1315
+ * message MySInt32 {
1316
+ * // value must be less than or equal to 10
1317
+ * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
1318
+ * }
1319
+ * ```
1320
+ *
1321
+ * @generated from field: sint32 lte = 3;
1322
+ */
1323
+ value: number;
1324
+ case: "lte";
1325
+ } | {
1326
+ case: undefined;
1327
+ value?: undefined;
1328
+ };
1329
+ /**
1330
+ * @generated from oneof buf.validate.SInt32Rules.greater_than
1331
+ */
1332
+ greaterThan: {
1333
+ /**
1334
+ * `gt` requires the field value to be greater than the specified value
1335
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1336
+ * `lte`, the range is reversed, and the field value must be outside the
1337
+ * specified range. If the field value doesn't meet the required conditions,
1338
+ * an error message is generated.
1339
+ *
1340
+ * ```proto
1341
+ * message MySInt32 {
1342
+ * // value must be greater than 5 [sint32.gt]
1343
+ * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
1344
+ *
1345
+ * // value must be greater than 5 and less than 10 [sint32.gt_lt]
1346
+ * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
1347
+ *
1348
+ * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
1349
+ * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
1350
+ * }
1351
+ * ```
1352
+ *
1353
+ * @generated from field: sint32 gt = 4;
1354
+ */
1355
+ value: number;
1356
+ case: "gt";
1357
+ } | {
1358
+ /**
1359
+ * `gte` requires the field value to be greater than or equal to the specified
1360
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1361
+ * or `lte`, the range is reversed, and the field value must be outside the
1362
+ * specified range. If the field value doesn't meet the required conditions,
1363
+ * an error message is generated.
1364
+ *
1365
+ * ```proto
1366
+ * message MySInt32 {
1367
+ * // value must be greater than or equal to 5 [sint32.gte]
1368
+ * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
1369
+ *
1370
+ * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
1371
+ * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
1372
+ *
1373
+ * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
1374
+ * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
1375
+ * }
1376
+ * ```
1377
+ *
1378
+ * @generated from field: sint32 gte = 5;
1379
+ */
1380
+ value: number;
1381
+ case: "gte";
1382
+ } | {
1383
+ case: undefined;
1384
+ value?: undefined;
1385
+ };
1386
+ /**
1387
+ * `in` requires the field value to be equal to one of the specified values.
1388
+ * If the field value isn't one of the specified values, an error message is
1389
+ * generated.
1390
+ *
1391
+ * ```proto
1392
+ * message MySInt32 {
1393
+ * // value must be in list [1, 2, 3]
1394
+ * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] };
1395
+ * }
1396
+ * ```
1397
+ *
1398
+ * @generated from field: repeated sint32 in = 6;
1399
+ */
1400
+ in: number[];
1401
+ /**
1402
+ * `not_in` requires the field value to not be equal to any of the specified
1403
+ * values. If the field value is one of the specified values, an error
1404
+ * message is generated.
1405
+ *
1406
+ * ```proto
1407
+ * message MySInt32 {
1408
+ * // value must not be in list [1, 2, 3]
1409
+ * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] };
1410
+ * }
1411
+ * ```
1412
+ *
1413
+ * @generated from field: repeated sint32 not_in = 7;
1414
+ */
1415
+ notIn: number[];
1416
+ };
1417
+ /**
1418
+ * Describes the message buf.validate.SInt32Rules.
1419
+ * Use `create(SInt32RulesSchema)` to create a new message.
1420
+ */
1421
+ export declare const SInt32RulesSchema: GenMessage<SInt32Rules>;
1422
+ /**
1423
+ * SInt64Rules describes the constraints applied to `sint64` values.
1424
+ *
1425
+ * @generated from message buf.validate.SInt64Rules
1426
+ */
1427
+ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1428
+ /**
1429
+ * `const` requires the field value to exactly match the specified value. If
1430
+ * the field value doesn't match, an error message is generated.
1431
+ *
1432
+ * ```proto
1433
+ * message MySInt64 {
1434
+ * // value must equal 42
1435
+ * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
1436
+ * }
1437
+ * ```
1438
+ *
1439
+ * @generated from field: optional sint64 const = 1 [jstype = JS_STRING];
1440
+ */
1441
+ const?: string;
1442
+ /**
1443
+ * @generated from oneof buf.validate.SInt64Rules.less_than
1444
+ */
1445
+ lessThan: {
1446
+ /**
1447
+ * `lt` requires the field value to be less than the specified value (field
1448
+ * < value). If the field value is equal to or greater than the specified
1449
+ * value, an error message is generated.
1450
+ *
1451
+ * ```proto
1452
+ * message MySInt64 {
1453
+ * // value must be less than 10
1454
+ * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
1455
+ * }
1456
+ * ```
1457
+ *
1458
+ * @generated from field: sint64 lt = 2 [jstype = JS_STRING];
1459
+ */
1460
+ value: string;
1461
+ case: "lt";
1462
+ } | {
1463
+ /**
1464
+ * `lte` requires the field value to be less than or equal to the specified
1465
+ * value (field <= value). If the field value is greater than the specified
1466
+ * value, an error message is generated.
1467
+ *
1468
+ * ```proto
1469
+ * message MySInt64 {
1470
+ * // value must be less than or equal to 10
1471
+ * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
1472
+ * }
1473
+ * ```
1474
+ *
1475
+ * @generated from field: sint64 lte = 3 [jstype = JS_STRING];
1476
+ */
1477
+ value: string;
1478
+ case: "lte";
1479
+ } | {
1480
+ case: undefined;
1481
+ value?: undefined;
1482
+ };
1483
+ /**
1484
+ * @generated from oneof buf.validate.SInt64Rules.greater_than
1485
+ */
1486
+ greaterThan: {
1487
+ /**
1488
+ * `gt` requires the field value to be greater than the specified value
1489
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1490
+ * `lte`, the range is reversed, and the field value must be outside the
1491
+ * specified range. If the field value doesn't meet the required conditions,
1492
+ * an error message is generated.
1493
+ *
1494
+ * ```proto
1495
+ * message MySInt64 {
1496
+ * // value must be greater than 5 [sint64.gt]
1497
+ * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
1498
+ *
1499
+ * // value must be greater than 5 and less than 10 [sint64.gt_lt]
1500
+ * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
1501
+ *
1502
+ * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
1503
+ * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
1504
+ * }
1505
+ * ```
1506
+ *
1507
+ * @generated from field: sint64 gt = 4 [jstype = JS_STRING];
1508
+ */
1509
+ value: string;
1510
+ case: "gt";
1511
+ } | {
1512
+ /**
1513
+ * `gte` requires the field value to be greater than or equal to the specified
1514
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1515
+ * or `lte`, the range is reversed, and the field value must be outside the
1516
+ * specified range. If the field value doesn't meet the required conditions,
1517
+ * an error message is generated.
1518
+ *
1519
+ * ```proto
1520
+ * message MySInt64 {
1521
+ * // value must be greater than or equal to 5 [sint64.gte]
1522
+ * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
1523
+ *
1524
+ * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
1525
+ * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
1526
+ *
1527
+ * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
1528
+ * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
1529
+ * }
1530
+ * ```
1531
+ *
1532
+ * @generated from field: sint64 gte = 5 [jstype = JS_STRING];
1533
+ */
1534
+ value: string;
1535
+ case: "gte";
1536
+ } | {
1537
+ case: undefined;
1538
+ value?: undefined;
1539
+ };
1540
+ /**
1541
+ * `in` requires the field value to be equal to one of the specified values.
1542
+ * If the field value isn't one of the specified values, an error message
1543
+ * is generated.
1544
+ *
1545
+ * ```proto
1546
+ * message MySInt64 {
1547
+ * // value must be in list [1, 2, 3]
1548
+ * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] };
1549
+ * }
1550
+ * ```
1551
+ *
1552
+ * @generated from field: repeated sint64 in = 6 [jstype = JS_STRING];
1553
+ */
1554
+ in: string[];
1555
+ /**
1556
+ * `not_in` requires the field value to not be equal to any of the specified
1557
+ * values. If the field value is one of the specified values, an error
1558
+ * message is generated.
1559
+ *
1560
+ * ```proto
1561
+ * message MySInt64 {
1562
+ * // value must not be in list [1, 2, 3]
1563
+ * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] };
1564
+ * }
1565
+ * ```
1566
+ *
1567
+ * @generated from field: repeated sint64 not_in = 7 [jstype = JS_STRING];
1568
+ */
1569
+ notIn: string[];
1570
+ };
1571
+ /**
1572
+ * Describes the message buf.validate.SInt64Rules.
1573
+ * Use `create(SInt64RulesSchema)` to create a new message.
1574
+ */
1575
+ export declare const SInt64RulesSchema: GenMessage<SInt64Rules>;
1576
+ /**
1577
+ * Fixed32Rules describes the constraints applied to `fixed32` values.
1578
+ *
1579
+ * @generated from message buf.validate.Fixed32Rules
1580
+ */
1581
+ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
1582
+ /**
1583
+ * `const` requires the field value to exactly match the specified value.
1584
+ * If the field value doesn't match, an error message is generated.
1585
+ *
1586
+ * ```proto
1587
+ * message MyFixed32 {
1588
+ * // value must equal 42
1589
+ * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
1590
+ * }
1591
+ * ```
1592
+ *
1593
+ * @generated from field: optional fixed32 const = 1;
1594
+ */
1595
+ const?: number;
1596
+ /**
1597
+ * @generated from oneof buf.validate.Fixed32Rules.less_than
1598
+ */
1599
+ lessThan: {
1600
+ /**
1601
+ * `lt` requires the field value to be less than the specified value (field <
1602
+ * value). If the field value is equal to or greater than the specified value,
1603
+ * an error message is generated.
1604
+ *
1605
+ * ```proto
1606
+ * message MyFixed32 {
1607
+ * // value must be less than 10
1608
+ * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
1609
+ * }
1610
+ * ```
1611
+ *
1612
+ * @generated from field: fixed32 lt = 2;
1613
+ */
1614
+ value: number;
1615
+ case: "lt";
1616
+ } | {
1617
+ /**
1618
+ * `lte` requires the field value to be less than or equal to the specified
1619
+ * value (field <= value). If the field value is greater than the specified
1620
+ * value, an error message is generated.
1621
+ *
1622
+ * ```proto
1623
+ * message MyFixed32 {
1624
+ * // value must be less than or equal to 10
1625
+ * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
1626
+ * }
1627
+ * ```
1628
+ *
1629
+ * @generated from field: fixed32 lte = 3;
1630
+ */
1631
+ value: number;
1632
+ case: "lte";
1633
+ } | {
1634
+ case: undefined;
1635
+ value?: undefined;
1636
+ };
1637
+ /**
1638
+ * @generated from oneof buf.validate.Fixed32Rules.greater_than
1639
+ */
1640
+ greaterThan: {
1641
+ /**
1642
+ * `gt` requires the field value to be greater than the specified value
1643
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1644
+ * `lte`, the range is reversed, and the field value must be outside the
1645
+ * specified range. If the field value doesn't meet the required conditions,
1646
+ * an error message is generated.
1647
+ *
1648
+ * ```proto
1649
+ * message MyFixed32 {
1650
+ * // value must be greater than 5 [fixed32.gt]
1651
+ * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
1652
+ *
1653
+ * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
1654
+ * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
1655
+ *
1656
+ * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
1657
+ * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
1658
+ * }
1659
+ * ```
1660
+ *
1661
+ * @generated from field: fixed32 gt = 4;
1662
+ */
1663
+ value: number;
1664
+ case: "gt";
1665
+ } | {
1666
+ /**
1667
+ * `gte` requires the field value to be greater than or equal to the specified
1668
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1669
+ * or `lte`, the range is reversed, and the field value must be outside the
1670
+ * specified range. If the field value doesn't meet the required conditions,
1671
+ * an error message is generated.
1672
+ *
1673
+ * ```proto
1674
+ * message MyFixed32 {
1675
+ * // value must be greater than or equal to 5 [fixed32.gte]
1676
+ * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
1677
+ *
1678
+ * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
1679
+ * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
1680
+ *
1681
+ * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
1682
+ * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
1683
+ * }
1684
+ * ```
1685
+ *
1686
+ * @generated from field: fixed32 gte = 5;
1687
+ */
1688
+ value: number;
1689
+ case: "gte";
1690
+ } | {
1691
+ case: undefined;
1692
+ value?: undefined;
1693
+ };
1694
+ /**
1695
+ * `in` requires the field value to be equal to one of the specified values.
1696
+ * If the field value isn't one of the specified values, an error message
1697
+ * is generated.
1698
+ *
1699
+ * ```proto
1700
+ * message MyFixed32 {
1701
+ * // value must be in list [1, 2, 3]
1702
+ * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] };
1703
+ * }
1704
+ * ```
1705
+ *
1706
+ * @generated from field: repeated fixed32 in = 6;
1707
+ */
1708
+ in: number[];
1709
+ /**
1710
+ * `not_in` requires the field value to not be equal to any of the specified
1711
+ * values. If the field value is one of the specified values, an error
1712
+ * message is generated.
1713
+ *
1714
+ * ```proto
1715
+ * message MyFixed32 {
1716
+ * // value must not be in list [1, 2, 3]
1717
+ * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] };
1718
+ * }
1719
+ * ```
1720
+ *
1721
+ * @generated from field: repeated fixed32 not_in = 7;
1722
+ */
1723
+ notIn: number[];
1724
+ };
1725
+ /**
1726
+ * Describes the message buf.validate.Fixed32Rules.
1727
+ * Use `create(Fixed32RulesSchema)` to create a new message.
1728
+ */
1729
+ export declare const Fixed32RulesSchema: GenMessage<Fixed32Rules>;
1730
+ /**
1731
+ * Fixed64Rules describes the constraints applied to `fixed64` values.
1732
+ *
1733
+ * @generated from message buf.validate.Fixed64Rules
1734
+ */
1735
+ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
1736
+ /**
1737
+ * `const` requires the field value to exactly match the specified value. If
1738
+ * the field value doesn't match, an error message is generated.
1739
+ *
1740
+ * ```proto
1741
+ * message MyFixed64 {
1742
+ * // value must equal 42
1743
+ * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
1744
+ * }
1745
+ * ```
1746
+ *
1747
+ * @generated from field: optional fixed64 const = 1 [jstype = JS_STRING];
1748
+ */
1749
+ const?: string;
1750
+ /**
1751
+ * @generated from oneof buf.validate.Fixed64Rules.less_than
1752
+ */
1753
+ lessThan: {
1754
+ /**
1755
+ * `lt` requires the field value to be less than the specified value (field <
1756
+ * value). If the field value is equal to or greater than the specified value,
1757
+ * an error message is generated.
1758
+ *
1759
+ * ```proto
1760
+ * message MyFixed64 {
1761
+ * // value must be less than 10
1762
+ * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
1763
+ * }
1764
+ * ```
1765
+ *
1766
+ * @generated from field: fixed64 lt = 2 [jstype = JS_STRING];
1767
+ */
1768
+ value: string;
1769
+ case: "lt";
1770
+ } | {
1771
+ /**
1772
+ * `lte` requires the field value to be less than or equal to the specified
1773
+ * value (field <= value). If the field value is greater than the specified
1774
+ * value, an error message is generated.
1775
+ *
1776
+ * ```proto
1777
+ * message MyFixed64 {
1778
+ * // value must be less than or equal to 10
1779
+ * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
1780
+ * }
1781
+ * ```
1782
+ *
1783
+ * @generated from field: fixed64 lte = 3 [jstype = JS_STRING];
1784
+ */
1785
+ value: string;
1786
+ case: "lte";
1787
+ } | {
1788
+ case: undefined;
1789
+ value?: undefined;
1790
+ };
1791
+ /**
1792
+ * @generated from oneof buf.validate.Fixed64Rules.greater_than
1793
+ */
1794
+ greaterThan: {
1795
+ /**
1796
+ * `gt` requires the field value to be greater than the specified value
1797
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1798
+ * `lte`, the range is reversed, and the field value must be outside the
1799
+ * specified range. If the field value doesn't meet the required conditions,
1800
+ * an error message is generated.
1801
+ *
1802
+ * ```proto
1803
+ * message MyFixed64 {
1804
+ * // value must be greater than 5 [fixed64.gt]
1805
+ * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
1806
+ *
1807
+ * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
1808
+ * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
1809
+ *
1810
+ * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
1811
+ * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
1812
+ * }
1813
+ * ```
1814
+ *
1815
+ * @generated from field: fixed64 gt = 4 [jstype = JS_STRING];
1816
+ */
1817
+ value: string;
1818
+ case: "gt";
1819
+ } | {
1820
+ /**
1821
+ * `gte` requires the field value to be greater than or equal to the specified
1822
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1823
+ * or `lte`, the range is reversed, and the field value must be outside the
1824
+ * specified range. If the field value doesn't meet the required conditions,
1825
+ * an error message is generated.
1826
+ *
1827
+ * ```proto
1828
+ * message MyFixed64 {
1829
+ * // value must be greater than or equal to 5 [fixed64.gte]
1830
+ * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
1831
+ *
1832
+ * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
1833
+ * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
1834
+ *
1835
+ * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
1836
+ * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
1837
+ * }
1838
+ * ```
1839
+ *
1840
+ * @generated from field: fixed64 gte = 5 [jstype = JS_STRING];
1841
+ */
1842
+ value: string;
1843
+ case: "gte";
1844
+ } | {
1845
+ case: undefined;
1846
+ value?: undefined;
1847
+ };
1848
+ /**
1849
+ * `in` requires the field value to be equal to one of the specified values.
1850
+ * If the field value isn't one of the specified values, an error message is
1851
+ * generated.
1852
+ *
1853
+ * ```proto
1854
+ * message MyFixed64 {
1855
+ * // value must be in list [1, 2, 3]
1856
+ * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] };
1857
+ * }
1858
+ * ```
1859
+ *
1860
+ * @generated from field: repeated fixed64 in = 6 [jstype = JS_STRING];
1861
+ */
1862
+ in: string[];
1863
+ /**
1864
+ * `not_in` requires the field value to not be equal to any of the specified
1865
+ * values. If the field value is one of the specified values, an error
1866
+ * message is generated.
1867
+ *
1868
+ * ```proto
1869
+ * message MyFixed64 {
1870
+ * // value must not be in list [1, 2, 3]
1871
+ * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] };
1872
+ * }
1873
+ * ```
1874
+ *
1875
+ * @generated from field: repeated fixed64 not_in = 7 [jstype = JS_STRING];
1876
+ */
1877
+ notIn: string[];
1878
+ };
1879
+ /**
1880
+ * Describes the message buf.validate.Fixed64Rules.
1881
+ * Use `create(Fixed64RulesSchema)` to create a new message.
1882
+ */
1883
+ export declare const Fixed64RulesSchema: GenMessage<Fixed64Rules>;
1884
+ /**
1885
+ * SFixed32Rules describes the constraints applied to `fixed32` values.
1886
+ *
1887
+ * @generated from message buf.validate.SFixed32Rules
1888
+ */
1889
+ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
1890
+ /**
1891
+ * `const` requires the field value to exactly match the specified value. If
1892
+ * the field value doesn't match, an error message is generated.
1893
+ *
1894
+ * ```proto
1895
+ * message MySFixed32 {
1896
+ * // value must equal 42
1897
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
1898
+ * }
1899
+ * ```
1900
+ *
1901
+ * @generated from field: optional sfixed32 const = 1;
1902
+ */
1903
+ const?: number;
1904
+ /**
1905
+ * @generated from oneof buf.validate.SFixed32Rules.less_than
1906
+ */
1907
+ lessThan: {
1908
+ /**
1909
+ * `lt` requires the field value to be less than the specified value (field <
1910
+ * value). If the field value is equal to or greater than the specified value,
1911
+ * an error message is generated.
1912
+ *
1913
+ * ```proto
1914
+ * message MySFixed32 {
1915
+ * // value must be less than 10
1916
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
1917
+ * }
1918
+ * ```
1919
+ *
1920
+ * @generated from field: sfixed32 lt = 2;
1921
+ */
1922
+ value: number;
1923
+ case: "lt";
1924
+ } | {
1925
+ /**
1926
+ * `lte` requires the field value to be less than or equal to the specified
1927
+ * value (field <= value). If the field value is greater than the specified
1928
+ * value, an error message is generated.
1929
+ *
1930
+ * ```proto
1931
+ * message MySFixed32 {
1932
+ * // value must be less than or equal to 10
1933
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
1934
+ * }
1935
+ * ```
1936
+ *
1937
+ * @generated from field: sfixed32 lte = 3;
1938
+ */
1939
+ value: number;
1940
+ case: "lte";
1941
+ } | {
1942
+ case: undefined;
1943
+ value?: undefined;
1944
+ };
1945
+ /**
1946
+ * @generated from oneof buf.validate.SFixed32Rules.greater_than
1947
+ */
1948
+ greaterThan: {
1949
+ /**
1950
+ * `gt` requires the field value to be greater than the specified value
1951
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1952
+ * `lte`, the range is reversed, and the field value must be outside the
1953
+ * specified range. If the field value doesn't meet the required conditions,
1954
+ * an error message is generated.
1955
+ *
1956
+ * ```proto
1957
+ * message MySFixed32 {
1958
+ * // value must be greater than 5 [sfixed32.gt]
1959
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
1960
+ *
1961
+ * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
1962
+ * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
1963
+ *
1964
+ * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
1965
+ * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
1966
+ * }
1967
+ * ```
1968
+ *
1969
+ * @generated from field: sfixed32 gt = 4;
1970
+ */
1971
+ value: number;
1972
+ case: "gt";
1973
+ } | {
1974
+ /**
1975
+ * `gte` requires the field value to be greater than or equal to the specified
1976
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1977
+ * or `lte`, the range is reversed, and the field value must be outside the
1978
+ * specified range. If the field value doesn't meet the required conditions,
1979
+ * an error message is generated.
1980
+ *
1981
+ * ```proto
1982
+ * message MySFixed32 {
1983
+ * // value must be greater than or equal to 5 [sfixed32.gte]
1984
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
1985
+ *
1986
+ * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
1987
+ * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
1988
+ *
1989
+ * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
1990
+ * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
1991
+ * }
1992
+ * ```
1993
+ *
1994
+ * @generated from field: sfixed32 gte = 5;
1995
+ */
1996
+ value: number;
1997
+ case: "gte";
1998
+ } | {
1999
+ case: undefined;
2000
+ value?: undefined;
2001
+ };
2002
+ /**
2003
+ * `in` requires the field value to be equal to one of the specified values.
2004
+ * If the field value isn't one of the specified values, an error message is
2005
+ * generated.
2006
+ *
2007
+ * ```proto
2008
+ * message MySFixed32 {
2009
+ * // value must be in list [1, 2, 3]
2010
+ * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
2011
+ * }
2012
+ * ```
2013
+ *
2014
+ * @generated from field: repeated sfixed32 in = 6;
2015
+ */
2016
+ in: number[];
2017
+ /**
2018
+ * `not_in` requires the field value to not be equal to any of the specified
2019
+ * values. If the field value is one of the specified values, an error
2020
+ * message is generated.
2021
+ *
2022
+ * ```proto
2023
+ * message MySFixed32 {
2024
+ * // value must not be in list [1, 2, 3]
2025
+ * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
2026
+ * }
2027
+ * ```
2028
+ *
2029
+ * @generated from field: repeated sfixed32 not_in = 7;
2030
+ */
2031
+ notIn: number[];
2032
+ };
2033
+ /**
2034
+ * Describes the message buf.validate.SFixed32Rules.
2035
+ * Use `create(SFixed32RulesSchema)` to create a new message.
2036
+ */
2037
+ export declare const SFixed32RulesSchema: GenMessage<SFixed32Rules>;
2038
+ /**
2039
+ * SFixed64Rules describes the constraints applied to `fixed64` values.
2040
+ *
2041
+ * @generated from message buf.validate.SFixed64Rules
2042
+ */
2043
+ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2044
+ /**
2045
+ * `const` requires the field value to exactly match the specified value. If
2046
+ * the field value doesn't match, an error message is generated.
2047
+ *
2048
+ * ```proto
2049
+ * message MySFixed64 {
2050
+ * // value must equal 42
2051
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
2052
+ * }
2053
+ * ```
2054
+ *
2055
+ * @generated from field: optional sfixed64 const = 1 [jstype = JS_STRING];
2056
+ */
2057
+ const?: string;
2058
+ /**
2059
+ * @generated from oneof buf.validate.SFixed64Rules.less_than
2060
+ */
2061
+ lessThan: {
2062
+ /**
2063
+ * `lt` requires the field value to be less than the specified value (field <
2064
+ * value). If the field value is equal to or greater than the specified value,
2065
+ * an error message is generated.
2066
+ *
2067
+ * ```proto
2068
+ * message MySFixed64 {
2069
+ * // value must be less than 10
2070
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
2071
+ * }
2072
+ * ```
2073
+ *
2074
+ * @generated from field: sfixed64 lt = 2 [jstype = JS_STRING];
2075
+ */
2076
+ value: string;
2077
+ case: "lt";
2078
+ } | {
2079
+ /**
2080
+ * `lte` requires the field value to be less than or equal to the specified
2081
+ * value (field <= value). If the field value is greater than the specified
2082
+ * value, an error message is generated.
2083
+ *
2084
+ * ```proto
2085
+ * message MySFixed64 {
2086
+ * // value must be less than or equal to 10
2087
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
2088
+ * }
2089
+ * ```
2090
+ *
2091
+ * @generated from field: sfixed64 lte = 3 [jstype = JS_STRING];
2092
+ */
2093
+ value: string;
2094
+ case: "lte";
2095
+ } | {
2096
+ case: undefined;
2097
+ value?: undefined;
2098
+ };
2099
+ /**
2100
+ * @generated from oneof buf.validate.SFixed64Rules.greater_than
2101
+ */
2102
+ greaterThan: {
2103
+ /**
2104
+ * `gt` requires the field value to be greater than the specified value
2105
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
2106
+ * `lte`, the range is reversed, and the field value must be outside the
2107
+ * specified range. If the field value doesn't meet the required conditions,
2108
+ * an error message is generated.
2109
+ *
2110
+ * ```proto
2111
+ * message MySFixed64 {
2112
+ * // value must be greater than 5 [sfixed64.gt]
2113
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
2114
+ *
2115
+ * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
2116
+ * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
2117
+ *
2118
+ * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
2119
+ * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
2120
+ * }
2121
+ * ```
2122
+ *
2123
+ * @generated from field: sfixed64 gt = 4 [jstype = JS_STRING];
2124
+ */
2125
+ value: string;
2126
+ case: "gt";
2127
+ } | {
2128
+ /**
2129
+ * `gte` requires the field value to be greater than or equal to the specified
2130
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
2131
+ * or `lte`, the range is reversed, and the field value must be outside the
2132
+ * specified range. If the field value doesn't meet the required conditions,
2133
+ * an error message is generated.
2134
+ *
2135
+ * ```proto
2136
+ * message MySFixed64 {
2137
+ * // value must be greater than or equal to 5 [sfixed64.gte]
2138
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
2139
+ *
2140
+ * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
2141
+ * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
2142
+ *
2143
+ * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
2144
+ * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
2145
+ * }
2146
+ * ```
2147
+ *
2148
+ * @generated from field: sfixed64 gte = 5 [jstype = JS_STRING];
2149
+ */
2150
+ value: string;
2151
+ case: "gte";
2152
+ } | {
2153
+ case: undefined;
2154
+ value?: undefined;
2155
+ };
2156
+ /**
2157
+ * `in` requires the field value to be equal to one of the specified values.
2158
+ * If the field value isn't one of the specified values, an error message is
2159
+ * generated.
2160
+ *
2161
+ * ```proto
2162
+ * message MySFixed64 {
2163
+ * // value must be in list [1, 2, 3]
2164
+ * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] };
2165
+ * }
2166
+ * ```
2167
+ *
2168
+ * @generated from field: repeated sfixed64 in = 6 [jstype = JS_STRING];
2169
+ */
2170
+ in: string[];
2171
+ /**
2172
+ * `not_in` requires the field value to not be equal to any of the specified
2173
+ * values. If the field value is one of the specified values, an error
2174
+ * message is generated.
2175
+ *
2176
+ * ```proto
2177
+ * message MySFixed64 {
2178
+ * // value must not be in list [1, 2, 3]
2179
+ * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] };
2180
+ * }
2181
+ * ```
2182
+ *
2183
+ * @generated from field: repeated sfixed64 not_in = 7 [jstype = JS_STRING];
2184
+ */
2185
+ notIn: string[];
2186
+ };
2187
+ /**
2188
+ * Describes the message buf.validate.SFixed64Rules.
2189
+ * Use `create(SFixed64RulesSchema)` to create a new message.
2190
+ */
2191
+ export declare const SFixed64RulesSchema: GenMessage<SFixed64Rules>;
2192
+ /**
2193
+ * BoolRules describes the constraints applied to `bool` values. These rules
2194
+ * may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.
2195
+ *
2196
+ * @generated from message buf.validate.BoolRules
2197
+ */
2198
+ export type BoolRules = Message<"buf.validate.BoolRules"> & {
2199
+ /**
2200
+ * `const` requires the field value to exactly match the specified boolean value.
2201
+ * If the field value doesn't match, an error message is generated.
2202
+ *
2203
+ * ```proto
2204
+ * message MyBool {
2205
+ * // value must equal true
2206
+ * bool value = 1 [(buf.validate.field).bool.const = true];
2207
+ * }
2208
+ * ```
2209
+ *
2210
+ * @generated from field: optional bool const = 1;
2211
+ */
2212
+ const?: boolean;
2213
+ };
2214
+ /**
2215
+ * Describes the message buf.validate.BoolRules.
2216
+ * Use `create(BoolRulesSchema)` to create a new message.
2217
+ */
2218
+ export declare const BoolRulesSchema: GenMessage<BoolRules>;
2219
+ /**
2220
+ * StringRules describes the constraints applied to `string` values These
2221
+ * rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.
2222
+ *
2223
+ * @generated from message buf.validate.StringRules
2224
+ */
2225
+ export type StringRules = Message<"buf.validate.StringRules"> & {
2226
+ /**
2227
+ * `const` requires the field value to exactly match the specified value. If
2228
+ * the field value doesn't match, an error message is generated.
2229
+ *
2230
+ * ```proto
2231
+ * message MyString {
2232
+ * // value must equal `hello`
2233
+ * string value = 1 [(buf.validate.field).string.const = "hello"];
2234
+ * }
2235
+ * ```
2236
+ *
2237
+ * @generated from field: optional string const = 1;
2238
+ */
2239
+ const?: string;
2240
+ /**
2241
+ * `len` dictates that the field value must have the specified
2242
+ * number of characters (Unicode code points), which may differ from the number
2243
+ * of bytes in the string. If the field value does not meet the specified
2244
+ * length, an error message will be generated.
2245
+ *
2246
+ * ```proto
2247
+ * message MyString {
2248
+ * // value length must be 5 characters
2249
+ * string value = 1 [(buf.validate.field).string.len = 5];
2250
+ * }
2251
+ * ```
2252
+ *
2253
+ * @generated from field: optional uint64 len = 19 [jstype = JS_STRING];
2254
+ */
2255
+ len?: string;
2256
+ /**
2257
+ * `min_len` specifies that the field value must have at least the specified
2258
+ * number of characters (Unicode code points), which may differ from the number
2259
+ * of bytes in the string. If the field value contains fewer characters, an error
2260
+ * message will be generated.
2261
+ *
2262
+ * ```proto
2263
+ * message MyString {
2264
+ * // value length must be at least 3 characters
2265
+ * string value = 1 [(buf.validate.field).string.min_len = 3];
2266
+ * }
2267
+ * ```
2268
+ *
2269
+ * @generated from field: optional uint64 min_len = 2 [jstype = JS_STRING];
2270
+ */
2271
+ minLen?: string;
2272
+ /**
2273
+ * `max_len` specifies that the field value must have no more than the specified
2274
+ * number of characters (Unicode code points), which may differ from the
2275
+ * number of bytes in the string. If the field value contains more characters,
2276
+ * an error message will be generated.
2277
+ *
2278
+ * ```proto
2279
+ * message MyString {
2280
+ * // value length must be at most 10 characters
2281
+ * string value = 1 [(buf.validate.field).string.max_len = 10];
2282
+ * }
2283
+ * ```
2284
+ *
2285
+ * @generated from field: optional uint64 max_len = 3 [jstype = JS_STRING];
2286
+ */
2287
+ maxLen?: string;
2288
+ /**
2289
+ * `len_bytes` dictates that the field value must have the specified number of
2290
+ * bytes. If the field value does not match the specified length in bytes,
2291
+ * an error message will be generated.
2292
+ *
2293
+ * ```proto
2294
+ * message MyString {
2295
+ * // value length must be 6 bytes
2296
+ * string value = 1 [(buf.validate.field).string.len_bytes = 6];
2297
+ * }
2298
+ * ```
2299
+ *
2300
+ * @generated from field: optional uint64 len_bytes = 20 [jstype = JS_STRING];
2301
+ */
2302
+ lenBytes?: string;
2303
+ /**
2304
+ * `min_bytes` specifies that the field value must have at least the specified
2305
+ * number of bytes. If the field value contains fewer bytes, an error message
2306
+ * will be generated.
2307
+ *
2308
+ * ```proto
2309
+ * message MyString {
2310
+ * // value length must be at least 4 bytes
2311
+ * string value = 1 [(buf.validate.field).string.min_bytes = 4];
2312
+ * }
2313
+ *
2314
+ * ```
2315
+ *
2316
+ * @generated from field: optional uint64 min_bytes = 4 [jstype = JS_STRING];
2317
+ */
2318
+ minBytes?: string;
2319
+ /**
2320
+ * `max_bytes` specifies that the field value must have no more than the
2321
+ * specified number of bytes. If the field value contains more bytes, an
2322
+ * error message will be generated.
2323
+ *
2324
+ * ```proto
2325
+ * message MyString {
2326
+ * // value length must be at most 8 bytes
2327
+ * string value = 1 [(buf.validate.field).string.max_bytes = 8];
2328
+ * }
2329
+ * ```
2330
+ *
2331
+ * @generated from field: optional uint64 max_bytes = 5 [jstype = JS_STRING];
2332
+ */
2333
+ maxBytes?: string;
2334
+ /**
2335
+ * `pattern` specifies that the field value must match the specified
2336
+ * regular expression (RE2 syntax), with the expression provided without any
2337
+ * delimiters. If the field value doesn't match the regular expression, an
2338
+ * error message will be generated.
2339
+ *
2340
+ * ```proto
2341
+ * message MyString {
2342
+ * // value does not match regex pattern `^[a-zA-Z]//$`
2343
+ * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
2344
+ * }
2345
+ * ```
2346
+ *
2347
+ * @generated from field: optional string pattern = 6;
2348
+ */
2349
+ pattern?: string;
2350
+ /**
2351
+ * `prefix` specifies that the field value must have the
2352
+ * specified substring at the beginning of the string. If the field value
2353
+ * doesn't start with the specified prefix, an error message will be
2354
+ * generated.
2355
+ *
2356
+ * ```proto
2357
+ * message MyString {
2358
+ * // value does not have prefix `pre`
2359
+ * string value = 1 [(buf.validate.field).string.prefix = "pre"];
2360
+ * }
2361
+ * ```
2362
+ *
2363
+ * @generated from field: optional string prefix = 7;
2364
+ */
2365
+ prefix?: string;
2366
+ /**
2367
+ * `suffix` specifies that the field value must have the
2368
+ * specified substring at the end of the string. If the field value doesn't
2369
+ * end with the specified suffix, an error message will be generated.
2370
+ *
2371
+ * ```proto
2372
+ * message MyString {
2373
+ * // value does not have suffix `post`
2374
+ * string value = 1 [(buf.validate.field).string.suffix = "post"];
2375
+ * }
2376
+ * ```
2377
+ *
2378
+ * @generated from field: optional string suffix = 8;
2379
+ */
2380
+ suffix?: string;
2381
+ /**
2382
+ * `contains` specifies that the field value must have the
2383
+ * specified substring anywhere in the string. If the field value doesn't
2384
+ * contain the specified substring, an error message will be generated.
2385
+ *
2386
+ * ```proto
2387
+ * message MyString {
2388
+ * // value does not contain substring `inside`.
2389
+ * string value = 1 [(buf.validate.field).string.contains = "inside"];
2390
+ * }
2391
+ * ```
2392
+ *
2393
+ * @generated from field: optional string contains = 9;
2394
+ */
2395
+ contains?: string;
2396
+ /**
2397
+ * `not_contains` specifies that the field value must not have the
2398
+ * specified substring anywhere in the string. If the field value contains
2399
+ * the specified substring, an error message will be generated.
2400
+ *
2401
+ * ```proto
2402
+ * message MyString {
2403
+ * // value contains substring `inside`.
2404
+ * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
2405
+ * }
2406
+ * ```
2407
+ *
2408
+ * @generated from field: optional string not_contains = 23;
2409
+ */
2410
+ notContains?: string;
2411
+ /**
2412
+ * `in` specifies that the field value must be equal to one of the specified
2413
+ * values. If the field value isn't one of the specified values, an error
2414
+ * message will be generated.
2415
+ *
2416
+ * ```proto
2417
+ * message MyString {
2418
+ * // value must be in list ["apple", "banana"]
2419
+ * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
2420
+ * }
2421
+ * ```
2422
+ *
2423
+ * @generated from field: repeated string in = 10;
2424
+ */
2425
+ in: string[];
2426
+ /**
2427
+ * `not_in` specifies that the field value cannot be equal to any
2428
+ * of the specified values. If the field value is one of the specified values,
2429
+ * an error message will be generated.
2430
+ * ```proto
2431
+ * message MyString {
2432
+ * // value must not be in list ["orange", "grape"]
2433
+ * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
2434
+ * }
2435
+ * ```
2436
+ *
2437
+ * @generated from field: repeated string not_in = 11;
2438
+ */
2439
+ notIn: string[];
2440
+ /**
2441
+ * `WellKnown` rules provide advanced constraints against common string
2442
+ * patterns
2443
+ *
2444
+ * @generated from oneof buf.validate.StringRules.well_known
2445
+ */
2446
+ wellKnown: {
2447
+ /**
2448
+ * `email` specifies that the field value must be a valid email address
2449
+ * (addr-spec only) as defined by [RFC 5322](https://tools.ietf.org/html/rfc5322#section-3.4.1).
2450
+ * If the field value isn't a valid email address, an error message will be generated.
2451
+ *
2452
+ * ```proto
2453
+ * message MyString {
2454
+ * // value must be a valid email address
2455
+ * string value = 1 [(buf.validate.field).string.email = true];
2456
+ * }
2457
+ * ```
2458
+ *
2459
+ * @generated from field: bool email = 12;
2460
+ */
2461
+ value: boolean;
2462
+ case: "email";
2463
+ } | {
2464
+ /**
2465
+ * `hostname` specifies that the field value must be a valid
2466
+ * hostname as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5). This constraint doesn't support
2467
+ * internationalized domain names (IDNs). If the field value isn't a
2468
+ * valid hostname, an error message will be generated.
2469
+ *
2470
+ * ```proto
2471
+ * message MyString {
2472
+ * // value must be a valid hostname
2473
+ * string value = 1 [(buf.validate.field).string.hostname = true];
2474
+ * }
2475
+ * ```
2476
+ *
2477
+ * @generated from field: bool hostname = 13;
2478
+ */
2479
+ value: boolean;
2480
+ case: "hostname";
2481
+ } | {
2482
+ /**
2483
+ * `ip` specifies that the field value must be a valid IP
2484
+ * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
2485
+ * If the field value isn't a valid IP address, an error message will be
2486
+ * generated.
2487
+ *
2488
+ * ```proto
2489
+ * message MyString {
2490
+ * // value must be a valid IP address
2491
+ * string value = 1 [(buf.validate.field).string.ip = true];
2492
+ * }
2493
+ * ```
2494
+ *
2495
+ * @generated from field: bool ip = 14;
2496
+ */
2497
+ value: boolean;
2498
+ case: "ip";
2499
+ } | {
2500
+ /**
2501
+ * `ipv4` specifies that the field value must be a valid IPv4
2502
+ * address. If the field value isn't a valid IPv4 address, an error message
2503
+ * will be generated.
2504
+ *
2505
+ * ```proto
2506
+ * message MyString {
2507
+ * // value must be a valid IPv4 address
2508
+ * string value = 1 [(buf.validate.field).string.ipv4 = true];
2509
+ * }
2510
+ * ```
2511
+ *
2512
+ * @generated from field: bool ipv4 = 15;
2513
+ */
2514
+ value: boolean;
2515
+ case: "ipv4";
2516
+ } | {
2517
+ /**
2518
+ * `ipv6` specifies that the field value must be a valid
2519
+ * IPv6 address, without surrounding square brackets. If the field value is
2520
+ * not a valid IPv6 address, an error message will be generated.
2521
+ *
2522
+ * ```proto
2523
+ * message MyString {
2524
+ * // value must be a valid IPv6 address
2525
+ * string value = 1 [(buf.validate.field).string.ipv6 = true];
2526
+ * }
2527
+ * ```
2528
+ *
2529
+ * @generated from field: bool ipv6 = 16;
2530
+ */
2531
+ value: boolean;
2532
+ case: "ipv6";
2533
+ } | {
2534
+ /**
2535
+ * `uri` specifies that the field value must be a valid,
2536
+ * absolute URI as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3). If the field value isn't a valid,
2537
+ * absolute URI, an error message will be generated.
2538
+ *
2539
+ * ```proto
2540
+ * message MyString {
2541
+ * // value must be a valid URI
2542
+ * string value = 1 [(buf.validate.field).string.uri = true];
2543
+ * }
2544
+ * ```
2545
+ *
2546
+ * @generated from field: bool uri = 17;
2547
+ */
2548
+ value: boolean;
2549
+ case: "uri";
2550
+ } | {
2551
+ /**
2552
+ * `uri_ref` specifies that the field value must be a valid URI
2553
+ * as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) and may be either relative or absolute. If the
2554
+ * field value isn't a valid URI, an error message will be generated.
2555
+ *
2556
+ * ```proto
2557
+ * message MyString {
2558
+ * // value must be a valid URI
2559
+ * string value = 1 [(buf.validate.field).string.uri_ref = true];
2560
+ * }
2561
+ * ```
2562
+ *
2563
+ * @generated from field: bool uri_ref = 18;
2564
+ */
2565
+ value: boolean;
2566
+ case: "uriRef";
2567
+ } | {
2568
+ /**
2569
+ * `address` specifies that the field value must be either a valid hostname
2570
+ * as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5)
2571
+ * (which doesn't support internationalized domain names or IDNs) or a valid
2572
+ * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
2573
+ * message will be generated.
2574
+ *
2575
+ * ```proto
2576
+ * message MyString {
2577
+ * // value must be a valid hostname, or ip address
2578
+ * string value = 1 [(buf.validate.field).string.address = true];
2579
+ * }
2580
+ * ```
2581
+ *
2582
+ * @generated from field: bool address = 21;
2583
+ */
2584
+ value: boolean;
2585
+ case: "address";
2586
+ } | {
2587
+ /**
2588
+ * `uuid` specifies that the field value must be a valid UUID as defined by
2589
+ * [RFC 4122](https://tools.ietf.org/html/rfc4122#section-4.1.2). If the
2590
+ * field value isn't a valid UUID, an error message will be generated.
2591
+ *
2592
+ * ```proto
2593
+ * message MyString {
2594
+ * // value must be a valid UUID
2595
+ * string value = 1 [(buf.validate.field).string.uuid = true];
2596
+ * }
2597
+ * ```
2598
+ *
2599
+ * @generated from field: bool uuid = 22;
2600
+ */
2601
+ value: boolean;
2602
+ case: "uuid";
2603
+ } | {
2604
+ /**
2605
+ * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
2606
+ * address with prefix length. If the field value isn't a valid IP with prefix
2607
+ * length, an error message will be generated.
2608
+ *
2609
+ *
2610
+ * ```proto
2611
+ * message MyString {
2612
+ * // value must be a valid IP with prefix length
2613
+ * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
2614
+ * }
2615
+ * ```
2616
+ *
2617
+ * @generated from field: bool ip_with_prefixlen = 26;
2618
+ */
2619
+ value: boolean;
2620
+ case: "ipWithPrefixlen";
2621
+ } | {
2622
+ /**
2623
+ * `ipv4_with_prefixlen` specifies that the field value must be a valid
2624
+ * IPv4 address with prefix.
2625
+ * If the field value isn't a valid IPv4 address with prefix length,
2626
+ * an error message will be generated.
2627
+ *
2628
+ * ```proto
2629
+ * message MyString {
2630
+ * // value must be a valid IPv4 address with prefix length
2631
+ * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
2632
+ * }
2633
+ * ```
2634
+ *
2635
+ * @generated from field: bool ipv4_with_prefixlen = 27;
2636
+ */
2637
+ value: boolean;
2638
+ case: "ipv4WithPrefixlen";
2639
+ } | {
2640
+ /**
2641
+ * `ipv6_with_prefixlen` specifies that the field value must be a valid
2642
+ * IPv6 address with prefix length.
2643
+ * If the field value is not a valid IPv6 address with prefix length,
2644
+ * an error message will be generated.
2645
+ *
2646
+ * ```proto
2647
+ * message MyString {
2648
+ * // value must be a valid IPv6 address prefix length
2649
+ * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
2650
+ * }
2651
+ * ```
2652
+ *
2653
+ * @generated from field: bool ipv6_with_prefixlen = 28;
2654
+ */
2655
+ value: boolean;
2656
+ case: "ipv6WithPrefixlen";
2657
+ } | {
2658
+ /**
2659
+ * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
2660
+ * If the field value isn't a valid IP prefix, an error message will be
2661
+ * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
2662
+ * `127.0.0.0/16`, not `127.0.0.1/16`).
2663
+ *
2664
+ * ```proto
2665
+ * message MyString {
2666
+ * // value must be a valid IP prefix
2667
+ * string value = 1 [(buf.validate.field).string.ip_prefix = true];
2668
+ * }
2669
+ * ```
2670
+ *
2671
+ * @generated from field: bool ip_prefix = 29;
2672
+ */
2673
+ value: boolean;
2674
+ case: "ipPrefix";
2675
+ } | {
2676
+ /**
2677
+ * `ipv4_prefix` specifies that the field value must be a valid IPv4
2678
+ * prefix. If the field value isn't a valid IPv4 prefix, an error message
2679
+ * will be generated. The prefix must have all zeros for the masked bits of
2680
+ * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
2681
+ *
2682
+ * ```proto
2683
+ * message MyString {
2684
+ * // value must be a valid IPv4 prefix
2685
+ * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
2686
+ * }
2687
+ * ```
2688
+ *
2689
+ * @generated from field: bool ipv4_prefix = 30;
2690
+ */
2691
+ value: boolean;
2692
+ case: "ipv4Prefix";
2693
+ } | {
2694
+ /**
2695
+ * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
2696
+ * If the field value is not a valid IPv6 prefix, an error message will be
2697
+ * generated. The prefix must have all zeros for the masked bits of the prefix
2698
+ * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
2699
+ *
2700
+ * ```proto
2701
+ * message MyString {
2702
+ * // value must be a valid IPv6 prefix
2703
+ * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
2704
+ * }
2705
+ * ```
2706
+ *
2707
+ * @generated from field: bool ipv6_prefix = 31;
2708
+ */
2709
+ value: boolean;
2710
+ case: "ipv6Prefix";
2711
+ } | {
2712
+ /**
2713
+ * `host_and_port` specifies the field value must be a valid host and port
2714
+ * pair. The host must be a valid hostname or IP address while the port
2715
+ * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
2716
+ * with square brackets (e.g., `[::1]:1234`).
2717
+ *
2718
+ * @generated from field: bool host_and_port = 32;
2719
+ */
2720
+ value: boolean;
2721
+ case: "hostAndPort";
2722
+ } | {
2723
+ /**
2724
+ * `well_known_regex` specifies a common well-known pattern
2725
+ * defined as a regex. If the field value doesn't match the well-known
2726
+ * regex, an error message will be generated.
2727
+ *
2728
+ * ```proto
2729
+ * message MyString {
2730
+ * // value must be a valid HTTP header value
2731
+ * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
2732
+ * }
2733
+ * ```
2734
+ *
2735
+ * #### KnownRegex
2736
+ *
2737
+ * `well_known_regex` contains some well-known patterns.
2738
+ *
2739
+ * | Name | Number | Description |
2740
+ * |-------------------------------|--------|-------------------------------------------|
2741
+ * | KNOWN_REGEX_UNSPECIFIED | 0 | |
2742
+ * | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2) |
2743
+ * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4) |
2744
+ *
2745
+ * @generated from field: buf.validate.KnownRegex well_known_regex = 24;
2746
+ */
2747
+ value: KnownRegex;
2748
+ case: "wellKnownRegex";
2749
+ } | {
2750
+ case: undefined;
2751
+ value?: undefined;
2752
+ };
2753
+ /**
2754
+ * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
2755
+ * enable strict header validation. By default, this is true, and HTTP header
2756
+ * validations are [RFC-compliant](https://tools.ietf.org/html/rfc7230#section-3). Setting to false will enable looser
2757
+ * validations that only disallow `\r\n\0` characters, which can be used to
2758
+ * bypass header matching rules.
2759
+ *
2760
+ * ```proto
2761
+ * message MyString {
2762
+ * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
2763
+ * string value = 1 [(buf.validate.field).string.strict = false];
2764
+ * }
2765
+ * ```
2766
+ *
2767
+ * @generated from field: optional bool strict = 25;
2768
+ */
2769
+ strict?: boolean;
2770
+ };
2771
+ /**
2772
+ * Describes the message buf.validate.StringRules.
2773
+ * Use `create(StringRulesSchema)` to create a new message.
2774
+ */
2775
+ export declare const StringRulesSchema: GenMessage<StringRules>;
2776
+ /**
2777
+ * BytesRules describe the constraints applied to `bytes` values. These rules
2778
+ * may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.
2779
+ *
2780
+ * @generated from message buf.validate.BytesRules
2781
+ */
2782
+ export type BytesRules = Message<"buf.validate.BytesRules"> & {
2783
+ /**
2784
+ * `const` requires the field value to exactly match the specified bytes
2785
+ * value. If the field value doesn't match, an error message is generated.
2786
+ *
2787
+ * ```proto
2788
+ * message MyBytes {
2789
+ * // value must be "\x01\x02\x03\x04"
2790
+ * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
2791
+ * }
2792
+ * ```
2793
+ *
2794
+ * @generated from field: optional bytes const = 1;
2795
+ */
2796
+ const?: Uint8Array;
2797
+ /**
2798
+ * `len` requires the field value to have the specified length in bytes.
2799
+ * If the field value doesn't match, an error message is generated.
2800
+ *
2801
+ * ```proto
2802
+ * message MyBytes {
2803
+ * // value length must be 4 bytes.
2804
+ * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
2805
+ * }
2806
+ * ```
2807
+ *
2808
+ * @generated from field: optional uint64 len = 13 [jstype = JS_STRING];
2809
+ */
2810
+ len?: string;
2811
+ /**
2812
+ * `min_len` requires the field value to have at least the specified minimum
2813
+ * length in bytes.
2814
+ * If the field value doesn't meet the requirement, an error message is generated.
2815
+ *
2816
+ * ```proto
2817
+ * message MyBytes {
2818
+ * // value length must be at least 2 bytes.
2819
+ * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
2820
+ * }
2821
+ * ```
2822
+ *
2823
+ * @generated from field: optional uint64 min_len = 2 [jstype = JS_STRING];
2824
+ */
2825
+ minLen?: string;
2826
+ /**
2827
+ * `max_len` requires the field value to have at most the specified maximum
2828
+ * length in bytes.
2829
+ * If the field value exceeds the requirement, an error message is generated.
2830
+ *
2831
+ * ```proto
2832
+ * message MyBytes {
2833
+ * // value must be at most 6 bytes.
2834
+ * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
2835
+ * }
2836
+ * ```
2837
+ *
2838
+ * @generated from field: optional uint64 max_len = 3 [jstype = JS_STRING];
2839
+ */
2840
+ maxLen?: string;
2841
+ /**
2842
+ * `pattern` requires the field value to match the specified regular
2843
+ * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
2844
+ * The value of the field must be valid UTF-8 or validation will fail with a
2845
+ * runtime error.
2846
+ * If the field value doesn't match the pattern, an error message is generated.
2847
+ *
2848
+ * ```proto
2849
+ * message MyBytes {
2850
+ * // value must match regex pattern "^[a-zA-Z0-9]+$".
2851
+ * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
2852
+ * }
2853
+ * ```
2854
+ *
2855
+ * @generated from field: optional string pattern = 4;
2856
+ */
2857
+ pattern?: string;
2858
+ /**
2859
+ * `prefix` requires the field value to have the specified bytes at the
2860
+ * beginning of the string.
2861
+ * If the field value doesn't meet the requirement, an error message is generated.
2862
+ *
2863
+ * ```proto
2864
+ * message MyBytes {
2865
+ * // value does not have prefix \x01\x02
2866
+ * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
2867
+ * }
2868
+ * ```
2869
+ *
2870
+ * @generated from field: optional bytes prefix = 5;
2871
+ */
2872
+ prefix?: Uint8Array;
2873
+ /**
2874
+ * `suffix` requires the field value to have the specified bytes at the end
2875
+ * of the string.
2876
+ * If the field value doesn't meet the requirement, an error message is generated.
2877
+ *
2878
+ * ```proto
2879
+ * message MyBytes {
2880
+ * // value does not have suffix \x03\x04
2881
+ * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
2882
+ * }
2883
+ * ```
2884
+ *
2885
+ * @generated from field: optional bytes suffix = 6;
2886
+ */
2887
+ suffix?: Uint8Array;
2888
+ /**
2889
+ * `contains` requires the field value to have the specified bytes anywhere in
2890
+ * the string.
2891
+ * If the field value doesn't meet the requirement, an error message is generated.
2892
+ *
2893
+ * ```protobuf
2894
+ * message MyBytes {
2895
+ * // value does not contain \x02\x03
2896
+ * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
2897
+ * }
2898
+ * ```
2899
+ *
2900
+ * @generated from field: optional bytes contains = 7;
2901
+ */
2902
+ contains?: Uint8Array;
2903
+ /**
2904
+ * `in` requires the field value to be equal to one of the specified
2905
+ * values. If the field value doesn't match any of the specified values, an
2906
+ * error message is generated.
2907
+ *
2908
+ * ```protobuf
2909
+ * message MyBytes {
2910
+ * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
2911
+ * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
2912
+ * }
2913
+ * ```
2914
+ *
2915
+ * @generated from field: repeated bytes in = 8;
2916
+ */
2917
+ in: Uint8Array[];
2918
+ /**
2919
+ * `not_in` requires the field value to be not equal to any of the specified
2920
+ * values.
2921
+ * If the field value matches any of the specified values, an error message is
2922
+ * generated.
2923
+ *
2924
+ * ```proto
2925
+ * message MyBytes {
2926
+ * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
2927
+ * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
2928
+ * }
2929
+ * ```
2930
+ *
2931
+ * @generated from field: repeated bytes not_in = 9;
2932
+ */
2933
+ notIn: Uint8Array[];
2934
+ /**
2935
+ * WellKnown rules provide advanced constraints against common byte
2936
+ * patterns
2937
+ *
2938
+ * @generated from oneof buf.validate.BytesRules.well_known
2939
+ */
2940
+ wellKnown: {
2941
+ /**
2942
+ * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
2943
+ * If the field value doesn't meet this constraint, an error message is generated.
2944
+ *
2945
+ * ```proto
2946
+ * message MyBytes {
2947
+ * // value must be a valid IP address
2948
+ * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
2949
+ * }
2950
+ * ```
2951
+ *
2952
+ * @generated from field: bool ip = 10;
2953
+ */
2954
+ value: boolean;
2955
+ case: "ip";
2956
+ } | {
2957
+ /**
2958
+ * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
2959
+ * If the field value doesn't meet this constraint, an error message is generated.
2960
+ *
2961
+ * ```proto
2962
+ * message MyBytes {
2963
+ * // value must be a valid IPv4 address
2964
+ * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
2965
+ * }
2966
+ * ```
2967
+ *
2968
+ * @generated from field: bool ipv4 = 11;
2969
+ */
2970
+ value: boolean;
2971
+ case: "ipv4";
2972
+ } | {
2973
+ /**
2974
+ * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
2975
+ * If the field value doesn't meet this constraint, an error message is generated.
2976
+ * ```proto
2977
+ * message MyBytes {
2978
+ * // value must be a valid IPv6 address
2979
+ * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
2980
+ * }
2981
+ * ```
2982
+ *
2983
+ * @generated from field: bool ipv6 = 12;
2984
+ */
2985
+ value: boolean;
2986
+ case: "ipv6";
2987
+ } | {
2988
+ case: undefined;
2989
+ value?: undefined;
2990
+ };
2991
+ };
2992
+ /**
2993
+ * Describes the message buf.validate.BytesRules.
2994
+ * Use `create(BytesRulesSchema)` to create a new message.
2995
+ */
2996
+ export declare const BytesRulesSchema: GenMessage<BytesRules>;
2997
+ /**
2998
+ * EnumRules describe the constraints applied to `enum` values.
2999
+ *
3000
+ * @generated from message buf.validate.EnumRules
3001
+ */
3002
+ export type EnumRules = Message<"buf.validate.EnumRules"> & {
3003
+ /**
3004
+ * `const` requires the field value to exactly match the specified enum value.
3005
+ * If the field value doesn't match, an error message is generated.
3006
+ *
3007
+ * ```proto
3008
+ * enum MyEnum {
3009
+ * MY_ENUM_UNSPECIFIED = 0;
3010
+ * MY_ENUM_VALUE1 = 1;
3011
+ * MY_ENUM_VALUE2 = 2;
3012
+ * }
3013
+ *
3014
+ * message MyMessage {
3015
+ * // The field `value` must be exactly MY_ENUM_VALUE1.
3016
+ * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
3017
+ * }
3018
+ * ```
3019
+ *
3020
+ * @generated from field: optional int32 const = 1;
3021
+ */
3022
+ const?: number;
3023
+ /**
3024
+ * `defined_only` requires the field value to be one of the defined values for
3025
+ * this enum, failing on any undefined value.
3026
+ *
3027
+ * ```proto
3028
+ * enum MyEnum {
3029
+ * MY_ENUM_UNSPECIFIED = 0;
3030
+ * MY_ENUM_VALUE1 = 1;
3031
+ * MY_ENUM_VALUE2 = 2;
3032
+ * }
3033
+ *
3034
+ * message MyMessage {
3035
+ * // The field `value` must be a defined value of MyEnum.
3036
+ * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
3037
+ * }
3038
+ * ```
3039
+ *
3040
+ * @generated from field: optional bool defined_only = 2;
3041
+ */
3042
+ definedOnly?: boolean;
3043
+ /**
3044
+ * `in` requires the field value to be equal to one of the
3045
+ * specified enum values. If the field value doesn't match any of the
3046
+ * specified values, an error message is generated.
3047
+ *
3048
+ * ```proto
3049
+ * enum MyEnum {
3050
+ * MY_ENUM_UNSPECIFIED = 0;
3051
+ * MY_ENUM_VALUE1 = 1;
3052
+ * MY_ENUM_VALUE2 = 2;
3053
+ * }
3054
+ *
3055
+ * message MyMessage {
3056
+ * // The field `value` must be equal to one of the specified values.
3057
+ * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
3058
+ * }
3059
+ * ```
3060
+ *
3061
+ * @generated from field: repeated int32 in = 3;
3062
+ */
3063
+ in: number[];
3064
+ /**
3065
+ * `not_in` requires the field value to be not equal to any of the
3066
+ * specified enum values. If the field value matches one of the specified
3067
+ * values, an error message is generated.
3068
+ *
3069
+ * ```proto
3070
+ * enum MyEnum {
3071
+ * MY_ENUM_UNSPECIFIED = 0;
3072
+ * MY_ENUM_VALUE1 = 1;
3073
+ * MY_ENUM_VALUE2 = 2;
3074
+ * }
3075
+ *
3076
+ * message MyMessage {
3077
+ * // The field `value` must not be equal to any of the specified values.
3078
+ * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
3079
+ * }
3080
+ * ```
3081
+ *
3082
+ * @generated from field: repeated int32 not_in = 4;
3083
+ */
3084
+ notIn: number[];
3085
+ };
3086
+ /**
3087
+ * Describes the message buf.validate.EnumRules.
3088
+ * Use `create(EnumRulesSchema)` to create a new message.
3089
+ */
3090
+ export declare const EnumRulesSchema: GenMessage<EnumRules>;
3091
+ /**
3092
+ * RepeatedRules describe the constraints applied to `repeated` values.
3093
+ *
3094
+ * @generated from message buf.validate.RepeatedRules
3095
+ */
3096
+ export type RepeatedRules = Message<"buf.validate.RepeatedRules"> & {
3097
+ /**
3098
+ * `min_items` requires that this field must contain at least the specified
3099
+ * minimum number of items.
3100
+ *
3101
+ * Note that `min_items = 1` is equivalent to setting a field as `required`.
3102
+ *
3103
+ * ```proto
3104
+ * message MyRepeated {
3105
+ * // value must contain at least 2 items
3106
+ * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
3107
+ * }
3108
+ * ```
3109
+ *
3110
+ * @generated from field: optional uint64 min_items = 1 [jstype = JS_STRING];
3111
+ */
3112
+ minItems?: string;
3113
+ /**
3114
+ * `max_items` denotes that this field must not exceed a
3115
+ * certain number of items as the upper limit. If the field contains more
3116
+ * items than specified, an error message will be generated, requiring the
3117
+ * field to maintain no more than the specified number of items.
3118
+ *
3119
+ * ```proto
3120
+ * message MyRepeated {
3121
+ * // value must contain no more than 3 item(s)
3122
+ * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
3123
+ * }
3124
+ * ```
3125
+ *
3126
+ * @generated from field: optional uint64 max_items = 2 [jstype = JS_STRING];
3127
+ */
3128
+ maxItems?: string;
3129
+ /**
3130
+ * `unique` indicates that all elements in this field must
3131
+ * be unique. This constraint is strictly applicable to scalar and enum
3132
+ * types, with message types not being supported.
3133
+ *
3134
+ * ```proto
3135
+ * message MyRepeated {
3136
+ * // repeated value must contain unique items
3137
+ * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
3138
+ * }
3139
+ * ```
3140
+ *
3141
+ * @generated from field: optional bool unique = 3;
3142
+ */
3143
+ unique?: boolean;
3144
+ /**
3145
+ * `items` details the constraints to be applied to each item
3146
+ * in the field. Even for repeated message fields, validation is executed
3147
+ * against each item unless skip is explicitly specified.
3148
+ *
3149
+ * ```proto
3150
+ * message MyRepeated {
3151
+ * // The items in the field `value` must follow the specified constraints.
3152
+ * repeated string value = 1 [(buf.validate.field).repeated.items = {
3153
+ * string: {
3154
+ * min_len: 3
3155
+ * max_len: 10
3156
+ * }
3157
+ * }];
3158
+ * }
3159
+ * ```
3160
+ *
3161
+ * @generated from field: optional buf.validate.FieldConstraints items = 4;
3162
+ */
3163
+ items?: FieldConstraints;
3164
+ };
3165
+ /**
3166
+ * Describes the message buf.validate.RepeatedRules.
3167
+ * Use `create(RepeatedRulesSchema)` to create a new message.
3168
+ */
3169
+ export declare const RepeatedRulesSchema: GenMessage<RepeatedRules>;
3170
+ /**
3171
+ * MapRules describe the constraints applied to `map` values.
3172
+ *
3173
+ * @generated from message buf.validate.MapRules
3174
+ */
3175
+ export type MapRules = Message<"buf.validate.MapRules"> & {
3176
+ /**
3177
+ * Specifies the minimum number of key-value pairs allowed. If the field has
3178
+ * fewer key-value pairs than specified, an error message is generated.
3179
+ *
3180
+ * ```proto
3181
+ * message MyMap {
3182
+ * // The field `value` must have at least 2 key-value pairs.
3183
+ * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
3184
+ * }
3185
+ * ```
3186
+ *
3187
+ * @generated from field: optional uint64 min_pairs = 1 [jstype = JS_STRING];
3188
+ */
3189
+ minPairs?: string;
3190
+ /**
3191
+ * Specifies the maximum number of key-value pairs allowed. If the field has
3192
+ * more key-value pairs than specified, an error message is generated.
3193
+ *
3194
+ * ```proto
3195
+ * message MyMap {
3196
+ * // The field `value` must have at most 3 key-value pairs.
3197
+ * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
3198
+ * }
3199
+ * ```
3200
+ *
3201
+ * @generated from field: optional uint64 max_pairs = 2 [jstype = JS_STRING];
3202
+ */
3203
+ maxPairs?: string;
3204
+ /**
3205
+ * Specifies the constraints to be applied to each key in the field.
3206
+ *
3207
+ * ```proto
3208
+ * message MyMap {
3209
+ * // The keys in the field `value` must follow the specified constraints.
3210
+ * map<string, string> value = 1 [(buf.validate.field).map.keys = {
3211
+ * string: {
3212
+ * min_len: 3
3213
+ * max_len: 10
3214
+ * }
3215
+ * }];
3216
+ * }
3217
+ * ```
3218
+ *
3219
+ * @generated from field: optional buf.validate.FieldConstraints keys = 4;
3220
+ */
3221
+ keys?: FieldConstraints;
3222
+ /**
3223
+ * Specifies the constraints to be applied to the value of each key in the
3224
+ * field. Message values will still have their validations evaluated unless
3225
+ * skip is specified here.
3226
+ *
3227
+ * ```proto
3228
+ * message MyMap {
3229
+ * // The values in the field `value` must follow the specified constraints.
3230
+ * map<string, string> value = 1 [(buf.validate.field).map.values = {
3231
+ * string: {
3232
+ * min_len: 5
3233
+ * max_len: 20
3234
+ * }
3235
+ * }];
3236
+ * }
3237
+ * ```
3238
+ *
3239
+ * @generated from field: optional buf.validate.FieldConstraints values = 5;
3240
+ */
3241
+ values?: FieldConstraints;
3242
+ };
3243
+ /**
3244
+ * Describes the message buf.validate.MapRules.
3245
+ * Use `create(MapRulesSchema)` to create a new message.
3246
+ */
3247
+ export declare const MapRulesSchema: GenMessage<MapRules>;
3248
+ /**
3249
+ * AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.
3250
+ *
3251
+ * @generated from message buf.validate.AnyRules
3252
+ */
3253
+ export type AnyRules = Message<"buf.validate.AnyRules"> & {
3254
+ /**
3255
+ * `in` requires the field's `type_url` to be equal to one of the
3256
+ * specified values. If it doesn't match any of the specified values, an error
3257
+ * message is generated.
3258
+ *
3259
+ * ```proto
3260
+ * message MyAny {
3261
+ * // The `value` field must have a `type_url` equal to one of the specified values.
3262
+ * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
3263
+ * }
3264
+ * ```
3265
+ *
3266
+ * @generated from field: repeated string in = 2;
3267
+ */
3268
+ in: string[];
3269
+ /**
3270
+ * 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.
3271
+ *
3272
+ * ```proto
3273
+ * message MyAny {
3274
+ * // The field `value` must not have a `type_url` equal to any of the specified values.
3275
+ * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
3276
+ * }
3277
+ * ```
3278
+ *
3279
+ * @generated from field: repeated string not_in = 3;
3280
+ */
3281
+ notIn: string[];
3282
+ };
3283
+ /**
3284
+ * Describes the message buf.validate.AnyRules.
3285
+ * Use `create(AnyRulesSchema)` to create a new message.
3286
+ */
3287
+ export declare const AnyRulesSchema: GenMessage<AnyRules>;
3288
+ /**
3289
+ * DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type.
3290
+ *
3291
+ * @generated from message buf.validate.DurationRules
3292
+ */
3293
+ export type DurationRules = Message<"buf.validate.DurationRules"> & {
3294
+ /**
3295
+ * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
3296
+ * If the field's value deviates from the specified value, an error message
3297
+ * will be generated.
3298
+ *
3299
+ * ```proto
3300
+ * message MyDuration {
3301
+ * // value must equal 5s
3302
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
3303
+ * }
3304
+ * ```
3305
+ *
3306
+ * @generated from field: optional google.protobuf.Duration const = 2;
3307
+ */
3308
+ const?: Duration;
3309
+ /**
3310
+ * @generated from oneof buf.validate.DurationRules.less_than
3311
+ */
3312
+ lessThan: {
3313
+ /**
3314
+ * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
3315
+ * exclusive. If the field's value is greater than or equal to the specified
3316
+ * value, an error message will be generated.
3317
+ *
3318
+ * ```proto
3319
+ * message MyDuration {
3320
+ * // value must be less than 5s
3321
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
3322
+ * }
3323
+ * ```
3324
+ *
3325
+ * @generated from field: google.protobuf.Duration lt = 3;
3326
+ */
3327
+ value: Duration;
3328
+ case: "lt";
3329
+ } | {
3330
+ /**
3331
+ * `lte` indicates that the field must be less than or equal to the specified
3332
+ * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
3333
+ * an error message will be generated.
3334
+ *
3335
+ * ```proto
3336
+ * message MyDuration {
3337
+ * // value must be less than or equal to 10s
3338
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
3339
+ * }
3340
+ * ```
3341
+ *
3342
+ * @generated from field: google.protobuf.Duration lte = 4;
3343
+ */
3344
+ value: Duration;
3345
+ case: "lte";
3346
+ } | {
3347
+ case: undefined;
3348
+ value?: undefined;
3349
+ };
3350
+ /**
3351
+ * @generated from oneof buf.validate.DurationRules.greater_than
3352
+ */
3353
+ greaterThan: {
3354
+ /**
3355
+ * `gt` requires the duration field value to be greater than the specified
3356
+ * value (exclusive). If the value of `gt` is larger than a specified `lt`
3357
+ * or `lte`, the range is reversed, and the field value must be outside the
3358
+ * specified range. If the field value doesn't meet the required conditions,
3359
+ * an error message is generated.
3360
+ *
3361
+ * ```proto
3362
+ * message MyDuration {
3363
+ * // duration must be greater than 5s [duration.gt]
3364
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
3365
+ *
3366
+ * // duration must be greater than 5s and less than 10s [duration.gt_lt]
3367
+ * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
3368
+ *
3369
+ * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
3370
+ * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
3371
+ * }
3372
+ * ```
3373
+ *
3374
+ * @generated from field: google.protobuf.Duration gt = 5;
3375
+ */
3376
+ value: Duration;
3377
+ case: "gt";
3378
+ } | {
3379
+ /**
3380
+ * `gte` requires the duration field value to be greater than or equal to the
3381
+ * specified value (exclusive). If the value of `gte` is larger than a
3382
+ * specified `lt` or `lte`, the range is reversed, and the field value must
3383
+ * be outside the specified range. If the field value doesn't meet the
3384
+ * required conditions, an error message is generated.
3385
+ *
3386
+ * ```proto
3387
+ * message MyDuration {
3388
+ * // duration must be greater than or equal to 5s [duration.gte]
3389
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
3390
+ *
3391
+ * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
3392
+ * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
3393
+ *
3394
+ * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
3395
+ * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
3396
+ * }
3397
+ * ```
3398
+ *
3399
+ * @generated from field: google.protobuf.Duration gte = 6;
3400
+ */
3401
+ value: Duration;
3402
+ case: "gte";
3403
+ } | {
3404
+ case: undefined;
3405
+ value?: undefined;
3406
+ };
3407
+ /**
3408
+ * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
3409
+ * If the field's value doesn't correspond to any of the specified values,
3410
+ * an error message will be generated.
3411
+ *
3412
+ * ```proto
3413
+ * message MyDuration {
3414
+ * // value must be in list [1s, 2s, 3s]
3415
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
3416
+ * }
3417
+ * ```
3418
+ *
3419
+ * @generated from field: repeated google.protobuf.Duration in = 7;
3420
+ */
3421
+ in: Duration[];
3422
+ /**
3423
+ * `not_in` denotes that the field must not be equal to
3424
+ * any of the specified values of the `google.protobuf.Duration` type.
3425
+ * If the field's value matches any of these values, an error message will be
3426
+ * generated.
3427
+ *
3428
+ * ```proto
3429
+ * message MyDuration {
3430
+ * // value must not be in list [1s, 2s, 3s]
3431
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
3432
+ * }
3433
+ * ```
3434
+ *
3435
+ * @generated from field: repeated google.protobuf.Duration not_in = 8;
3436
+ */
3437
+ notIn: Duration[];
3438
+ };
3439
+ /**
3440
+ * Describes the message buf.validate.DurationRules.
3441
+ * Use `create(DurationRulesSchema)` to create a new message.
3442
+ */
3443
+ export declare const DurationRulesSchema: GenMessage<DurationRules>;
3444
+ /**
3445
+ * TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.
3446
+ *
3447
+ * @generated from message buf.validate.TimestampRules
3448
+ */
3449
+ export type TimestampRules = Message<"buf.validate.TimestampRules"> & {
3450
+ /**
3451
+ * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
3452
+ *
3453
+ * ```proto
3454
+ * message MyTimestamp {
3455
+ * // value must equal 2023-05-03T10:00:00Z
3456
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
3457
+ * }
3458
+ * ```
3459
+ *
3460
+ * @generated from field: optional google.protobuf.Timestamp const = 2;
3461
+ */
3462
+ const?: Timestamp;
3463
+ /**
3464
+ * @generated from oneof buf.validate.TimestampRules.less_than
3465
+ */
3466
+ lessThan: {
3467
+ /**
3468
+ * 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.
3469
+ *
3470
+ * ```proto
3471
+ * message MyDuration {
3472
+ * // duration must be less than 'P3D' [duration.lt]
3473
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
3474
+ * }
3475
+ * ```
3476
+ *
3477
+ * @generated from field: google.protobuf.Timestamp lt = 3;
3478
+ */
3479
+ value: Timestamp;
3480
+ case: "lt";
3481
+ } | {
3482
+ /**
3483
+ * 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.
3484
+ *
3485
+ * ```proto
3486
+ * message MyTimestamp {
3487
+ * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
3488
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
3489
+ * }
3490
+ * ```
3491
+ *
3492
+ * @generated from field: google.protobuf.Timestamp lte = 4;
3493
+ */
3494
+ value: Timestamp;
3495
+ case: "lte";
3496
+ } | {
3497
+ /**
3498
+ * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
3499
+ *
3500
+ * ```proto
3501
+ * message MyTimestamp {
3502
+ * // value must be less than now
3503
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
3504
+ * }
3505
+ * ```
3506
+ *
3507
+ * @generated from field: bool lt_now = 7;
3508
+ */
3509
+ value: boolean;
3510
+ case: "ltNow";
3511
+ } | {
3512
+ case: undefined;
3513
+ value?: undefined;
3514
+ };
3515
+ /**
3516
+ * @generated from oneof buf.validate.TimestampRules.greater_than
3517
+ */
3518
+ greaterThan: {
3519
+ /**
3520
+ * `gt` requires the timestamp field value to be greater than the specified
3521
+ * value (exclusive). If the value of `gt` is larger than a specified `lt`
3522
+ * or `lte`, the range is reversed, and the field value must be outside the
3523
+ * specified range. If the field value doesn't meet the required conditions,
3524
+ * an error message is generated.
3525
+ *
3526
+ * ```proto
3527
+ * message MyTimestamp {
3528
+ * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
3529
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
3530
+ *
3531
+ * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
3532
+ * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
3533
+ *
3534
+ * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
3535
+ * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
3536
+ * }
3537
+ * ```
3538
+ *
3539
+ * @generated from field: google.protobuf.Timestamp gt = 5;
3540
+ */
3541
+ value: Timestamp;
3542
+ case: "gt";
3543
+ } | {
3544
+ /**
3545
+ * `gte` requires the timestamp field value to be greater than or equal to the
3546
+ * specified value (exclusive). If the value of `gte` is larger than a
3547
+ * specified `lt` or `lte`, the range is reversed, and the field value
3548
+ * must be outside the specified range. If the field value doesn't meet
3549
+ * the required conditions, an error message is generated.
3550
+ *
3551
+ * ```proto
3552
+ * message MyTimestamp {
3553
+ * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
3554
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
3555
+ *
3556
+ * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
3557
+ * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
3558
+ *
3559
+ * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
3560
+ * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
3561
+ * }
3562
+ * ```
3563
+ *
3564
+ * @generated from field: google.protobuf.Timestamp gte = 6;
3565
+ */
3566
+ value: Timestamp;
3567
+ case: "gte";
3568
+ } | {
3569
+ /**
3570
+ * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
3571
+ *
3572
+ * ```proto
3573
+ * message MyTimestamp {
3574
+ * // value must be greater than now
3575
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
3576
+ * }
3577
+ * ```
3578
+ *
3579
+ * @generated from field: bool gt_now = 8;
3580
+ */
3581
+ value: boolean;
3582
+ case: "gtNow";
3583
+ } | {
3584
+ case: undefined;
3585
+ value?: undefined;
3586
+ };
3587
+ /**
3588
+ * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
3589
+ *
3590
+ * ```proto
3591
+ * message MyTimestamp {
3592
+ * // value must be within 1 hour of now
3593
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
3594
+ * }
3595
+ * ```
3596
+ *
3597
+ * @generated from field: optional google.protobuf.Duration within = 9;
3598
+ */
3599
+ within?: Duration;
3600
+ };
3601
+ /**
3602
+ * Describes the message buf.validate.TimestampRules.
3603
+ * Use `create(TimestampRulesSchema)` to create a new message.
3604
+ */
3605
+ export declare const TimestampRulesSchema: GenMessage<TimestampRules>;
3606
+ /**
3607
+ * Specifies how FieldConstraints.ignore behaves. See the documentation for
3608
+ * FieldConstraints.required for definitions of "populated" and "nullable".
3609
+ *
3610
+ * @generated from enum buf.validate.Ignore
3611
+ */
3612
+ export declare enum Ignore {
3613
+ /**
3614
+ * Validation is only skipped if it's an unpopulated nullable fields.
3615
+ *
3616
+ * @generated from enum value: IGNORE_UNSPECIFIED = 0;
3617
+ */
3618
+ UNSPECIFIED = 0,
3619
+ /**
3620
+ * Validation is skipped if the field is unpopulated.
3621
+ *
3622
+ * @generated from enum value: IGNORE_EMPTY = 1;
3623
+ */
3624
+ EMPTY = 1,
3625
+ /**
3626
+ * Validation is skipped if the field is unpopulated or if it is a nullable
3627
+ * field populated with its default value.
3628
+ *
3629
+ * @generated from enum value: IGNORE_DEFAULT = 2;
3630
+ */
3631
+ DEFAULT = 2
3632
+ }
3633
+ /**
3634
+ * Describes the enum buf.validate.Ignore.
3635
+ */
3636
+ export declare const IgnoreSchema: GenEnum<Ignore>;
3637
+ /**
3638
+ * WellKnownRegex contain some well-known patterns.
3639
+ *
3640
+ * @generated from enum buf.validate.KnownRegex
3641
+ */
3642
+ export declare enum KnownRegex {
3643
+ /**
3644
+ * @generated from enum value: KNOWN_REGEX_UNSPECIFIED = 0;
3645
+ */
3646
+ UNSPECIFIED = 0,
3647
+ /**
3648
+ * HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2).
3649
+ *
3650
+ * @generated from enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1;
3651
+ */
3652
+ HTTP_HEADER_NAME = 1,
3653
+ /**
3654
+ * HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4).
3655
+ *
3656
+ * @generated from enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2;
3657
+ */
3658
+ HTTP_HEADER_VALUE = 2
3659
+ }
3660
+ /**
3661
+ * Describes the enum buf.validate.KnownRegex.
3662
+ */
3663
+ export declare const KnownRegexSchema: GenEnum<KnownRegex>;
3664
+ /**
3665
+ * Rules specify the validations to be performed on this message. By default,
3666
+ * no validation is performed against a message.
3667
+ *
3668
+ * @generated from extension: optional buf.validate.MessageConstraints message = 1159;
3669
+ */
3670
+ export declare const message: GenExtension<MessageOptions, MessageConstraints>;
3671
+ /**
3672
+ * Rules specify the validations to be performed on this oneof. By default,
3673
+ * no validation is performed against a oneof.
3674
+ *
3675
+ * @generated from extension: optional buf.validate.OneofConstraints oneof = 1159;
3676
+ */
3677
+ export declare const oneof: GenExtension<OneofOptions, OneofConstraints>;
3678
+ /**
3679
+ * Rules specify the validations to be performed on this field. By default,
3680
+ * no validation is performed against a field.
3681
+ *
3682
+ * @generated from extension: optional buf.validate.FieldConstraints field = 1159;
3683
+ */
3684
+ export declare const field: GenExtension<FieldOptions, FieldConstraints>;
3685
+ //# sourceMappingURL=validate_pb.d.ts.map