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