effect 4.1.4 → 4.1.6

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 (890) hide show
  1. package/THIRD_PARTY_NOTICES.md +88 -0
  2. package/ai-docs/package.json +2 -2
  3. package/dist/Arbitrary.d.ts +44 -2
  4. package/dist/Arbitrary.d.ts.map +1 -1
  5. package/dist/Arbitrary.js +9 -1
  6. package/dist/Arbitrary.js.map +1 -1
  7. package/dist/BigInt.d.ts +200 -1
  8. package/dist/BigInt.d.ts.map +1 -1
  9. package/dist/BigInt.js +105 -9
  10. package/dist/BigInt.js.map +1 -1
  11. package/dist/Cache.d.ts.map +1 -1
  12. package/dist/Cache.js +4 -2
  13. package/dist/Cache.js.map +1 -1
  14. package/dist/Cause.d.ts +3 -3
  15. package/dist/Cause.js +1 -1
  16. package/dist/Channel.d.ts +104 -7
  17. package/dist/Channel.d.ts.map +1 -1
  18. package/dist/Channel.js +73 -4
  19. package/dist/Channel.js.map +1 -1
  20. package/dist/Chunk.d.ts +5 -0
  21. package/dist/Chunk.d.ts.map +1 -1
  22. package/dist/Chunk.js +7 -2
  23. package/dist/Chunk.js.map +1 -1
  24. package/dist/Clock.d.ts +5 -2
  25. package/dist/Clock.d.ts.map +1 -1
  26. package/dist/Clock.js +2 -1
  27. package/dist/Clock.js.map +1 -1
  28. package/dist/Codegen.d.ts +300 -0
  29. package/dist/Codegen.d.ts.map +1 -0
  30. package/dist/Codegen.js +526 -0
  31. package/dist/Codegen.js.map +1 -0
  32. package/dist/Config.d.ts +31 -2
  33. package/dist/Config.d.ts.map +1 -1
  34. package/dist/Config.js +12 -1
  35. package/dist/Config.js.map +1 -1
  36. package/dist/ConfigProvider.d.ts +11 -1
  37. package/dist/ConfigProvider.d.ts.map +1 -1
  38. package/dist/ConfigProvider.js +17 -6
  39. package/dist/ConfigProvider.js.map +1 -1
  40. package/dist/Effect.d.ts +1008 -127
  41. package/dist/Effect.d.ts.map +1 -1
  42. package/dist/Effect.js +410 -49
  43. package/dist/Effect.js.map +1 -1
  44. package/dist/Equal.d.ts +4 -4
  45. package/dist/Equal.d.ts.map +1 -1
  46. package/dist/Equal.js +78 -65
  47. package/dist/Equal.js.map +1 -1
  48. package/dist/Equivalence.d.ts +11 -9
  49. package/dist/Equivalence.d.ts.map +1 -1
  50. package/dist/Equivalence.js +15 -12
  51. package/dist/Equivalence.js.map +1 -1
  52. package/dist/Fiber.d.ts +58 -8
  53. package/dist/Fiber.d.ts.map +1 -1
  54. package/dist/Fiber.js +28 -4
  55. package/dist/Fiber.js.map +1 -1
  56. package/dist/FiberHandle.d.ts +81 -10
  57. package/dist/FiberHandle.d.ts.map +1 -1
  58. package/dist/FiberHandle.js +40 -8
  59. package/dist/FiberHandle.js.map +1 -1
  60. package/dist/FiberMap.d.ts +80 -10
  61. package/dist/FiberMap.d.ts.map +1 -1
  62. package/dist/FiberMap.js +37 -6
  63. package/dist/FiberMap.js.map +1 -1
  64. package/dist/FiberSet.d.ts +93 -8
  65. package/dist/FiberSet.d.ts.map +1 -1
  66. package/dist/FiberSet.js +46 -4
  67. package/dist/FiberSet.js.map +1 -1
  68. package/dist/Formatter.d.ts +2 -0
  69. package/dist/Formatter.d.ts.map +1 -1
  70. package/dist/Formatter.js +2 -0
  71. package/dist/Formatter.js.map +1 -1
  72. package/dist/Hash.d.ts.map +1 -1
  73. package/dist/Hash.js +24 -17
  74. package/dist/Hash.js.map +1 -1
  75. package/dist/LayerMap.d.ts +12 -3
  76. package/dist/LayerMap.d.ts.map +1 -1
  77. package/dist/LayerMap.js +12 -2
  78. package/dist/LayerMap.js.map +1 -1
  79. package/dist/LayerRef.d.ts +3 -3
  80. package/dist/LayerRef.d.ts.map +1 -1
  81. package/dist/LayerRef.js +3 -3
  82. package/dist/LayerRef.js.map +1 -1
  83. package/dist/Logger.d.ts +37 -13
  84. package/dist/Logger.d.ts.map +1 -1
  85. package/dist/Logger.js +39 -10
  86. package/dist/Logger.js.map +1 -1
  87. package/dist/Match.d.ts +35 -23
  88. package/dist/Match.d.ts.map +1 -1
  89. package/dist/Match.js +16 -0
  90. package/dist/Match.js.map +1 -1
  91. package/dist/Metric.js +1 -1
  92. package/dist/Metric.js.map +1 -1
  93. package/dist/Option.d.ts +4 -1
  94. package/dist/Option.d.ts.map +1 -1
  95. package/dist/Option.js +6 -2
  96. package/dist/Option.js.map +1 -1
  97. package/dist/Order.d.ts +7 -5
  98. package/dist/Order.d.ts.map +1 -1
  99. package/dist/Order.js +8 -3
  100. package/dist/Order.js.map +1 -1
  101. package/dist/Pool.d.ts +4 -3
  102. package/dist/Pool.d.ts.map +1 -1
  103. package/dist/Pool.js +21 -18
  104. package/dist/Pool.js.map +1 -1
  105. package/dist/Predicate.d.ts +4 -1
  106. package/dist/Predicate.d.ts.map +1 -1
  107. package/dist/Predicate.js +5 -1
  108. package/dist/Predicate.js.map +1 -1
  109. package/dist/Queue.d.ts +69 -22
  110. package/dist/Queue.d.ts.map +1 -1
  111. package/dist/Queue.js +40 -18
  112. package/dist/Queue.js.map +1 -1
  113. package/dist/Rational.d.ts +179 -0
  114. package/dist/Rational.d.ts.map +1 -1
  115. package/dist/Rational.js +63 -0
  116. package/dist/Rational.js.map +1 -1
  117. package/dist/Request.d.ts +20 -0
  118. package/dist/Request.d.ts.map +1 -1
  119. package/dist/Request.js +20 -0
  120. package/dist/Request.js.map +1 -1
  121. package/dist/Result.d.ts +3 -1
  122. package/dist/Result.d.ts.map +1 -1
  123. package/dist/Result.js +5 -2
  124. package/dist/Result.js.map +1 -1
  125. package/dist/Schema.d.ts +90 -19
  126. package/dist/Schema.d.ts.map +1 -1
  127. package/dist/Schema.js +92 -414
  128. package/dist/Schema.js.map +1 -1
  129. package/dist/SchemaAST.d.ts.map +1 -1
  130. package/dist/SchemaAST.js +11 -7
  131. package/dist/SchemaAST.js.map +1 -1
  132. package/dist/SchemaGetter.d.ts +5 -6
  133. package/dist/SchemaGetter.d.ts.map +1 -1
  134. package/dist/SchemaGetter.js +14 -10
  135. package/dist/SchemaGetter.js.map +1 -1
  136. package/dist/SchemaRepresentation.d.ts +19 -64
  137. package/dist/SchemaRepresentation.d.ts.map +1 -1
  138. package/dist/SchemaRepresentation.js +1 -28
  139. package/dist/SchemaRepresentation.js.map +1 -1
  140. package/dist/SchemaTransformation.d.ts +11 -10
  141. package/dist/SchemaTransformation.d.ts.map +1 -1
  142. package/dist/SchemaTransformation.js +12 -11
  143. package/dist/SchemaTransformation.js.map +1 -1
  144. package/dist/Scope.d.ts +12 -6
  145. package/dist/Scope.d.ts.map +1 -1
  146. package/dist/Scope.js +12 -6
  147. package/dist/Scope.js.map +1 -1
  148. package/dist/ScopedCache.d.ts.map +1 -1
  149. package/dist/ScopedCache.js +8 -5
  150. package/dist/ScopedCache.js.map +1 -1
  151. package/dist/Semaphore.d.ts.map +1 -1
  152. package/dist/Semaphore.js +18 -4
  153. package/dist/Semaphore.js.map +1 -1
  154. package/dist/Stream.d.ts +128 -5
  155. package/dist/Stream.d.ts.map +1 -1
  156. package/dist/Stream.js +179 -43
  157. package/dist/Stream.js.map +1 -1
  158. package/dist/String.d.ts +57 -3
  159. package/dist/String.d.ts.map +1 -1
  160. package/dist/String.js +63 -5
  161. package/dist/String.js.map +1 -1
  162. package/dist/Struct.d.ts +135 -1
  163. package/dist/Struct.d.ts.map +1 -1
  164. package/dist/Struct.js +64 -5
  165. package/dist/Struct.js.map +1 -1
  166. package/dist/TextDiff.d.ts +105 -0
  167. package/dist/TextDiff.d.ts.map +1 -1
  168. package/dist/TextDiff.js +137 -24
  169. package/dist/TextDiff.js.map +1 -1
  170. package/dist/Tracer.d.ts +10 -0
  171. package/dist/Tracer.d.ts.map +1 -1
  172. package/dist/Tracer.js +2 -0
  173. package/dist/Tracer.js.map +1 -1
  174. package/dist/TxPriorityQueue.js +2 -2
  175. package/dist/TxPriorityQueue.js.map +1 -1
  176. package/dist/ai/LanguageModel.d.ts.map +1 -1
  177. package/dist/ai/LanguageModel.js +1 -1
  178. package/dist/ai/LanguageModel.js.map +1 -1
  179. package/dist/ai/McpServer.d.ts +199 -4
  180. package/dist/ai/McpServer.d.ts.map +1 -1
  181. package/dist/ai/McpServer.js +143 -18
  182. package/dist/ai/McpServer.js.map +1 -1
  183. package/dist/ai/Prompt.d.ts +3 -1
  184. package/dist/ai/Prompt.d.ts.map +1 -1
  185. package/dist/ai/Prompt.js +17 -3
  186. package/dist/ai/Prompt.js.map +1 -1
  187. package/dist/ai/Skill.d.ts +172 -0
  188. package/dist/ai/Skill.d.ts.map +1 -0
  189. package/dist/ai/Skill.js +209 -0
  190. package/dist/ai/Skill.js.map +1 -0
  191. package/dist/ai/Tool.d.ts +3 -2
  192. package/dist/ai/Tool.d.ts.map +1 -1
  193. package/dist/ai/Tool.js +3 -2
  194. package/dist/ai/Tool.js.map +1 -1
  195. package/dist/ai/Toolkit.d.ts.map +1 -1
  196. package/dist/ai/Toolkit.js +5 -1
  197. package/dist/ai/Toolkit.js.map +1 -1
  198. package/dist/ai/index.d.ts +5 -0
  199. package/dist/ai/index.d.ts.map +1 -1
  200. package/dist/ai/index.js +5 -0
  201. package/dist/ai/index.js.map +1 -1
  202. package/dist/chat/Chat.d.ts +90 -0
  203. package/dist/chat/Chat.d.ts.map +1 -0
  204. package/dist/chat/Chat.js +127 -0
  205. package/dist/chat/Chat.js.map +1 -0
  206. package/dist/chat/ChatAdapter.d.ts +386 -0
  207. package/dist/chat/ChatAdapter.d.ts.map +1 -0
  208. package/dist/chat/ChatAdapter.js +110 -0
  209. package/dist/chat/ChatAdapter.js.map +1 -0
  210. package/dist/chat/ChatError.d.ts +500 -0
  211. package/dist/chat/ChatError.d.ts.map +1 -0
  212. package/dist/chat/ChatError.js +521 -0
  213. package/dist/chat/ChatError.js.map +1 -0
  214. package/dist/chat/ChatEvent.d.ts +321 -0
  215. package/dist/chat/ChatEvent.d.ts.map +1 -0
  216. package/dist/chat/ChatEvent.js +163 -0
  217. package/dist/chat/ChatEvent.js.map +1 -0
  218. package/dist/chat/ChatHandler.d.ts +81 -0
  219. package/dist/chat/ChatHandler.d.ts.map +1 -0
  220. package/dist/chat/ChatHandler.js +85 -0
  221. package/dist/chat/ChatHandler.js.map +1 -0
  222. package/dist/chat/ChatInteraction.d.ts +1519 -0
  223. package/dist/chat/ChatInteraction.d.ts.map +1 -0
  224. package/dist/chat/ChatInteraction.js +1052 -0
  225. package/dist/chat/ChatInteraction.js.map +1 -0
  226. package/dist/chat/ChatMarkdown.d.ts +280 -0
  227. package/dist/chat/ChatMarkdown.d.ts.map +1 -0
  228. package/dist/chat/ChatMarkdown.js +1172 -0
  229. package/dist/chat/ChatMarkdown.js.map +1 -0
  230. package/dist/chat/ChatMessage.d.ts +224 -0
  231. package/dist/chat/ChatMessage.d.ts.map +1 -0
  232. package/dist/chat/ChatMessage.js +172 -0
  233. package/dist/chat/ChatMessage.js.map +1 -0
  234. package/dist/chat/ChatTest.d.ts +407 -0
  235. package/dist/chat/ChatTest.d.ts.map +1 -0
  236. package/dist/chat/ChatTest.js +2145 -0
  237. package/dist/chat/ChatTest.js.map +1 -0
  238. package/dist/chat/ChatThread.d.ts +92 -0
  239. package/dist/chat/ChatThread.d.ts.map +1 -0
  240. package/dist/chat/ChatThread.js +116 -0
  241. package/dist/chat/ChatThread.js.map +1 -0
  242. package/dist/chat/ChatUi.d.ts +362 -0
  243. package/dist/chat/ChatUi.d.ts.map +1 -0
  244. package/dist/chat/ChatUi.js +209 -0
  245. package/dist/chat/ChatUi.js.map +1 -0
  246. package/dist/chat/index.d.ts +60 -0
  247. package/dist/chat/index.d.ts.map +1 -0
  248. package/dist/chat/index.js +61 -0
  249. package/dist/chat/index.js.map +1 -0
  250. package/dist/chat/internal/retries.d.ts +2 -0
  251. package/dist/chat/internal/retries.d.ts.map +1 -0
  252. package/dist/chat/internal/retries.js +7 -0
  253. package/dist/chat/internal/retries.js.map +1 -0
  254. package/dist/cli/CliOutput.d.ts.map +1 -1
  255. package/dist/cli/CliOutput.js +6 -7
  256. package/dist/cli/CliOutput.js.map +1 -1
  257. package/dist/cli/Command.d.ts +20 -2
  258. package/dist/cli/Command.d.ts.map +1 -1
  259. package/dist/cli/Command.js +4 -0
  260. package/dist/cli/Command.js.map +1 -1
  261. package/dist/cli/Prompt.d.ts +5 -6
  262. package/dist/cli/Prompt.d.ts.map +1 -1
  263. package/dist/cli/Prompt.js +9 -4
  264. package/dist/cli/Prompt.js.map +1 -1
  265. package/dist/cli/internal/command.d.ts +1 -1
  266. package/dist/cli/internal/command.d.ts.map +1 -1
  267. package/dist/cli/internal/config.d.ts +1 -1
  268. package/dist/cli/internal/config.d.ts.map +1 -1
  269. package/dist/cli/internal/config.js +3 -3
  270. package/dist/cli/internal/config.js.map +1 -1
  271. package/dist/cluster/ClusterCron.d.ts +21 -1
  272. package/dist/cluster/ClusterCron.d.ts.map +1 -1
  273. package/dist/cluster/ClusterCron.js +24 -6
  274. package/dist/cluster/ClusterCron.js.map +1 -1
  275. package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  276. package/dist/cluster/ClusterWorkflowEngine.js +183 -103
  277. package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
  278. package/dist/cluster/MessageStorage.d.ts +56 -0
  279. package/dist/cluster/MessageStorage.d.ts.map +1 -1
  280. package/dist/cluster/MessageStorage.js +18 -2
  281. package/dist/cluster/MessageStorage.js.map +1 -1
  282. package/dist/cluster/Sharding.d.ts.map +1 -1
  283. package/dist/cluster/Sharding.js +15 -3
  284. package/dist/cluster/Sharding.js.map +1 -1
  285. package/dist/cluster/ShardingConfig.d.ts +6 -0
  286. package/dist/cluster/ShardingConfig.d.ts.map +1 -1
  287. package/dist/cluster/ShardingConfig.js.map +1 -1
  288. package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
  289. package/dist/cluster/SqlMessageStorage.js +58 -37
  290. package/dist/cluster/SqlMessageStorage.js.map +1 -1
  291. package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
  292. package/dist/cluster/SqlRunnerStorage.js +18 -8
  293. package/dist/cluster/SqlRunnerStorage.js.map +1 -1
  294. package/dist/cluster/internal/entityActivation.js +2 -0
  295. package/dist/cluster/internal/entityActivation.js.map +1 -1
  296. package/dist/cluster/internal/entityManager.js +20 -13
  297. package/dist/cluster/internal/entityManager.js.map +1 -1
  298. package/dist/cluster/internal/entityReaper.js +1 -1
  299. package/dist/cluster/internal/entityReaper.js.map +1 -1
  300. package/dist/crypto/Kdf.d.ts +2 -1
  301. package/dist/crypto/Kdf.d.ts.map +1 -1
  302. package/dist/crypto/Kdf.js +2 -1
  303. package/dist/crypto/Kdf.js.map +1 -1
  304. package/dist/crypto/Password.d.ts +162 -0
  305. package/dist/crypto/Password.d.ts.map +1 -0
  306. package/dist/crypto/Password.js +217 -0
  307. package/dist/crypto/Password.js.map +1 -0
  308. package/dist/crypto/index.d.ts +5 -0
  309. package/dist/crypto/index.d.ts.map +1 -1
  310. package/dist/crypto/index.js +5 -0
  311. package/dist/crypto/index.js.map +1 -1
  312. package/dist/encoding/Base64.d.ts +63 -0
  313. package/dist/encoding/Base64.d.ts.map +1 -1
  314. package/dist/encoding/Base64.js +82 -1
  315. package/dist/encoding/Base64.js.map +1 -1
  316. package/dist/encoding/Base64Url.d.ts +1 -0
  317. package/dist/encoding/Base64Url.d.ts.map +1 -1
  318. package/dist/encoding/Base64Url.js +7 -1
  319. package/dist/encoding/Base64Url.js.map +1 -1
  320. package/dist/encoding/Csv.d.ts.map +1 -1
  321. package/dist/encoding/Csv.js +44 -16
  322. package/dist/encoding/Csv.js.map +1 -1
  323. package/dist/encoding/Hex.d.ts +5 -0
  324. package/dist/encoding/Hex.d.ts.map +1 -1
  325. package/dist/encoding/Hex.js +5 -0
  326. package/dist/encoding/Hex.js.map +1 -1
  327. package/dist/encoding/SchemaBinary.d.ts.map +1 -1
  328. package/dist/encoding/SchemaBinary.js +13 -124
  329. package/dist/encoding/SchemaBinary.js.map +1 -1
  330. package/dist/encoding/Sse.d.ts +1 -0
  331. package/dist/encoding/Sse.d.ts.map +1 -1
  332. package/dist/encoding/Sse.js +7 -5
  333. package/dist/encoding/Sse.js.map +1 -1
  334. package/dist/encoding/Xml.d.ts +153 -18
  335. package/dist/encoding/Xml.d.ts.map +1 -1
  336. package/dist/encoding/Xml.js +379 -57
  337. package/dist/encoding/Xml.js.map +1 -1
  338. package/dist/eventlog/EventJournal.d.ts.map +1 -1
  339. package/dist/eventlog/EventJournal.js +3 -8
  340. package/dist/eventlog/EventJournal.js.map +1 -1
  341. package/dist/eventlog/SqlEventLogServerEncrypted.js +6 -8
  342. package/dist/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  343. package/dist/http/FetchHttpClient.d.ts +2 -1
  344. package/dist/http/FetchHttpClient.d.ts.map +1 -1
  345. package/dist/http/FetchHttpClient.js +14 -10
  346. package/dist/http/FetchHttpClient.js.map +1 -1
  347. package/dist/http/FindMyWay/internal/router.js +163 -116
  348. package/dist/http/FindMyWay/internal/router.js.map +1 -1
  349. package/dist/http/FindMyWay.d.ts +99 -0
  350. package/dist/http/FindMyWay.d.ts.map +1 -1
  351. package/dist/http/FindMyWay.js +39 -0
  352. package/dist/http/FindMyWay.js.map +1 -1
  353. package/dist/http/Headers.d.ts +201 -3
  354. package/dist/http/Headers.d.ts.map +1 -1
  355. package/dist/http/Headers.js +205 -3
  356. package/dist/http/Headers.js.map +1 -1
  357. package/dist/http/HttpClient.d.ts.map +1 -1
  358. package/dist/http/HttpClient.js +12 -8
  359. package/dist/http/HttpClient.js.map +1 -1
  360. package/dist/http/HttpClientError.d.ts +1 -0
  361. package/dist/http/HttpClientError.d.ts.map +1 -1
  362. package/dist/http/HttpClientError.js +32 -9
  363. package/dist/http/HttpClientError.js.map +1 -1
  364. package/dist/http/HttpClientRequest.d.ts +46 -0
  365. package/dist/http/HttpClientRequest.d.ts.map +1 -1
  366. package/dist/http/HttpClientRequest.js +15 -0
  367. package/dist/http/HttpClientRequest.js.map +1 -1
  368. package/dist/http/HttpClientResponse.d.ts +132 -0
  369. package/dist/http/HttpClientResponse.d.ts.map +1 -1
  370. package/dist/http/HttpClientResponse.js +83 -0
  371. package/dist/http/HttpClientResponse.js.map +1 -1
  372. package/dist/http/HttpMiddleware.d.ts.map +1 -1
  373. package/dist/http/HttpMiddleware.js +16 -9
  374. package/dist/http/HttpMiddleware.js.map +1 -1
  375. package/dist/http/HttpRouter.d.ts +49 -1
  376. package/dist/http/HttpRouter.d.ts.map +1 -1
  377. package/dist/http/HttpRouter.js +70 -20
  378. package/dist/http/HttpRouter.js.map +1 -1
  379. package/dist/http/HttpServerResponse.d.ts +118 -0
  380. package/dist/http/HttpServerResponse.d.ts.map +1 -1
  381. package/dist/http/HttpServerResponse.js +67 -58
  382. package/dist/http/HttpServerResponse.js.map +1 -1
  383. package/dist/http/Mime.d.ts.map +1 -1
  384. package/dist/http/Mime.js +3 -2
  385. package/dist/http/Mime.js.map +1 -1
  386. package/dist/http/Multipart.d.ts.map +1 -1
  387. package/dist/http/Multipart.js +0 -5
  388. package/dist/http/Multipart.js.map +1 -1
  389. package/dist/http/MultipartParser/internal/contentType.d.ts +6 -0
  390. package/dist/http/MultipartParser/internal/contentType.d.ts.map +1 -1
  391. package/dist/http/MultipartParser/internal/contentType.js +1 -1
  392. package/dist/http/MultipartParser/internal/contentType.js.map +1 -1
  393. package/dist/http/internal/clientPath.d.ts +2 -0
  394. package/dist/http/internal/clientPath.d.ts.map +1 -0
  395. package/dist/http/internal/clientPath.js +24 -0
  396. package/dist/http/internal/clientPath.js.map +1 -0
  397. package/dist/http/internal/compression.d.ts.map +1 -1
  398. package/dist/http/internal/compression.js +2 -2
  399. package/dist/http/internal/compression.js.map +1 -1
  400. package/dist/http/internal/mediaType.d.ts.map +1 -0
  401. package/dist/{http-api → http}/internal/mediaType.js +4 -0
  402. package/dist/{http-api → http}/internal/mediaType.js.map +1 -1
  403. package/dist/http/internal/redactedPath.d.ts +2 -0
  404. package/dist/http/internal/redactedPath.d.ts.map +1 -0
  405. package/dist/http/internal/redactedPath.js +140 -0
  406. package/dist/http/internal/redactedPath.js.map +1 -0
  407. package/dist/http/internal/requestState.js +1 -0
  408. package/dist/http/internal/requestState.js.map +1 -1
  409. package/dist/http/internal/tracing.js +5 -3
  410. package/dist/http/internal/tracing.js.map +1 -1
  411. package/dist/http-api/HttpApi.d.ts +13 -2
  412. package/dist/http-api/HttpApi.d.ts.map +1 -1
  413. package/dist/http-api/HttpApi.js +43 -6
  414. package/dist/http-api/HttpApi.js.map +1 -1
  415. package/dist/http-api/HttpApiBuilder.d.ts.map +1 -1
  416. package/dist/http-api/HttpApiBuilder.js +7 -3
  417. package/dist/http-api/HttpApiBuilder.js.map +1 -1
  418. package/dist/http-api/HttpApiClient.d.ts.map +1 -1
  419. package/dist/http-api/HttpApiClient.js +29 -12
  420. package/dist/http-api/HttpApiClient.js.map +1 -1
  421. package/dist/http-api/HttpApiEndpoint.d.ts.map +1 -1
  422. package/dist/http-api/HttpApiEndpoint.js +1 -1
  423. package/dist/http-api/HttpApiEndpoint.js.map +1 -1
  424. package/dist/http-api/HttpApiScalar.d.ts +4 -0
  425. package/dist/http-api/HttpApiScalar.d.ts.map +1 -1
  426. package/dist/http-api/HttpApiScalar.js +10 -1
  427. package/dist/http-api/HttpApiScalar.js.map +1 -1
  428. package/dist/http-api/HttpApiSchema.d.ts.map +1 -1
  429. package/dist/http-api/HttpApiSchema.js +1 -1
  430. package/dist/http-api/HttpApiSchema.js.map +1 -1
  431. package/dist/http-api/OpenApi.d.ts +2 -0
  432. package/dist/http-api/OpenApi.d.ts.map +1 -1
  433. package/dist/http-api/internal/httpApiScalar.js +5 -2
  434. package/dist/http-api/internal/httpApiScalar.js.map +1 -1
  435. package/dist/http-api/internal/redactedKeys.d.ts +2 -0
  436. package/dist/http-api/internal/redactedKeys.d.ts.map +1 -0
  437. package/dist/http-api/internal/redactedKeys.js +37 -0
  438. package/dist/http-api/internal/redactedKeys.js.map +1 -0
  439. package/dist/index.d.ts +5 -0
  440. package/dist/index.d.ts.map +1 -1
  441. package/dist/index.js +5 -0
  442. package/dist/index.js.map +1 -1
  443. package/dist/internal/arbitrary/model.js +0 -5
  444. package/dist/internal/arbitrary/model.js.map +1 -1
  445. package/dist/internal/arbitrary/regexp.js +2 -1
  446. package/dist/internal/arbitrary/regexp.js.map +1 -1
  447. package/dist/internal/arbitrary/runner.d.ts.map +1 -1
  448. package/dist/internal/arbitrary/runner.js +21 -16
  449. package/dist/internal/arbitrary/runner.js.map +1 -1
  450. package/dist/internal/arbitrary/schema.js +140 -23
  451. package/dist/internal/arbitrary/schema.js.map +1 -1
  452. package/dist/internal/base64.js +34 -2
  453. package/dist/internal/base64.js.map +1 -1
  454. package/dist/internal/codegen.d.ts +2 -0
  455. package/dist/internal/codegen.d.ts.map +1 -0
  456. package/dist/internal/codegen.js +59 -0
  457. package/dist/internal/codegen.js.map +1 -0
  458. package/dist/internal/core.js +3 -3
  459. package/dist/internal/core.js.map +1 -1
  460. package/dist/internal/dateTime.js +61 -29
  461. package/dist/internal/dateTime.js.map +1 -1
  462. package/dist/internal/effect.js +30 -8
  463. package/dist/internal/effect.js.map +1 -1
  464. package/dist/internal/equal.js +14 -13
  465. package/dist/internal/equal.js.map +1 -1
  466. package/dist/internal/hash.js +4 -1
  467. package/dist/internal/hash.js.map +1 -1
  468. package/dist/internal/hashMap.js +7 -7
  469. package/dist/internal/hashMap.js.map +1 -1
  470. package/dist/internal/matcher.js +19 -18
  471. package/dist/internal/matcher.js.map +1 -1
  472. package/dist/internal/record.js +18 -4
  473. package/dist/internal/record.js.map +1 -1
  474. package/dist/internal/result.js +1 -1
  475. package/dist/internal/result.js.map +1 -1
  476. package/dist/internal/schema/codeExpression.d.ts +4 -0
  477. package/dist/internal/schema/codeExpression.d.ts.map +1 -0
  478. package/dist/internal/schema/codeExpression.js +179 -0
  479. package/dist/internal/schema/codeExpression.js.map +1 -0
  480. package/dist/internal/schema/codeImports.d.ts +8 -0
  481. package/dist/internal/schema/codeImports.d.ts.map +1 -0
  482. package/dist/internal/schema/codeImports.js +135 -0
  483. package/dist/internal/schema/codeImports.js.map +1 -0
  484. package/dist/internal/schema/codeTokens.d.ts +8 -0
  485. package/dist/internal/schema/codeTokens.d.ts.map +1 -0
  486. package/dist/internal/schema/codeTokens.js +17 -0
  487. package/dist/internal/schema/codeTokens.js.map +1 -0
  488. package/dist/internal/schema/passthrough.d.ts +2 -0
  489. package/dist/internal/schema/passthrough.d.ts.map +1 -0
  490. package/dist/internal/schema/passthrough.js +8 -0
  491. package/dist/internal/schema/passthrough.js.map +1 -0
  492. package/dist/internal/schema/schemaCodegen.d.ts +2 -0
  493. package/dist/internal/schema/schemaCodegen.d.ts.map +1 -0
  494. package/dist/internal/schema/schemaCodegen.js +378 -0
  495. package/dist/internal/schema/schemaCodegen.js.map +1 -0
  496. package/dist/internal/schema/schemaCodegenBuiltIns.d.ts +2 -0
  497. package/dist/internal/schema/schemaCodegenBuiltIns.d.ts.map +1 -0
  498. package/dist/internal/schema/schemaCodegenBuiltIns.js +425 -0
  499. package/dist/internal/schema/schemaCodegenBuiltIns.js.map +1 -0
  500. package/dist/internal/schema/toEquivalence.js +3 -4
  501. package/dist/internal/schema/toEquivalence.js.map +1 -1
  502. package/dist/internal/schema/toJsonSchemaDocument.js +11 -4
  503. package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
  504. package/dist/internal/trie.js +51 -64
  505. package/dist/internal/trie.js.map +1 -1
  506. package/dist/internal/utf8.d.ts +2 -0
  507. package/dist/internal/utf8.d.ts.map +1 -0
  508. package/dist/internal/utf8.js +151 -0
  509. package/dist/internal/utf8.js.map +1 -0
  510. package/dist/internal/version.js +1 -1
  511. package/dist/jose/JoseError.d.ts +51 -1
  512. package/dist/jose/JoseError.d.ts.map +1 -1
  513. package/dist/jose/JoseError.js +25 -18
  514. package/dist/jose/JoseError.js.map +1 -1
  515. package/dist/jose/Jwks.d.ts +13 -0
  516. package/dist/jose/Jwks.d.ts.map +1 -1
  517. package/dist/jose/Jwks.js +10 -2
  518. package/dist/jose/Jwks.js.map +1 -1
  519. package/dist/jose/internal/compact.js +10 -5
  520. package/dist/jose/internal/compact.js.map +1 -1
  521. package/dist/observability/Otlp.d.ts +19 -0
  522. package/dist/observability/Otlp.d.ts.map +1 -1
  523. package/dist/observability/Otlp.js +10 -0
  524. package/dist/observability/Otlp.js.map +1 -1
  525. package/dist/observability/OtlpExporter.d.ts +49 -13
  526. package/dist/observability/OtlpExporter.d.ts.map +1 -1
  527. package/dist/observability/OtlpExporter.js +133 -50
  528. package/dist/observability/OtlpExporter.js.map +1 -1
  529. package/dist/observability/OtlpLogger.d.ts +14 -0
  530. package/dist/observability/OtlpLogger.d.ts.map +1 -1
  531. package/dist/observability/OtlpLogger.js +15 -5
  532. package/dist/observability/OtlpLogger.js.map +1 -1
  533. package/dist/observability/OtlpMetrics.d.ts.map +1 -1
  534. package/dist/observability/OtlpMetrics.js +2 -0
  535. package/dist/observability/OtlpMetrics.js.map +1 -1
  536. package/dist/observability/OtlpTracer.d.ts +14 -0
  537. package/dist/observability/OtlpTracer.d.ts.map +1 -1
  538. package/dist/observability/OtlpTracer.js +10 -2
  539. package/dist/observability/OtlpTracer.js.map +1 -1
  540. package/dist/observability/internal/otlpProtobuf.d.ts +4 -2
  541. package/dist/observability/internal/otlpProtobuf.d.ts.map +1 -1
  542. package/dist/observability/internal/otlpProtobuf.js +238 -156
  543. package/dist/observability/internal/otlpProtobuf.js.map +1 -1
  544. package/dist/persistence/KeyValueStore.d.ts.map +1 -1
  545. package/dist/persistence/KeyValueStore.js +6 -4
  546. package/dist/persistence/KeyValueStore.js.map +1 -1
  547. package/dist/persistence/PersistedQueue.d.ts.map +1 -1
  548. package/dist/persistence/PersistedQueue.js +20 -3
  549. package/dist/persistence/PersistedQueue.js.map +1 -1
  550. package/dist/protobuf/ProtobufDescriptor.d.ts +377 -0
  551. package/dist/protobuf/ProtobufDescriptor.d.ts.map +1 -0
  552. package/dist/protobuf/ProtobufDescriptor.js +135 -0
  553. package/dist/protobuf/ProtobufDescriptor.js.map +1 -0
  554. package/dist/protobuf/ProtobufDescriptorProto.d.ts +2083 -0
  555. package/dist/protobuf/ProtobufDescriptorProto.d.ts.map +1 -0
  556. package/dist/protobuf/ProtobufDescriptorProto.js +2674 -0
  557. package/dist/protobuf/ProtobufDescriptorProto.js.map +1 -0
  558. package/dist/protobuf/ProtobufMessage.d.ts +183 -0
  559. package/dist/protobuf/ProtobufMessage.d.ts.map +1 -0
  560. package/dist/protobuf/ProtobufMessage.js +232 -0
  561. package/dist/protobuf/ProtobufMessage.js.map +1 -0
  562. package/dist/protobuf/ProtobufReader.d.ts +350 -0
  563. package/dist/protobuf/ProtobufReader.d.ts.map +1 -0
  564. package/dist/protobuf/ProtobufReader.js +698 -0
  565. package/dist/protobuf/ProtobufReader.js.map +1 -0
  566. package/dist/protobuf/ProtobufWriter.d.ts +224 -0
  567. package/dist/protobuf/ProtobufWriter.d.ts.map +1 -0
  568. package/dist/protobuf/ProtobufWriter.js +483 -0
  569. package/dist/protobuf/ProtobufWriter.js.map +1 -0
  570. package/dist/protobuf/index.d.ts +30 -0
  571. package/dist/protobuf/index.d.ts.map +1 -0
  572. package/dist/protobuf/index.js +31 -0
  573. package/dist/protobuf/index.js.map +1 -0
  574. package/dist/protobuf/internal/binary.d.ts +2 -0
  575. package/dist/protobuf/internal/binary.d.ts.map +1 -0
  576. package/dist/protobuf/internal/binary.js +966 -0
  577. package/dist/protobuf/internal/binary.js.map +1 -0
  578. package/dist/protobuf/internal/resolve.d.ts +2 -0
  579. package/dist/protobuf/internal/resolve.d.ts.map +1 -0
  580. package/dist/protobuf/internal/resolve.js +463 -0
  581. package/dist/protobuf/internal/resolve.js.map +1 -0
  582. package/dist/protobuf/internal/wireType.d.ts +2 -0
  583. package/dist/protobuf/internal/wireType.d.ts.map +1 -0
  584. package/dist/protobuf/internal/wireType.js +10 -0
  585. package/dist/protobuf/internal/wireType.js.map +1 -0
  586. package/dist/reactivity/AsyncResult.d.ts +3 -0
  587. package/dist/reactivity/AsyncResult.d.ts.map +1 -1
  588. package/dist/reactivity/AsyncResult.js +4 -1
  589. package/dist/reactivity/AsyncResult.js.map +1 -1
  590. package/dist/reactivity/Atom.d.ts +10 -4
  591. package/dist/reactivity/Atom.d.ts.map +1 -1
  592. package/dist/reactivity/Atom.js +48 -22
  593. package/dist/reactivity/Atom.js.map +1 -1
  594. package/dist/reactivity/AtomHttpApi.d.ts +5 -0
  595. package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
  596. package/dist/reactivity/AtomHttpApi.js +5 -1
  597. package/dist/reactivity/AtomHttpApi.js.map +1 -1
  598. package/dist/reactivity/AtomRegistry.js +13 -0
  599. package/dist/reactivity/AtomRegistry.js.map +1 -1
  600. package/dist/reactivity/AtomRpc.d.ts +5 -0
  601. package/dist/reactivity/AtomRpc.d.ts.map +1 -1
  602. package/dist/reactivity/AtomRpc.js +6 -1
  603. package/dist/reactivity/AtomRpc.js.map +1 -1
  604. package/dist/rpc/Rpc.d.ts +25 -0
  605. package/dist/rpc/Rpc.d.ts.map +1 -1
  606. package/dist/rpc/Rpc.js +18 -0
  607. package/dist/rpc/Rpc.js.map +1 -1
  608. package/dist/rpc/RpcClient.d.ts.map +1 -1
  609. package/dist/rpc/RpcClient.js +70 -22
  610. package/dist/rpc/RpcClient.js.map +1 -1
  611. package/dist/rpc/RpcGroup.d.ts +6 -1
  612. package/dist/rpc/RpcGroup.d.ts.map +1 -1
  613. package/dist/rpc/RpcGroup.js +4 -0
  614. package/dist/rpc/RpcGroup.js.map +1 -1
  615. package/dist/rpc/RpcMiddleware.d.ts +9 -0
  616. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  617. package/dist/rpc/RpcMiddleware.js.map +1 -1
  618. package/dist/rpc/RpcSerialization.d.ts +7 -1
  619. package/dist/rpc/RpcSerialization.d.ts.map +1 -1
  620. package/dist/rpc/RpcSerialization.js +22 -5
  621. package/dist/rpc/RpcSerialization.js.map +1 -1
  622. package/dist/rpc/RpcServer.d.ts.map +1 -1
  623. package/dist/rpc/RpcServer.js +33 -18
  624. package/dist/rpc/RpcServer.js.map +1 -1
  625. package/dist/schema/SchemaCompiler/runtime.js +2 -1
  626. package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
  627. package/dist/schema/VariantSchema.d.ts +10 -2
  628. package/dist/schema/VariantSchema.d.ts.map +1 -1
  629. package/dist/schema/VariantSchema.js +7 -1
  630. package/dist/schema/VariantSchema.js.map +1 -1
  631. package/dist/socket/Socket.d.ts +24 -10
  632. package/dist/socket/Socket.d.ts.map +1 -1
  633. package/dist/socket/Socket.js +52 -17
  634. package/dist/socket/Socket.js.map +1 -1
  635. package/dist/sql/Migrator.d.ts +3 -0
  636. package/dist/sql/Migrator.d.ts.map +1 -1
  637. package/dist/sql/Migrator.js +12 -6
  638. package/dist/sql/Migrator.js.map +1 -1
  639. package/dist/sql/SqlClient.d.ts.map +1 -1
  640. package/dist/sql/SqlClient.js +5 -1
  641. package/dist/sql/SqlClient.js.map +1 -1
  642. package/dist/sql/SqlModel.d.ts.map +1 -1
  643. package/dist/sql/SqlModel.js +1 -0
  644. package/dist/sql/SqlModel.js.map +1 -1
  645. package/dist/testing/TestConsole.d.ts +96 -0
  646. package/dist/testing/TestConsole.d.ts.map +1 -1
  647. package/dist/testing/TestConsole.js +78 -6
  648. package/dist/testing/TestConsole.js.map +1 -1
  649. package/dist/testing/TestSchema.d.ts +5 -1
  650. package/dist/testing/TestSchema.d.ts.map +1 -1
  651. package/dist/testing/TestSchema.js +7 -2
  652. package/dist/testing/TestSchema.js.map +1 -1
  653. package/dist/workers/SharedMemory.d.ts +115 -0
  654. package/dist/workers/SharedMemory.d.ts.map +1 -0
  655. package/dist/workers/SharedMemory.js +149 -0
  656. package/dist/workers/SharedMemory.js.map +1 -0
  657. package/dist/workers/Transferable.d.ts.map +1 -1
  658. package/dist/workers/Transferable.js +1 -4
  659. package/dist/workers/Transferable.js.map +1 -1
  660. package/dist/workers/index.d.ts +5 -0
  661. package/dist/workers/index.d.ts.map +1 -1
  662. package/dist/workers/index.js +5 -0
  663. package/dist/workers/index.js.map +1 -1
  664. package/dist/workflow/Activity.d.ts +18 -0
  665. package/dist/workflow/Activity.d.ts.map +1 -1
  666. package/dist/workflow/Activity.js +13 -4
  667. package/dist/workflow/Activity.js.map +1 -1
  668. package/dist/workflow/Workflow.d.ts +10 -9
  669. package/dist/workflow/Workflow.d.ts.map +1 -1
  670. package/dist/workflow/Workflow.js +33 -22
  671. package/dist/workflow/Workflow.js.map +1 -1
  672. package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
  673. package/dist/workflow/WorkflowEngine.js +28 -12
  674. package/dist/workflow/WorkflowEngine.js.map +1 -1
  675. package/dist/workflow/internal/retry.d.ts +2 -0
  676. package/dist/workflow/internal/retry.d.ts.map +1 -0
  677. package/dist/workflow/internal/retry.js +11 -0
  678. package/dist/workflow/internal/retry.js.map +1 -0
  679. package/dist/workflow/internal/scope.d.ts +2 -0
  680. package/dist/workflow/internal/scope.d.ts.map +1 -0
  681. package/dist/workflow/internal/scope.js +26 -0
  682. package/dist/workflow/internal/scope.js.map +1 -0
  683. package/package.json +8 -5
  684. package/src/Arbitrary.ts +60 -3
  685. package/src/BigInt.ts +247 -9
  686. package/src/Cache.ts +4 -2
  687. package/src/Cause.ts +3 -3
  688. package/src/Channel.ts +105 -8
  689. package/src/Chunk.ts +7 -3
  690. package/src/Clock.ts +5 -2
  691. package/src/Codegen.ts +746 -0
  692. package/src/Config.ts +35 -4
  693. package/src/ConfigProvider.ts +24 -7
  694. package/src/Effect.ts +1095 -157
  695. package/src/Equal.ts +85 -79
  696. package/src/Equivalence.ts +16 -13
  697. package/src/Fiber.ts +58 -8
  698. package/src/FiberHandle.ts +86 -12
  699. package/src/FiberMap.ts +83 -10
  700. package/src/FiberSet.ts +96 -8
  701. package/src/Formatter.ts +2 -0
  702. package/src/Hash.ts +30 -22
  703. package/src/LayerMap.ts +14 -4
  704. package/src/LayerRef.ts +8 -6
  705. package/src/Logger.ts +68 -25
  706. package/src/Match.ts +94 -50
  707. package/src/Metric.ts +1 -1
  708. package/src/Option.ts +9 -5
  709. package/src/Order.ts +10 -5
  710. package/src/Pool.ts +22 -17
  711. package/src/Predicate.ts +7 -3
  712. package/src/Queue.ts +84 -31
  713. package/src/Rational.ts +198 -0
  714. package/src/Request.ts +20 -0
  715. package/src/Result.ts +9 -6
  716. package/src/Schema.ts +145 -325
  717. package/src/SchemaAST.ts +15 -5
  718. package/src/SchemaGetter.ts +17 -10
  719. package/src/SchemaRepresentation.ts +19 -74
  720. package/src/SchemaTransformation.ts +12 -11
  721. package/src/Scope.ts +12 -6
  722. package/src/ScopedCache.ts +8 -5
  723. package/src/Semaphore.ts +18 -4
  724. package/src/Stream.ts +233 -53
  725. package/src/String.ts +84 -7
  726. package/src/Struct.ts +138 -5
  727. package/src/TextDiff.ts +186 -30
  728. package/src/Tracer.ts +10 -0
  729. package/src/TxPriorityQueue.ts +2 -2
  730. package/src/ai/LanguageModel.ts +2 -1
  731. package/src/ai/McpServer.ts +306 -26
  732. package/src/ai/Prompt.ts +20 -3
  733. package/src/ai/Skill.ts +236 -0
  734. package/src/ai/Tool.ts +3 -2
  735. package/src/ai/Toolkit.ts +3 -1
  736. package/src/ai/index.ts +6 -0
  737. package/src/chat/Chat.ts +164 -0
  738. package/src/chat/ChatAdapter.ts +444 -0
  739. package/src/chat/ChatError.ts +684 -0
  740. package/src/chat/ChatEvent.ts +221 -0
  741. package/src/chat/ChatHandler.ts +102 -0
  742. package/src/chat/ChatInteraction.ts +1979 -0
  743. package/src/chat/ChatMarkdown.ts +1406 -0
  744. package/src/chat/ChatMessage.ts +213 -0
  745. package/src/chat/ChatTest.ts +2606 -0
  746. package/src/chat/ChatThread.ts +132 -0
  747. package/src/chat/ChatUi.ts +320 -0
  748. package/src/chat/index.ts +72 -0
  749. package/src/chat/internal/retries.ts +7 -0
  750. package/src/cli/CliOutput.ts +4 -5
  751. package/src/cli/Command.ts +20 -2
  752. package/src/cli/Prompt.ts +15 -9
  753. package/src/cli/internal/config.ts +8 -8
  754. package/src/cluster/ClusterCron.ts +33 -10
  755. package/src/cluster/ClusterWorkflowEngine.ts +214 -119
  756. package/src/cluster/MessageStorage.ts +51 -2
  757. package/src/cluster/Sharding.ts +17 -3
  758. package/src/cluster/ShardingConfig.ts +3 -0
  759. package/src/cluster/SqlMessageStorage.ts +97 -54
  760. package/src/cluster/SqlRunnerStorage.ts +21 -8
  761. package/src/cluster/internal/entityActivation.ts +6 -0
  762. package/src/cluster/internal/entityManager.ts +27 -14
  763. package/src/cluster/internal/entityReaper.ts +1 -1
  764. package/src/crypto/Kdf.ts +2 -1
  765. package/src/crypto/Password.ts +258 -0
  766. package/src/crypto/index.ts +6 -0
  767. package/src/encoding/Base64.ts +84 -1
  768. package/src/encoding/Base64Url.ts +7 -1
  769. package/src/encoding/Csv.ts +47 -20
  770. package/src/encoding/Hex.ts +5 -0
  771. package/src/encoding/SchemaBinary.ts +13 -79
  772. package/src/encoding/Sse.ts +7 -5
  773. package/src/encoding/Xml.ts +485 -68
  774. package/src/eventlog/EventJournal.ts +3 -8
  775. package/src/eventlog/SqlEventLogServerEncrypted.ts +9 -9
  776. package/src/http/FetchHttpClient.ts +8 -5
  777. package/src/http/FindMyWay/internal/router.ts +181 -129
  778. package/src/http/FindMyWay.ts +106 -0
  779. package/src/http/Headers.ts +309 -3
  780. package/src/http/HttpClient.ts +21 -8
  781. package/src/http/HttpClientError.ts +42 -9
  782. package/src/http/HttpClientRequest.ts +51 -0
  783. package/src/http/HttpClientResponse.ts +156 -0
  784. package/src/http/HttpMiddleware.ts +23 -10
  785. package/src/http/HttpRouter.ts +84 -20
  786. package/src/http/HttpServerResponse.ts +159 -61
  787. package/src/http/Mime.ts +3 -2
  788. package/src/http/Multipart.ts +0 -5
  789. package/src/http/MultipartParser/internal/contentType.ts +1 -1
  790. package/src/http/internal/clientPath.ts +39 -0
  791. package/src/http/internal/compression.ts +2 -2
  792. package/src/{http-api → http}/internal/mediaType.ts +4 -0
  793. package/src/http/internal/redactedPath.ts +148 -0
  794. package/src/http/internal/requestState.ts +2 -0
  795. package/src/http/internal/tracing.ts +6 -3
  796. package/src/http-api/HttpApi.ts +50 -6
  797. package/src/http-api/HttpApiBuilder.ts +11 -3
  798. package/src/http-api/HttpApiClient.ts +40 -13
  799. package/src/http-api/HttpApiEndpoint.ts +1 -1
  800. package/src/http-api/HttpApiScalar.ts +9 -1
  801. package/src/http-api/HttpApiSchema.ts +1 -1
  802. package/src/http-api/OpenApi.ts +2 -0
  803. package/src/http-api/internal/httpApiScalar.ts +5 -1
  804. package/src/http-api/internal/redactedKeys.ts +40 -0
  805. package/src/index.ts +6 -0
  806. package/src/internal/arbitrary/model.ts +3 -9
  807. package/src/internal/arbitrary/regexp.ts +3 -1
  808. package/src/internal/arbitrary/runner.ts +28 -14
  809. package/src/internal/arbitrary/schema.ts +140 -35
  810. package/src/internal/base64.ts +57 -2
  811. package/src/internal/codegen.ts +53 -0
  812. package/src/internal/core.ts +3 -3
  813. package/src/internal/dateTime.ts +73 -37
  814. package/src/internal/effect.ts +56 -111
  815. package/src/internal/equal.ts +37 -17
  816. package/src/internal/hash.ts +5 -1
  817. package/src/internal/hashMap.ts +8 -7
  818. package/src/internal/matcher.ts +36 -114
  819. package/src/internal/record.ts +19 -4
  820. package/src/internal/result.ts +1 -1
  821. package/src/internal/schema/codeExpression.ts +179 -0
  822. package/src/internal/schema/codeImports.ts +142 -0
  823. package/src/internal/schema/codeTokens.ts +39 -0
  824. package/src/internal/schema/passthrough.ts +8 -0
  825. package/src/internal/schema/schemaCodegen.ts +544 -0
  826. package/src/internal/schema/schemaCodegenBuiltIns.ts +343 -0
  827. package/src/internal/schema/toEquivalence.ts +3 -5
  828. package/src/internal/schema/toJsonSchemaDocument.ts +13 -4
  829. package/src/internal/trie.ts +46 -60
  830. package/src/internal/utf8.ts +106 -0
  831. package/src/internal/version.ts +1 -1
  832. package/src/jose/JoseError.ts +34 -0
  833. package/src/jose/Jwks.ts +23 -4
  834. package/src/jose/internal/compact.ts +14 -5
  835. package/src/observability/Otlp.ts +29 -0
  836. package/src/observability/OtlpExporter.ts +209 -76
  837. package/src/observability/OtlpLogger.ts +29 -5
  838. package/src/observability/OtlpMetrics.ts +2 -0
  839. package/src/observability/OtlpTracer.ts +24 -3
  840. package/src/observability/internal/otlpProtobuf.ts +386 -457
  841. package/src/persistence/KeyValueStore.ts +17 -14
  842. package/src/persistence/PersistedQueue.ts +21 -4
  843. package/src/protobuf/ProtobufDescriptor.ts +503 -0
  844. package/src/protobuf/ProtobufDescriptorProto.ts +3611 -0
  845. package/src/protobuf/ProtobufMessage.ts +277 -0
  846. package/src/protobuf/ProtobufReader.ts +756 -0
  847. package/src/protobuf/ProtobufWriter.ts +530 -0
  848. package/src/protobuf/index.ts +36 -0
  849. package/src/protobuf/internal/binary.ts +1215 -0
  850. package/src/protobuf/internal/resolve.ts +533 -0
  851. package/src/protobuf/internal/wireType.ts +9 -0
  852. package/src/reactivity/AsyncResult.ts +6 -1
  853. package/src/reactivity/Atom.ts +67 -34
  854. package/src/reactivity/AtomHttpApi.ts +10 -1
  855. package/src/reactivity/AtomRegistry.ts +16 -0
  856. package/src/reactivity/AtomRpc.ts +11 -1
  857. package/src/rpc/Rpc.ts +31 -0
  858. package/src/rpc/RpcClient.ts +56 -22
  859. package/src/rpc/RpcGroup.ts +9 -1
  860. package/src/rpc/RpcMiddleware.ts +9 -0
  861. package/src/rpc/RpcSerialization.ts +26 -6
  862. package/src/rpc/RpcServer.ts +33 -20
  863. package/src/schema/SchemaCompiler/runtime.ts +2 -3
  864. package/src/schema/VariantSchema.ts +12 -4
  865. package/src/socket/Socket.ts +67 -20
  866. package/src/sql/Migrator.ts +10 -12
  867. package/src/sql/SqlClient.ts +14 -8
  868. package/src/sql/SqlModel.ts +4 -0
  869. package/src/testing/TestConsole.ts +119 -9
  870. package/src/testing/TestSchema.ts +8 -3
  871. package/src/workers/SharedMemory.ts +227 -0
  872. package/src/workers/Transferable.ts +1 -5
  873. package/src/workers/index.ts +6 -0
  874. package/src/workflow/Activity.ts +28 -4
  875. package/src/workflow/Workflow.ts +68 -44
  876. package/src/workflow/WorkflowEngine.ts +41 -16
  877. package/src/workflow/internal/retry.ts +12 -0
  878. package/src/workflow/internal/scope.ts +36 -0
  879. package/dist/http-api/internal/mediaType.d.ts.map +0 -1
  880. package/dist/internal/schema/toCodeDocument.d.ts +0 -2
  881. package/dist/internal/schema/toCodeDocument.d.ts.map +0 -1
  882. package/dist/internal/schema/toCodeDocument.js +0 -447
  883. package/dist/internal/schema/toCodeDocument.js.map +0 -1
  884. package/dist/observability/internal/protobuf.d.ts +0 -2
  885. package/dist/observability/internal/protobuf.d.ts.map +0 -1
  886. package/dist/observability/internal/protobuf.js +0 -169
  887. package/dist/observability/internal/protobuf.js.map +0 -1
  888. package/src/internal/schema/toCodeDocument.ts +0 -578
  889. package/src/observability/internal/protobuf.ts +0 -225
  890. /package/dist/{http-api → http}/internal/mediaType.d.ts +0 -0
@@ -0,0 +1,3611 @@
1
+ /**
2
+ * Built-in types and descriptors for Google's `google/protobuf/descriptor.proto`.
3
+ * These definitions describe protobuf files, messages, fields, enums and services.
4
+ *
5
+ * @stability experimental
6
+ * @since 4.1.5
7
+ */
8
+ // @generated by packages/effect/scripts/protobuf/generate.mjs. Do not edit.
9
+ // Source: protocolbuffers/protobuf v36.2 (2c74169b34066ceb8ddb6b882fcb3fb32d737a55).
10
+ // Regenerate: pnpm protobuf-codegen
11
+
12
+ import * as Resolve from "./internal/resolve.ts"
13
+ import type * as ProtobufDescriptor from "./ProtobufDescriptor.ts"
14
+
15
+ /**
16
+ * The resolved `google/protobuf/descriptor.proto`.
17
+ *
18
+ * @stability experimental
19
+ * @category descriptor.proto
20
+ * @since 4.1.5
21
+ */
22
+ export const descriptorFile: ProtobufDescriptor.FileDescriptor = Resolve.resolve([{
23
+ name: "google/protobuf/descriptor.proto",
24
+ package: "google.protobuf",
25
+ message_type: [
26
+ {
27
+ name: "FileDescriptorSet",
28
+ field: [
29
+ {
30
+ name: "file",
31
+ number: 1,
32
+ label: 3,
33
+ type: 11,
34
+ type_name: ".google.protobuf.FileDescriptorProto",
35
+ json_name: "file"
36
+ }
37
+ ],
38
+ extension_range: [{ start: 536000000, end: 536000001 }]
39
+ },
40
+ {
41
+ name: "FileDescriptorProto",
42
+ field: [
43
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
44
+ { name: "package", number: 2, label: 1, type: 9, json_name: "package" },
45
+ { name: "dependency", number: 3, label: 3, type: 9, json_name: "dependency" },
46
+ { name: "public_dependency", number: 10, label: 3, type: 5, json_name: "publicDependency" },
47
+ { name: "weak_dependency", number: 11, label: 3, type: 5, json_name: "weakDependency" },
48
+ { name: "option_dependency", number: 15, label: 3, type: 9, json_name: "optionDependency" },
49
+ {
50
+ name: "message_type",
51
+ number: 4,
52
+ label: 3,
53
+ type: 11,
54
+ type_name: ".google.protobuf.DescriptorProto",
55
+ json_name: "messageType"
56
+ },
57
+ {
58
+ name: "enum_type",
59
+ number: 5,
60
+ label: 3,
61
+ type: 11,
62
+ type_name: ".google.protobuf.EnumDescriptorProto",
63
+ json_name: "enumType"
64
+ },
65
+ {
66
+ name: "service",
67
+ number: 6,
68
+ label: 3,
69
+ type: 11,
70
+ type_name: ".google.protobuf.ServiceDescriptorProto",
71
+ json_name: "service"
72
+ },
73
+ {
74
+ name: "extension",
75
+ number: 7,
76
+ label: 3,
77
+ type: 11,
78
+ type_name: ".google.protobuf.FieldDescriptorProto",
79
+ json_name: "extension"
80
+ },
81
+ {
82
+ name: "options",
83
+ number: 8,
84
+ label: 1,
85
+ type: 11,
86
+ type_name: ".google.protobuf.FileOptions",
87
+ json_name: "options"
88
+ },
89
+ {
90
+ name: "source_code_info",
91
+ number: 9,
92
+ label: 1,
93
+ type: 11,
94
+ type_name: ".google.protobuf.SourceCodeInfo",
95
+ json_name: "sourceCodeInfo"
96
+ },
97
+ { name: "syntax", number: 12, label: 1, type: 9, json_name: "syntax" },
98
+ {
99
+ name: "edition",
100
+ number: 14,
101
+ label: 1,
102
+ type: 14,
103
+ type_name: ".google.protobuf.Edition",
104
+ json_name: "edition"
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ name: "DescriptorProto",
110
+ field: [
111
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
112
+ {
113
+ name: "field",
114
+ number: 2,
115
+ label: 3,
116
+ type: 11,
117
+ type_name: ".google.protobuf.FieldDescriptorProto",
118
+ json_name: "field"
119
+ },
120
+ {
121
+ name: "extension",
122
+ number: 6,
123
+ label: 3,
124
+ type: 11,
125
+ type_name: ".google.protobuf.FieldDescriptorProto",
126
+ json_name: "extension"
127
+ },
128
+ {
129
+ name: "nested_type",
130
+ number: 3,
131
+ label: 3,
132
+ type: 11,
133
+ type_name: ".google.protobuf.DescriptorProto",
134
+ json_name: "nestedType"
135
+ },
136
+ {
137
+ name: "enum_type",
138
+ number: 4,
139
+ label: 3,
140
+ type: 11,
141
+ type_name: ".google.protobuf.EnumDescriptorProto",
142
+ json_name: "enumType"
143
+ },
144
+ {
145
+ name: "extension_range",
146
+ number: 5,
147
+ label: 3,
148
+ type: 11,
149
+ type_name: ".google.protobuf.DescriptorProto.ExtensionRange",
150
+ json_name: "extensionRange"
151
+ },
152
+ {
153
+ name: "oneof_decl",
154
+ number: 8,
155
+ label: 3,
156
+ type: 11,
157
+ type_name: ".google.protobuf.OneofDescriptorProto",
158
+ json_name: "oneofDecl"
159
+ },
160
+ {
161
+ name: "options",
162
+ number: 7,
163
+ label: 1,
164
+ type: 11,
165
+ type_name: ".google.protobuf.MessageOptions",
166
+ json_name: "options"
167
+ },
168
+ {
169
+ name: "reserved_range",
170
+ number: 9,
171
+ label: 3,
172
+ type: 11,
173
+ type_name: ".google.protobuf.DescriptorProto.ReservedRange",
174
+ json_name: "reservedRange"
175
+ },
176
+ { name: "reserved_name", number: 10, label: 3, type: 9, json_name: "reservedName" },
177
+ {
178
+ name: "visibility",
179
+ number: 11,
180
+ label: 1,
181
+ type: 14,
182
+ type_name: ".google.protobuf.SymbolVisibility",
183
+ json_name: "visibility"
184
+ }
185
+ ],
186
+ nested_type: [
187
+ {
188
+ name: "ExtensionRange",
189
+ field: [
190
+ { name: "start", number: 1, label: 1, type: 5, json_name: "start" },
191
+ { name: "end", number: 2, label: 1, type: 5, json_name: "end" },
192
+ {
193
+ name: "options",
194
+ number: 3,
195
+ label: 1,
196
+ type: 11,
197
+ type_name: ".google.protobuf.ExtensionRangeOptions",
198
+ json_name: "options"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ name: "ReservedRange",
204
+ field: [
205
+ { name: "start", number: 1, label: 1, type: 5, json_name: "start" },
206
+ { name: "end", number: 2, label: 1, type: 5, json_name: "end" }
207
+ ]
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ name: "ExtensionRangeOptions",
213
+ field: [
214
+ {
215
+ name: "uninterpreted_option",
216
+ number: 999,
217
+ label: 3,
218
+ type: 11,
219
+ type_name: ".google.protobuf.UninterpretedOption",
220
+ json_name: "uninterpretedOption"
221
+ },
222
+ {
223
+ name: "declaration",
224
+ number: 2,
225
+ label: 3,
226
+ type: 11,
227
+ type_name: ".google.protobuf.ExtensionRangeOptions.Declaration",
228
+ options: { retention: 2 },
229
+ json_name: "declaration"
230
+ },
231
+ {
232
+ name: "features",
233
+ number: 50,
234
+ label: 1,
235
+ type: 11,
236
+ type_name: ".google.protobuf.FeatureSet",
237
+ json_name: "features"
238
+ },
239
+ {
240
+ name: "verification",
241
+ number: 3,
242
+ label: 1,
243
+ type: 14,
244
+ type_name: ".google.protobuf.ExtensionRangeOptions.VerificationState",
245
+ default_value: "UNVERIFIED",
246
+ options: { retention: 2 },
247
+ json_name: "verification"
248
+ }
249
+ ],
250
+ nested_type: [
251
+ {
252
+ name: "Declaration",
253
+ field: [
254
+ { name: "number", number: 1, label: 1, type: 5, json_name: "number" },
255
+ { name: "full_name", number: 2, label: 1, type: 9, json_name: "fullName" },
256
+ { name: "type", number: 3, label: 1, type: 9, json_name: "type" },
257
+ { name: "reserved", number: 5, label: 1, type: 8, json_name: "reserved" },
258
+ { name: "repeated", number: 6, label: 1, type: 8, json_name: "repeated" }
259
+ ],
260
+ reserved_range: [{ start: 4, end: 5 }]
261
+ }
262
+ ],
263
+ enum_type: [
264
+ {
265
+ name: "VerificationState",
266
+ value: [{ name: "DECLARATION", number: 0 }, { name: "UNVERIFIED", number: 1 }]
267
+ }
268
+ ],
269
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }]
270
+ },
271
+ {
272
+ name: "FieldDescriptorProto",
273
+ field: [
274
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
275
+ { name: "number", number: 3, label: 1, type: 5, json_name: "number" },
276
+ {
277
+ name: "label",
278
+ number: 4,
279
+ label: 1,
280
+ type: 14,
281
+ type_name: ".google.protobuf.FieldDescriptorProto.Label",
282
+ json_name: "label"
283
+ },
284
+ {
285
+ name: "type",
286
+ number: 5,
287
+ label: 1,
288
+ type: 14,
289
+ type_name: ".google.protobuf.FieldDescriptorProto.Type",
290
+ json_name: "type"
291
+ },
292
+ { name: "type_name", number: 6, label: 1, type: 9, json_name: "typeName" },
293
+ { name: "extendee", number: 2, label: 1, type: 9, json_name: "extendee" },
294
+ { name: "default_value", number: 7, label: 1, type: 9, json_name: "defaultValue" },
295
+ { name: "oneof_index", number: 9, label: 1, type: 5, json_name: "oneofIndex" },
296
+ { name: "json_name", number: 10, label: 1, type: 9, json_name: "jsonName" },
297
+ {
298
+ name: "options",
299
+ number: 8,
300
+ label: 1,
301
+ type: 11,
302
+ type_name: ".google.protobuf.FieldOptions",
303
+ json_name: "options"
304
+ },
305
+ { name: "proto3_optional", number: 17, label: 1, type: 8, json_name: "proto3Optional" }
306
+ ],
307
+ enum_type: [
308
+ {
309
+ name: "Type",
310
+ value: [
311
+ { name: "TYPE_DOUBLE", number: 1 },
312
+ { name: "TYPE_FLOAT", number: 2 },
313
+ { name: "TYPE_INT64", number: 3 },
314
+ { name: "TYPE_UINT64", number: 4 },
315
+ { name: "TYPE_INT32", number: 5 },
316
+ { name: "TYPE_FIXED64", number: 6 },
317
+ { name: "TYPE_FIXED32", number: 7 },
318
+ { name: "TYPE_BOOL", number: 8 },
319
+ { name: "TYPE_STRING", number: 9 },
320
+ { name: "TYPE_GROUP", number: 10 },
321
+ { name: "TYPE_MESSAGE", number: 11 },
322
+ { name: "TYPE_BYTES", number: 12 },
323
+ { name: "TYPE_UINT32", number: 13 },
324
+ { name: "TYPE_ENUM", number: 14 },
325
+ { name: "TYPE_SFIXED32", number: 15 },
326
+ { name: "TYPE_SFIXED64", number: 16 },
327
+ { name: "TYPE_SINT32", number: 17 },
328
+ { name: "TYPE_SINT64", number: 18 }
329
+ ]
330
+ },
331
+ {
332
+ name: "Label",
333
+ value: [
334
+ { name: "LABEL_OPTIONAL", number: 1 },
335
+ { name: "LABEL_REPEATED", number: 3 },
336
+ { name: "LABEL_REQUIRED", number: 2 }
337
+ ]
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ name: "OneofDescriptorProto",
343
+ field: [
344
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
345
+ {
346
+ name: "options",
347
+ number: 2,
348
+ label: 1,
349
+ type: 11,
350
+ type_name: ".google.protobuf.OneofOptions",
351
+ json_name: "options"
352
+ }
353
+ ]
354
+ },
355
+ {
356
+ name: "EnumDescriptorProto",
357
+ field: [
358
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
359
+ {
360
+ name: "value",
361
+ number: 2,
362
+ label: 3,
363
+ type: 11,
364
+ type_name: ".google.protobuf.EnumValueDescriptorProto",
365
+ json_name: "value"
366
+ },
367
+ {
368
+ name: "options",
369
+ number: 3,
370
+ label: 1,
371
+ type: 11,
372
+ type_name: ".google.protobuf.EnumOptions",
373
+ json_name: "options"
374
+ },
375
+ {
376
+ name: "reserved_range",
377
+ number: 4,
378
+ label: 3,
379
+ type: 11,
380
+ type_name: ".google.protobuf.EnumDescriptorProto.EnumReservedRange",
381
+ json_name: "reservedRange"
382
+ },
383
+ { name: "reserved_name", number: 5, label: 3, type: 9, json_name: "reservedName" },
384
+ {
385
+ name: "visibility",
386
+ number: 6,
387
+ label: 1,
388
+ type: 14,
389
+ type_name: ".google.protobuf.SymbolVisibility",
390
+ json_name: "visibility"
391
+ }
392
+ ],
393
+ nested_type: [
394
+ {
395
+ name: "EnumReservedRange",
396
+ field: [
397
+ { name: "start", number: 1, label: 1, type: 5, json_name: "start" },
398
+ { name: "end", number: 2, label: 1, type: 5, json_name: "end" }
399
+ ]
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ name: "EnumValueDescriptorProto",
405
+ field: [
406
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
407
+ { name: "number", number: 2, label: 1, type: 5, json_name: "number" },
408
+ {
409
+ name: "options",
410
+ number: 3,
411
+ label: 1,
412
+ type: 11,
413
+ type_name: ".google.protobuf.EnumValueOptions",
414
+ json_name: "options"
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ name: "ServiceDescriptorProto",
420
+ field: [
421
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
422
+ {
423
+ name: "method",
424
+ number: 2,
425
+ label: 3,
426
+ type: 11,
427
+ type_name: ".google.protobuf.MethodDescriptorProto",
428
+ json_name: "method"
429
+ },
430
+ {
431
+ name: "options",
432
+ number: 3,
433
+ label: 1,
434
+ type: 11,
435
+ type_name: ".google.protobuf.ServiceOptions",
436
+ json_name: "options"
437
+ }
438
+ ],
439
+ reserved_range: [{ start: 4, end: 5 }],
440
+ reserved_name: ["stream"]
441
+ },
442
+ {
443
+ name: "MethodDescriptorProto",
444
+ field: [
445
+ { name: "name", number: 1, label: 1, type: 9, json_name: "name" },
446
+ { name: "input_type", number: 2, label: 1, type: 9, json_name: "inputType" },
447
+ { name: "output_type", number: 3, label: 1, type: 9, json_name: "outputType" },
448
+ {
449
+ name: "options",
450
+ number: 4,
451
+ label: 1,
452
+ type: 11,
453
+ type_name: ".google.protobuf.MethodOptions",
454
+ json_name: "options"
455
+ },
456
+ {
457
+ name: "client_streaming",
458
+ number: 5,
459
+ label: 1,
460
+ type: 8,
461
+ default_value: "false",
462
+ json_name: "clientStreaming"
463
+ },
464
+ {
465
+ name: "server_streaming",
466
+ number: 6,
467
+ label: 1,
468
+ type: 8,
469
+ default_value: "false",
470
+ json_name: "serverStreaming"
471
+ }
472
+ ]
473
+ },
474
+ {
475
+ name: "FileOptions",
476
+ field: [
477
+ { name: "java_package", number: 1, label: 1, type: 9, json_name: "javaPackage" },
478
+ { name: "java_outer_classname", number: 8, label: 1, type: 9, json_name: "javaOuterClassname" },
479
+ {
480
+ name: "java_multiple_files",
481
+ number: 10,
482
+ label: 1,
483
+ type: 8,
484
+ default_value: "false",
485
+ options: {
486
+ feature_support: {
487
+ edition_introduced: 998,
488
+ edition_removed: 1001,
489
+ removal_error: "This behavior is enabled by default in editions 2024 and above. To disable it, you can set `features.(pb.java).nest_in_file_class = YES` on individual messages, enums, or services."
490
+ }
491
+ },
492
+ json_name: "javaMultipleFiles"
493
+ },
494
+ {
495
+ name: "java_generate_equals_and_hash",
496
+ number: 20,
497
+ label: 1,
498
+ type: 8,
499
+ options: { deprecated: true },
500
+ json_name: "javaGenerateEqualsAndHash"
501
+ },
502
+ {
503
+ name: "java_string_check_utf8",
504
+ number: 27,
505
+ label: 1,
506
+ type: 8,
507
+ default_value: "false",
508
+ json_name: "javaStringCheckUtf8"
509
+ },
510
+ {
511
+ name: "optimize_for",
512
+ number: 9,
513
+ label: 1,
514
+ type: 14,
515
+ type_name: ".google.protobuf.FileOptions.OptimizeMode",
516
+ default_value: "SPEED",
517
+ json_name: "optimizeFor"
518
+ },
519
+ { name: "go_package", number: 11, label: 1, type: 9, json_name: "goPackage" },
520
+ {
521
+ name: "cc_generic_services",
522
+ number: 16,
523
+ label: 1,
524
+ type: 8,
525
+ default_value: "false",
526
+ json_name: "ccGenericServices"
527
+ },
528
+ {
529
+ name: "java_generic_services",
530
+ number: 17,
531
+ label: 1,
532
+ type: 8,
533
+ default_value: "false",
534
+ json_name: "javaGenericServices"
535
+ },
536
+ {
537
+ name: "py_generic_services",
538
+ number: 18,
539
+ label: 1,
540
+ type: 8,
541
+ default_value: "false",
542
+ json_name: "pyGenericServices"
543
+ },
544
+ { name: "deprecated", number: 23, label: 1, type: 8, default_value: "false", json_name: "deprecated" },
545
+ {
546
+ name: "cc_enable_arenas",
547
+ number: 31,
548
+ label: 1,
549
+ type: 8,
550
+ default_value: "true",
551
+ options: {
552
+ feature_support: {
553
+ edition_removed: 1002,
554
+ removal_error: "cc_enable_arenas is enabled by default in every edition and overrides are ignored.This option is removed in editions 2026 and above."
555
+ }
556
+ },
557
+ json_name: "ccEnableArenas"
558
+ },
559
+ { name: "objc_class_prefix", number: 36, label: 1, type: 9, json_name: "objcClassPrefix" },
560
+ { name: "csharp_namespace", number: 37, label: 1, type: 9, json_name: "csharpNamespace" },
561
+ { name: "swift_prefix", number: 39, label: 1, type: 9, json_name: "swiftPrefix" },
562
+ { name: "php_class_prefix", number: 40, label: 1, type: 9, json_name: "phpClassPrefix" },
563
+ { name: "php_namespace", number: 41, label: 1, type: 9, json_name: "phpNamespace" },
564
+ { name: "php_metadata_namespace", number: 44, label: 1, type: 9, json_name: "phpMetadataNamespace" },
565
+ { name: "ruby_package", number: 45, label: 1, type: 9, json_name: "rubyPackage" },
566
+ {
567
+ name: "features",
568
+ number: 50,
569
+ label: 1,
570
+ type: 11,
571
+ type_name: ".google.protobuf.FeatureSet",
572
+ json_name: "features"
573
+ },
574
+ {
575
+ name: "uninterpreted_option",
576
+ number: 999,
577
+ label: 3,
578
+ type: 11,
579
+ type_name: ".google.protobuf.UninterpretedOption",
580
+ json_name: "uninterpretedOption"
581
+ }
582
+ ],
583
+ enum_type: [
584
+ {
585
+ name: "OptimizeMode",
586
+ value: [
587
+ { name: "SPEED", number: 1 },
588
+ { name: "CODE_SIZE", number: 2 },
589
+ { name: "LITE_RUNTIME", number: 3 }
590
+ ]
591
+ }
592
+ ],
593
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }],
594
+ reserved_range: [{ start: 42, end: 43 }, { start: 38, end: 39 }],
595
+ reserved_name: ["php_generic_services"]
596
+ },
597
+ {
598
+ name: "MessageOptions",
599
+ field: [
600
+ {
601
+ name: "message_set_wire_format",
602
+ number: 1,
603
+ label: 1,
604
+ type: 8,
605
+ default_value: "false",
606
+ json_name: "messageSetWireFormat"
607
+ },
608
+ {
609
+ name: "no_standard_descriptor_accessor",
610
+ number: 2,
611
+ label: 1,
612
+ type: 8,
613
+ default_value: "false",
614
+ json_name: "noStandardDescriptorAccessor"
615
+ },
616
+ { name: "deprecated", number: 3, label: 1, type: 8, default_value: "false", json_name: "deprecated" },
617
+ { name: "map_entry", number: 7, label: 1, type: 8, json_name: "mapEntry" },
618
+ {
619
+ name: "deprecated_legacy_json_field_conflicts",
620
+ number: 11,
621
+ label: 1,
622
+ type: 8,
623
+ options: { deprecated: true },
624
+ json_name: "deprecatedLegacyJsonFieldConflicts"
625
+ },
626
+ {
627
+ name: "features",
628
+ number: 12,
629
+ label: 1,
630
+ type: 11,
631
+ type_name: ".google.protobuf.FeatureSet",
632
+ json_name: "features"
633
+ },
634
+ {
635
+ name: "uninterpreted_option",
636
+ number: 999,
637
+ label: 3,
638
+ type: 11,
639
+ type_name: ".google.protobuf.UninterpretedOption",
640
+ json_name: "uninterpretedOption"
641
+ }
642
+ ],
643
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }],
644
+ reserved_range: [
645
+ { start: 4, end: 5 },
646
+ { start: 5, end: 6 },
647
+ { start: 6, end: 7 },
648
+ { start: 8, end: 9 },
649
+ { start: 9, end: 10 }
650
+ ]
651
+ },
652
+ {
653
+ name: "FieldOptions",
654
+ field: [
655
+ {
656
+ name: "ctype",
657
+ number: 1,
658
+ label: 1,
659
+ type: 14,
660
+ type_name: ".google.protobuf.FieldOptions.CType",
661
+ default_value: "STRING",
662
+ json_name: "ctype"
663
+ },
664
+ { name: "packed", number: 2, label: 1, type: 8, json_name: "packed" },
665
+ {
666
+ name: "jstype",
667
+ number: 6,
668
+ label: 1,
669
+ type: 14,
670
+ type_name: ".google.protobuf.FieldOptions.JSType",
671
+ default_value: "JS_NORMAL",
672
+ json_name: "jstype"
673
+ },
674
+ { name: "lazy", number: 5, label: 1, type: 8, default_value: "false", json_name: "lazy" },
675
+ {
676
+ name: "unverified_lazy",
677
+ number: 15,
678
+ label: 1,
679
+ type: 8,
680
+ default_value: "false",
681
+ json_name: "unverifiedLazy"
682
+ },
683
+ { name: "deprecated", number: 3, label: 1, type: 8, default_value: "false", json_name: "deprecated" },
684
+ {
685
+ name: "weak",
686
+ number: 10,
687
+ label: 1,
688
+ type: 8,
689
+ default_value: "false",
690
+ options: { deprecated: true },
691
+ json_name: "weak"
692
+ },
693
+ {
694
+ name: "debug_redact",
695
+ number: 16,
696
+ label: 1,
697
+ type: 8,
698
+ default_value: "false",
699
+ json_name: "debugRedact"
700
+ },
701
+ {
702
+ name: "retention",
703
+ number: 17,
704
+ label: 1,
705
+ type: 14,
706
+ type_name: ".google.protobuf.FieldOptions.OptionRetention",
707
+ json_name: "retention"
708
+ },
709
+ {
710
+ name: "targets",
711
+ number: 19,
712
+ label: 3,
713
+ type: 14,
714
+ type_name: ".google.protobuf.FieldOptions.OptionTargetType",
715
+ json_name: "targets"
716
+ },
717
+ {
718
+ name: "edition_defaults",
719
+ number: 20,
720
+ label: 3,
721
+ type: 11,
722
+ type_name: ".google.protobuf.FieldOptions.EditionDefault",
723
+ json_name: "editionDefaults"
724
+ },
725
+ {
726
+ name: "features",
727
+ number: 21,
728
+ label: 1,
729
+ type: 11,
730
+ type_name: ".google.protobuf.FeatureSet",
731
+ json_name: "features"
732
+ },
733
+ {
734
+ name: "feature_support",
735
+ number: 22,
736
+ label: 1,
737
+ type: 11,
738
+ type_name: ".google.protobuf.FieldOptions.FeatureSupport",
739
+ json_name: "featureSupport"
740
+ },
741
+ {
742
+ name: "uninterpreted_option",
743
+ number: 999,
744
+ label: 3,
745
+ type: 11,
746
+ type_name: ".google.protobuf.UninterpretedOption",
747
+ json_name: "uninterpretedOption"
748
+ }
749
+ ],
750
+ nested_type: [
751
+ {
752
+ name: "EditionDefault",
753
+ field: [
754
+ {
755
+ name: "edition",
756
+ number: 3,
757
+ label: 1,
758
+ type: 14,
759
+ type_name: ".google.protobuf.Edition",
760
+ json_name: "edition"
761
+ },
762
+ { name: "value", number: 2, label: 1, type: 9, json_name: "value" }
763
+ ]
764
+ },
765
+ {
766
+ name: "FeatureSupport",
767
+ field: [
768
+ {
769
+ name: "edition_introduced",
770
+ number: 1,
771
+ label: 1,
772
+ type: 14,
773
+ type_name: ".google.protobuf.Edition",
774
+ json_name: "editionIntroduced"
775
+ },
776
+ {
777
+ name: "edition_deprecated",
778
+ number: 2,
779
+ label: 1,
780
+ type: 14,
781
+ type_name: ".google.protobuf.Edition",
782
+ json_name: "editionDeprecated"
783
+ },
784
+ { name: "deprecation_warning", number: 3, label: 1, type: 9, json_name: "deprecationWarning" },
785
+ {
786
+ name: "edition_removed",
787
+ number: 4,
788
+ label: 1,
789
+ type: 14,
790
+ type_name: ".google.protobuf.Edition",
791
+ json_name: "editionRemoved"
792
+ },
793
+ { name: "removal_error", number: 5, label: 1, type: 9, json_name: "removalError" }
794
+ ]
795
+ }
796
+ ],
797
+ enum_type: [
798
+ {
799
+ name: "CType",
800
+ value: [{ name: "STRING", number: 0 }, { name: "CORD", number: 1 }, { name: "STRING_PIECE", number: 2 }]
801
+ },
802
+ {
803
+ name: "JSType",
804
+ value: [
805
+ { name: "JS_NORMAL", number: 0 },
806
+ { name: "JS_STRING", number: 1 },
807
+ { name: "JS_NUMBER", number: 2 }
808
+ ]
809
+ },
810
+ {
811
+ name: "OptionRetention",
812
+ value: [
813
+ { name: "RETENTION_UNKNOWN", number: 0 },
814
+ { name: "RETENTION_RUNTIME", number: 1 },
815
+ { name: "RETENTION_SOURCE", number: 2 }
816
+ ]
817
+ },
818
+ {
819
+ name: "OptionTargetType",
820
+ value: [
821
+ { name: "TARGET_TYPE_UNKNOWN", number: 0 },
822
+ { name: "TARGET_TYPE_FILE", number: 1 },
823
+ { name: "TARGET_TYPE_EXTENSION_RANGE", number: 2 },
824
+ { name: "TARGET_TYPE_MESSAGE", number: 3 },
825
+ { name: "TARGET_TYPE_FIELD", number: 4 },
826
+ { name: "TARGET_TYPE_ONEOF", number: 5 },
827
+ { name: "TARGET_TYPE_ENUM", number: 6 },
828
+ { name: "TARGET_TYPE_ENUM_ENTRY", number: 7 },
829
+ { name: "TARGET_TYPE_SERVICE", number: 8 },
830
+ { name: "TARGET_TYPE_METHOD", number: 9 }
831
+ ]
832
+ }
833
+ ],
834
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }],
835
+ reserved_range: [{ start: 4, end: 5 }, { start: 18, end: 19 }]
836
+ },
837
+ {
838
+ name: "OneofOptions",
839
+ field: [
840
+ {
841
+ name: "features",
842
+ number: 1,
843
+ label: 1,
844
+ type: 11,
845
+ type_name: ".google.protobuf.FeatureSet",
846
+ json_name: "features"
847
+ },
848
+ {
849
+ name: "uninterpreted_option",
850
+ number: 999,
851
+ label: 3,
852
+ type: 11,
853
+ type_name: ".google.protobuf.UninterpretedOption",
854
+ json_name: "uninterpretedOption"
855
+ }
856
+ ],
857
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }]
858
+ },
859
+ {
860
+ name: "EnumOptions",
861
+ field: [
862
+ { name: "allow_alias", number: 2, label: 1, type: 8, json_name: "allowAlias" },
863
+ { name: "deprecated", number: 3, label: 1, type: 8, default_value: "false", json_name: "deprecated" },
864
+ {
865
+ name: "deprecated_legacy_json_field_conflicts",
866
+ number: 6,
867
+ label: 1,
868
+ type: 8,
869
+ options: { deprecated: true },
870
+ json_name: "deprecatedLegacyJsonFieldConflicts"
871
+ },
872
+ {
873
+ name: "features",
874
+ number: 7,
875
+ label: 1,
876
+ type: 11,
877
+ type_name: ".google.protobuf.FeatureSet",
878
+ json_name: "features"
879
+ },
880
+ {
881
+ name: "uninterpreted_option",
882
+ number: 999,
883
+ label: 3,
884
+ type: 11,
885
+ type_name: ".google.protobuf.UninterpretedOption",
886
+ json_name: "uninterpretedOption"
887
+ }
888
+ ],
889
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }],
890
+ reserved_range: [{ start: 5, end: 6 }]
891
+ },
892
+ {
893
+ name: "EnumValueOptions",
894
+ field: [
895
+ { name: "deprecated", number: 1, label: 1, type: 8, default_value: "false", json_name: "deprecated" },
896
+ {
897
+ name: "features",
898
+ number: 2,
899
+ label: 1,
900
+ type: 11,
901
+ type_name: ".google.protobuf.FeatureSet",
902
+ json_name: "features"
903
+ },
904
+ {
905
+ name: "debug_redact",
906
+ number: 3,
907
+ label: 1,
908
+ type: 8,
909
+ default_value: "false",
910
+ json_name: "debugRedact"
911
+ },
912
+ {
913
+ name: "feature_support",
914
+ number: 4,
915
+ label: 1,
916
+ type: 11,
917
+ type_name: ".google.protobuf.FieldOptions.FeatureSupport",
918
+ json_name: "featureSupport"
919
+ },
920
+ {
921
+ name: "uninterpreted_option",
922
+ number: 999,
923
+ label: 3,
924
+ type: 11,
925
+ type_name: ".google.protobuf.UninterpretedOption",
926
+ json_name: "uninterpretedOption"
927
+ }
928
+ ],
929
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }]
930
+ },
931
+ {
932
+ name: "ServiceOptions",
933
+ field: [
934
+ {
935
+ name: "features",
936
+ number: 34,
937
+ label: 1,
938
+ type: 11,
939
+ type_name: ".google.protobuf.FeatureSet",
940
+ json_name: "features"
941
+ },
942
+ { name: "deprecated", number: 33, label: 1, type: 8, default_value: "false", json_name: "deprecated" },
943
+ {
944
+ name: "uninterpreted_option",
945
+ number: 999,
946
+ label: 3,
947
+ type: 11,
948
+ type_name: ".google.protobuf.UninterpretedOption",
949
+ json_name: "uninterpretedOption"
950
+ }
951
+ ],
952
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }]
953
+ },
954
+ {
955
+ name: "MethodOptions",
956
+ field: [
957
+ { name: "deprecated", number: 33, label: 1, type: 8, default_value: "false", json_name: "deprecated" },
958
+ {
959
+ name: "idempotency_level",
960
+ number: 34,
961
+ label: 1,
962
+ type: 14,
963
+ type_name: ".google.protobuf.MethodOptions.IdempotencyLevel",
964
+ default_value: "IDEMPOTENCY_UNKNOWN",
965
+ json_name: "idempotencyLevel"
966
+ },
967
+ {
968
+ name: "features",
969
+ number: 35,
970
+ label: 1,
971
+ type: 11,
972
+ type_name: ".google.protobuf.FeatureSet",
973
+ json_name: "features"
974
+ },
975
+ {
976
+ name: "uninterpreted_option",
977
+ number: 999,
978
+ label: 3,
979
+ type: 11,
980
+ type_name: ".google.protobuf.UninterpretedOption",
981
+ json_name: "uninterpretedOption"
982
+ }
983
+ ],
984
+ enum_type: [
985
+ {
986
+ name: "IdempotencyLevel",
987
+ value: [
988
+ { name: "IDEMPOTENCY_UNKNOWN", number: 0 },
989
+ { name: "NO_SIDE_EFFECTS", number: 1 },
990
+ { name: "IDEMPOTENT", number: 2 }
991
+ ]
992
+ }
993
+ ],
994
+ extension_range: [{ start: 990, end: 999 }, { start: 1000, end: 536870912 }]
995
+ },
996
+ {
997
+ name: "UninterpretedOption",
998
+ field: [
999
+ {
1000
+ name: "name",
1001
+ number: 2,
1002
+ label: 3,
1003
+ type: 11,
1004
+ type_name: ".google.protobuf.UninterpretedOption.NamePart",
1005
+ json_name: "name"
1006
+ },
1007
+ { name: "identifier_value", number: 3, label: 1, type: 9, json_name: "identifierValue" },
1008
+ { name: "positive_int_value", number: 4, label: 1, type: 4, json_name: "positiveIntValue" },
1009
+ { name: "negative_int_value", number: 5, label: 1, type: 3, json_name: "negativeIntValue" },
1010
+ { name: "double_value", number: 6, label: 1, type: 1, json_name: "doubleValue" },
1011
+ { name: "string_value", number: 7, label: 1, type: 12, json_name: "stringValue" },
1012
+ { name: "aggregate_value", number: 8, label: 1, type: 9, json_name: "aggregateValue" }
1013
+ ],
1014
+ nested_type: [
1015
+ {
1016
+ name: "NamePart",
1017
+ field: [
1018
+ { name: "name_part", number: 1, label: 2, type: 9, json_name: "namePart" },
1019
+ { name: "is_extension", number: 2, label: 2, type: 8, json_name: "isExtension" }
1020
+ ]
1021
+ }
1022
+ ]
1023
+ },
1024
+ {
1025
+ name: "FeatureSet",
1026
+ field: [
1027
+ {
1028
+ name: "field_presence",
1029
+ number: 1,
1030
+ label: 1,
1031
+ type: 14,
1032
+ type_name: ".google.protobuf.FeatureSet.FieldPresence",
1033
+ options: {
1034
+ retention: 1,
1035
+ targets: [4, 1],
1036
+ edition_defaults: [
1037
+ { value: "EXPLICIT", edition: 900 },
1038
+ { value: "IMPLICIT", edition: 999 },
1039
+ { value: "EXPLICIT", edition: 1000 }
1040
+ ],
1041
+ feature_support: { edition_introduced: 1000 }
1042
+ },
1043
+ json_name: "fieldPresence"
1044
+ },
1045
+ {
1046
+ name: "enum_type",
1047
+ number: 2,
1048
+ label: 1,
1049
+ type: 14,
1050
+ type_name: ".google.protobuf.FeatureSet.EnumType",
1051
+ options: {
1052
+ retention: 1,
1053
+ targets: [6, 1],
1054
+ edition_defaults: [{ value: "CLOSED", edition: 900 }, { value: "OPEN", edition: 999 }],
1055
+ feature_support: { edition_introduced: 1000 }
1056
+ },
1057
+ json_name: "enumType"
1058
+ },
1059
+ {
1060
+ name: "repeated_field_encoding",
1061
+ number: 3,
1062
+ label: 1,
1063
+ type: 14,
1064
+ type_name: ".google.protobuf.FeatureSet.RepeatedFieldEncoding",
1065
+ options: {
1066
+ retention: 1,
1067
+ targets: [4, 1],
1068
+ edition_defaults: [{ value: "EXPANDED", edition: 900 }, { value: "PACKED", edition: 999 }],
1069
+ feature_support: { edition_introduced: 1000 }
1070
+ },
1071
+ json_name: "repeatedFieldEncoding"
1072
+ },
1073
+ {
1074
+ name: "utf8_validation",
1075
+ number: 4,
1076
+ label: 1,
1077
+ type: 14,
1078
+ type_name: ".google.protobuf.FeatureSet.Utf8Validation",
1079
+ options: {
1080
+ retention: 1,
1081
+ targets: [4, 1],
1082
+ edition_defaults: [{ value: "NONE", edition: 900 }, { value: "VERIFY", edition: 999 }],
1083
+ feature_support: { edition_introduced: 1000 }
1084
+ },
1085
+ json_name: "utf8Validation"
1086
+ },
1087
+ {
1088
+ name: "message_encoding",
1089
+ number: 5,
1090
+ label: 1,
1091
+ type: 14,
1092
+ type_name: ".google.protobuf.FeatureSet.MessageEncoding",
1093
+ options: {
1094
+ retention: 1,
1095
+ targets: [4, 1],
1096
+ edition_defaults: [{ value: "LENGTH_PREFIXED", edition: 900 }],
1097
+ feature_support: { edition_introduced: 1000 }
1098
+ },
1099
+ json_name: "messageEncoding"
1100
+ },
1101
+ {
1102
+ name: "json_format",
1103
+ number: 6,
1104
+ label: 1,
1105
+ type: 14,
1106
+ type_name: ".google.protobuf.FeatureSet.JsonFormat",
1107
+ options: {
1108
+ retention: 1,
1109
+ targets: [3, 6, 1],
1110
+ edition_defaults: [{ value: "LEGACY_BEST_EFFORT", edition: 900 }, { value: "ALLOW", edition: 999 }],
1111
+ feature_support: { edition_introduced: 1000 }
1112
+ },
1113
+ json_name: "jsonFormat"
1114
+ },
1115
+ {
1116
+ name: "enforce_naming_style",
1117
+ number: 7,
1118
+ label: 1,
1119
+ type: 14,
1120
+ type_name: ".google.protobuf.FeatureSet.EnforceNamingStyle",
1121
+ options: {
1122
+ retention: 2,
1123
+ targets: [1, 2, 3, 4, 5, 6, 7, 8, 9],
1124
+ edition_defaults: [
1125
+ { value: "STYLE_LEGACY", edition: 900 },
1126
+ { value: "STYLE2024", edition: 1001 },
1127
+ { value: "STYLE2026", edition: 1002 }
1128
+ ],
1129
+ feature_support: { edition_introduced: 1001 }
1130
+ },
1131
+ json_name: "enforceNamingStyle"
1132
+ },
1133
+ {
1134
+ name: "default_symbol_visibility",
1135
+ number: 8,
1136
+ label: 1,
1137
+ type: 14,
1138
+ type_name: ".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",
1139
+ options: {
1140
+ retention: 2,
1141
+ targets: [1],
1142
+ edition_defaults: [
1143
+ { value: "EXPORT_ALL", edition: 900 },
1144
+ { value: "EXPORT_TOP_LEVEL", edition: 1001 },
1145
+ { value: "STRICT", edition: 1002 }
1146
+ ],
1147
+ feature_support: { edition_introduced: 1001 }
1148
+ },
1149
+ json_name: "defaultSymbolVisibility"
1150
+ },
1151
+ {
1152
+ name: "enforce_proto_limits",
1153
+ number: 9,
1154
+ label: 1,
1155
+ type: 14,
1156
+ type_name: ".google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits",
1157
+ options: {
1158
+ retention: 2,
1159
+ targets: [6, 3, 4, 5],
1160
+ edition_defaults: [
1161
+ { value: "LEGACY_NO_EXPLICIT_LIMITS", edition: 900 },
1162
+ { value: "PROTO_LIMITS2026", edition: 1002 }
1163
+ ],
1164
+ feature_support: { edition_introduced: 1002 }
1165
+ },
1166
+ json_name: "enforceProtoLimits"
1167
+ }
1168
+ ],
1169
+ nested_type: [
1170
+ {
1171
+ name: "VisibilityFeature",
1172
+ enum_type: [
1173
+ {
1174
+ name: "DefaultSymbolVisibility",
1175
+ value: [
1176
+ { name: "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN", number: 0 },
1177
+ { name: "EXPORT_ALL", number: 1 },
1178
+ { name: "EXPORT_TOP_LEVEL", number: 2 },
1179
+ { name: "LOCAL_ALL", number: 3 },
1180
+ { name: "STRICT", number: 4 }
1181
+ ]
1182
+ }
1183
+ ],
1184
+ reserved_range: [{ start: 1, end: 536870912 }]
1185
+ },
1186
+ {
1187
+ name: "ProtoLimitsFeature",
1188
+ enum_type: [
1189
+ {
1190
+ name: "EnforceProtoLimits",
1191
+ value: [
1192
+ { name: "PROTO_LIMITS_UNKNOWN", number: 0 },
1193
+ { name: "LEGACY_NO_EXPLICIT_LIMITS", number: 1 },
1194
+ { name: "PROTO_LIMITS2026", number: 2 }
1195
+ ]
1196
+ }
1197
+ ]
1198
+ }
1199
+ ],
1200
+ enum_type: [
1201
+ {
1202
+ name: "FieldPresence",
1203
+ value: [
1204
+ { name: "FIELD_PRESENCE_UNKNOWN", number: 0 },
1205
+ { name: "EXPLICIT", number: 1 },
1206
+ { name: "IMPLICIT", number: 2 },
1207
+ { name: "LEGACY_REQUIRED", number: 3 }
1208
+ ]
1209
+ },
1210
+ {
1211
+ name: "EnumType",
1212
+ value: [
1213
+ { name: "ENUM_TYPE_UNKNOWN", number: 0 },
1214
+ { name: "OPEN", number: 1 },
1215
+ { name: "CLOSED", number: 2 }
1216
+ ]
1217
+ },
1218
+ {
1219
+ name: "RepeatedFieldEncoding",
1220
+ value: [
1221
+ { name: "REPEATED_FIELD_ENCODING_UNKNOWN", number: 0 },
1222
+ { name: "PACKED", number: 1 },
1223
+ { name: "EXPANDED", number: 2 }
1224
+ ]
1225
+ },
1226
+ {
1227
+ name: "Utf8Validation",
1228
+ value: [
1229
+ { name: "UTF8_VALIDATION_UNKNOWN", number: 0 },
1230
+ { name: "VERIFY", number: 2 },
1231
+ { name: "NONE", number: 3 }
1232
+ ],
1233
+ reserved_range: [{ start: 1, end: 1 }]
1234
+ },
1235
+ {
1236
+ name: "MessageEncoding",
1237
+ value: [
1238
+ { name: "MESSAGE_ENCODING_UNKNOWN", number: 0 },
1239
+ { name: "LENGTH_PREFIXED", number: 1 },
1240
+ { name: "DELIMITED", number: 2 }
1241
+ ]
1242
+ },
1243
+ {
1244
+ name: "JsonFormat",
1245
+ value: [
1246
+ { name: "JSON_FORMAT_UNKNOWN", number: 0 },
1247
+ { name: "ALLOW", number: 1 },
1248
+ { name: "LEGACY_BEST_EFFORT", number: 2 }
1249
+ ]
1250
+ },
1251
+ {
1252
+ name: "EnforceNamingStyle",
1253
+ value: [
1254
+ { name: "ENFORCE_NAMING_STYLE_UNKNOWN", number: 0 },
1255
+ { name: "STYLE2024", number: 1 },
1256
+ { name: "STYLE_LEGACY", number: 2 },
1257
+ { name: "STYLE2026", number: 3 }
1258
+ ]
1259
+ }
1260
+ ],
1261
+ extension_range: [{ start: 1000, end: 9995 }, { start: 9995, end: 10000 }, { start: 10000, end: 10001 }],
1262
+ reserved_range: [{ start: 999, end: 1000 }]
1263
+ },
1264
+ {
1265
+ name: "FeatureSetDefaults",
1266
+ field: [
1267
+ {
1268
+ name: "defaults",
1269
+ number: 1,
1270
+ label: 3,
1271
+ type: 11,
1272
+ type_name: ".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",
1273
+ json_name: "defaults"
1274
+ },
1275
+ {
1276
+ name: "minimum_edition",
1277
+ number: 4,
1278
+ label: 1,
1279
+ type: 14,
1280
+ type_name: ".google.protobuf.Edition",
1281
+ json_name: "minimumEdition"
1282
+ },
1283
+ {
1284
+ name: "maximum_edition",
1285
+ number: 5,
1286
+ label: 1,
1287
+ type: 14,
1288
+ type_name: ".google.protobuf.Edition",
1289
+ json_name: "maximumEdition"
1290
+ }
1291
+ ],
1292
+ nested_type: [
1293
+ {
1294
+ name: "FeatureSetEditionDefault",
1295
+ field: [
1296
+ {
1297
+ name: "edition",
1298
+ number: 3,
1299
+ label: 1,
1300
+ type: 14,
1301
+ type_name: ".google.protobuf.Edition",
1302
+ json_name: "edition"
1303
+ },
1304
+ {
1305
+ name: "overridable_features",
1306
+ number: 4,
1307
+ label: 1,
1308
+ type: 11,
1309
+ type_name: ".google.protobuf.FeatureSet",
1310
+ json_name: "overridableFeatures"
1311
+ },
1312
+ {
1313
+ name: "fixed_features",
1314
+ number: 5,
1315
+ label: 1,
1316
+ type: 11,
1317
+ type_name: ".google.protobuf.FeatureSet",
1318
+ json_name: "fixedFeatures"
1319
+ }
1320
+ ],
1321
+ reserved_range: [{ start: 1, end: 2 }, { start: 2, end: 3 }],
1322
+ reserved_name: ["features"]
1323
+ }
1324
+ ]
1325
+ },
1326
+ {
1327
+ name: "SourceCodeInfo",
1328
+ field: [
1329
+ {
1330
+ name: "location",
1331
+ number: 1,
1332
+ label: 3,
1333
+ type: 11,
1334
+ type_name: ".google.protobuf.SourceCodeInfo.Location",
1335
+ json_name: "location"
1336
+ }
1337
+ ],
1338
+ nested_type: [
1339
+ {
1340
+ name: "Location",
1341
+ field: [
1342
+ { name: "path", number: 1, label: 3, type: 5, options: { packed: true }, json_name: "path" },
1343
+ { name: "span", number: 2, label: 3, type: 5, options: { packed: true }, json_name: "span" },
1344
+ { name: "leading_comments", number: 3, label: 1, type: 9, json_name: "leadingComments" },
1345
+ { name: "trailing_comments", number: 4, label: 1, type: 9, json_name: "trailingComments" },
1346
+ {
1347
+ name: "leading_detached_comments",
1348
+ number: 6,
1349
+ label: 3,
1350
+ type: 9,
1351
+ json_name: "leadingDetachedComments"
1352
+ }
1353
+ ]
1354
+ }
1355
+ ],
1356
+ extension_range: [{ start: 536000000, end: 536000001 }]
1357
+ },
1358
+ {
1359
+ name: "GeneratedCodeInfo",
1360
+ field: [
1361
+ {
1362
+ name: "annotation",
1363
+ number: 1,
1364
+ label: 3,
1365
+ type: 11,
1366
+ type_name: ".google.protobuf.GeneratedCodeInfo.Annotation",
1367
+ json_name: "annotation"
1368
+ }
1369
+ ],
1370
+ nested_type: [
1371
+ {
1372
+ name: "Annotation",
1373
+ field: [
1374
+ { name: "path", number: 1, label: 3, type: 5, options: { packed: true }, json_name: "path" },
1375
+ { name: "source_file", number: 2, label: 1, type: 9, json_name: "sourceFile" },
1376
+ { name: "begin", number: 3, label: 1, type: 5, json_name: "begin" },
1377
+ { name: "end", number: 4, label: 1, type: 5, json_name: "end" },
1378
+ {
1379
+ name: "semantic",
1380
+ number: 5,
1381
+ label: 1,
1382
+ type: 14,
1383
+ type_name: ".google.protobuf.GeneratedCodeInfo.Annotation.Semantic",
1384
+ json_name: "semantic"
1385
+ }
1386
+ ],
1387
+ enum_type: [
1388
+ {
1389
+ name: "Semantic",
1390
+ value: [{ name: "NONE", number: 0 }, { name: "SET", number: 1 }, { name: "ALIAS", number: 2 }]
1391
+ }
1392
+ ]
1393
+ }
1394
+ ]
1395
+ }
1396
+ ],
1397
+ enum_type: [
1398
+ {
1399
+ name: "Edition",
1400
+ value: [
1401
+ { name: "EDITION_UNKNOWN", number: 0 },
1402
+ { name: "EDITION_LEGACY", number: 900 },
1403
+ { name: "EDITION_PROTO2", number: 998 },
1404
+ { name: "EDITION_PROTO3", number: 999 },
1405
+ { name: "EDITION_2023", number: 1000 },
1406
+ { name: "EDITION_2024", number: 1001 },
1407
+ { name: "EDITION_2026", number: 1002 },
1408
+ { name: "EDITION_UNSTABLE", number: 9999 },
1409
+ { name: "EDITION_1_TEST_ONLY", number: 1 },
1410
+ { name: "EDITION_2_TEST_ONLY", number: 2 },
1411
+ { name: "EDITION_99997_TEST_ONLY", number: 99997 },
1412
+ { name: "EDITION_99998_TEST_ONLY", number: 99998 },
1413
+ { name: "EDITION_99999_TEST_ONLY", number: 99999 },
1414
+ { name: "EDITION_MAX", number: 2147483647 }
1415
+ ]
1416
+ },
1417
+ {
1418
+ name: "SymbolVisibility",
1419
+ value: [
1420
+ { name: "VISIBILITY_UNSET", number: 0 },
1421
+ { name: "VISIBILITY_LOCAL", number: 1 },
1422
+ { name: "VISIBILITY_EXPORT", number: 2 }
1423
+ ]
1424
+ }
1425
+ ],
1426
+ options: {
1427
+ java_package: "com.google.protobuf",
1428
+ java_outer_classname: "DescriptorProtos",
1429
+ optimize_for: 1,
1430
+ go_package: "google.golang.org/protobuf/types/descriptorpb",
1431
+ cc_enable_arenas: true,
1432
+ objc_class_prefix: "GPB",
1433
+ csharp_namespace: "Google.Protobuf.Reflection"
1434
+ }
1435
+ }]).files[0]
1436
+
1437
+ /**
1438
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
1439
+ * files it parses.
1440
+ *
1441
+ * @stability experimental
1442
+ * @category descriptor.proto
1443
+ * @since 4.1.5
1444
+ */
1445
+ export interface FileDescriptorSet {
1446
+ readonly file?: ReadonlyArray<FileDescriptorProto>
1447
+ }
1448
+
1449
+ /**
1450
+ * The descriptor of `google.protobuf.FileDescriptorSet`.
1451
+ *
1452
+ * @stability experimental
1453
+ * @category descriptor.proto
1454
+ * @since 4.1.5
1455
+ */
1456
+ export const FileDescriptorSet: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[0]
1457
+
1458
+ /**
1459
+ * Describes a complete .proto file.
1460
+ *
1461
+ * @stability experimental
1462
+ * @category descriptor.proto
1463
+ * @since 4.1.5
1464
+ */
1465
+ export interface FileDescriptorProto {
1466
+ /** file name, relative to root of source tree */
1467
+ readonly name?: string
1468
+ /** e.g. "foo", "foo.bar", etc. */
1469
+ readonly package?: string
1470
+ /** Names of files imported by this file. */
1471
+ readonly dependency?: ReadonlyArray<string>
1472
+ /** Indexes of the public imported files in the dependency list above. */
1473
+ readonly public_dependency?: ReadonlyArray<number>
1474
+ /**
1475
+ * Indexes of the weak imported files in the dependency list.
1476
+ * For Google-internal migration only. Do not use.
1477
+ */
1478
+ readonly weak_dependency?: ReadonlyArray<number>
1479
+ /**
1480
+ * Names of files imported by this file purely for the purpose of providing
1481
+ * option extensions. These are excluded from the dependency list above.
1482
+ */
1483
+ readonly option_dependency?: ReadonlyArray<string>
1484
+ /** All top-level definitions in this file. */
1485
+ readonly message_type?: ReadonlyArray<DescriptorProto>
1486
+ readonly enum_type?: ReadonlyArray<EnumDescriptorProto>
1487
+ readonly service?: ReadonlyArray<ServiceDescriptorProto>
1488
+ readonly extension?: ReadonlyArray<FieldDescriptorProto>
1489
+ readonly options?: FileOptions
1490
+ /**
1491
+ * This field contains optional information about the original source code.
1492
+ * You may safely remove this entire field without harming runtime
1493
+ * functionality of the descriptors -- the information is needed only by
1494
+ * development tools.
1495
+ */
1496
+ readonly source_code_info?: SourceCodeInfo
1497
+ /**
1498
+ * The syntax of the proto file.
1499
+ * The supported values are "proto2", "proto3", and "editions".
1500
+ *
1501
+ * **Details**
1502
+ *
1503
+ * If `edition` is present, this value must be "editions".
1504
+ * WARNING: This field should only be used by protobuf plugins or special
1505
+ * cases like the proto compiler. Other uses are discouraged and
1506
+ * developers should rely on the protoreflect APIs for their client language.
1507
+ */
1508
+ readonly syntax?: string
1509
+ /**
1510
+ * The edition of the proto file.
1511
+ * WARNING: This field should only be used by protobuf plugins or special
1512
+ * cases like the proto compiler. Other uses are discouraged and
1513
+ * developers should rely on the protoreflect APIs for their client language.
1514
+ */
1515
+ readonly edition?: Edition
1516
+ }
1517
+
1518
+ /**
1519
+ * The descriptor of `google.protobuf.FileDescriptorProto`.
1520
+ *
1521
+ * @stability experimental
1522
+ * @category descriptor.proto
1523
+ * @since 4.1.5
1524
+ */
1525
+ export const FileDescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[1]
1526
+
1527
+ /**
1528
+ * Describes a message type.
1529
+ *
1530
+ * @stability experimental
1531
+ * @category descriptor.proto
1532
+ * @since 4.1.5
1533
+ */
1534
+ export interface DescriptorProto {
1535
+ readonly name?: string
1536
+ readonly field?: ReadonlyArray<FieldDescriptorProto>
1537
+ readonly extension?: ReadonlyArray<FieldDescriptorProto>
1538
+ readonly nested_type?: ReadonlyArray<DescriptorProto>
1539
+ readonly enum_type?: ReadonlyArray<EnumDescriptorProto>
1540
+ readonly extension_range?: ReadonlyArray<DescriptorProto_ExtensionRange>
1541
+ readonly oneof_decl?: ReadonlyArray<OneofDescriptorProto>
1542
+ readonly options?: MessageOptions
1543
+ readonly reserved_range?: ReadonlyArray<DescriptorProto_ReservedRange>
1544
+ /**
1545
+ * Reserved field names, which may not be used by fields in the same message.
1546
+ * A given name may only be reserved once.
1547
+ */
1548
+ readonly reserved_name?: ReadonlyArray<string>
1549
+ /** Support for `export` and `local` keywords on enums. */
1550
+ readonly visibility?: SymbolVisibility
1551
+ }
1552
+
1553
+ /**
1554
+ * The descriptor of `google.protobuf.DescriptorProto`.
1555
+ *
1556
+ * @stability experimental
1557
+ * @category descriptor.proto
1558
+ * @since 4.1.5
1559
+ */
1560
+ export const DescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[2]
1561
+
1562
+ /**
1563
+ * The fields of `google.protobuf.DescriptorProto.ExtensionRange`.
1564
+ *
1565
+ * @stability experimental
1566
+ * @category descriptor.proto
1567
+ * @since 4.1.5
1568
+ */
1569
+ export interface DescriptorProto_ExtensionRange {
1570
+ /** Inclusive. */
1571
+ readonly start?: number
1572
+ /** Exclusive. */
1573
+ readonly end?: number
1574
+ readonly options?: ExtensionRangeOptions
1575
+ }
1576
+
1577
+ /**
1578
+ * The descriptor of `google.protobuf.DescriptorProto.ExtensionRange`.
1579
+ *
1580
+ * @stability experimental
1581
+ * @category descriptor.proto
1582
+ * @since 4.1.5
1583
+ */
1584
+ export const DescriptorProto_ExtensionRange: ProtobufDescriptor.MessageDescriptor = DescriptorProto.messages[0]
1585
+
1586
+ /**
1587
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
1588
+ * fields or extension ranges in the same message. Reserved ranges may
1589
+ * not overlap.
1590
+ *
1591
+ * @stability experimental
1592
+ * @category descriptor.proto
1593
+ * @since 4.1.5
1594
+ */
1595
+ export interface DescriptorProto_ReservedRange {
1596
+ /** Inclusive. */
1597
+ readonly start?: number
1598
+ /** Exclusive. */
1599
+ readonly end?: number
1600
+ }
1601
+
1602
+ /**
1603
+ * The descriptor of `google.protobuf.DescriptorProto.ReservedRange`.
1604
+ *
1605
+ * @stability experimental
1606
+ * @category descriptor.proto
1607
+ * @since 4.1.5
1608
+ */
1609
+ export const DescriptorProto_ReservedRange: ProtobufDescriptor.MessageDescriptor = DescriptorProto.messages[1]
1610
+
1611
+ /**
1612
+ * The fields of `google.protobuf.ExtensionRangeOptions`.
1613
+ *
1614
+ * @stability experimental
1615
+ * @category descriptor.proto
1616
+ * @since 4.1.5
1617
+ */
1618
+ export interface ExtensionRangeOptions {
1619
+ /** The parser stores options it doesn't recognize here. See above. */
1620
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
1621
+ /**
1622
+ * For external users: DO NOT USE. We are in the process of open sourcing
1623
+ * extension declaration and executing internal cleanups before it can be
1624
+ * used externally.
1625
+ */
1626
+ readonly declaration?: ReadonlyArray<ExtensionRangeOptions_Declaration>
1627
+ /** Any features defined in the specific edition. */
1628
+ readonly features?: FeatureSet
1629
+ /**
1630
+ * The verification state of the range.
1631
+ * TODO: flip the default to DECLARATION once all empty ranges
1632
+ * are marked as UNVERIFIED.
1633
+ */
1634
+ readonly verification?: ExtensionRangeOptions_VerificationState
1635
+ }
1636
+
1637
+ /**
1638
+ * The descriptor of `google.protobuf.ExtensionRangeOptions`.
1639
+ *
1640
+ * @stability experimental
1641
+ * @category descriptor.proto
1642
+ * @since 4.1.5
1643
+ */
1644
+ export const ExtensionRangeOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[3]
1645
+
1646
+ /**
1647
+ * The fields of `google.protobuf.ExtensionRangeOptions.Declaration`.
1648
+ *
1649
+ * @stability experimental
1650
+ * @category descriptor.proto
1651
+ * @since 4.1.5
1652
+ */
1653
+ export interface ExtensionRangeOptions_Declaration {
1654
+ /** The extension number declared within the extension range. */
1655
+ readonly number?: number
1656
+ /**
1657
+ * The fully-qualified name of the extension field. There must be a leading
1658
+ * dot in front of the full name.
1659
+ */
1660
+ readonly full_name?: string
1661
+ /**
1662
+ * The fully-qualified type name of the extension field. Unlike
1663
+ * Metadata.type, Declaration.type must have a leading dot for messages
1664
+ * and enums.
1665
+ */
1666
+ readonly type?: string
1667
+ /**
1668
+ * If true, indicates that the number is reserved in the extension range,
1669
+ * and any extension field with the number will fail to compile. Set this
1670
+ * when a declared extension field is deleted.
1671
+ */
1672
+ readonly reserved?: boolean
1673
+ /**
1674
+ * If true, indicates that the extension must be defined as repeated.
1675
+ * Otherwise the extension must be defined as optional.
1676
+ */
1677
+ readonly repeated?: boolean
1678
+ }
1679
+
1680
+ /**
1681
+ * The descriptor of `google.protobuf.ExtensionRangeOptions.Declaration`.
1682
+ *
1683
+ * @stability experimental
1684
+ * @category descriptor.proto
1685
+ * @since 4.1.5
1686
+ */
1687
+ export const ExtensionRangeOptions_Declaration: ProtobufDescriptor.MessageDescriptor = ExtensionRangeOptions.messages[0]
1688
+
1689
+ /**
1690
+ * The verification state of the extension range.
1691
+ *
1692
+ * @stability experimental
1693
+ * @category descriptor.proto
1694
+ * @since 4.1.5
1695
+ */
1696
+ export const ExtensionRangeOptions_VerificationState = {
1697
+ /** All the extensions of the range must be declared. */
1698
+ DECLARATION: 0,
1699
+ UNVERIFIED: 1
1700
+ } as const
1701
+
1702
+ /**
1703
+ * A value of `google.protobuf.ExtensionRangeOptions.VerificationState`.
1704
+ *
1705
+ * @stability experimental
1706
+ * @category descriptor.proto
1707
+ * @since 4.1.5
1708
+ */
1709
+ export type ExtensionRangeOptions_VerificationState = (typeof ExtensionRangeOptions_VerificationState)[keyof typeof ExtensionRangeOptions_VerificationState]
1710
+
1711
+ /**
1712
+ * Describes a field within a message.
1713
+ *
1714
+ * @stability experimental
1715
+ * @category descriptor.proto
1716
+ * @since 4.1.5
1717
+ */
1718
+ export interface FieldDescriptorProto {
1719
+ readonly name?: string
1720
+ readonly number?: number
1721
+ readonly label?: FieldDescriptorProto_Label
1722
+ /**
1723
+ * If type_name is set, this need not be set. If both this and type_name
1724
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
1725
+ */
1726
+ readonly type?: FieldDescriptorProto_Type
1727
+ /**
1728
+ * For message and enum types, this is the name of the type. If the name
1729
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
1730
+ * rules are used to find the type (i.e. first the nested types within this
1731
+ * message are searched, then within the parent, on up to the root
1732
+ * namespace).
1733
+ */
1734
+ readonly type_name?: string
1735
+ /**
1736
+ * For extensions, this is the name of the type being extended. It is
1737
+ * resolved in the same manner as type_name.
1738
+ */
1739
+ readonly extendee?: string
1740
+ /**
1741
+ * For numeric types, contains the original text representation of the value.
1742
+ * For booleans, "true" or "false".
1743
+ * For strings, contains the default text contents (not escaped in any way).
1744
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
1745
+ */
1746
+ readonly default_value?: string
1747
+ /**
1748
+ * If set, gives the index of a oneof in the containing type's oneof_decl
1749
+ * list. This field is a member of that oneof.
1750
+ */
1751
+ readonly oneof_index?: number
1752
+ /**
1753
+ * JSON name of this field. The value is set by protocol compiler. If the
1754
+ * user has set a "json_name" option on this field, that option's value
1755
+ * will be used. Otherwise, it's deduced from the field's name by converting
1756
+ * it to camelCase.
1757
+ */
1758
+ readonly json_name?: string
1759
+ readonly options?: FieldOptions
1760
+ /**
1761
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
1762
+ * tracks presence regardless of field type.
1763
+ *
1764
+ * **Details**
1765
+ *
1766
+ * When proto3_optional is true, this field must belong to a oneof to signal
1767
+ * to old proto3 clients that presence is tracked for this field. This oneof
1768
+ * is known as a "synthetic" oneof, and this field must be its sole member
1769
+ * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
1770
+ * exist in the descriptor only, and do not generate any API. Synthetic oneofs
1771
+ * must be ordered after all "real" oneofs.
1772
+ *
1773
+ * For message fields, proto3_optional doesn't create any semantic change,
1774
+ * since non-repeated message fields always track presence. However it still
1775
+ * indicates the semantic detail of whether the user wrote "optional" or not.
1776
+ * This can be useful for round-tripping the .proto file. For consistency we
1777
+ * give message fields a synthetic oneof also, even though it is not required
1778
+ * to track presence. This is especially important because the parser can't
1779
+ * tell if a field is a message or an enum, so it must always create a
1780
+ * synthetic oneof.
1781
+ *
1782
+ * Proto2 optional fields do not set this flag, because they already indicate
1783
+ * optional with `LABEL_OPTIONAL`.
1784
+ */
1785
+ readonly proto3_optional?: boolean
1786
+ }
1787
+
1788
+ /**
1789
+ * The descriptor of `google.protobuf.FieldDescriptorProto`.
1790
+ *
1791
+ * @stability experimental
1792
+ * @category descriptor.proto
1793
+ * @since 4.1.5
1794
+ */
1795
+ export const FieldDescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[4]
1796
+
1797
+ /**
1798
+ * The values of `google.protobuf.FieldDescriptorProto.Type`.
1799
+ *
1800
+ * @stability experimental
1801
+ * @category descriptor.proto
1802
+ * @since 4.1.5
1803
+ */
1804
+ export const FieldDescriptorProto_Type = {
1805
+ /**
1806
+ * 0 is reserved for errors.
1807
+ * Order is weird for historical reasons.
1808
+ */
1809
+ TYPE_DOUBLE: 1,
1810
+ TYPE_FLOAT: 2,
1811
+ /**
1812
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
1813
+ * negative values are likely.
1814
+ */
1815
+ TYPE_INT64: 3,
1816
+ TYPE_UINT64: 4,
1817
+ /**
1818
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
1819
+ * negative values are likely.
1820
+ */
1821
+ TYPE_INT32: 5,
1822
+ TYPE_FIXED64: 6,
1823
+ TYPE_FIXED32: 7,
1824
+ TYPE_BOOL: 8,
1825
+ TYPE_STRING: 9,
1826
+ /**
1827
+ * Tag-delimited aggregate.
1828
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
1829
+ * implementations should still be able to parse the group wire format and
1830
+ * treat group fields as unknown fields. In Editions, the group wire format
1831
+ * can be enabled via the `message_encoding` feature.
1832
+ */
1833
+ TYPE_GROUP: 10,
1834
+ /** Length-delimited aggregate. */
1835
+ TYPE_MESSAGE: 11,
1836
+ /** New in version 2. */
1837
+ TYPE_BYTES: 12,
1838
+ TYPE_UINT32: 13,
1839
+ TYPE_ENUM: 14,
1840
+ TYPE_SFIXED32: 15,
1841
+ TYPE_SFIXED64: 16,
1842
+ /** Uses ZigZag encoding. */
1843
+ TYPE_SINT32: 17,
1844
+ /** Uses ZigZag encoding. */
1845
+ TYPE_SINT64: 18
1846
+ } as const
1847
+
1848
+ /**
1849
+ * A value of `google.protobuf.FieldDescriptorProto.Type`.
1850
+ *
1851
+ * @stability experimental
1852
+ * @category descriptor.proto
1853
+ * @since 4.1.5
1854
+ */
1855
+ export type FieldDescriptorProto_Type = (typeof FieldDescriptorProto_Type)[keyof typeof FieldDescriptorProto_Type]
1856
+
1857
+ /**
1858
+ * The values of `google.protobuf.FieldDescriptorProto.Label`.
1859
+ *
1860
+ * @stability experimental
1861
+ * @category descriptor.proto
1862
+ * @since 4.1.5
1863
+ */
1864
+ export const FieldDescriptorProto_Label = {
1865
+ /** 0 is reserved for errors */
1866
+ LABEL_OPTIONAL: 1,
1867
+ LABEL_REPEATED: 3,
1868
+ /**
1869
+ * The required label is only allowed in google.protobuf. In proto3 and Editions
1870
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
1871
+ * can be used to get this behavior.
1872
+ */
1873
+ LABEL_REQUIRED: 2
1874
+ } as const
1875
+
1876
+ /**
1877
+ * A value of `google.protobuf.FieldDescriptorProto.Label`.
1878
+ *
1879
+ * @stability experimental
1880
+ * @category descriptor.proto
1881
+ * @since 4.1.5
1882
+ */
1883
+ export type FieldDescriptorProto_Label = (typeof FieldDescriptorProto_Label)[keyof typeof FieldDescriptorProto_Label]
1884
+
1885
+ /**
1886
+ * Describes a oneof.
1887
+ *
1888
+ * @stability experimental
1889
+ * @category descriptor.proto
1890
+ * @since 4.1.5
1891
+ */
1892
+ export interface OneofDescriptorProto {
1893
+ readonly name?: string
1894
+ readonly options?: OneofOptions
1895
+ }
1896
+
1897
+ /**
1898
+ * The descriptor of `google.protobuf.OneofDescriptorProto`.
1899
+ *
1900
+ * @stability experimental
1901
+ * @category descriptor.proto
1902
+ * @since 4.1.5
1903
+ */
1904
+ export const OneofDescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[5]
1905
+
1906
+ /**
1907
+ * Describes an enum type.
1908
+ *
1909
+ * @stability experimental
1910
+ * @category descriptor.proto
1911
+ * @since 4.1.5
1912
+ */
1913
+ export interface EnumDescriptorProto {
1914
+ readonly name?: string
1915
+ readonly value?: ReadonlyArray<EnumValueDescriptorProto>
1916
+ readonly options?: EnumOptions
1917
+ /**
1918
+ * Range of reserved numeric values. Reserved numeric values may not be used
1919
+ * by enum values in the same enum declaration. Reserved ranges may not
1920
+ * overlap.
1921
+ */
1922
+ readonly reserved_range?: ReadonlyArray<EnumDescriptorProto_EnumReservedRange>
1923
+ /**
1924
+ * Reserved enum value names, which may not be reused. A given name may only
1925
+ * be reserved once.
1926
+ */
1927
+ readonly reserved_name?: ReadonlyArray<string>
1928
+ /** Support for `export` and `local` keywords on enums. */
1929
+ readonly visibility?: SymbolVisibility
1930
+ }
1931
+
1932
+ /**
1933
+ * The descriptor of `google.protobuf.EnumDescriptorProto`.
1934
+ *
1935
+ * @stability experimental
1936
+ * @category descriptor.proto
1937
+ * @since 4.1.5
1938
+ */
1939
+ export const EnumDescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[6]
1940
+
1941
+ /**
1942
+ * Range of reserved numeric values. Reserved values may not be used by
1943
+ * entries in the same enum. Reserved ranges may not overlap.
1944
+ *
1945
+ * **Details**
1946
+ *
1947
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
1948
+ * is inclusive such that it can appropriately represent the entire int32
1949
+ * domain.
1950
+ *
1951
+ * @stability experimental
1952
+ * @category descriptor.proto
1953
+ * @since 4.1.5
1954
+ */
1955
+ export interface EnumDescriptorProto_EnumReservedRange {
1956
+ /** Inclusive. */
1957
+ readonly start?: number
1958
+ /** Inclusive. */
1959
+ readonly end?: number
1960
+ }
1961
+
1962
+ /**
1963
+ * The descriptor of `google.protobuf.EnumDescriptorProto.EnumReservedRange`.
1964
+ *
1965
+ * @stability experimental
1966
+ * @category descriptor.proto
1967
+ * @since 4.1.5
1968
+ */
1969
+ export const EnumDescriptorProto_EnumReservedRange: ProtobufDescriptor.MessageDescriptor = EnumDescriptorProto.messages[0]
1970
+
1971
+ /**
1972
+ * Describes a value within an enum.
1973
+ *
1974
+ * @stability experimental
1975
+ * @category descriptor.proto
1976
+ * @since 4.1.5
1977
+ */
1978
+ export interface EnumValueDescriptorProto {
1979
+ readonly name?: string
1980
+ readonly number?: number
1981
+ readonly options?: EnumValueOptions
1982
+ }
1983
+
1984
+ /**
1985
+ * The descriptor of `google.protobuf.EnumValueDescriptorProto`.
1986
+ *
1987
+ * @stability experimental
1988
+ * @category descriptor.proto
1989
+ * @since 4.1.5
1990
+ */
1991
+ export const EnumValueDescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[7]
1992
+
1993
+ /**
1994
+ * Describes a service.
1995
+ *
1996
+ * @stability experimental
1997
+ * @category descriptor.proto
1998
+ * @since 4.1.5
1999
+ */
2000
+ export interface ServiceDescriptorProto {
2001
+ readonly name?: string
2002
+ readonly method?: ReadonlyArray<MethodDescriptorProto>
2003
+ readonly options?: ServiceOptions
2004
+ }
2005
+
2006
+ /**
2007
+ * The descriptor of `google.protobuf.ServiceDescriptorProto`.
2008
+ *
2009
+ * @stability experimental
2010
+ * @category descriptor.proto
2011
+ * @since 4.1.5
2012
+ */
2013
+ export const ServiceDescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[8]
2014
+
2015
+ /**
2016
+ * Describes a method of a service.
2017
+ *
2018
+ * @stability experimental
2019
+ * @category descriptor.proto
2020
+ * @since 4.1.5
2021
+ */
2022
+ export interface MethodDescriptorProto {
2023
+ readonly name?: string
2024
+ /**
2025
+ * Input and output type names. These are resolved in the same way as
2026
+ * FieldDescriptorProto.type_name, but must refer to a message type.
2027
+ */
2028
+ readonly input_type?: string
2029
+ readonly output_type?: string
2030
+ readonly options?: MethodOptions
2031
+ /** Identifies if client streams multiple client messages */
2032
+ readonly client_streaming?: boolean
2033
+ /** Identifies if server streams multiple server messages */
2034
+ readonly server_streaming?: boolean
2035
+ }
2036
+
2037
+ /**
2038
+ * The descriptor of `google.protobuf.MethodDescriptorProto`.
2039
+ *
2040
+ * @stability experimental
2041
+ * @category descriptor.proto
2042
+ * @since 4.1.5
2043
+ */
2044
+ export const MethodDescriptorProto: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[9]
2045
+
2046
+ /**
2047
+ * The fields of `google.protobuf.FileOptions`.
2048
+ *
2049
+ * @stability experimental
2050
+ * @category descriptor.proto
2051
+ * @since 4.1.5
2052
+ */
2053
+ export interface FileOptions {
2054
+ /**
2055
+ * Sets the Java package where classes generated from this .proto will be
2056
+ * placed. By default, the proto package is used, but this is often
2057
+ * inappropriate because proto packages do not normally start with backwards
2058
+ * domain names.
2059
+ */
2060
+ readonly java_package?: string
2061
+ /**
2062
+ * Controls the name of the wrapper Java class generated for the .proto file.
2063
+ * That class will always contain the .proto file's getDescriptor() method as
2064
+ * well as any top-level extensions defined in the .proto file.
2065
+ * If java_multiple_files is disabled, then all the other classes from the
2066
+ * .proto file will be nested inside the single wrapper outer class.
2067
+ */
2068
+ readonly java_outer_classname?: string
2069
+ /**
2070
+ * If enabled, then the Java code generator will generate a separate .java
2071
+ * file for each top-level message, enum, and service defined in the .proto
2072
+ * file. Thus, these types will *not* be nested inside the wrapper class
2073
+ * named by java_outer_classname. However, the wrapper class will still be
2074
+ * generated to contain the file's getDescriptor() method as well as any
2075
+ * top-level extensions defined in the file.
2076
+ */
2077
+ readonly java_multiple_files?: boolean
2078
+ /** This option does nothing. */
2079
+ readonly java_generate_equals_and_hash?: boolean
2080
+ /**
2081
+ * A proto2 file can set this to true to opt in to UTF-8 checking for Java,
2082
+ * which will throw an exception if invalid UTF-8 is parsed from the wire or
2083
+ * assigned to a string field.
2084
+ *
2085
+ * **Details**
2086
+ *
2087
+ * TODO: clarify exactly what kinds of field types this option
2088
+ * applies to, and update these docs accordingly.
2089
+ *
2090
+ * Proto3 files already perform these checks. Setting the option explicitly to
2091
+ * false has no effect: it cannot be used to opt proto3 files out of UTF-8
2092
+ * checks.
2093
+ */
2094
+ readonly java_string_check_utf8?: boolean
2095
+ readonly optimize_for?: FileOptions_OptimizeMode
2096
+ /**
2097
+ * Sets the Go package where structs generated from this .proto will be
2098
+ * placed. If omitted, the Go package will be derived from the following:
2099
+ * - The basename of the package import path, if provided.
2100
+ * - Otherwise, the package statement in the .proto file, if present.
2101
+ * - Otherwise, the basename of the .proto file, without extension.
2102
+ */
2103
+ readonly go_package?: string
2104
+ /**
2105
+ * Should generic services be generated in each language? "Generic" services
2106
+ * are not specific to any particular RPC system. They are generated by the
2107
+ * main code generators in each language (without additional plugins).
2108
+ * Generic services were the only kind of service generation supported by
2109
+ * early versions of google.protobuf.
2110
+ *
2111
+ * **Details**
2112
+ *
2113
+ * Generic services are now considered deprecated in favor of using plugins
2114
+ * that generate code specific to your particular RPC system. Therefore,
2115
+ * these default to false. Old code which depends on generic services should
2116
+ * explicitly set them to true.
2117
+ */
2118
+ readonly cc_generic_services?: boolean
2119
+ readonly java_generic_services?: boolean
2120
+ readonly py_generic_services?: boolean
2121
+ /**
2122
+ * Is this file deprecated?
2123
+ * Depending on the target platform, this can emit Deprecated annotations
2124
+ * for everything in the file, or it will be completely ignored; in the very
2125
+ * least, this is a formalization for deprecating files.
2126
+ */
2127
+ readonly deprecated?: boolean
2128
+ /**
2129
+ * Enables the use of arenas for the proto messages in this file. This applies
2130
+ * only to generated classes for C++.
2131
+ */
2132
+ readonly cc_enable_arenas?: boolean
2133
+ /**
2134
+ * Sets the objective c class prefix which is prepended to all objective c
2135
+ * generated classes from this .proto. There is no default.
2136
+ */
2137
+ readonly objc_class_prefix?: string
2138
+ /** Namespace for generated classes; defaults to the package. */
2139
+ readonly csharp_namespace?: string
2140
+ /**
2141
+ * By default Swift generators will take the proto package and CamelCase it
2142
+ * replacing '.' with underscore and use that to prefix the types/symbols
2143
+ * defined. When this options is provided, they will use this value instead
2144
+ * to prefix the types/symbols defined.
2145
+ */
2146
+ readonly swift_prefix?: string
2147
+ /**
2148
+ * Sets the php class prefix which is prepended to all php generated classes
2149
+ * from this .proto. Default is empty.
2150
+ */
2151
+ readonly php_class_prefix?: string
2152
+ /**
2153
+ * Use this option to change the namespace of php generated classes. Default
2154
+ * is empty. When this option is empty, the package name will be used for
2155
+ * determining the namespace.
2156
+ */
2157
+ readonly php_namespace?: string
2158
+ /**
2159
+ * Use this option to change the namespace of php generated metadata classes.
2160
+ * Default is empty. When this option is empty, the proto file name will be
2161
+ * used for determining the namespace.
2162
+ */
2163
+ readonly php_metadata_namespace?: string
2164
+ /**
2165
+ * Use this option to change the package of ruby generated classes. Default
2166
+ * is empty. When this option is not set, the package name will be used for
2167
+ * determining the ruby package.
2168
+ */
2169
+ readonly ruby_package?: string
2170
+ /**
2171
+ * Any features defined in the specific edition.
2172
+ * WARNING: This field should only be used by protobuf plugins or special
2173
+ * cases like the proto compiler. Other uses are discouraged and
2174
+ * developers should rely on the protoreflect APIs for their client language.
2175
+ */
2176
+ readonly features?: FeatureSet
2177
+ /**
2178
+ * The parser stores options it doesn't recognize here.
2179
+ * See the documentation for the "Options" section above.
2180
+ */
2181
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2182
+ }
2183
+
2184
+ /**
2185
+ * The descriptor of `google.protobuf.FileOptions`.
2186
+ *
2187
+ * @stability experimental
2188
+ * @category descriptor.proto
2189
+ * @since 4.1.5
2190
+ */
2191
+ export const FileOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[10]
2192
+
2193
+ /**
2194
+ * Generated classes can be optimized for speed or code size.
2195
+ *
2196
+ * @stability experimental
2197
+ * @category descriptor.proto
2198
+ * @since 4.1.5
2199
+ */
2200
+ export const FileOptions_OptimizeMode = {
2201
+ /** Generate complete code for parsing, serialization, */
2202
+ SPEED: 1,
2203
+ /** etc. */
2204
+ CODE_SIZE: 2,
2205
+ /** Generate code using MessageLite and the lite runtime. */
2206
+ LITE_RUNTIME: 3
2207
+ } as const
2208
+
2209
+ /**
2210
+ * A value of `google.protobuf.FileOptions.OptimizeMode`.
2211
+ *
2212
+ * @stability experimental
2213
+ * @category descriptor.proto
2214
+ * @since 4.1.5
2215
+ */
2216
+ export type FileOptions_OptimizeMode = (typeof FileOptions_OptimizeMode)[keyof typeof FileOptions_OptimizeMode]
2217
+
2218
+ /**
2219
+ * The fields of `google.protobuf.MessageOptions`.
2220
+ *
2221
+ * @stability experimental
2222
+ * @category descriptor.proto
2223
+ * @since 4.1.5
2224
+ */
2225
+ export interface MessageOptions {
2226
+ /**
2227
+ * Set true to use the old proto1 MessageSet wire format for extensions.
2228
+ * This is provided for backwards-compatibility with the MessageSet wire
2229
+ * format. You should not use this for any other reason: It's less
2230
+ * efficient, has fewer features, and is more complicated.
2231
+ *
2232
+ * **Details**
2233
+ *
2234
+ * The message must be defined exactly as follows:
2235
+ * message Foo {
2236
+ * option message_set_wire_format = true;
2237
+ * extensions 4 to max;
2238
+ * }
2239
+ * Note that the message cannot have any defined fields; MessageSets only
2240
+ * have extensions.
2241
+ *
2242
+ * All extensions of your type must be singular messages; e.g. they cannot
2243
+ * be int32s, enums, or repeated messages.
2244
+ *
2245
+ * Because this is an option, the above two restrictions are not enforced by
2246
+ * the protocol compiler.
2247
+ */
2248
+ readonly message_set_wire_format?: boolean
2249
+ /**
2250
+ * Disables the generation of the standard "descriptor()" accessor, which can
2251
+ * conflict with a field of the same name. This is meant to make migration
2252
+ * from proto1 easier; new code should avoid fields named "descriptor".
2253
+ */
2254
+ readonly no_standard_descriptor_accessor?: boolean
2255
+ /**
2256
+ * Is this message deprecated?
2257
+ * Depending on the target platform, this can emit Deprecated annotations
2258
+ * for the message, or it will be completely ignored; in the very least,
2259
+ * this is a formalization for deprecating messages.
2260
+ */
2261
+ readonly deprecated?: boolean
2262
+ /**
2263
+ * Whether the message is an automatically generated map entry type for the
2264
+ * maps field.
2265
+ *
2266
+ * **Details**
2267
+ *
2268
+ * For maps fields:
2269
+ * map<KeyType, ValueType> map_field = 1;
2270
+ * The parsed descriptor looks like:
2271
+ * message MapFieldEntry {
2272
+ * option map_entry = true;
2273
+ * optional KeyType key = 1;
2274
+ * optional ValueType value = 2;
2275
+ * }
2276
+ * repeated MapFieldEntry map_field = 1;
2277
+ *
2278
+ * Implementations may choose not to generate the map_entry=true message, but
2279
+ * use a native map in the target language to hold the keys and values.
2280
+ * The reflection APIs in such implementations still need to work as
2281
+ * if the field is a repeated message field.
2282
+ *
2283
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
2284
+ * instead. The option should only be implicitly set by the proto compiler
2285
+ * parser.
2286
+ */
2287
+ readonly map_entry?: boolean
2288
+ /**
2289
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
2290
+ * and strips underscored from the fields before comparison in proto3 only.
2291
+ * The new behavior takes `json_name` into account and applies to proto2 as
2292
+ * well.
2293
+ *
2294
+ * **Details**
2295
+ *
2296
+ * This should only be used as a temporary measure against broken builds due
2297
+ * to the change in behavior for JSON field name conflicts.
2298
+ *
2299
+ * TODO This is legacy behavior we plan to remove once downstream
2300
+ * teams have had time to migrate.
2301
+ */
2302
+ readonly deprecated_legacy_json_field_conflicts?: boolean
2303
+ /**
2304
+ * Any features defined in the specific edition.
2305
+ * WARNING: This field should only be used by protobuf plugins or special
2306
+ * cases like the proto compiler. Other uses are discouraged and
2307
+ * developers should rely on the protoreflect APIs for their client language.
2308
+ */
2309
+ readonly features?: FeatureSet
2310
+ /** The parser stores options it doesn't recognize here. See above. */
2311
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2312
+ }
2313
+
2314
+ /**
2315
+ * The descriptor of `google.protobuf.MessageOptions`.
2316
+ *
2317
+ * @stability experimental
2318
+ * @category descriptor.proto
2319
+ * @since 4.1.5
2320
+ */
2321
+ export const MessageOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[11]
2322
+
2323
+ /**
2324
+ * The fields of `google.protobuf.FieldOptions`.
2325
+ *
2326
+ * @stability experimental
2327
+ * @category descriptor.proto
2328
+ * @since 4.1.5
2329
+ */
2330
+ export interface FieldOptions {
2331
+ /**
2332
+ * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
2333
+ * The ctype option instructs the C++ code generator to use a different
2334
+ * representation of the field than it normally would. See the specific
2335
+ * options below. This option is only implemented to support use of
2336
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
2337
+ * type "bytes" in the open source release.
2338
+ * TODO: make ctype actually deprecated.
2339
+ */
2340
+ readonly ctype?: FieldOptions_CType
2341
+ /**
2342
+ * The packed option can be enabled for repeated primitive fields to enable
2343
+ * a more efficient representation on the wire. Rather than repeatedly
2344
+ * writing the tag and type for each element, the entire array is encoded as
2345
+ * a single length-delimited blob. In proto3, only explicit setting it to
2346
+ * false will avoid using packed encoding. This option is prohibited in
2347
+ * Editions, but the `repeated_field_encoding` feature can be used to control
2348
+ * the behavior.
2349
+ */
2350
+ readonly packed?: boolean
2351
+ /**
2352
+ * The jstype option determines the JavaScript type used for values of the
2353
+ * field. The option is permitted only for 64 bit integral and fixed types
2354
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
2355
+ * is represented as JavaScript string, which avoids loss of precision that
2356
+ * can happen when a large value is converted to a floating point JavaScript.
2357
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
2358
+ * use the JavaScript "number" type. The behavior of the default option
2359
+ * JS_NORMAL is implementation dependent.
2360
+ *
2361
+ * **Details**
2362
+ *
2363
+ * This option is an enum to permit additional types to be added, e.g.
2364
+ * goog.math.Integer.
2365
+ */
2366
+ readonly jstype?: FieldOptions_JSType
2367
+ /**
2368
+ * Should this field be parsed lazily? Lazy applies only to message-type
2369
+ * fields. It means that when the outer message is initially parsed, the
2370
+ * inner message's contents will not be parsed but instead stored in encoded
2371
+ * form. The inner message will actually be parsed when it is first accessed.
2372
+ *
2373
+ * **Details**
2374
+ *
2375
+ * This is only a hint. Implementations are free to choose whether to use
2376
+ * eager or lazy parsing regardless of the value of this option. However,
2377
+ * setting this option true suggests that the protocol author believes that
2378
+ * using lazy parsing on this field is worth the additional bookkeeping
2379
+ * overhead typically needed to implement it.
2380
+ *
2381
+ * This option does not affect the public interface of any generated code;
2382
+ * all method signatures remain the same. Furthermore, thread-safety of the
2383
+ * interface is not affected by this option; const methods remain safe to
2384
+ * call from multiple threads concurrently, while non-const methods continue
2385
+ * to require exclusive access.
2386
+ *
2387
+ * Note that lazy message fields are still eagerly verified to check
2388
+ * ill-formed wireformat or missing required fields. Calling IsInitialized()
2389
+ * on the outer message would fail if the inner message has missing required
2390
+ * fields. Failed verification would result in parsing failure (except when
2391
+ * uninitialized messages are acceptable).
2392
+ */
2393
+ readonly lazy?: boolean
2394
+ /**
2395
+ * unverified_lazy does no correctness checks on the byte stream. This should
2396
+ * only be used where lazy with verification is prohibitive for performance
2397
+ * reasons.
2398
+ */
2399
+ readonly unverified_lazy?: boolean
2400
+ /**
2401
+ * Is this field deprecated?
2402
+ * Depending on the target platform, this can emit Deprecated annotations
2403
+ * for accessors, or it will be completely ignored; in the very least, this
2404
+ * is a formalization for deprecating fields.
2405
+ */
2406
+ readonly deprecated?: boolean
2407
+ /**
2408
+ * DEPRECATED. DO NOT USE!
2409
+ * For Google-internal migration only. Do not use.
2410
+ */
2411
+ readonly weak?: boolean
2412
+ /**
2413
+ * Indicate that the field value should not be printed out when using debug
2414
+ * formats, e.g. when the field contains sensitive credentials.
2415
+ */
2416
+ readonly debug_redact?: boolean
2417
+ readonly retention?: FieldOptions_OptionRetention
2418
+ readonly targets?: ReadonlyArray<FieldOptions_OptionTargetType>
2419
+ readonly edition_defaults?: ReadonlyArray<FieldOptions_EditionDefault>
2420
+ /**
2421
+ * Any features defined in the specific edition.
2422
+ * WARNING: This field should only be used by protobuf plugins or special
2423
+ * cases like the proto compiler. Other uses are discouraged and
2424
+ * developers should rely on the protoreflect APIs for their client language.
2425
+ */
2426
+ readonly features?: FeatureSet
2427
+ readonly feature_support?: FieldOptions_FeatureSupport
2428
+ /** The parser stores options it doesn't recognize here. See above. */
2429
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2430
+ }
2431
+
2432
+ /**
2433
+ * The descriptor of `google.protobuf.FieldOptions`.
2434
+ *
2435
+ * @stability experimental
2436
+ * @category descriptor.proto
2437
+ * @since 4.1.5
2438
+ */
2439
+ export const FieldOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[12]
2440
+
2441
+ /**
2442
+ * The fields of `google.protobuf.FieldOptions.EditionDefault`.
2443
+ *
2444
+ * @stability experimental
2445
+ * @category descriptor.proto
2446
+ * @since 4.1.5
2447
+ */
2448
+ export interface FieldOptions_EditionDefault {
2449
+ readonly edition?: Edition
2450
+ /** Textproto value. */
2451
+ readonly value?: string
2452
+ }
2453
+
2454
+ /**
2455
+ * The descriptor of `google.protobuf.FieldOptions.EditionDefault`.
2456
+ *
2457
+ * @stability experimental
2458
+ * @category descriptor.proto
2459
+ * @since 4.1.5
2460
+ */
2461
+ export const FieldOptions_EditionDefault: ProtobufDescriptor.MessageDescriptor = FieldOptions.messages[0]
2462
+
2463
+ /**
2464
+ * Information about the support window of a feature.
2465
+ *
2466
+ * @stability experimental
2467
+ * @category descriptor.proto
2468
+ * @since 4.1.5
2469
+ */
2470
+ export interface FieldOptions_FeatureSupport {
2471
+ /**
2472
+ * The edition that this feature was first available in. In editions
2473
+ * earlier than this one, the default assigned to EDITION_LEGACY will be
2474
+ * used, and proto files will not be able to override it.
2475
+ */
2476
+ readonly edition_introduced?: Edition
2477
+ /**
2478
+ * The edition this feature becomes deprecated in. Using this after this
2479
+ * edition may trigger warnings.
2480
+ */
2481
+ readonly edition_deprecated?: Edition
2482
+ /**
2483
+ * The deprecation warning text if this feature is used after the edition it
2484
+ * was marked deprecated in.
2485
+ */
2486
+ readonly deprecation_warning?: string
2487
+ /**
2488
+ * The edition this feature is no longer available in. In editions after
2489
+ * this one, the last default assigned will be used, and proto files will
2490
+ * not be able to override it.
2491
+ */
2492
+ readonly edition_removed?: Edition
2493
+ /**
2494
+ * The removal error text if this feature is used after the edition it was
2495
+ * removed in.
2496
+ */
2497
+ readonly removal_error?: string
2498
+ }
2499
+
2500
+ /**
2501
+ * The descriptor of `google.protobuf.FieldOptions.FeatureSupport`.
2502
+ *
2503
+ * @stability experimental
2504
+ * @category descriptor.proto
2505
+ * @since 4.1.5
2506
+ */
2507
+ export const FieldOptions_FeatureSupport: ProtobufDescriptor.MessageDescriptor = FieldOptions.messages[1]
2508
+
2509
+ /**
2510
+ * The values of `google.protobuf.FieldOptions.CType`.
2511
+ *
2512
+ * @stability experimental
2513
+ * @category descriptor.proto
2514
+ * @since 4.1.5
2515
+ */
2516
+ export const FieldOptions_CType = {
2517
+ /** Default mode. */
2518
+ STRING: 0,
2519
+ /**
2520
+ * The option [ctype=CORD] may be applied to a non-repeated field of type
2521
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
2522
+ * instead of a string. For very large strings, this may reduce memory
2523
+ * fragmentation. It may also allow better performance when parsing from a
2524
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
2525
+ * alias the original buffer.
2526
+ */
2527
+ CORD: 1,
2528
+ STRING_PIECE: 2
2529
+ } as const
2530
+
2531
+ /**
2532
+ * A value of `google.protobuf.FieldOptions.CType`.
2533
+ *
2534
+ * @stability experimental
2535
+ * @category descriptor.proto
2536
+ * @since 4.1.5
2537
+ */
2538
+ export type FieldOptions_CType = (typeof FieldOptions_CType)[keyof typeof FieldOptions_CType]
2539
+
2540
+ /**
2541
+ * The values of `google.protobuf.FieldOptions.JSType`.
2542
+ *
2543
+ * @stability experimental
2544
+ * @category descriptor.proto
2545
+ * @since 4.1.5
2546
+ */
2547
+ export const FieldOptions_JSType = {
2548
+ /** Use the default type. */
2549
+ JS_NORMAL: 0,
2550
+ /** Use JavaScript strings. */
2551
+ JS_STRING: 1,
2552
+ /** Use JavaScript numbers. */
2553
+ JS_NUMBER: 2
2554
+ } as const
2555
+
2556
+ /**
2557
+ * A value of `google.protobuf.FieldOptions.JSType`.
2558
+ *
2559
+ * @stability experimental
2560
+ * @category descriptor.proto
2561
+ * @since 4.1.5
2562
+ */
2563
+ export type FieldOptions_JSType = (typeof FieldOptions_JSType)[keyof typeof FieldOptions_JSType]
2564
+
2565
+ /**
2566
+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.
2567
+ *
2568
+ * @stability experimental
2569
+ * @category descriptor.proto
2570
+ * @since 4.1.5
2571
+ */
2572
+ export const FieldOptions_OptionRetention = {
2573
+ RETENTION_UNKNOWN: 0,
2574
+ RETENTION_RUNTIME: 1,
2575
+ RETENTION_SOURCE: 2
2576
+ } as const
2577
+
2578
+ /**
2579
+ * A value of `google.protobuf.FieldOptions.OptionRetention`.
2580
+ *
2581
+ * @stability experimental
2582
+ * @category descriptor.proto
2583
+ * @since 4.1.5
2584
+ */
2585
+ export type FieldOptions_OptionRetention = (typeof FieldOptions_OptionRetention)[keyof typeof FieldOptions_OptionRetention]
2586
+
2587
+ /**
2588
+ * This indicates the types of entities that the field may apply to when used
2589
+ * as an option. If it is unset, then the field may be freely used as an
2590
+ * option on any kind of entity.
2591
+ *
2592
+ * @stability experimental
2593
+ * @category descriptor.proto
2594
+ * @since 4.1.5
2595
+ */
2596
+ export const FieldOptions_OptionTargetType = {
2597
+ TARGET_TYPE_UNKNOWN: 0,
2598
+ TARGET_TYPE_FILE: 1,
2599
+ TARGET_TYPE_EXTENSION_RANGE: 2,
2600
+ TARGET_TYPE_MESSAGE: 3,
2601
+ TARGET_TYPE_FIELD: 4,
2602
+ TARGET_TYPE_ONEOF: 5,
2603
+ TARGET_TYPE_ENUM: 6,
2604
+ TARGET_TYPE_ENUM_ENTRY: 7,
2605
+ TARGET_TYPE_SERVICE: 8,
2606
+ TARGET_TYPE_METHOD: 9
2607
+ } as const
2608
+
2609
+ /**
2610
+ * A value of `google.protobuf.FieldOptions.OptionTargetType`.
2611
+ *
2612
+ * @stability experimental
2613
+ * @category descriptor.proto
2614
+ * @since 4.1.5
2615
+ */
2616
+ export type FieldOptions_OptionTargetType = (typeof FieldOptions_OptionTargetType)[keyof typeof FieldOptions_OptionTargetType]
2617
+
2618
+ /**
2619
+ * The fields of `google.protobuf.OneofOptions`.
2620
+ *
2621
+ * @stability experimental
2622
+ * @category descriptor.proto
2623
+ * @since 4.1.5
2624
+ */
2625
+ export interface OneofOptions {
2626
+ /**
2627
+ * Any features defined in the specific edition.
2628
+ * WARNING: This field should only be used by protobuf plugins or special
2629
+ * cases like the proto compiler. Other uses are discouraged and
2630
+ * developers should rely on the protoreflect APIs for their client language.
2631
+ */
2632
+ readonly features?: FeatureSet
2633
+ /** The parser stores options it doesn't recognize here. See above. */
2634
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2635
+ }
2636
+
2637
+ /**
2638
+ * The descriptor of `google.protobuf.OneofOptions`.
2639
+ *
2640
+ * @stability experimental
2641
+ * @category descriptor.proto
2642
+ * @since 4.1.5
2643
+ */
2644
+ export const OneofOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[13]
2645
+
2646
+ /**
2647
+ * The fields of `google.protobuf.EnumOptions`.
2648
+ *
2649
+ * @stability experimental
2650
+ * @category descriptor.proto
2651
+ * @since 4.1.5
2652
+ */
2653
+ export interface EnumOptions {
2654
+ /**
2655
+ * Set this option to true to allow mapping different tag names to the same
2656
+ * value.
2657
+ */
2658
+ readonly allow_alias?: boolean
2659
+ /**
2660
+ * Is this enum deprecated?
2661
+ * Depending on the target platform, this can emit Deprecated annotations
2662
+ * for the enum, or it will be completely ignored; in the very least, this
2663
+ * is a formalization for deprecating enums.
2664
+ */
2665
+ readonly deprecated?: boolean
2666
+ /**
2667
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
2668
+ * and strips underscored from the fields before comparison in proto3 only.
2669
+ * The new behavior takes `json_name` into account and applies to proto2 as
2670
+ * well.
2671
+ * TODO Remove this legacy behavior once downstream teams have
2672
+ * had time to migrate.
2673
+ */
2674
+ readonly deprecated_legacy_json_field_conflicts?: boolean
2675
+ /**
2676
+ * Any features defined in the specific edition.
2677
+ * WARNING: This field should only be used by protobuf plugins or special
2678
+ * cases like the proto compiler. Other uses are discouraged and
2679
+ * developers should rely on the protoreflect APIs for their client language.
2680
+ */
2681
+ readonly features?: FeatureSet
2682
+ /** The parser stores options it doesn't recognize here. See above. */
2683
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2684
+ }
2685
+
2686
+ /**
2687
+ * The descriptor of `google.protobuf.EnumOptions`.
2688
+ *
2689
+ * @stability experimental
2690
+ * @category descriptor.proto
2691
+ * @since 4.1.5
2692
+ */
2693
+ export const EnumOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[14]
2694
+
2695
+ /**
2696
+ * The fields of `google.protobuf.EnumValueOptions`.
2697
+ *
2698
+ * @stability experimental
2699
+ * @category descriptor.proto
2700
+ * @since 4.1.5
2701
+ */
2702
+ export interface EnumValueOptions {
2703
+ /**
2704
+ * Is this enum value deprecated?
2705
+ * Depending on the target platform, this can emit Deprecated annotations
2706
+ * for the enum value, or it will be completely ignored; in the very least,
2707
+ * this is a formalization for deprecating enum values.
2708
+ */
2709
+ readonly deprecated?: boolean
2710
+ /**
2711
+ * Any features defined in the specific edition.
2712
+ * WARNING: This field should only be used by protobuf plugins or special
2713
+ * cases like the proto compiler. Other uses are discouraged and
2714
+ * developers should rely on the protoreflect APIs for their client language.
2715
+ */
2716
+ readonly features?: FeatureSet
2717
+ /**
2718
+ * Indicate that fields annotated with this enum value should not be printed
2719
+ * out when using debug formats, e.g. when the field contains sensitive
2720
+ * credentials.
2721
+ */
2722
+ readonly debug_redact?: boolean
2723
+ /** Information about the support window of a feature value. */
2724
+ readonly feature_support?: FieldOptions_FeatureSupport
2725
+ /** The parser stores options it doesn't recognize here. See above. */
2726
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2727
+ }
2728
+
2729
+ /**
2730
+ * The descriptor of `google.protobuf.EnumValueOptions`.
2731
+ *
2732
+ * @stability experimental
2733
+ * @category descriptor.proto
2734
+ * @since 4.1.5
2735
+ */
2736
+ export const EnumValueOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[15]
2737
+
2738
+ /**
2739
+ * The fields of `google.protobuf.ServiceOptions`.
2740
+ *
2741
+ * @stability experimental
2742
+ * @category descriptor.proto
2743
+ * @since 4.1.5
2744
+ */
2745
+ export interface ServiceOptions {
2746
+ /**
2747
+ * Any features defined in the specific edition.
2748
+ * WARNING: This field should only be used by protobuf plugins or special
2749
+ * cases like the proto compiler. Other uses are discouraged and
2750
+ * developers should rely on the protoreflect APIs for their client language.
2751
+ */
2752
+ readonly features?: FeatureSet
2753
+ /**
2754
+ * Is this service deprecated?
2755
+ * Depending on the target platform, this can emit Deprecated annotations
2756
+ * for the service, or it will be completely ignored; in the very least,
2757
+ * this is a formalization for deprecating services.
2758
+ */
2759
+ readonly deprecated?: boolean
2760
+ /** The parser stores options it doesn't recognize here. See above. */
2761
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2762
+ }
2763
+
2764
+ /**
2765
+ * The descriptor of `google.protobuf.ServiceOptions`.
2766
+ *
2767
+ * @stability experimental
2768
+ * @category descriptor.proto
2769
+ * @since 4.1.5
2770
+ */
2771
+ export const ServiceOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[16]
2772
+
2773
+ /**
2774
+ * The fields of `google.protobuf.MethodOptions`.
2775
+ *
2776
+ * @stability experimental
2777
+ * @category descriptor.proto
2778
+ * @since 4.1.5
2779
+ */
2780
+ export interface MethodOptions {
2781
+ /**
2782
+ * Is this method deprecated?
2783
+ * Depending on the target platform, this can emit Deprecated annotations
2784
+ * for the method, or it will be completely ignored; in the very least,
2785
+ * this is a formalization for deprecating methods.
2786
+ */
2787
+ readonly deprecated?: boolean
2788
+ readonly idempotency_level?: MethodOptions_IdempotencyLevel
2789
+ /**
2790
+ * Any features defined in the specific edition.
2791
+ * WARNING: This field should only be used by protobuf plugins or special
2792
+ * cases like the proto compiler. Other uses are discouraged and
2793
+ * developers should rely on the protoreflect APIs for their client language.
2794
+ */
2795
+ readonly features?: FeatureSet
2796
+ /** The parser stores options it doesn't recognize here. See above. */
2797
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>
2798
+ }
2799
+
2800
+ /**
2801
+ * The descriptor of `google.protobuf.MethodOptions`.
2802
+ *
2803
+ * @stability experimental
2804
+ * @category descriptor.proto
2805
+ * @since 4.1.5
2806
+ */
2807
+ export const MethodOptions: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[17]
2808
+
2809
+ /**
2810
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
2811
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
2812
+ * methods, and PUT verb for idempotent methods instead of the default POST.
2813
+ *
2814
+ * @stability experimental
2815
+ * @category descriptor.proto
2816
+ * @since 4.1.5
2817
+ */
2818
+ export const MethodOptions_IdempotencyLevel = {
2819
+ IDEMPOTENCY_UNKNOWN: 0,
2820
+ /** implies idempotent */
2821
+ NO_SIDE_EFFECTS: 1,
2822
+ /** idempotent, but may have side effects */
2823
+ IDEMPOTENT: 2
2824
+ } as const
2825
+
2826
+ /**
2827
+ * A value of `google.protobuf.MethodOptions.IdempotencyLevel`.
2828
+ *
2829
+ * @stability experimental
2830
+ * @category descriptor.proto
2831
+ * @since 4.1.5
2832
+ */
2833
+ export type MethodOptions_IdempotencyLevel = (typeof MethodOptions_IdempotencyLevel)[keyof typeof MethodOptions_IdempotencyLevel]
2834
+
2835
+ /**
2836
+ * A message representing a option the parser does not recognize. This only
2837
+ * appears in options protos created by the compiler::Parser class.
2838
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
2839
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
2840
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
2841
+ * in them.
2842
+ *
2843
+ * @stability experimental
2844
+ * @category descriptor.proto
2845
+ * @since 4.1.5
2846
+ */
2847
+ export interface UninterpretedOption {
2848
+ readonly name?: ReadonlyArray<UninterpretedOption_NamePart>
2849
+ /**
2850
+ * The value of the uninterpreted option, in whatever type the tokenizer
2851
+ * identified it as during parsing. Exactly one of these should be set.
2852
+ */
2853
+ readonly identifier_value?: string
2854
+ readonly positive_int_value?: bigint
2855
+ readonly negative_int_value?: bigint
2856
+ readonly double_value?: number
2857
+ readonly string_value?: Uint8Array
2858
+ readonly aggregate_value?: string
2859
+ }
2860
+
2861
+ /**
2862
+ * The descriptor of `google.protobuf.UninterpretedOption`.
2863
+ *
2864
+ * @stability experimental
2865
+ * @category descriptor.proto
2866
+ * @since 4.1.5
2867
+ */
2868
+ export const UninterpretedOption: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[18]
2869
+
2870
+ /**
2871
+ * The name of the uninterpreted option. Each string represents a segment in
2872
+ * a dot-separated name. is_extension is true iff a segment represents an
2873
+ * extension (denoted with parentheses in options specs in .proto files).
2874
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
2875
+ * "foo.(bar.baz).moo".
2876
+ *
2877
+ * @stability experimental
2878
+ * @category descriptor.proto
2879
+ * @since 4.1.5
2880
+ */
2881
+ export interface UninterpretedOption_NamePart {
2882
+ readonly name_part: string
2883
+ readonly is_extension: boolean
2884
+ }
2885
+
2886
+ /**
2887
+ * The descriptor of `google.protobuf.UninterpretedOption.NamePart`.
2888
+ *
2889
+ * @stability experimental
2890
+ * @category descriptor.proto
2891
+ * @since 4.1.5
2892
+ */
2893
+ export const UninterpretedOption_NamePart: ProtobufDescriptor.MessageDescriptor = UninterpretedOption.messages[0]
2894
+
2895
+ /**
2896
+ * TODO Enums in C++ gencode (and potentially other languages) are
2897
+ * not well scoped. This means that each of the feature enums below can clash
2898
+ * with each other. The short names we've chosen maximize call-site
2899
+ * readability, but leave us very open to this scenario. A future feature will
2900
+ * be designed and implemented to handle this, hopefully before we ever hit a
2901
+ * conflict here.
2902
+ *
2903
+ * @stability experimental
2904
+ * @category descriptor.proto
2905
+ * @since 4.1.5
2906
+ */
2907
+ export interface FeatureSet {
2908
+ readonly field_presence?: FeatureSet_FieldPresence
2909
+ readonly enum_type?: FeatureSet_EnumType
2910
+ readonly repeated_field_encoding?: FeatureSet_RepeatedFieldEncoding
2911
+ readonly utf8_validation?: FeatureSet_Utf8Validation
2912
+ readonly message_encoding?: FeatureSet_MessageEncoding
2913
+ readonly json_format?: FeatureSet_JsonFormat
2914
+ readonly enforce_naming_style?: FeatureSet_EnforceNamingStyle
2915
+ readonly default_symbol_visibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibility
2916
+ readonly enforce_proto_limits?: FeatureSet_ProtoLimitsFeature_EnforceProtoLimits
2917
+ }
2918
+
2919
+ /**
2920
+ * The descriptor of `google.protobuf.FeatureSet`.
2921
+ *
2922
+ * @stability experimental
2923
+ * @category descriptor.proto
2924
+ * @since 4.1.5
2925
+ */
2926
+ export const FeatureSet: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[19]
2927
+
2928
+ /**
2929
+ * The fields of `google.protobuf.FeatureSet.VisibilityFeature`.
2930
+ *
2931
+ * @stability experimental
2932
+ * @category descriptor.proto
2933
+ * @since 4.1.5
2934
+ */
2935
+ export interface FeatureSet_VisibilityFeature {}
2936
+
2937
+ /**
2938
+ * The descriptor of `google.protobuf.FeatureSet.VisibilityFeature`.
2939
+ *
2940
+ * @stability experimental
2941
+ * @category descriptor.proto
2942
+ * @since 4.1.5
2943
+ */
2944
+ export const FeatureSet_VisibilityFeature: ProtobufDescriptor.MessageDescriptor = FeatureSet.messages[0]
2945
+
2946
+ /**
2947
+ * The values of `google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility`.
2948
+ *
2949
+ * @stability experimental
2950
+ * @category descriptor.proto
2951
+ * @since 4.1.5
2952
+ */
2953
+ export const FeatureSet_VisibilityFeature_DefaultSymbolVisibility = {
2954
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN: 0,
2955
+ /** Default pre-EDITION_2024, all UNSET visibility are export. */
2956
+ EXPORT_ALL: 1,
2957
+ /** All top-level symbols default to export, nested default to local. */
2958
+ EXPORT_TOP_LEVEL: 2,
2959
+ /** All symbols default to local. */
2960
+ LOCAL_ALL: 3,
2961
+ /**
2962
+ * All symbols local by default. Nested types cannot be exported.
2963
+ * With special case caveat for message { enum {} reserved 1 to max; }
2964
+ * This is the recommended setting for new protos.
2965
+ */
2966
+ STRICT: 4
2967
+ } as const
2968
+
2969
+ /**
2970
+ * A value of `google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility`.
2971
+ *
2972
+ * @stability experimental
2973
+ * @category descriptor.proto
2974
+ * @since 4.1.5
2975
+ */
2976
+ export type FeatureSet_VisibilityFeature_DefaultSymbolVisibility = (typeof FeatureSet_VisibilityFeature_DefaultSymbolVisibility)[keyof typeof FeatureSet_VisibilityFeature_DefaultSymbolVisibility]
2977
+
2978
+ /**
2979
+ * The fields of `google.protobuf.FeatureSet.ProtoLimitsFeature`.
2980
+ *
2981
+ * @stability experimental
2982
+ * @category descriptor.proto
2983
+ * @since 4.1.5
2984
+ */
2985
+ export interface FeatureSet_ProtoLimitsFeature {}
2986
+
2987
+ /**
2988
+ * The descriptor of `google.protobuf.FeatureSet.ProtoLimitsFeature`.
2989
+ *
2990
+ * @stability experimental
2991
+ * @category descriptor.proto
2992
+ * @since 4.1.5
2993
+ */
2994
+ export const FeatureSet_ProtoLimitsFeature: ProtobufDescriptor.MessageDescriptor = FeatureSet.messages[1]
2995
+
2996
+ /**
2997
+ * The values of `google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits`.
2998
+ *
2999
+ * @stability experimental
3000
+ * @category descriptor.proto
3001
+ * @since 4.1.5
3002
+ */
3003
+ export const FeatureSet_ProtoLimitsFeature_EnforceProtoLimits = {
3004
+ PROTO_LIMITS_UNKNOWN: 0,
3005
+ /**
3006
+ * Default pre-EDITION_2026: there are no limit enforcement at the protoc
3007
+ * level. Practical limits still exist, but they will tend to fail while
3008
+ * compiling protoc-generated code, and these limits tend to be language
3009
+ * or toolchain specific.
3010
+ */
3011
+ LEGACY_NO_EXPLICIT_LIMITS: 1,
3012
+ /**
3013
+ * A set of limits enforced by Edition 2026 by default. For a detailed
3014
+ * list of all the limits please consult the Edition 2026 documentation.
3015
+ */
3016
+ PROTO_LIMITS2026: 2
3017
+ } as const
3018
+
3019
+ /**
3020
+ * A value of `google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits`.
3021
+ *
3022
+ * @stability experimental
3023
+ * @category descriptor.proto
3024
+ * @since 4.1.5
3025
+ */
3026
+ export type FeatureSet_ProtoLimitsFeature_EnforceProtoLimits = (typeof FeatureSet_ProtoLimitsFeature_EnforceProtoLimits)[keyof typeof FeatureSet_ProtoLimitsFeature_EnforceProtoLimits]
3027
+
3028
+ /**
3029
+ * The values of `google.protobuf.FeatureSet.FieldPresence`.
3030
+ *
3031
+ * @stability experimental
3032
+ * @category descriptor.proto
3033
+ * @since 4.1.5
3034
+ */
3035
+ export const FeatureSet_FieldPresence = {
3036
+ FIELD_PRESENCE_UNKNOWN: 0,
3037
+ EXPLICIT: 1,
3038
+ IMPLICIT: 2,
3039
+ LEGACY_REQUIRED: 3
3040
+ } as const
3041
+
3042
+ /**
3043
+ * A value of `google.protobuf.FeatureSet.FieldPresence`.
3044
+ *
3045
+ * @stability experimental
3046
+ * @category descriptor.proto
3047
+ * @since 4.1.5
3048
+ */
3049
+ export type FeatureSet_FieldPresence = (typeof FeatureSet_FieldPresence)[keyof typeof FeatureSet_FieldPresence]
3050
+
3051
+ /**
3052
+ * The values of `google.protobuf.FeatureSet.EnumType`.
3053
+ *
3054
+ * @stability experimental
3055
+ * @category descriptor.proto
3056
+ * @since 4.1.5
3057
+ */
3058
+ export const FeatureSet_EnumType = {
3059
+ ENUM_TYPE_UNKNOWN: 0,
3060
+ OPEN: 1,
3061
+ CLOSED: 2
3062
+ } as const
3063
+
3064
+ /**
3065
+ * A value of `google.protobuf.FeatureSet.EnumType`.
3066
+ *
3067
+ * @stability experimental
3068
+ * @category descriptor.proto
3069
+ * @since 4.1.5
3070
+ */
3071
+ export type FeatureSet_EnumType = (typeof FeatureSet_EnumType)[keyof typeof FeatureSet_EnumType]
3072
+
3073
+ /**
3074
+ * The values of `google.protobuf.FeatureSet.RepeatedFieldEncoding`.
3075
+ *
3076
+ * @stability experimental
3077
+ * @category descriptor.proto
3078
+ * @since 4.1.5
3079
+ */
3080
+ export const FeatureSet_RepeatedFieldEncoding = {
3081
+ REPEATED_FIELD_ENCODING_UNKNOWN: 0,
3082
+ PACKED: 1,
3083
+ EXPANDED: 2
3084
+ } as const
3085
+
3086
+ /**
3087
+ * A value of `google.protobuf.FeatureSet.RepeatedFieldEncoding`.
3088
+ *
3089
+ * @stability experimental
3090
+ * @category descriptor.proto
3091
+ * @since 4.1.5
3092
+ */
3093
+ export type FeatureSet_RepeatedFieldEncoding = (typeof FeatureSet_RepeatedFieldEncoding)[keyof typeof FeatureSet_RepeatedFieldEncoding]
3094
+
3095
+ /**
3096
+ * The values of `google.protobuf.FeatureSet.Utf8Validation`.
3097
+ *
3098
+ * @stability experimental
3099
+ * @category descriptor.proto
3100
+ * @since 4.1.5
3101
+ */
3102
+ export const FeatureSet_Utf8Validation = {
3103
+ UTF8_VALIDATION_UNKNOWN: 0,
3104
+ VERIFY: 2,
3105
+ NONE: 3
3106
+ } as const
3107
+
3108
+ /**
3109
+ * A value of `google.protobuf.FeatureSet.Utf8Validation`.
3110
+ *
3111
+ * @stability experimental
3112
+ * @category descriptor.proto
3113
+ * @since 4.1.5
3114
+ */
3115
+ export type FeatureSet_Utf8Validation = (typeof FeatureSet_Utf8Validation)[keyof typeof FeatureSet_Utf8Validation]
3116
+
3117
+ /**
3118
+ * The values of `google.protobuf.FeatureSet.MessageEncoding`.
3119
+ *
3120
+ * @stability experimental
3121
+ * @category descriptor.proto
3122
+ * @since 4.1.5
3123
+ */
3124
+ export const FeatureSet_MessageEncoding = {
3125
+ MESSAGE_ENCODING_UNKNOWN: 0,
3126
+ LENGTH_PREFIXED: 1,
3127
+ DELIMITED: 2
3128
+ } as const
3129
+
3130
+ /**
3131
+ * A value of `google.protobuf.FeatureSet.MessageEncoding`.
3132
+ *
3133
+ * @stability experimental
3134
+ * @category descriptor.proto
3135
+ * @since 4.1.5
3136
+ */
3137
+ export type FeatureSet_MessageEncoding = (typeof FeatureSet_MessageEncoding)[keyof typeof FeatureSet_MessageEncoding]
3138
+
3139
+ /**
3140
+ * The values of `google.protobuf.FeatureSet.JsonFormat`.
3141
+ *
3142
+ * @stability experimental
3143
+ * @category descriptor.proto
3144
+ * @since 4.1.5
3145
+ */
3146
+ export const FeatureSet_JsonFormat = {
3147
+ JSON_FORMAT_UNKNOWN: 0,
3148
+ ALLOW: 1,
3149
+ LEGACY_BEST_EFFORT: 2
3150
+ } as const
3151
+
3152
+ /**
3153
+ * A value of `google.protobuf.FeatureSet.JsonFormat`.
3154
+ *
3155
+ * @stability experimental
3156
+ * @category descriptor.proto
3157
+ * @since 4.1.5
3158
+ */
3159
+ export type FeatureSet_JsonFormat = (typeof FeatureSet_JsonFormat)[keyof typeof FeatureSet_JsonFormat]
3160
+
3161
+ /**
3162
+ * The values of `google.protobuf.FeatureSet.EnforceNamingStyle`.
3163
+ *
3164
+ * @stability experimental
3165
+ * @category descriptor.proto
3166
+ * @since 4.1.5
3167
+ */
3168
+ export const FeatureSet_EnforceNamingStyle = {
3169
+ ENFORCE_NAMING_STYLE_UNKNOWN: 0,
3170
+ STYLE2024: 1,
3171
+ STYLE_LEGACY: 2,
3172
+ STYLE2026: 3
3173
+ } as const
3174
+
3175
+ /**
3176
+ * A value of `google.protobuf.FeatureSet.EnforceNamingStyle`.
3177
+ *
3178
+ * @stability experimental
3179
+ * @category descriptor.proto
3180
+ * @since 4.1.5
3181
+ */
3182
+ export type FeatureSet_EnforceNamingStyle = (typeof FeatureSet_EnforceNamingStyle)[keyof typeof FeatureSet_EnforceNamingStyle]
3183
+
3184
+ /**
3185
+ * A compiled specification for the defaults of a set of features. These
3186
+ * messages are generated from FeatureSet extensions and can be used to seed
3187
+ * feature resolution. The resolution with this object becomes a simple search
3188
+ * for the closest matching edition, followed by proto merges.
3189
+ *
3190
+ * @stability experimental
3191
+ * @category descriptor.proto
3192
+ * @since 4.1.5
3193
+ */
3194
+ export interface FeatureSetDefaults {
3195
+ readonly defaults?: ReadonlyArray<FeatureSetDefaults_FeatureSetEditionDefault>
3196
+ /**
3197
+ * The minimum supported edition (inclusive) when this was constructed.
3198
+ * Editions before this will not have defaults.
3199
+ */
3200
+ readonly minimum_edition?: Edition
3201
+ /**
3202
+ * The maximum known edition (inclusive) when this was constructed. Editions
3203
+ * after this will not have reliable defaults.
3204
+ */
3205
+ readonly maximum_edition?: Edition
3206
+ }
3207
+
3208
+ /**
3209
+ * The descriptor of `google.protobuf.FeatureSetDefaults`.
3210
+ *
3211
+ * @stability experimental
3212
+ * @category descriptor.proto
3213
+ * @since 4.1.5
3214
+ */
3215
+ export const FeatureSetDefaults: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[20]
3216
+
3217
+ /**
3218
+ * A map from every known edition with a unique set of defaults to its
3219
+ * defaults. Not all editions may be contained here. For a given edition,
3220
+ * the defaults at the closest matching edition ordered at or before it should
3221
+ * be used. This field must be in strict ascending order by edition.
3222
+ *
3223
+ * @stability experimental
3224
+ * @category descriptor.proto
3225
+ * @since 4.1.5
3226
+ */
3227
+ export interface FeatureSetDefaults_FeatureSetEditionDefault {
3228
+ readonly edition?: Edition
3229
+ /** Defaults of features that can be overridden in this edition. */
3230
+ readonly overridable_features?: FeatureSet
3231
+ /** Defaults of features that can't be overridden in this edition. */
3232
+ readonly fixed_features?: FeatureSet
3233
+ }
3234
+
3235
+ /**
3236
+ * The descriptor of `google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault`.
3237
+ *
3238
+ * @stability experimental
3239
+ * @category descriptor.proto
3240
+ * @since 4.1.5
3241
+ */
3242
+ export const FeatureSetDefaults_FeatureSetEditionDefault: ProtobufDescriptor.MessageDescriptor = FeatureSetDefaults.messages[0]
3243
+
3244
+ /**
3245
+ * Encapsulates information about the original source file from which a
3246
+ * FileDescriptorProto was generated.
3247
+ *
3248
+ * @stability experimental
3249
+ * @category descriptor.proto
3250
+ * @since 4.1.5
3251
+ */
3252
+ export interface SourceCodeInfo {
3253
+ /**
3254
+ * A Location identifies a piece of source code in a .proto file which
3255
+ * corresponds to a particular definition. This information is intended
3256
+ * to be useful to IDEs, code indexers, documentation generators, and similar
3257
+ * tools.
3258
+ *
3259
+ * **Details**
3260
+ *
3261
+ * For example, say we have a file like:
3262
+ * message Foo {
3263
+ * optional string foo = 1;
3264
+ * }
3265
+ * Let's look at just the field definition:
3266
+ * optional string foo = 1;
3267
+ * ^ ^^ ^^ ^ ^^^
3268
+ * a bc de f ghi
3269
+ * We have the following locations:
3270
+ * span path represents
3271
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
3272
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
3273
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
3274
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
3275
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
3276
+ *
3277
+ * Notes:
3278
+ * - A location may refer to a repeated field itself (i.e. not to any
3279
+ * particular index within it). This is used whenever a set of elements are
3280
+ * logically enclosed in a single code segment. For example, an entire
3281
+ * extend block (possibly containing multiple extension definitions) will
3282
+ * have an outer location whose path refers to the "extensions" repeated
3283
+ * field without an index.
3284
+ * - Multiple locations may have the same path. This happens when a single
3285
+ * logical declaration is spread out across multiple places. The most
3286
+ * obvious example is the "extend" block again -- there may be multiple
3287
+ * extend blocks in the same scope, each of which will have the same path.
3288
+ * - A location's span is not always a subset of its parent's span. For
3289
+ * example, the "extendee" of an extension declaration appears at the
3290
+ * beginning of the "extend" block and is shared by all extensions within
3291
+ * the block.
3292
+ * - Just because a location's span is a subset of some other location's span
3293
+ * does not mean that it is a descendant. For example, a "group" defines
3294
+ * both a type and a field in a single declaration. Thus, the locations
3295
+ * corresponding to the type and field and their components will overlap.
3296
+ * - Code which tries to interpret locations should probably be designed to
3297
+ * ignore those that it doesn't understand, as more types of locations could
3298
+ * be recorded in the future.
3299
+ */
3300
+ readonly location?: ReadonlyArray<SourceCodeInfo_Location>
3301
+ }
3302
+
3303
+ /**
3304
+ * The descriptor of `google.protobuf.SourceCodeInfo`.
3305
+ *
3306
+ * @stability experimental
3307
+ * @category descriptor.proto
3308
+ * @since 4.1.5
3309
+ */
3310
+ export const SourceCodeInfo: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[21]
3311
+
3312
+ /**
3313
+ * The fields of `google.protobuf.SourceCodeInfo.Location`.
3314
+ *
3315
+ * @stability experimental
3316
+ * @category descriptor.proto
3317
+ * @since 4.1.5
3318
+ */
3319
+ export interface SourceCodeInfo_Location {
3320
+ /**
3321
+ * Identifies which part of the FileDescriptorProto was defined at this
3322
+ * location.
3323
+ *
3324
+ * **Details**
3325
+ *
3326
+ * Each element is a field number or an index. They form a path from
3327
+ * the root FileDescriptorProto to the place where the definition appears.
3328
+ * For example, this path:
3329
+ * [ 4, 3, 2, 7, 1 ]
3330
+ * refers to:
3331
+ * file.message_type(3) // 4, 3
3332
+ * .field(7) // 2, 7
3333
+ * .name() // 1
3334
+ * This is because FileDescriptorProto.message_type has field number 4:
3335
+ * repeated DescriptorProto message_type = 4;
3336
+ * and DescriptorProto.field has field number 2:
3337
+ * repeated FieldDescriptorProto field = 2;
3338
+ * and FieldDescriptorProto.name has field number 1:
3339
+ * optional string name = 1;
3340
+ *
3341
+ * Thus, the above path gives the location of a field name. If we removed
3342
+ * the last element:
3343
+ * [ 4, 3, 2, 7 ]
3344
+ * this path refers to the whole field declaration (from the beginning
3345
+ * of the label to the terminating semicolon).
3346
+ *
3347
+ * For options, the path refers to the interpreted option in the descriptor.
3348
+ * E.g., for a custom option `(my_opt) = "foo"` on a message using extension
3349
+ * number 10101, the path is:
3350
+ * [ 4, 3, 7, 10101 ]
3351
+ * refers to:
3352
+ * file.message_type(3) // 4, 3
3353
+ * .options() // 7
3354
+ * .my_opt() // 10101
3355
+ *
3356
+ * Sub-locations corresponding to the interpreted option's corresponding
3357
+ * `UninterpretedOption` are also appended to the interpreted option, which
3358
+ * deviates from the actual FileDescriptorProto path. E.g.:
3359
+ * [ 4, 3, 7, 10101, 2 ]
3360
+ * refers to the option name `(my_opt)`, and:
3361
+ * [ 4, 3, 7, 10101, 7 ]
3362
+ * refers to the "foo" string value of the option.
3363
+ */
3364
+ readonly path?: ReadonlyArray<number>
3365
+ /**
3366
+ * Always has exactly three or four elements: start line, start column,
3367
+ * end line (optional, otherwise assumed same as start line), end column.
3368
+ * These are packed into a single field for efficiency. Note that line
3369
+ * and column numbers are zero-based -- typically you will want to add
3370
+ * 1 to each before displaying to a user.
3371
+ */
3372
+ readonly span?: ReadonlyArray<number>
3373
+ /**
3374
+ * If this SourceCodeInfo represents a complete declaration, these are any
3375
+ * comments appearing before and after the declaration which appear to be
3376
+ * attached to the declaration.
3377
+ *
3378
+ * **Details**
3379
+ *
3380
+ * A series of line comments appearing on consecutive lines, with no other
3381
+ * tokens appearing on those lines, will be treated as a single comment.
3382
+ *
3383
+ * leading_detached_comments will keep paragraphs of comments that appear
3384
+ * before (but not connected to) the current element. Each paragraph,
3385
+ * separated by empty lines, will be one comment element in the repeated
3386
+ * field.
3387
+ *
3388
+ * Only the comment content is provided; comment markers (e.g. //) are
3389
+ * stripped out. For block comments, leading whitespace and an asterisk
3390
+ * will be stripped from the beginning of each line other than the first.
3391
+ * Newlines are included in the output.
3392
+ *
3393
+ * Examples:
3394
+ *
3395
+ * optional int32 foo = 1; // Comment attached to foo.
3396
+ * // Comment attached to bar.
3397
+ * optional int32 bar = 2;
3398
+ *
3399
+ * optional string baz = 3;
3400
+ * // Comment attached to baz.
3401
+ * // Another line attached to baz.
3402
+ *
3403
+ * // Comment attached to moo.
3404
+ * //
3405
+ * // Another line attached to moo.
3406
+ * optional double moo = 4;
3407
+ *
3408
+ * // Detached comment for corge. This is not leading or trailing comments
3409
+ * // to moo or corge because there are blank lines separating it from
3410
+ * // both.
3411
+ *
3412
+ * // Detached comment for corge paragraph 2.
3413
+ *
3414
+ * optional string corge = 5;
3415
+ * /* Block comment attached
3416
+ * * to corge. Leading asterisks
3417
+ * * will be removed. *\/
3418
+ * /* Block comment attached to
3419
+ * * grault. *\/
3420
+ * optional int32 grault = 6;
3421
+ *
3422
+ * // ignored detached comments.
3423
+ */
3424
+ readonly leading_comments?: string
3425
+ readonly trailing_comments?: string
3426
+ readonly leading_detached_comments?: ReadonlyArray<string>
3427
+ }
3428
+
3429
+ /**
3430
+ * The descriptor of `google.protobuf.SourceCodeInfo.Location`.
3431
+ *
3432
+ * @stability experimental
3433
+ * @category descriptor.proto
3434
+ * @since 4.1.5
3435
+ */
3436
+ export const SourceCodeInfo_Location: ProtobufDescriptor.MessageDescriptor = SourceCodeInfo.messages[0]
3437
+
3438
+ /**
3439
+ * Describes the relationship between generated code and its original source
3440
+ * file. A GeneratedCodeInfo message is associated with only one generated
3441
+ * source file, but may contain references to different source .proto files.
3442
+ *
3443
+ * @stability experimental
3444
+ * @category descriptor.proto
3445
+ * @since 4.1.5
3446
+ */
3447
+ export interface GeneratedCodeInfo {
3448
+ /**
3449
+ * An Annotation connects some span of text in generated code to an element
3450
+ * of its generating .proto file.
3451
+ */
3452
+ readonly annotation?: ReadonlyArray<GeneratedCodeInfo_Annotation>
3453
+ }
3454
+
3455
+ /**
3456
+ * The descriptor of `google.protobuf.GeneratedCodeInfo`.
3457
+ *
3458
+ * @stability experimental
3459
+ * @category descriptor.proto
3460
+ * @since 4.1.5
3461
+ */
3462
+ export const GeneratedCodeInfo: ProtobufDescriptor.MessageDescriptor = descriptorFile.messages[22]
3463
+
3464
+ /**
3465
+ * The fields of `google.protobuf.GeneratedCodeInfo.Annotation`.
3466
+ *
3467
+ * @stability experimental
3468
+ * @category descriptor.proto
3469
+ * @since 4.1.5
3470
+ */
3471
+ export interface GeneratedCodeInfo_Annotation {
3472
+ /**
3473
+ * Identifies the element in the original source .proto file. This field
3474
+ * is formatted the same as SourceCodeInfo.Location.path.
3475
+ */
3476
+ readonly path?: ReadonlyArray<number>
3477
+ /** Identifies the filesystem path to the original source .proto. */
3478
+ readonly source_file?: string
3479
+ /**
3480
+ * Identifies the starting offset in bytes in the generated code
3481
+ * that relates to the identified object.
3482
+ */
3483
+ readonly begin?: number
3484
+ /**
3485
+ * Identifies the ending offset in bytes in the generated code that
3486
+ * relates to the identified object. The end offset should be one past
3487
+ * the last relevant byte (so the length of the text = end - begin).
3488
+ */
3489
+ readonly end?: number
3490
+ readonly semantic?: GeneratedCodeInfo_Annotation_Semantic
3491
+ }
3492
+
3493
+ /**
3494
+ * The descriptor of `google.protobuf.GeneratedCodeInfo.Annotation`.
3495
+ *
3496
+ * @stability experimental
3497
+ * @category descriptor.proto
3498
+ * @since 4.1.5
3499
+ */
3500
+ export const GeneratedCodeInfo_Annotation: ProtobufDescriptor.MessageDescriptor = GeneratedCodeInfo.messages[0]
3501
+
3502
+ /**
3503
+ * Represents the identified object's effect on the element in the original
3504
+ * .proto file.
3505
+ *
3506
+ * @stability experimental
3507
+ * @category descriptor.proto
3508
+ * @since 4.1.5
3509
+ */
3510
+ export const GeneratedCodeInfo_Annotation_Semantic = {
3511
+ /** There is no effect or the effect is indescribable. */
3512
+ NONE: 0,
3513
+ /** The element is set or otherwise mutated. */
3514
+ SET: 1,
3515
+ /** An alias to the element is returned. */
3516
+ ALIAS: 2
3517
+ } as const
3518
+
3519
+ /**
3520
+ * A value of `google.protobuf.GeneratedCodeInfo.Annotation.Semantic`.
3521
+ *
3522
+ * @stability experimental
3523
+ * @category descriptor.proto
3524
+ * @since 4.1.5
3525
+ */
3526
+ export type GeneratedCodeInfo_Annotation_Semantic = (typeof GeneratedCodeInfo_Annotation_Semantic)[keyof typeof GeneratedCodeInfo_Annotation_Semantic]
3527
+
3528
+ /**
3529
+ * The full set of known editions.
3530
+ *
3531
+ * @stability experimental
3532
+ * @category descriptor.proto
3533
+ * @since 4.1.5
3534
+ */
3535
+ export const Edition = {
3536
+ /** A placeholder for an unknown edition value. */
3537
+ EDITION_UNKNOWN: 0,
3538
+ /**
3539
+ * A placeholder edition for specifying default behaviors *before* a feature
3540
+ * was first introduced. This is effectively an "infinite past".
3541
+ */
3542
+ EDITION_LEGACY: 900,
3543
+ /**
3544
+ * Legacy syntax "editions". These pre-date editions, but behave much like
3545
+ * distinct editions. These can't be used to specify the edition of proto
3546
+ * files, but feature definitions must supply proto2/proto3 defaults for
3547
+ * backwards compatibility.
3548
+ */
3549
+ EDITION_PROTO2: 998,
3550
+ EDITION_PROTO3: 999,
3551
+ /**
3552
+ * Editions that have been released. The specific values are arbitrary and
3553
+ * should not be depended on, but they will always be time-ordered for easy
3554
+ * comparison.
3555
+ */
3556
+ EDITION_2023: 1000,
3557
+ EDITION_2024: 1001,
3558
+ EDITION_2026: 1002,
3559
+ /** A placeholder edition for developing and testing unscheduled features. */
3560
+ EDITION_UNSTABLE: 9999,
3561
+ /**
3562
+ * Placeholder editions for testing feature resolution. These should not be
3563
+ * used or relied on outside of tests.
3564
+ */
3565
+ EDITION_1_TEST_ONLY: 1,
3566
+ EDITION_2_TEST_ONLY: 2,
3567
+ EDITION_99997_TEST_ONLY: 99997,
3568
+ EDITION_99998_TEST_ONLY: 99998,
3569
+ EDITION_99999_TEST_ONLY: 99999,
3570
+ /**
3571
+ * Placeholder for specifying unbounded edition support. This should only
3572
+ * ever be used by plugins that can expect to never require any changes to
3573
+ * support a new edition.
3574
+ */
3575
+ EDITION_MAX: 2147483647
3576
+ } as const
3577
+
3578
+ /**
3579
+ * A value of `google.protobuf.Edition`.
3580
+ *
3581
+ * @stability experimental
3582
+ * @category descriptor.proto
3583
+ * @since 4.1.5
3584
+ */
3585
+ export type Edition = (typeof Edition)[keyof typeof Edition]
3586
+
3587
+ /**
3588
+ * Describes the 'visibility' of a symbol with respect to the proto import
3589
+ * system. Symbols can only be imported when the visibility rules do not prevent
3590
+ * it (ex: local symbols cannot be imported). Visibility modifiers can only set
3591
+ * on `message` and `enum` as they are the only types available to be referenced
3592
+ * from other files.
3593
+ *
3594
+ * @stability experimental
3595
+ * @category descriptor.proto
3596
+ * @since 4.1.5
3597
+ */
3598
+ export const SymbolVisibility = {
3599
+ VISIBILITY_UNSET: 0,
3600
+ VISIBILITY_LOCAL: 1,
3601
+ VISIBILITY_EXPORT: 2
3602
+ } as const
3603
+
3604
+ /**
3605
+ * A value of `google.protobuf.SymbolVisibility`.
3606
+ *
3607
+ * @stability experimental
3608
+ * @category descriptor.proto
3609
+ * @since 4.1.5
3610
+ */
3611
+ export type SymbolVisibility = (typeof SymbolVisibility)[keyof typeof SymbolVisibility]