effect 4.1.4 → 4.1.5

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 (723) 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/Chunk.d.ts +5 -0
  17. package/dist/Chunk.d.ts.map +1 -1
  18. package/dist/Chunk.js +7 -2
  19. package/dist/Chunk.js.map +1 -1
  20. package/dist/Clock.d.ts +5 -2
  21. package/dist/Clock.d.ts.map +1 -1
  22. package/dist/Clock.js +2 -1
  23. package/dist/Clock.js.map +1 -1
  24. package/dist/Codegen.d.ts +295 -0
  25. package/dist/Codegen.d.ts.map +1 -0
  26. package/dist/Codegen.js +521 -0
  27. package/dist/Codegen.js.map +1 -0
  28. package/dist/Config.d.ts +31 -2
  29. package/dist/Config.d.ts.map +1 -1
  30. package/dist/Config.js +12 -1
  31. package/dist/Config.js.map +1 -1
  32. package/dist/ConfigProvider.d.ts +11 -1
  33. package/dist/ConfigProvider.d.ts.map +1 -1
  34. package/dist/ConfigProvider.js +17 -6
  35. package/dist/ConfigProvider.js.map +1 -1
  36. package/dist/Effect.d.ts +869 -109
  37. package/dist/Effect.d.ts.map +1 -1
  38. package/dist/Effect.js +400 -47
  39. package/dist/Effect.js.map +1 -1
  40. package/dist/Equivalence.d.ts +11 -9
  41. package/dist/Equivalence.d.ts.map +1 -1
  42. package/dist/Equivalence.js +15 -12
  43. package/dist/Equivalence.js.map +1 -1
  44. package/dist/Fiber.d.ts +58 -8
  45. package/dist/Fiber.d.ts.map +1 -1
  46. package/dist/Fiber.js +28 -4
  47. package/dist/Fiber.js.map +1 -1
  48. package/dist/FiberHandle.d.ts +81 -10
  49. package/dist/FiberHandle.d.ts.map +1 -1
  50. package/dist/FiberHandle.js +40 -8
  51. package/dist/FiberHandle.js.map +1 -1
  52. package/dist/FiberMap.d.ts +80 -10
  53. package/dist/FiberMap.d.ts.map +1 -1
  54. package/dist/FiberMap.js +37 -6
  55. package/dist/FiberMap.js.map +1 -1
  56. package/dist/FiberSet.d.ts +93 -8
  57. package/dist/FiberSet.d.ts.map +1 -1
  58. package/dist/FiberSet.js +46 -4
  59. package/dist/FiberSet.js.map +1 -1
  60. package/dist/Formatter.d.ts +2 -0
  61. package/dist/Formatter.d.ts.map +1 -1
  62. package/dist/Formatter.js +2 -0
  63. package/dist/Formatter.js.map +1 -1
  64. package/dist/LayerMap.d.ts +12 -3
  65. package/dist/LayerMap.d.ts.map +1 -1
  66. package/dist/LayerMap.js +12 -2
  67. package/dist/LayerMap.js.map +1 -1
  68. package/dist/LayerRef.d.ts +2 -2
  69. package/dist/Match.d.ts +12 -0
  70. package/dist/Match.d.ts.map +1 -1
  71. package/dist/Match.js +16 -0
  72. package/dist/Match.js.map +1 -1
  73. package/dist/Metric.js +1 -1
  74. package/dist/Metric.js.map +1 -1
  75. package/dist/Option.d.ts +4 -1
  76. package/dist/Option.d.ts.map +1 -1
  77. package/dist/Option.js +6 -2
  78. package/dist/Option.js.map +1 -1
  79. package/dist/Order.d.ts +7 -5
  80. package/dist/Order.d.ts.map +1 -1
  81. package/dist/Order.js +7 -2
  82. package/dist/Order.js.map +1 -1
  83. package/dist/Pool.d.ts +4 -3
  84. package/dist/Pool.d.ts.map +1 -1
  85. package/dist/Pool.js +21 -18
  86. package/dist/Pool.js.map +1 -1
  87. package/dist/Predicate.d.ts +4 -1
  88. package/dist/Predicate.d.ts.map +1 -1
  89. package/dist/Predicate.js +5 -1
  90. package/dist/Predicate.js.map +1 -1
  91. package/dist/Queue.d.ts +69 -22
  92. package/dist/Queue.d.ts.map +1 -1
  93. package/dist/Queue.js +40 -18
  94. package/dist/Queue.js.map +1 -1
  95. package/dist/Rational.d.ts +179 -0
  96. package/dist/Rational.d.ts.map +1 -1
  97. package/dist/Rational.js +63 -0
  98. package/dist/Rational.js.map +1 -1
  99. package/dist/Request.d.ts +20 -0
  100. package/dist/Request.d.ts.map +1 -1
  101. package/dist/Request.js +20 -0
  102. package/dist/Request.js.map +1 -1
  103. package/dist/Result.d.ts +3 -1
  104. package/dist/Result.d.ts.map +1 -1
  105. package/dist/Result.js +5 -2
  106. package/dist/Result.js.map +1 -1
  107. package/dist/Schema.d.ts +49 -19
  108. package/dist/Schema.d.ts.map +1 -1
  109. package/dist/Schema.js +44 -27
  110. package/dist/Schema.js.map +1 -1
  111. package/dist/SchemaAST.d.ts.map +1 -1
  112. package/dist/SchemaAST.js +11 -4
  113. package/dist/SchemaAST.js.map +1 -1
  114. package/dist/SchemaGetter.d.ts +5 -6
  115. package/dist/SchemaGetter.d.ts.map +1 -1
  116. package/dist/SchemaGetter.js +14 -10
  117. package/dist/SchemaGetter.js.map +1 -1
  118. package/dist/SchemaRepresentation.d.ts +19 -64
  119. package/dist/SchemaRepresentation.d.ts.map +1 -1
  120. package/dist/SchemaRepresentation.js +1 -28
  121. package/dist/SchemaRepresentation.js.map +1 -1
  122. package/dist/SchemaTransformation.d.ts +11 -10
  123. package/dist/SchemaTransformation.d.ts.map +1 -1
  124. package/dist/SchemaTransformation.js +12 -11
  125. package/dist/SchemaTransformation.js.map +1 -1
  126. package/dist/Scope.d.ts +12 -6
  127. package/dist/Scope.d.ts.map +1 -1
  128. package/dist/Scope.js +12 -6
  129. package/dist/Scope.js.map +1 -1
  130. package/dist/ScopedCache.d.ts.map +1 -1
  131. package/dist/ScopedCache.js +2 -1
  132. package/dist/ScopedCache.js.map +1 -1
  133. package/dist/Semaphore.d.ts.map +1 -1
  134. package/dist/Semaphore.js +18 -4
  135. package/dist/Semaphore.js.map +1 -1
  136. package/dist/Stream.d.ts.map +1 -1
  137. package/dist/Stream.js +55 -14
  138. package/dist/Stream.js.map +1 -1
  139. package/dist/String.d.ts +57 -3
  140. package/dist/String.d.ts.map +1 -1
  141. package/dist/String.js +62 -4
  142. package/dist/String.js.map +1 -1
  143. package/dist/Struct.d.ts +135 -1
  144. package/dist/Struct.d.ts.map +1 -1
  145. package/dist/Struct.js +64 -5
  146. package/dist/Struct.js.map +1 -1
  147. package/dist/TextDiff.d.ts +105 -0
  148. package/dist/TextDiff.d.ts.map +1 -1
  149. package/dist/TextDiff.js +137 -24
  150. package/dist/TextDiff.js.map +1 -1
  151. package/dist/TxPriorityQueue.js +2 -2
  152. package/dist/TxPriorityQueue.js.map +1 -1
  153. package/dist/ai/LanguageModel.d.ts.map +1 -1
  154. package/dist/ai/LanguageModel.js +1 -1
  155. package/dist/ai/LanguageModel.js.map +1 -1
  156. package/dist/ai/McpSchema.d.ts +88 -88
  157. package/dist/ai/McpSchema.d.ts.map +1 -1
  158. package/dist/ai/McpServer.d.ts +47 -2
  159. package/dist/ai/McpServer.d.ts.map +1 -1
  160. package/dist/ai/McpServer.js +135 -16
  161. package/dist/ai/McpServer.js.map +1 -1
  162. package/dist/ai/Tool.d.ts +3 -2
  163. package/dist/ai/Tool.d.ts.map +1 -1
  164. package/dist/ai/Tool.js +3 -2
  165. package/dist/ai/Tool.js.map +1 -1
  166. package/dist/ai/Toolkit.d.ts.map +1 -1
  167. package/dist/ai/Toolkit.js +5 -1
  168. package/dist/ai/Toolkit.js.map +1 -1
  169. package/dist/chat/Chat.d.ts +90 -0
  170. package/dist/chat/Chat.d.ts.map +1 -0
  171. package/dist/chat/Chat.js +127 -0
  172. package/dist/chat/Chat.js.map +1 -0
  173. package/dist/chat/ChatAdapter.d.ts +386 -0
  174. package/dist/chat/ChatAdapter.d.ts.map +1 -0
  175. package/dist/chat/ChatAdapter.js +110 -0
  176. package/dist/chat/ChatAdapter.js.map +1 -0
  177. package/dist/chat/ChatError.d.ts +500 -0
  178. package/dist/chat/ChatError.d.ts.map +1 -0
  179. package/dist/chat/ChatError.js +521 -0
  180. package/dist/chat/ChatError.js.map +1 -0
  181. package/dist/chat/ChatEvent.d.ts +321 -0
  182. package/dist/chat/ChatEvent.d.ts.map +1 -0
  183. package/dist/chat/ChatEvent.js +163 -0
  184. package/dist/chat/ChatEvent.js.map +1 -0
  185. package/dist/chat/ChatHandler.d.ts +81 -0
  186. package/dist/chat/ChatHandler.d.ts.map +1 -0
  187. package/dist/chat/ChatHandler.js +85 -0
  188. package/dist/chat/ChatHandler.js.map +1 -0
  189. package/dist/chat/ChatInteraction.d.ts +1519 -0
  190. package/dist/chat/ChatInteraction.d.ts.map +1 -0
  191. package/dist/chat/ChatInteraction.js +1052 -0
  192. package/dist/chat/ChatInteraction.js.map +1 -0
  193. package/dist/chat/ChatMarkdown.d.ts +280 -0
  194. package/dist/chat/ChatMarkdown.d.ts.map +1 -0
  195. package/dist/chat/ChatMarkdown.js +1172 -0
  196. package/dist/chat/ChatMarkdown.js.map +1 -0
  197. package/dist/chat/ChatMessage.d.ts +224 -0
  198. package/dist/chat/ChatMessage.d.ts.map +1 -0
  199. package/dist/chat/ChatMessage.js +172 -0
  200. package/dist/chat/ChatMessage.js.map +1 -0
  201. package/dist/chat/ChatTest.d.ts +407 -0
  202. package/dist/chat/ChatTest.d.ts.map +1 -0
  203. package/dist/chat/ChatTest.js +2145 -0
  204. package/dist/chat/ChatTest.js.map +1 -0
  205. package/dist/chat/ChatThread.d.ts +92 -0
  206. package/dist/chat/ChatThread.d.ts.map +1 -0
  207. package/dist/chat/ChatThread.js +116 -0
  208. package/dist/chat/ChatThread.js.map +1 -0
  209. package/dist/chat/ChatUi.d.ts +362 -0
  210. package/dist/chat/ChatUi.d.ts.map +1 -0
  211. package/dist/chat/ChatUi.js +209 -0
  212. package/dist/chat/ChatUi.js.map +1 -0
  213. package/dist/chat/index.d.ts +60 -0
  214. package/dist/chat/index.d.ts.map +1 -0
  215. package/dist/chat/index.js +61 -0
  216. package/dist/chat/index.js.map +1 -0
  217. package/dist/chat/internal/retries.d.ts +2 -0
  218. package/dist/chat/internal/retries.d.ts.map +1 -0
  219. package/dist/chat/internal/retries.js +7 -0
  220. package/dist/chat/internal/retries.js.map +1 -0
  221. package/dist/cli/CliOutput.d.ts.map +1 -1
  222. package/dist/cli/CliOutput.js +6 -7
  223. package/dist/cli/CliOutput.js.map +1 -1
  224. package/dist/cli/Command.d.ts +20 -2
  225. package/dist/cli/Command.d.ts.map +1 -1
  226. package/dist/cli/Command.js +4 -0
  227. package/dist/cli/Command.js.map +1 -1
  228. package/dist/cli/Prompt.d.ts +5 -6
  229. package/dist/cli/Prompt.d.ts.map +1 -1
  230. package/dist/cli/Prompt.js +9 -4
  231. package/dist/cli/Prompt.js.map +1 -1
  232. package/dist/cli/internal/command.d.ts +1 -1
  233. package/dist/cli/internal/command.d.ts.map +1 -1
  234. package/dist/cli/internal/config.d.ts +1 -1
  235. package/dist/cli/internal/config.d.ts.map +1 -1
  236. package/dist/cli/internal/config.js +3 -3
  237. package/dist/cli/internal/config.js.map +1 -1
  238. package/dist/cluster/ClusterCron.d.ts +21 -1
  239. package/dist/cluster/ClusterCron.d.ts.map +1 -1
  240. package/dist/cluster/ClusterCron.js +24 -6
  241. package/dist/cluster/ClusterCron.js.map +1 -1
  242. package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  243. package/dist/cluster/ClusterWorkflowEngine.js +30 -22
  244. package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
  245. package/dist/cluster/Sharding.d.ts.map +1 -1
  246. package/dist/cluster/Sharding.js +15 -3
  247. package/dist/cluster/Sharding.js.map +1 -1
  248. package/dist/cluster/ShardingConfig.d.ts +6 -0
  249. package/dist/cluster/ShardingConfig.d.ts.map +1 -1
  250. package/dist/cluster/ShardingConfig.js.map +1 -1
  251. package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
  252. package/dist/cluster/SqlMessageStorage.js +13 -15
  253. package/dist/cluster/SqlMessageStorage.js.map +1 -1
  254. package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
  255. package/dist/cluster/SqlRunnerStorage.js +18 -8
  256. package/dist/cluster/SqlRunnerStorage.js.map +1 -1
  257. package/dist/cluster/internal/entityManager.js +12 -8
  258. package/dist/cluster/internal/entityManager.js.map +1 -1
  259. package/dist/cluster/internal/entityReaper.js +1 -1
  260. package/dist/cluster/internal/entityReaper.js.map +1 -1
  261. package/dist/crypto/Kdf.d.ts +2 -1
  262. package/dist/crypto/Kdf.d.ts.map +1 -1
  263. package/dist/crypto/Kdf.js +2 -1
  264. package/dist/crypto/Kdf.js.map +1 -1
  265. package/dist/crypto/Password.d.ts +162 -0
  266. package/dist/crypto/Password.d.ts.map +1 -0
  267. package/dist/crypto/Password.js +217 -0
  268. package/dist/crypto/Password.js.map +1 -0
  269. package/dist/crypto/index.d.ts +5 -0
  270. package/dist/crypto/index.d.ts.map +1 -1
  271. package/dist/crypto/index.js +5 -0
  272. package/dist/crypto/index.js.map +1 -1
  273. package/dist/encoding/Base64.d.ts +63 -0
  274. package/dist/encoding/Base64.d.ts.map +1 -1
  275. package/dist/encoding/Base64.js +77 -0
  276. package/dist/encoding/Base64.js.map +1 -1
  277. package/dist/encoding/Base64Url.d.ts +1 -0
  278. package/dist/encoding/Base64Url.d.ts.map +1 -1
  279. package/dist/encoding/Base64Url.js +1 -0
  280. package/dist/encoding/Base64Url.js.map +1 -1
  281. package/dist/encoding/Csv.d.ts.map +1 -1
  282. package/dist/encoding/Csv.js +44 -16
  283. package/dist/encoding/Csv.js.map +1 -1
  284. package/dist/encoding/Hex.d.ts +5 -0
  285. package/dist/encoding/Hex.d.ts.map +1 -1
  286. package/dist/encoding/Hex.js +5 -0
  287. package/dist/encoding/Hex.js.map +1 -1
  288. package/dist/encoding/SchemaBinary.d.ts.map +1 -1
  289. package/dist/encoding/SchemaBinary.js +13 -124
  290. package/dist/encoding/SchemaBinary.js.map +1 -1
  291. package/dist/encoding/Sse.d.ts +1 -0
  292. package/dist/encoding/Sse.d.ts.map +1 -1
  293. package/dist/encoding/Sse.js +7 -5
  294. package/dist/encoding/Sse.js.map +1 -1
  295. package/dist/encoding/Xml.d.ts +117 -11
  296. package/dist/encoding/Xml.d.ts.map +1 -1
  297. package/dist/encoding/Xml.js +332 -42
  298. package/dist/encoding/Xml.js.map +1 -1
  299. package/dist/eventlog/EventJournal.d.ts.map +1 -1
  300. package/dist/eventlog/EventJournal.js +3 -8
  301. package/dist/eventlog/EventJournal.js.map +1 -1
  302. package/dist/eventlog/SqlEventLogServerEncrypted.js +6 -8
  303. package/dist/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  304. package/dist/http/FindMyWay/internal/router.js +163 -116
  305. package/dist/http/FindMyWay/internal/router.js.map +1 -1
  306. package/dist/http/FindMyWay.d.ts +99 -0
  307. package/dist/http/FindMyWay.d.ts.map +1 -1
  308. package/dist/http/FindMyWay.js +39 -0
  309. package/dist/http/FindMyWay.js.map +1 -1
  310. package/dist/http/HttpClient.d.ts.map +1 -1
  311. package/dist/http/HttpClient.js +1 -1
  312. package/dist/http/HttpClient.js.map +1 -1
  313. package/dist/http/HttpMiddleware.d.ts.map +1 -1
  314. package/dist/http/HttpMiddleware.js +15 -8
  315. package/dist/http/HttpMiddleware.js.map +1 -1
  316. package/dist/http/HttpRouter.d.ts +49 -1
  317. package/dist/http/HttpRouter.d.ts.map +1 -1
  318. package/dist/http/HttpRouter.js +70 -20
  319. package/dist/http/HttpRouter.js.map +1 -1
  320. package/dist/http/HttpServerResponse.d.ts.map +1 -1
  321. package/dist/http/HttpServerResponse.js +24 -58
  322. package/dist/http/HttpServerResponse.js.map +1 -1
  323. package/dist/http/Mime.d.ts.map +1 -1
  324. package/dist/http/Mime.js +3 -2
  325. package/dist/http/Mime.js.map +1 -1
  326. package/dist/http/internal/compression.d.ts.map +1 -1
  327. package/dist/http/internal/compression.js +2 -2
  328. package/dist/http/internal/compression.js.map +1 -1
  329. package/dist/http/internal/mediaType.d.ts.map +1 -0
  330. package/dist/{http-api → http}/internal/mediaType.js +4 -0
  331. package/dist/{http-api → http}/internal/mediaType.js.map +1 -1
  332. package/dist/http/internal/redactedPath.d.ts +2 -0
  333. package/dist/http/internal/redactedPath.d.ts.map +1 -0
  334. package/dist/http/internal/redactedPath.js +138 -0
  335. package/dist/http/internal/redactedPath.js.map +1 -0
  336. package/dist/http/internal/requestState.js +1 -0
  337. package/dist/http/internal/requestState.js.map +1 -1
  338. package/dist/http-api/HttpApi.d.ts +13 -2
  339. package/dist/http-api/HttpApi.d.ts.map +1 -1
  340. package/dist/http-api/HttpApi.js +16 -2
  341. package/dist/http-api/HttpApi.js.map +1 -1
  342. package/dist/http-api/HttpApiBuilder.d.ts.map +1 -1
  343. package/dist/http-api/HttpApiBuilder.js +3 -2
  344. package/dist/http-api/HttpApiBuilder.js.map +1 -1
  345. package/dist/http-api/HttpApiClient.d.ts.map +1 -1
  346. package/dist/http-api/HttpApiClient.js +6 -6
  347. package/dist/http-api/HttpApiClient.js.map +1 -1
  348. package/dist/http-api/HttpApiEndpoint.d.ts.map +1 -1
  349. package/dist/http-api/HttpApiEndpoint.js +1 -1
  350. package/dist/http-api/HttpApiEndpoint.js.map +1 -1
  351. package/dist/http-api/HttpApiScalar.d.ts +4 -0
  352. package/dist/http-api/HttpApiScalar.d.ts.map +1 -1
  353. package/dist/http-api/HttpApiScalar.js +10 -1
  354. package/dist/http-api/HttpApiScalar.js.map +1 -1
  355. package/dist/http-api/HttpApiSchema.d.ts.map +1 -1
  356. package/dist/http-api/HttpApiSchema.js +1 -1
  357. package/dist/http-api/HttpApiSchema.js.map +1 -1
  358. package/dist/http-api/OpenApi.d.ts +2 -0
  359. package/dist/http-api/OpenApi.d.ts.map +1 -1
  360. package/dist/http-api/internal/httpApiScalar.js +5 -2
  361. package/dist/http-api/internal/httpApiScalar.js.map +1 -1
  362. package/dist/index.d.ts +5 -0
  363. package/dist/index.d.ts.map +1 -1
  364. package/dist/index.js +5 -0
  365. package/dist/index.js.map +1 -1
  366. package/dist/internal/arbitrary/model.js +0 -5
  367. package/dist/internal/arbitrary/model.js.map +1 -1
  368. package/dist/internal/arbitrary/regexp.js +2 -1
  369. package/dist/internal/arbitrary/regexp.js.map +1 -1
  370. package/dist/internal/arbitrary/runner.d.ts.map +1 -1
  371. package/dist/internal/arbitrary/runner.js +21 -16
  372. package/dist/internal/arbitrary/runner.js.map +1 -1
  373. package/dist/internal/arbitrary/schema.js +140 -23
  374. package/dist/internal/arbitrary/schema.js.map +1 -1
  375. package/dist/internal/codegen.d.ts +2 -0
  376. package/dist/internal/codegen.d.ts.map +1 -0
  377. package/dist/internal/codegen.js +59 -0
  378. package/dist/internal/codegen.js.map +1 -0
  379. package/dist/internal/core.js +3 -3
  380. package/dist/internal/core.js.map +1 -1
  381. package/dist/internal/dateTime.js +26 -12
  382. package/dist/internal/dateTime.js.map +1 -1
  383. package/dist/internal/effect.js +21 -7
  384. package/dist/internal/effect.js.map +1 -1
  385. package/dist/internal/hashMap.js +7 -7
  386. package/dist/internal/hashMap.js.map +1 -1
  387. package/dist/internal/matcher.js +2 -1
  388. package/dist/internal/matcher.js.map +1 -1
  389. package/dist/internal/record.js +18 -4
  390. package/dist/internal/record.js.map +1 -1
  391. package/dist/internal/result.js +1 -1
  392. package/dist/internal/result.js.map +1 -1
  393. package/dist/internal/schema/codeExpression.d.ts +4 -0
  394. package/dist/internal/schema/codeExpression.d.ts.map +1 -0
  395. package/dist/internal/schema/codeExpression.js +179 -0
  396. package/dist/internal/schema/codeExpression.js.map +1 -0
  397. package/dist/internal/schema/codeImports.d.ts +8 -0
  398. package/dist/internal/schema/codeImports.d.ts.map +1 -0
  399. package/dist/internal/schema/codeImports.js +135 -0
  400. package/dist/internal/schema/codeImports.js.map +1 -0
  401. package/dist/internal/schema/codeTokens.d.ts +8 -0
  402. package/dist/internal/schema/codeTokens.d.ts.map +1 -0
  403. package/dist/internal/schema/codeTokens.js +17 -0
  404. package/dist/internal/schema/codeTokens.js.map +1 -0
  405. package/dist/internal/schema/passthrough.d.ts +2 -0
  406. package/dist/internal/schema/passthrough.d.ts.map +1 -0
  407. package/dist/internal/schema/passthrough.js +8 -0
  408. package/dist/internal/schema/passthrough.js.map +1 -0
  409. package/dist/internal/schema/schemaCodegen.d.ts +2 -0
  410. package/dist/internal/schema/schemaCodegen.d.ts.map +1 -0
  411. package/dist/internal/schema/schemaCodegen.js +377 -0
  412. package/dist/internal/schema/schemaCodegen.js.map +1 -0
  413. package/dist/internal/schema/toJsonSchemaDocument.js +11 -4
  414. package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
  415. package/dist/internal/trie.js +51 -64
  416. package/dist/internal/trie.js.map +1 -1
  417. package/dist/internal/utf8.d.ts +2 -0
  418. package/dist/internal/utf8.d.ts.map +1 -0
  419. package/dist/internal/utf8.js +151 -0
  420. package/dist/internal/utf8.js.map +1 -0
  421. package/dist/internal/version.js +1 -1
  422. package/dist/jose/Jwks.d.ts +13 -0
  423. package/dist/jose/Jwks.d.ts.map +1 -1
  424. package/dist/jose/Jwks.js +10 -2
  425. package/dist/jose/Jwks.js.map +1 -1
  426. package/dist/observability/OtlpExporter.d.ts.map +1 -1
  427. package/dist/observability/OtlpExporter.js +12 -10
  428. package/dist/observability/OtlpExporter.js.map +1 -1
  429. package/dist/observability/OtlpLogger.d.ts.map +1 -1
  430. package/dist/observability/OtlpLogger.js +5 -3
  431. package/dist/observability/OtlpLogger.js.map +1 -1
  432. package/dist/observability/internal/otlpProtobuf.d.ts +4 -2
  433. package/dist/observability/internal/otlpProtobuf.d.ts.map +1 -1
  434. package/dist/observability/internal/otlpProtobuf.js +238 -156
  435. package/dist/observability/internal/otlpProtobuf.js.map +1 -1
  436. package/dist/persistence/PersistedQueue.d.ts.map +1 -1
  437. package/dist/persistence/PersistedQueue.js +20 -3
  438. package/dist/persistence/PersistedQueue.js.map +1 -1
  439. package/dist/protobuf/ProtobufDescriptor.d.ts +377 -0
  440. package/dist/protobuf/ProtobufDescriptor.d.ts.map +1 -0
  441. package/dist/protobuf/ProtobufDescriptor.js +135 -0
  442. package/dist/protobuf/ProtobufDescriptor.js.map +1 -0
  443. package/dist/protobuf/ProtobufDescriptorProto.d.ts +2083 -0
  444. package/dist/protobuf/ProtobufDescriptorProto.d.ts.map +1 -0
  445. package/dist/protobuf/ProtobufDescriptorProto.js +2674 -0
  446. package/dist/protobuf/ProtobufDescriptorProto.js.map +1 -0
  447. package/dist/protobuf/ProtobufMessage.d.ts +183 -0
  448. package/dist/protobuf/ProtobufMessage.d.ts.map +1 -0
  449. package/dist/protobuf/ProtobufMessage.js +232 -0
  450. package/dist/protobuf/ProtobufMessage.js.map +1 -0
  451. package/dist/protobuf/ProtobufReader.d.ts +350 -0
  452. package/dist/protobuf/ProtobufReader.d.ts.map +1 -0
  453. package/dist/protobuf/ProtobufReader.js +698 -0
  454. package/dist/protobuf/ProtobufReader.js.map +1 -0
  455. package/dist/protobuf/ProtobufWriter.d.ts +224 -0
  456. package/dist/protobuf/ProtobufWriter.d.ts.map +1 -0
  457. package/dist/protobuf/ProtobufWriter.js +483 -0
  458. package/dist/protobuf/ProtobufWriter.js.map +1 -0
  459. package/dist/protobuf/index.d.ts +30 -0
  460. package/dist/protobuf/index.d.ts.map +1 -0
  461. package/dist/protobuf/index.js +31 -0
  462. package/dist/protobuf/index.js.map +1 -0
  463. package/dist/protobuf/internal/binary.d.ts +2 -0
  464. package/dist/protobuf/internal/binary.d.ts.map +1 -0
  465. package/dist/protobuf/internal/binary.js +966 -0
  466. package/dist/protobuf/internal/binary.js.map +1 -0
  467. package/dist/protobuf/internal/resolve.d.ts +2 -0
  468. package/dist/protobuf/internal/resolve.d.ts.map +1 -0
  469. package/dist/protobuf/internal/resolve.js +463 -0
  470. package/dist/protobuf/internal/resolve.js.map +1 -0
  471. package/dist/protobuf/internal/wireType.d.ts +2 -0
  472. package/dist/protobuf/internal/wireType.d.ts.map +1 -0
  473. package/dist/protobuf/internal/wireType.js +10 -0
  474. package/dist/protobuf/internal/wireType.js.map +1 -0
  475. package/dist/reactivity/AsyncResult.d.ts +3 -0
  476. package/dist/reactivity/AsyncResult.d.ts.map +1 -1
  477. package/dist/reactivity/AsyncResult.js +4 -1
  478. package/dist/reactivity/AsyncResult.js.map +1 -1
  479. package/dist/reactivity/Atom.d.ts +10 -4
  480. package/dist/reactivity/Atom.d.ts.map +1 -1
  481. package/dist/reactivity/Atom.js +38 -13
  482. package/dist/reactivity/Atom.js.map +1 -1
  483. package/dist/reactivity/AtomHttpApi.d.ts +5 -0
  484. package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
  485. package/dist/reactivity/AtomHttpApi.js +5 -1
  486. package/dist/reactivity/AtomHttpApi.js.map +1 -1
  487. package/dist/reactivity/AtomRegistry.js +13 -0
  488. package/dist/reactivity/AtomRegistry.js.map +1 -1
  489. package/dist/reactivity/AtomRpc.d.ts +5 -0
  490. package/dist/reactivity/AtomRpc.d.ts.map +1 -1
  491. package/dist/reactivity/AtomRpc.js +6 -1
  492. package/dist/reactivity/AtomRpc.js.map +1 -1
  493. package/dist/rpc/Rpc.d.ts +25 -0
  494. package/dist/rpc/Rpc.d.ts.map +1 -1
  495. package/dist/rpc/Rpc.js +18 -0
  496. package/dist/rpc/Rpc.js.map +1 -1
  497. package/dist/rpc/RpcClient.d.ts.map +1 -1
  498. package/dist/rpc/RpcClient.js +38 -21
  499. package/dist/rpc/RpcClient.js.map +1 -1
  500. package/dist/rpc/RpcGroup.d.ts +5 -0
  501. package/dist/rpc/RpcGroup.d.ts.map +1 -1
  502. package/dist/rpc/RpcGroup.js.map +1 -1
  503. package/dist/rpc/RpcMiddleware.d.ts +9 -0
  504. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  505. package/dist/rpc/RpcMiddleware.js.map +1 -1
  506. package/dist/rpc/RpcSerialization.d.ts +7 -1
  507. package/dist/rpc/RpcSerialization.d.ts.map +1 -1
  508. package/dist/rpc/RpcSerialization.js +22 -5
  509. package/dist/rpc/RpcSerialization.js.map +1 -1
  510. package/dist/rpc/RpcServer.d.ts.map +1 -1
  511. package/dist/rpc/RpcServer.js +33 -18
  512. package/dist/rpc/RpcServer.js.map +1 -1
  513. package/dist/schema/SchemaCompiler/runtime.js +2 -1
  514. package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
  515. package/dist/schema/VariantSchema.d.ts +10 -2
  516. package/dist/schema/VariantSchema.d.ts.map +1 -1
  517. package/dist/schema/VariantSchema.js +7 -1
  518. package/dist/schema/VariantSchema.js.map +1 -1
  519. package/dist/socket/Socket.d.ts +24 -10
  520. package/dist/socket/Socket.d.ts.map +1 -1
  521. package/dist/socket/Socket.js +52 -17
  522. package/dist/socket/Socket.js.map +1 -1
  523. package/dist/sql/Migrator.d.ts +3 -0
  524. package/dist/sql/Migrator.d.ts.map +1 -1
  525. package/dist/sql/Migrator.js +10 -1
  526. package/dist/sql/Migrator.js.map +1 -1
  527. package/dist/sql/SqlModel.d.ts.map +1 -1
  528. package/dist/sql/SqlModel.js +1 -0
  529. package/dist/sql/SqlModel.js.map +1 -1
  530. package/dist/testing/TestConsole.d.ts +96 -0
  531. package/dist/testing/TestConsole.d.ts.map +1 -1
  532. package/dist/testing/TestConsole.js +78 -6
  533. package/dist/testing/TestConsole.js.map +1 -1
  534. package/dist/testing/TestSchema.d.ts +5 -1
  535. package/dist/testing/TestSchema.d.ts.map +1 -1
  536. package/dist/testing/TestSchema.js +7 -2
  537. package/dist/testing/TestSchema.js.map +1 -1
  538. package/dist/workers/SharedMemory.d.ts +115 -0
  539. package/dist/workers/SharedMemory.d.ts.map +1 -0
  540. package/dist/workers/SharedMemory.js +149 -0
  541. package/dist/workers/SharedMemory.js.map +1 -0
  542. package/dist/workers/Transferable.d.ts.map +1 -1
  543. package/dist/workers/Transferable.js +1 -4
  544. package/dist/workers/Transferable.js.map +1 -1
  545. package/dist/workers/index.d.ts +5 -0
  546. package/dist/workers/index.d.ts.map +1 -1
  547. package/dist/workers/index.js +5 -0
  548. package/dist/workers/index.js.map +1 -1
  549. package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
  550. package/dist/workflow/WorkflowEngine.js +3 -1
  551. package/dist/workflow/WorkflowEngine.js.map +1 -1
  552. package/package.json +7 -4
  553. package/src/Arbitrary.ts +60 -3
  554. package/src/BigInt.ts +247 -9
  555. package/src/Cache.ts +4 -2
  556. package/src/Cause.ts +3 -3
  557. package/src/Chunk.ts +7 -3
  558. package/src/Clock.ts +5 -2
  559. package/src/Codegen.ts +741 -0
  560. package/src/Config.ts +35 -4
  561. package/src/ConfigProvider.ts +24 -7
  562. package/src/Effect.ts +871 -109
  563. package/src/Equivalence.ts +16 -13
  564. package/src/Fiber.ts +58 -8
  565. package/src/FiberHandle.ts +86 -12
  566. package/src/FiberMap.ts +83 -10
  567. package/src/FiberSet.ts +96 -8
  568. package/src/Formatter.ts +2 -0
  569. package/src/LayerMap.ts +14 -4
  570. package/src/LayerRef.ts +2 -2
  571. package/src/Match.ts +16 -0
  572. package/src/Metric.ts +1 -1
  573. package/src/Option.ts +9 -5
  574. package/src/Order.ts +9 -4
  575. package/src/Pool.ts +22 -17
  576. package/src/Predicate.ts +7 -3
  577. package/src/Queue.ts +84 -31
  578. package/src/Rational.ts +198 -0
  579. package/src/Request.ts +20 -0
  580. package/src/Result.ts +9 -6
  581. package/src/Schema.ts +69 -32
  582. package/src/SchemaAST.ts +15 -4
  583. package/src/SchemaGetter.ts +17 -10
  584. package/src/SchemaRepresentation.ts +19 -74
  585. package/src/SchemaTransformation.ts +12 -11
  586. package/src/Scope.ts +12 -6
  587. package/src/ScopedCache.ts +2 -1
  588. package/src/Semaphore.ts +18 -4
  589. package/src/Stream.ts +66 -20
  590. package/src/String.ts +83 -6
  591. package/src/Struct.ts +138 -5
  592. package/src/TextDiff.ts +186 -30
  593. package/src/TxPriorityQueue.ts +2 -2
  594. package/src/ai/LanguageModel.ts +2 -1
  595. package/src/ai/McpServer.ts +145 -22
  596. package/src/ai/Tool.ts +3 -2
  597. package/src/ai/Toolkit.ts +3 -1
  598. package/src/chat/Chat.ts +164 -0
  599. package/src/chat/ChatAdapter.ts +444 -0
  600. package/src/chat/ChatError.ts +684 -0
  601. package/src/chat/ChatEvent.ts +221 -0
  602. package/src/chat/ChatHandler.ts +102 -0
  603. package/src/chat/ChatInteraction.ts +1979 -0
  604. package/src/chat/ChatMarkdown.ts +1406 -0
  605. package/src/chat/ChatMessage.ts +213 -0
  606. package/src/chat/ChatTest.ts +2606 -0
  607. package/src/chat/ChatThread.ts +132 -0
  608. package/src/chat/ChatUi.ts +320 -0
  609. package/src/chat/index.ts +72 -0
  610. package/src/chat/internal/retries.ts +7 -0
  611. package/src/cli/CliOutput.ts +4 -5
  612. package/src/cli/Command.ts +20 -2
  613. package/src/cli/Prompt.ts +15 -9
  614. package/src/cli/internal/config.ts +8 -8
  615. package/src/cluster/ClusterCron.ts +33 -10
  616. package/src/cluster/ClusterWorkflowEngine.ts +42 -23
  617. package/src/cluster/Sharding.ts +17 -3
  618. package/src/cluster/ShardingConfig.ts +3 -0
  619. package/src/cluster/SqlMessageStorage.ts +16 -20
  620. package/src/cluster/SqlRunnerStorage.ts +21 -8
  621. package/src/cluster/internal/entityManager.ts +19 -10
  622. package/src/cluster/internal/entityReaper.ts +1 -1
  623. package/src/crypto/Kdf.ts +2 -1
  624. package/src/crypto/Password.ts +258 -0
  625. package/src/crypto/index.ts +6 -0
  626. package/src/encoding/Base64.ts +79 -0
  627. package/src/encoding/Base64Url.ts +1 -0
  628. package/src/encoding/Csv.ts +47 -20
  629. package/src/encoding/Hex.ts +5 -0
  630. package/src/encoding/SchemaBinary.ts +13 -79
  631. package/src/encoding/Sse.ts +7 -5
  632. package/src/encoding/Xml.ts +394 -47
  633. package/src/eventlog/EventJournal.ts +3 -8
  634. package/src/eventlog/SqlEventLogServerEncrypted.ts +9 -9
  635. package/src/http/FindMyWay/internal/router.ts +181 -129
  636. package/src/http/FindMyWay.ts +106 -0
  637. package/src/http/HttpClient.ts +2 -1
  638. package/src/http/HttpMiddleware.ts +22 -9
  639. package/src/http/HttpRouter.ts +84 -20
  640. package/src/http/HttpServerResponse.ts +33 -61
  641. package/src/http/Mime.ts +3 -2
  642. package/src/http/internal/compression.ts +2 -2
  643. package/src/{http-api → http}/internal/mediaType.ts +4 -0
  644. package/src/http/internal/redactedPath.ts +144 -0
  645. package/src/http/internal/requestState.ts +2 -0
  646. package/src/http-api/HttpApi.ts +25 -2
  647. package/src/http-api/HttpApiBuilder.ts +5 -2
  648. package/src/http-api/HttpApiClient.ts +10 -6
  649. package/src/http-api/HttpApiEndpoint.ts +1 -1
  650. package/src/http-api/HttpApiScalar.ts +9 -1
  651. package/src/http-api/HttpApiSchema.ts +1 -1
  652. package/src/http-api/OpenApi.ts +2 -0
  653. package/src/http-api/internal/httpApiScalar.ts +5 -1
  654. package/src/index.ts +6 -0
  655. package/src/internal/arbitrary/model.ts +3 -9
  656. package/src/internal/arbitrary/regexp.ts +3 -1
  657. package/src/internal/arbitrary/runner.ts +28 -14
  658. package/src/internal/arbitrary/schema.ts +140 -35
  659. package/src/internal/codegen.ts +53 -0
  660. package/src/internal/core.ts +3 -3
  661. package/src/internal/dateTime.ts +30 -13
  662. package/src/internal/effect.ts +25 -9
  663. package/src/internal/hashMap.ts +8 -7
  664. package/src/internal/matcher.ts +2 -1
  665. package/src/internal/record.ts +19 -4
  666. package/src/internal/result.ts +1 -1
  667. package/src/internal/schema/codeExpression.ts +179 -0
  668. package/src/internal/schema/codeImports.ts +142 -0
  669. package/src/internal/schema/codeTokens.ts +39 -0
  670. package/src/internal/schema/passthrough.ts +8 -0
  671. package/src/internal/schema/schemaCodegen.ts +543 -0
  672. package/src/internal/schema/toJsonSchemaDocument.ts +13 -4
  673. package/src/internal/trie.ts +46 -60
  674. package/src/internal/utf8.ts +106 -0
  675. package/src/internal/version.ts +1 -1
  676. package/src/jose/Jwks.ts +23 -4
  677. package/src/observability/OtlpExporter.ts +12 -10
  678. package/src/observability/OtlpLogger.ts +5 -3
  679. package/src/observability/internal/otlpProtobuf.ts +386 -457
  680. package/src/persistence/PersistedQueue.ts +21 -4
  681. package/src/protobuf/ProtobufDescriptor.ts +503 -0
  682. package/src/protobuf/ProtobufDescriptorProto.ts +3611 -0
  683. package/src/protobuf/ProtobufMessage.ts +277 -0
  684. package/src/protobuf/ProtobufReader.ts +756 -0
  685. package/src/protobuf/ProtobufWriter.ts +530 -0
  686. package/src/protobuf/index.ts +36 -0
  687. package/src/protobuf/internal/binary.ts +1215 -0
  688. package/src/protobuf/internal/resolve.ts +533 -0
  689. package/src/protobuf/internal/wireType.ts +9 -0
  690. package/src/reactivity/AsyncResult.ts +6 -1
  691. package/src/reactivity/Atom.ts +55 -16
  692. package/src/reactivity/AtomHttpApi.ts +10 -1
  693. package/src/reactivity/AtomRegistry.ts +16 -0
  694. package/src/reactivity/AtomRpc.ts +11 -1
  695. package/src/rpc/Rpc.ts +31 -0
  696. package/src/rpc/RpcClient.ts +30 -21
  697. package/src/rpc/RpcGroup.ts +5 -0
  698. package/src/rpc/RpcMiddleware.ts +9 -0
  699. package/src/rpc/RpcSerialization.ts +26 -6
  700. package/src/rpc/RpcServer.ts +33 -20
  701. package/src/schema/SchemaCompiler/runtime.ts +2 -3
  702. package/src/schema/VariantSchema.ts +12 -4
  703. package/src/socket/Socket.ts +67 -20
  704. package/src/sql/Migrator.ts +8 -1
  705. package/src/sql/SqlModel.ts +4 -0
  706. package/src/testing/TestConsole.ts +119 -9
  707. package/src/testing/TestSchema.ts +8 -3
  708. package/src/workers/SharedMemory.ts +227 -0
  709. package/src/workers/Transferable.ts +1 -5
  710. package/src/workers/index.ts +6 -0
  711. package/src/workflow/WorkflowEngine.ts +3 -1
  712. package/dist/http-api/internal/mediaType.d.ts.map +0 -1
  713. package/dist/internal/schema/toCodeDocument.d.ts +0 -2
  714. package/dist/internal/schema/toCodeDocument.d.ts.map +0 -1
  715. package/dist/internal/schema/toCodeDocument.js +0 -447
  716. package/dist/internal/schema/toCodeDocument.js.map +0 -1
  717. package/dist/observability/internal/protobuf.d.ts +0 -2
  718. package/dist/observability/internal/protobuf.d.ts.map +0 -1
  719. package/dist/observability/internal/protobuf.js +0 -169
  720. package/dist/observability/internal/protobuf.js.map +0 -1
  721. package/src/internal/schema/toCodeDocument.ts +0 -578
  722. package/src/observability/internal/protobuf.ts +0 -225
  723. /package/dist/{http-api → http}/internal/mediaType.d.ts +0 -0
@@ -0,0 +1,2083 @@
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
+ import type * as ProtobufDescriptor from "./ProtobufDescriptor.ts";
9
+ /**
10
+ * The resolved `google/protobuf/descriptor.proto`.
11
+ *
12
+ * @stability experimental
13
+ * @category descriptor.proto
14
+ * @since 4.1.5
15
+ */
16
+ export declare const descriptorFile: ProtobufDescriptor.FileDescriptor;
17
+ /**
18
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
19
+ * files it parses.
20
+ *
21
+ * @stability experimental
22
+ * @category descriptor.proto
23
+ * @since 4.1.5
24
+ */
25
+ export interface FileDescriptorSet {
26
+ readonly file?: ReadonlyArray<FileDescriptorProto>;
27
+ }
28
+ /**
29
+ * The descriptor of `google.protobuf.FileDescriptorSet`.
30
+ *
31
+ * @stability experimental
32
+ * @category descriptor.proto
33
+ * @since 4.1.5
34
+ */
35
+ export declare const FileDescriptorSet: ProtobufDescriptor.MessageDescriptor;
36
+ /**
37
+ * Describes a complete .proto file.
38
+ *
39
+ * @stability experimental
40
+ * @category descriptor.proto
41
+ * @since 4.1.5
42
+ */
43
+ export interface FileDescriptorProto {
44
+ /** file name, relative to root of source tree */
45
+ readonly name?: string;
46
+ /** e.g. "foo", "foo.bar", etc. */
47
+ readonly package?: string;
48
+ /** Names of files imported by this file. */
49
+ readonly dependency?: ReadonlyArray<string>;
50
+ /** Indexes of the public imported files in the dependency list above. */
51
+ readonly public_dependency?: ReadonlyArray<number>;
52
+ /**
53
+ * Indexes of the weak imported files in the dependency list.
54
+ * For Google-internal migration only. Do not use.
55
+ */
56
+ readonly weak_dependency?: ReadonlyArray<number>;
57
+ /**
58
+ * Names of files imported by this file purely for the purpose of providing
59
+ * option extensions. These are excluded from the dependency list above.
60
+ */
61
+ readonly option_dependency?: ReadonlyArray<string>;
62
+ /** All top-level definitions in this file. */
63
+ readonly message_type?: ReadonlyArray<DescriptorProto>;
64
+ readonly enum_type?: ReadonlyArray<EnumDescriptorProto>;
65
+ readonly service?: ReadonlyArray<ServiceDescriptorProto>;
66
+ readonly extension?: ReadonlyArray<FieldDescriptorProto>;
67
+ readonly options?: FileOptions;
68
+ /**
69
+ * This field contains optional information about the original source code.
70
+ * You may safely remove this entire field without harming runtime
71
+ * functionality of the descriptors -- the information is needed only by
72
+ * development tools.
73
+ */
74
+ readonly source_code_info?: SourceCodeInfo;
75
+ /**
76
+ * The syntax of the proto file.
77
+ * The supported values are "proto2", "proto3", and "editions".
78
+ *
79
+ * **Details**
80
+ *
81
+ * If `edition` is present, this value must be "editions".
82
+ * WARNING: This field should only be used by protobuf plugins or special
83
+ * cases like the proto compiler. Other uses are discouraged and
84
+ * developers should rely on the protoreflect APIs for their client language.
85
+ */
86
+ readonly syntax?: string;
87
+ /**
88
+ * The edition of the proto file.
89
+ * WARNING: This field should only be used by protobuf plugins or special
90
+ * cases like the proto compiler. Other uses are discouraged and
91
+ * developers should rely on the protoreflect APIs for their client language.
92
+ */
93
+ readonly edition?: Edition;
94
+ }
95
+ /**
96
+ * The descriptor of `google.protobuf.FileDescriptorProto`.
97
+ *
98
+ * @stability experimental
99
+ * @category descriptor.proto
100
+ * @since 4.1.5
101
+ */
102
+ export declare const FileDescriptorProto: ProtobufDescriptor.MessageDescriptor;
103
+ /**
104
+ * Describes a message type.
105
+ *
106
+ * @stability experimental
107
+ * @category descriptor.proto
108
+ * @since 4.1.5
109
+ */
110
+ export interface DescriptorProto {
111
+ readonly name?: string;
112
+ readonly field?: ReadonlyArray<FieldDescriptorProto>;
113
+ readonly extension?: ReadonlyArray<FieldDescriptorProto>;
114
+ readonly nested_type?: ReadonlyArray<DescriptorProto>;
115
+ readonly enum_type?: ReadonlyArray<EnumDescriptorProto>;
116
+ readonly extension_range?: ReadonlyArray<DescriptorProto_ExtensionRange>;
117
+ readonly oneof_decl?: ReadonlyArray<OneofDescriptorProto>;
118
+ readonly options?: MessageOptions;
119
+ readonly reserved_range?: ReadonlyArray<DescriptorProto_ReservedRange>;
120
+ /**
121
+ * Reserved field names, which may not be used by fields in the same message.
122
+ * A given name may only be reserved once.
123
+ */
124
+ readonly reserved_name?: ReadonlyArray<string>;
125
+ /** Support for `export` and `local` keywords on enums. */
126
+ readonly visibility?: SymbolVisibility;
127
+ }
128
+ /**
129
+ * The descriptor of `google.protobuf.DescriptorProto`.
130
+ *
131
+ * @stability experimental
132
+ * @category descriptor.proto
133
+ * @since 4.1.5
134
+ */
135
+ export declare const DescriptorProto: ProtobufDescriptor.MessageDescriptor;
136
+ /**
137
+ * The fields of `google.protobuf.DescriptorProto.ExtensionRange`.
138
+ *
139
+ * @stability experimental
140
+ * @category descriptor.proto
141
+ * @since 4.1.5
142
+ */
143
+ export interface DescriptorProto_ExtensionRange {
144
+ /** Inclusive. */
145
+ readonly start?: number;
146
+ /** Exclusive. */
147
+ readonly end?: number;
148
+ readonly options?: ExtensionRangeOptions;
149
+ }
150
+ /**
151
+ * The descriptor of `google.protobuf.DescriptorProto.ExtensionRange`.
152
+ *
153
+ * @stability experimental
154
+ * @category descriptor.proto
155
+ * @since 4.1.5
156
+ */
157
+ export declare const DescriptorProto_ExtensionRange: ProtobufDescriptor.MessageDescriptor;
158
+ /**
159
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
160
+ * fields or extension ranges in the same message. Reserved ranges may
161
+ * not overlap.
162
+ *
163
+ * @stability experimental
164
+ * @category descriptor.proto
165
+ * @since 4.1.5
166
+ */
167
+ export interface DescriptorProto_ReservedRange {
168
+ /** Inclusive. */
169
+ readonly start?: number;
170
+ /** Exclusive. */
171
+ readonly end?: number;
172
+ }
173
+ /**
174
+ * The descriptor of `google.protobuf.DescriptorProto.ReservedRange`.
175
+ *
176
+ * @stability experimental
177
+ * @category descriptor.proto
178
+ * @since 4.1.5
179
+ */
180
+ export declare const DescriptorProto_ReservedRange: ProtobufDescriptor.MessageDescriptor;
181
+ /**
182
+ * The fields of `google.protobuf.ExtensionRangeOptions`.
183
+ *
184
+ * @stability experimental
185
+ * @category descriptor.proto
186
+ * @since 4.1.5
187
+ */
188
+ export interface ExtensionRangeOptions {
189
+ /** The parser stores options it doesn't recognize here. See above. */
190
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
191
+ /**
192
+ * For external users: DO NOT USE. We are in the process of open sourcing
193
+ * extension declaration and executing internal cleanups before it can be
194
+ * used externally.
195
+ */
196
+ readonly declaration?: ReadonlyArray<ExtensionRangeOptions_Declaration>;
197
+ /** Any features defined in the specific edition. */
198
+ readonly features?: FeatureSet;
199
+ /**
200
+ * The verification state of the range.
201
+ * TODO: flip the default to DECLARATION once all empty ranges
202
+ * are marked as UNVERIFIED.
203
+ */
204
+ readonly verification?: ExtensionRangeOptions_VerificationState;
205
+ }
206
+ /**
207
+ * The descriptor of `google.protobuf.ExtensionRangeOptions`.
208
+ *
209
+ * @stability experimental
210
+ * @category descriptor.proto
211
+ * @since 4.1.5
212
+ */
213
+ export declare const ExtensionRangeOptions: ProtobufDescriptor.MessageDescriptor;
214
+ /**
215
+ * The fields of `google.protobuf.ExtensionRangeOptions.Declaration`.
216
+ *
217
+ * @stability experimental
218
+ * @category descriptor.proto
219
+ * @since 4.1.5
220
+ */
221
+ export interface ExtensionRangeOptions_Declaration {
222
+ /** The extension number declared within the extension range. */
223
+ readonly number?: number;
224
+ /**
225
+ * The fully-qualified name of the extension field. There must be a leading
226
+ * dot in front of the full name.
227
+ */
228
+ readonly full_name?: string;
229
+ /**
230
+ * The fully-qualified type name of the extension field. Unlike
231
+ * Metadata.type, Declaration.type must have a leading dot for messages
232
+ * and enums.
233
+ */
234
+ readonly type?: string;
235
+ /**
236
+ * If true, indicates that the number is reserved in the extension range,
237
+ * and any extension field with the number will fail to compile. Set this
238
+ * when a declared extension field is deleted.
239
+ */
240
+ readonly reserved?: boolean;
241
+ /**
242
+ * If true, indicates that the extension must be defined as repeated.
243
+ * Otherwise the extension must be defined as optional.
244
+ */
245
+ readonly repeated?: boolean;
246
+ }
247
+ /**
248
+ * The descriptor of `google.protobuf.ExtensionRangeOptions.Declaration`.
249
+ *
250
+ * @stability experimental
251
+ * @category descriptor.proto
252
+ * @since 4.1.5
253
+ */
254
+ export declare const ExtensionRangeOptions_Declaration: ProtobufDescriptor.MessageDescriptor;
255
+ /**
256
+ * The verification state of the extension range.
257
+ *
258
+ * @stability experimental
259
+ * @category descriptor.proto
260
+ * @since 4.1.5
261
+ */
262
+ export declare const ExtensionRangeOptions_VerificationState: {
263
+ /** All the extensions of the range must be declared. */
264
+ readonly DECLARATION: 0;
265
+ readonly UNVERIFIED: 1;
266
+ };
267
+ /**
268
+ * A value of `google.protobuf.ExtensionRangeOptions.VerificationState`.
269
+ *
270
+ * @stability experimental
271
+ * @category descriptor.proto
272
+ * @since 4.1.5
273
+ */
274
+ export type ExtensionRangeOptions_VerificationState = (typeof ExtensionRangeOptions_VerificationState)[keyof typeof ExtensionRangeOptions_VerificationState];
275
+ /**
276
+ * Describes a field within a message.
277
+ *
278
+ * @stability experimental
279
+ * @category descriptor.proto
280
+ * @since 4.1.5
281
+ */
282
+ export interface FieldDescriptorProto {
283
+ readonly name?: string;
284
+ readonly number?: number;
285
+ readonly label?: FieldDescriptorProto_Label;
286
+ /**
287
+ * If type_name is set, this need not be set. If both this and type_name
288
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
289
+ */
290
+ readonly type?: FieldDescriptorProto_Type;
291
+ /**
292
+ * For message and enum types, this is the name of the type. If the name
293
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
294
+ * rules are used to find the type (i.e. first the nested types within this
295
+ * message are searched, then within the parent, on up to the root
296
+ * namespace).
297
+ */
298
+ readonly type_name?: string;
299
+ /**
300
+ * For extensions, this is the name of the type being extended. It is
301
+ * resolved in the same manner as type_name.
302
+ */
303
+ readonly extendee?: string;
304
+ /**
305
+ * For numeric types, contains the original text representation of the value.
306
+ * For booleans, "true" or "false".
307
+ * For strings, contains the default text contents (not escaped in any way).
308
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
309
+ */
310
+ readonly default_value?: string;
311
+ /**
312
+ * If set, gives the index of a oneof in the containing type's oneof_decl
313
+ * list. This field is a member of that oneof.
314
+ */
315
+ readonly oneof_index?: number;
316
+ /**
317
+ * JSON name of this field. The value is set by protocol compiler. If the
318
+ * user has set a "json_name" option on this field, that option's value
319
+ * will be used. Otherwise, it's deduced from the field's name by converting
320
+ * it to camelCase.
321
+ */
322
+ readonly json_name?: string;
323
+ readonly options?: FieldOptions;
324
+ /**
325
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
326
+ * tracks presence regardless of field type.
327
+ *
328
+ * **Details**
329
+ *
330
+ * When proto3_optional is true, this field must belong to a oneof to signal
331
+ * to old proto3 clients that presence is tracked for this field. This oneof
332
+ * is known as a "synthetic" oneof, and this field must be its sole member
333
+ * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
334
+ * exist in the descriptor only, and do not generate any API. Synthetic oneofs
335
+ * must be ordered after all "real" oneofs.
336
+ *
337
+ * For message fields, proto3_optional doesn't create any semantic change,
338
+ * since non-repeated message fields always track presence. However it still
339
+ * indicates the semantic detail of whether the user wrote "optional" or not.
340
+ * This can be useful for round-tripping the .proto file. For consistency we
341
+ * give message fields a synthetic oneof also, even though it is not required
342
+ * to track presence. This is especially important because the parser can't
343
+ * tell if a field is a message or an enum, so it must always create a
344
+ * synthetic oneof.
345
+ *
346
+ * Proto2 optional fields do not set this flag, because they already indicate
347
+ * optional with `LABEL_OPTIONAL`.
348
+ */
349
+ readonly proto3_optional?: boolean;
350
+ }
351
+ /**
352
+ * The descriptor of `google.protobuf.FieldDescriptorProto`.
353
+ *
354
+ * @stability experimental
355
+ * @category descriptor.proto
356
+ * @since 4.1.5
357
+ */
358
+ export declare const FieldDescriptorProto: ProtobufDescriptor.MessageDescriptor;
359
+ /**
360
+ * The values of `google.protobuf.FieldDescriptorProto.Type`.
361
+ *
362
+ * @stability experimental
363
+ * @category descriptor.proto
364
+ * @since 4.1.5
365
+ */
366
+ export declare const FieldDescriptorProto_Type: {
367
+ /**
368
+ * 0 is reserved for errors.
369
+ * Order is weird for historical reasons.
370
+ */
371
+ readonly TYPE_DOUBLE: 1;
372
+ readonly TYPE_FLOAT: 2;
373
+ /**
374
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
375
+ * negative values are likely.
376
+ */
377
+ readonly TYPE_INT64: 3;
378
+ readonly TYPE_UINT64: 4;
379
+ /**
380
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
381
+ * negative values are likely.
382
+ */
383
+ readonly TYPE_INT32: 5;
384
+ readonly TYPE_FIXED64: 6;
385
+ readonly TYPE_FIXED32: 7;
386
+ readonly TYPE_BOOL: 8;
387
+ readonly TYPE_STRING: 9;
388
+ /**
389
+ * Tag-delimited aggregate.
390
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
391
+ * implementations should still be able to parse the group wire format and
392
+ * treat group fields as unknown fields. In Editions, the group wire format
393
+ * can be enabled via the `message_encoding` feature.
394
+ */
395
+ readonly TYPE_GROUP: 10;
396
+ /** Length-delimited aggregate. */
397
+ readonly TYPE_MESSAGE: 11;
398
+ /** New in version 2. */
399
+ readonly TYPE_BYTES: 12;
400
+ readonly TYPE_UINT32: 13;
401
+ readonly TYPE_ENUM: 14;
402
+ readonly TYPE_SFIXED32: 15;
403
+ readonly TYPE_SFIXED64: 16;
404
+ /** Uses ZigZag encoding. */
405
+ readonly TYPE_SINT32: 17;
406
+ /** Uses ZigZag encoding. */
407
+ readonly TYPE_SINT64: 18;
408
+ };
409
+ /**
410
+ * A value of `google.protobuf.FieldDescriptorProto.Type`.
411
+ *
412
+ * @stability experimental
413
+ * @category descriptor.proto
414
+ * @since 4.1.5
415
+ */
416
+ export type FieldDescriptorProto_Type = (typeof FieldDescriptorProto_Type)[keyof typeof FieldDescriptorProto_Type];
417
+ /**
418
+ * The values of `google.protobuf.FieldDescriptorProto.Label`.
419
+ *
420
+ * @stability experimental
421
+ * @category descriptor.proto
422
+ * @since 4.1.5
423
+ */
424
+ export declare const FieldDescriptorProto_Label: {
425
+ /** 0 is reserved for errors */
426
+ readonly LABEL_OPTIONAL: 1;
427
+ readonly LABEL_REPEATED: 3;
428
+ /**
429
+ * The required label is only allowed in google.protobuf. In proto3 and Editions
430
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
431
+ * can be used to get this behavior.
432
+ */
433
+ readonly LABEL_REQUIRED: 2;
434
+ };
435
+ /**
436
+ * A value of `google.protobuf.FieldDescriptorProto.Label`.
437
+ *
438
+ * @stability experimental
439
+ * @category descriptor.proto
440
+ * @since 4.1.5
441
+ */
442
+ export type FieldDescriptorProto_Label = (typeof FieldDescriptorProto_Label)[keyof typeof FieldDescriptorProto_Label];
443
+ /**
444
+ * Describes a oneof.
445
+ *
446
+ * @stability experimental
447
+ * @category descriptor.proto
448
+ * @since 4.1.5
449
+ */
450
+ export interface OneofDescriptorProto {
451
+ readonly name?: string;
452
+ readonly options?: OneofOptions;
453
+ }
454
+ /**
455
+ * The descriptor of `google.protobuf.OneofDescriptorProto`.
456
+ *
457
+ * @stability experimental
458
+ * @category descriptor.proto
459
+ * @since 4.1.5
460
+ */
461
+ export declare const OneofDescriptorProto: ProtobufDescriptor.MessageDescriptor;
462
+ /**
463
+ * Describes an enum type.
464
+ *
465
+ * @stability experimental
466
+ * @category descriptor.proto
467
+ * @since 4.1.5
468
+ */
469
+ export interface EnumDescriptorProto {
470
+ readonly name?: string;
471
+ readonly value?: ReadonlyArray<EnumValueDescriptorProto>;
472
+ readonly options?: EnumOptions;
473
+ /**
474
+ * Range of reserved numeric values. Reserved numeric values may not be used
475
+ * by enum values in the same enum declaration. Reserved ranges may not
476
+ * overlap.
477
+ */
478
+ readonly reserved_range?: ReadonlyArray<EnumDescriptorProto_EnumReservedRange>;
479
+ /**
480
+ * Reserved enum value names, which may not be reused. A given name may only
481
+ * be reserved once.
482
+ */
483
+ readonly reserved_name?: ReadonlyArray<string>;
484
+ /** Support for `export` and `local` keywords on enums. */
485
+ readonly visibility?: SymbolVisibility;
486
+ }
487
+ /**
488
+ * The descriptor of `google.protobuf.EnumDescriptorProto`.
489
+ *
490
+ * @stability experimental
491
+ * @category descriptor.proto
492
+ * @since 4.1.5
493
+ */
494
+ export declare const EnumDescriptorProto: ProtobufDescriptor.MessageDescriptor;
495
+ /**
496
+ * Range of reserved numeric values. Reserved values may not be used by
497
+ * entries in the same enum. Reserved ranges may not overlap.
498
+ *
499
+ * **Details**
500
+ *
501
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
502
+ * is inclusive such that it can appropriately represent the entire int32
503
+ * domain.
504
+ *
505
+ * @stability experimental
506
+ * @category descriptor.proto
507
+ * @since 4.1.5
508
+ */
509
+ export interface EnumDescriptorProto_EnumReservedRange {
510
+ /** Inclusive. */
511
+ readonly start?: number;
512
+ /** Inclusive. */
513
+ readonly end?: number;
514
+ }
515
+ /**
516
+ * The descriptor of `google.protobuf.EnumDescriptorProto.EnumReservedRange`.
517
+ *
518
+ * @stability experimental
519
+ * @category descriptor.proto
520
+ * @since 4.1.5
521
+ */
522
+ export declare const EnumDescriptorProto_EnumReservedRange: ProtobufDescriptor.MessageDescriptor;
523
+ /**
524
+ * Describes a value within an enum.
525
+ *
526
+ * @stability experimental
527
+ * @category descriptor.proto
528
+ * @since 4.1.5
529
+ */
530
+ export interface EnumValueDescriptorProto {
531
+ readonly name?: string;
532
+ readonly number?: number;
533
+ readonly options?: EnumValueOptions;
534
+ }
535
+ /**
536
+ * The descriptor of `google.protobuf.EnumValueDescriptorProto`.
537
+ *
538
+ * @stability experimental
539
+ * @category descriptor.proto
540
+ * @since 4.1.5
541
+ */
542
+ export declare const EnumValueDescriptorProto: ProtobufDescriptor.MessageDescriptor;
543
+ /**
544
+ * Describes a service.
545
+ *
546
+ * @stability experimental
547
+ * @category descriptor.proto
548
+ * @since 4.1.5
549
+ */
550
+ export interface ServiceDescriptorProto {
551
+ readonly name?: string;
552
+ readonly method?: ReadonlyArray<MethodDescriptorProto>;
553
+ readonly options?: ServiceOptions;
554
+ }
555
+ /**
556
+ * The descriptor of `google.protobuf.ServiceDescriptorProto`.
557
+ *
558
+ * @stability experimental
559
+ * @category descriptor.proto
560
+ * @since 4.1.5
561
+ */
562
+ export declare const ServiceDescriptorProto: ProtobufDescriptor.MessageDescriptor;
563
+ /**
564
+ * Describes a method of a service.
565
+ *
566
+ * @stability experimental
567
+ * @category descriptor.proto
568
+ * @since 4.1.5
569
+ */
570
+ export interface MethodDescriptorProto {
571
+ readonly name?: string;
572
+ /**
573
+ * Input and output type names. These are resolved in the same way as
574
+ * FieldDescriptorProto.type_name, but must refer to a message type.
575
+ */
576
+ readonly input_type?: string;
577
+ readonly output_type?: string;
578
+ readonly options?: MethodOptions;
579
+ /** Identifies if client streams multiple client messages */
580
+ readonly client_streaming?: boolean;
581
+ /** Identifies if server streams multiple server messages */
582
+ readonly server_streaming?: boolean;
583
+ }
584
+ /**
585
+ * The descriptor of `google.protobuf.MethodDescriptorProto`.
586
+ *
587
+ * @stability experimental
588
+ * @category descriptor.proto
589
+ * @since 4.1.5
590
+ */
591
+ export declare const MethodDescriptorProto: ProtobufDescriptor.MessageDescriptor;
592
+ /**
593
+ * The fields of `google.protobuf.FileOptions`.
594
+ *
595
+ * @stability experimental
596
+ * @category descriptor.proto
597
+ * @since 4.1.5
598
+ */
599
+ export interface FileOptions {
600
+ /**
601
+ * Sets the Java package where classes generated from this .proto will be
602
+ * placed. By default, the proto package is used, but this is often
603
+ * inappropriate because proto packages do not normally start with backwards
604
+ * domain names.
605
+ */
606
+ readonly java_package?: string;
607
+ /**
608
+ * Controls the name of the wrapper Java class generated for the .proto file.
609
+ * That class will always contain the .proto file's getDescriptor() method as
610
+ * well as any top-level extensions defined in the .proto file.
611
+ * If java_multiple_files is disabled, then all the other classes from the
612
+ * .proto file will be nested inside the single wrapper outer class.
613
+ */
614
+ readonly java_outer_classname?: string;
615
+ /**
616
+ * If enabled, then the Java code generator will generate a separate .java
617
+ * file for each top-level message, enum, and service defined in the .proto
618
+ * file. Thus, these types will *not* be nested inside the wrapper class
619
+ * named by java_outer_classname. However, the wrapper class will still be
620
+ * generated to contain the file's getDescriptor() method as well as any
621
+ * top-level extensions defined in the file.
622
+ */
623
+ readonly java_multiple_files?: boolean;
624
+ /** This option does nothing. */
625
+ readonly java_generate_equals_and_hash?: boolean;
626
+ /**
627
+ * A proto2 file can set this to true to opt in to UTF-8 checking for Java,
628
+ * which will throw an exception if invalid UTF-8 is parsed from the wire or
629
+ * assigned to a string field.
630
+ *
631
+ * **Details**
632
+ *
633
+ * TODO: clarify exactly what kinds of field types this option
634
+ * applies to, and update these docs accordingly.
635
+ *
636
+ * Proto3 files already perform these checks. Setting the option explicitly to
637
+ * false has no effect: it cannot be used to opt proto3 files out of UTF-8
638
+ * checks.
639
+ */
640
+ readonly java_string_check_utf8?: boolean;
641
+ readonly optimize_for?: FileOptions_OptimizeMode;
642
+ /**
643
+ * Sets the Go package where structs generated from this .proto will be
644
+ * placed. If omitted, the Go package will be derived from the following:
645
+ * - The basename of the package import path, if provided.
646
+ * - Otherwise, the package statement in the .proto file, if present.
647
+ * - Otherwise, the basename of the .proto file, without extension.
648
+ */
649
+ readonly go_package?: string;
650
+ /**
651
+ * Should generic services be generated in each language? "Generic" services
652
+ * are not specific to any particular RPC system. They are generated by the
653
+ * main code generators in each language (without additional plugins).
654
+ * Generic services were the only kind of service generation supported by
655
+ * early versions of google.protobuf.
656
+ *
657
+ * **Details**
658
+ *
659
+ * Generic services are now considered deprecated in favor of using plugins
660
+ * that generate code specific to your particular RPC system. Therefore,
661
+ * these default to false. Old code which depends on generic services should
662
+ * explicitly set them to true.
663
+ */
664
+ readonly cc_generic_services?: boolean;
665
+ readonly java_generic_services?: boolean;
666
+ readonly py_generic_services?: boolean;
667
+ /**
668
+ * Is this file deprecated?
669
+ * Depending on the target platform, this can emit Deprecated annotations
670
+ * for everything in the file, or it will be completely ignored; in the very
671
+ * least, this is a formalization for deprecating files.
672
+ */
673
+ readonly deprecated?: boolean;
674
+ /**
675
+ * Enables the use of arenas for the proto messages in this file. This applies
676
+ * only to generated classes for C++.
677
+ */
678
+ readonly cc_enable_arenas?: boolean;
679
+ /**
680
+ * Sets the objective c class prefix which is prepended to all objective c
681
+ * generated classes from this .proto. There is no default.
682
+ */
683
+ readonly objc_class_prefix?: string;
684
+ /** Namespace for generated classes; defaults to the package. */
685
+ readonly csharp_namespace?: string;
686
+ /**
687
+ * By default Swift generators will take the proto package and CamelCase it
688
+ * replacing '.' with underscore and use that to prefix the types/symbols
689
+ * defined. When this options is provided, they will use this value instead
690
+ * to prefix the types/symbols defined.
691
+ */
692
+ readonly swift_prefix?: string;
693
+ /**
694
+ * Sets the php class prefix which is prepended to all php generated classes
695
+ * from this .proto. Default is empty.
696
+ */
697
+ readonly php_class_prefix?: string;
698
+ /**
699
+ * Use this option to change the namespace of php generated classes. Default
700
+ * is empty. When this option is empty, the package name will be used for
701
+ * determining the namespace.
702
+ */
703
+ readonly php_namespace?: string;
704
+ /**
705
+ * Use this option to change the namespace of php generated metadata classes.
706
+ * Default is empty. When this option is empty, the proto file name will be
707
+ * used for determining the namespace.
708
+ */
709
+ readonly php_metadata_namespace?: string;
710
+ /**
711
+ * Use this option to change the package of ruby generated classes. Default
712
+ * is empty. When this option is not set, the package name will be used for
713
+ * determining the ruby package.
714
+ */
715
+ readonly ruby_package?: string;
716
+ /**
717
+ * Any features defined in the specific edition.
718
+ * WARNING: This field should only be used by protobuf plugins or special
719
+ * cases like the proto compiler. Other uses are discouraged and
720
+ * developers should rely on the protoreflect APIs for their client language.
721
+ */
722
+ readonly features?: FeatureSet;
723
+ /**
724
+ * The parser stores options it doesn't recognize here.
725
+ * See the documentation for the "Options" section above.
726
+ */
727
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
728
+ }
729
+ /**
730
+ * The descriptor of `google.protobuf.FileOptions`.
731
+ *
732
+ * @stability experimental
733
+ * @category descriptor.proto
734
+ * @since 4.1.5
735
+ */
736
+ export declare const FileOptions: ProtobufDescriptor.MessageDescriptor;
737
+ /**
738
+ * Generated classes can be optimized for speed or code size.
739
+ *
740
+ * @stability experimental
741
+ * @category descriptor.proto
742
+ * @since 4.1.5
743
+ */
744
+ export declare const FileOptions_OptimizeMode: {
745
+ /** Generate complete code for parsing, serialization, */
746
+ readonly SPEED: 1;
747
+ /** etc. */
748
+ readonly CODE_SIZE: 2;
749
+ /** Generate code using MessageLite and the lite runtime. */
750
+ readonly LITE_RUNTIME: 3;
751
+ };
752
+ /**
753
+ * A value of `google.protobuf.FileOptions.OptimizeMode`.
754
+ *
755
+ * @stability experimental
756
+ * @category descriptor.proto
757
+ * @since 4.1.5
758
+ */
759
+ export type FileOptions_OptimizeMode = (typeof FileOptions_OptimizeMode)[keyof typeof FileOptions_OptimizeMode];
760
+ /**
761
+ * The fields of `google.protobuf.MessageOptions`.
762
+ *
763
+ * @stability experimental
764
+ * @category descriptor.proto
765
+ * @since 4.1.5
766
+ */
767
+ export interface MessageOptions {
768
+ /**
769
+ * Set true to use the old proto1 MessageSet wire format for extensions.
770
+ * This is provided for backwards-compatibility with the MessageSet wire
771
+ * format. You should not use this for any other reason: It's less
772
+ * efficient, has fewer features, and is more complicated.
773
+ *
774
+ * **Details**
775
+ *
776
+ * The message must be defined exactly as follows:
777
+ * message Foo {
778
+ * option message_set_wire_format = true;
779
+ * extensions 4 to max;
780
+ * }
781
+ * Note that the message cannot have any defined fields; MessageSets only
782
+ * have extensions.
783
+ *
784
+ * All extensions of your type must be singular messages; e.g. they cannot
785
+ * be int32s, enums, or repeated messages.
786
+ *
787
+ * Because this is an option, the above two restrictions are not enforced by
788
+ * the protocol compiler.
789
+ */
790
+ readonly message_set_wire_format?: boolean;
791
+ /**
792
+ * Disables the generation of the standard "descriptor()" accessor, which can
793
+ * conflict with a field of the same name. This is meant to make migration
794
+ * from proto1 easier; new code should avoid fields named "descriptor".
795
+ */
796
+ readonly no_standard_descriptor_accessor?: boolean;
797
+ /**
798
+ * Is this message deprecated?
799
+ * Depending on the target platform, this can emit Deprecated annotations
800
+ * for the message, or it will be completely ignored; in the very least,
801
+ * this is a formalization for deprecating messages.
802
+ */
803
+ readonly deprecated?: boolean;
804
+ /**
805
+ * Whether the message is an automatically generated map entry type for the
806
+ * maps field.
807
+ *
808
+ * **Details**
809
+ *
810
+ * For maps fields:
811
+ * map<KeyType, ValueType> map_field = 1;
812
+ * The parsed descriptor looks like:
813
+ * message MapFieldEntry {
814
+ * option map_entry = true;
815
+ * optional KeyType key = 1;
816
+ * optional ValueType value = 2;
817
+ * }
818
+ * repeated MapFieldEntry map_field = 1;
819
+ *
820
+ * Implementations may choose not to generate the map_entry=true message, but
821
+ * use a native map in the target language to hold the keys and values.
822
+ * The reflection APIs in such implementations still need to work as
823
+ * if the field is a repeated message field.
824
+ *
825
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
826
+ * instead. The option should only be implicitly set by the proto compiler
827
+ * parser.
828
+ */
829
+ readonly map_entry?: boolean;
830
+ /**
831
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
832
+ * and strips underscored from the fields before comparison in proto3 only.
833
+ * The new behavior takes `json_name` into account and applies to proto2 as
834
+ * well.
835
+ *
836
+ * **Details**
837
+ *
838
+ * This should only be used as a temporary measure against broken builds due
839
+ * to the change in behavior for JSON field name conflicts.
840
+ *
841
+ * TODO This is legacy behavior we plan to remove once downstream
842
+ * teams have had time to migrate.
843
+ */
844
+ readonly deprecated_legacy_json_field_conflicts?: boolean;
845
+ /**
846
+ * Any features defined in the specific edition.
847
+ * WARNING: This field should only be used by protobuf plugins or special
848
+ * cases like the proto compiler. Other uses are discouraged and
849
+ * developers should rely on the protoreflect APIs for their client language.
850
+ */
851
+ readonly features?: FeatureSet;
852
+ /** The parser stores options it doesn't recognize here. See above. */
853
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
854
+ }
855
+ /**
856
+ * The descriptor of `google.protobuf.MessageOptions`.
857
+ *
858
+ * @stability experimental
859
+ * @category descriptor.proto
860
+ * @since 4.1.5
861
+ */
862
+ export declare const MessageOptions: ProtobufDescriptor.MessageDescriptor;
863
+ /**
864
+ * The fields of `google.protobuf.FieldOptions`.
865
+ *
866
+ * @stability experimental
867
+ * @category descriptor.proto
868
+ * @since 4.1.5
869
+ */
870
+ export interface FieldOptions {
871
+ /**
872
+ * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
873
+ * The ctype option instructs the C++ code generator to use a different
874
+ * representation of the field than it normally would. See the specific
875
+ * options below. This option is only implemented to support use of
876
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
877
+ * type "bytes" in the open source release.
878
+ * TODO: make ctype actually deprecated.
879
+ */
880
+ readonly ctype?: FieldOptions_CType;
881
+ /**
882
+ * The packed option can be enabled for repeated primitive fields to enable
883
+ * a more efficient representation on the wire. Rather than repeatedly
884
+ * writing the tag and type for each element, the entire array is encoded as
885
+ * a single length-delimited blob. In proto3, only explicit setting it to
886
+ * false will avoid using packed encoding. This option is prohibited in
887
+ * Editions, but the `repeated_field_encoding` feature can be used to control
888
+ * the behavior.
889
+ */
890
+ readonly packed?: boolean;
891
+ /**
892
+ * The jstype option determines the JavaScript type used for values of the
893
+ * field. The option is permitted only for 64 bit integral and fixed types
894
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
895
+ * is represented as JavaScript string, which avoids loss of precision that
896
+ * can happen when a large value is converted to a floating point JavaScript.
897
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
898
+ * use the JavaScript "number" type. The behavior of the default option
899
+ * JS_NORMAL is implementation dependent.
900
+ *
901
+ * **Details**
902
+ *
903
+ * This option is an enum to permit additional types to be added, e.g.
904
+ * goog.math.Integer.
905
+ */
906
+ readonly jstype?: FieldOptions_JSType;
907
+ /**
908
+ * Should this field be parsed lazily? Lazy applies only to message-type
909
+ * fields. It means that when the outer message is initially parsed, the
910
+ * inner message's contents will not be parsed but instead stored in encoded
911
+ * form. The inner message will actually be parsed when it is first accessed.
912
+ *
913
+ * **Details**
914
+ *
915
+ * This is only a hint. Implementations are free to choose whether to use
916
+ * eager or lazy parsing regardless of the value of this option. However,
917
+ * setting this option true suggests that the protocol author believes that
918
+ * using lazy parsing on this field is worth the additional bookkeeping
919
+ * overhead typically needed to implement it.
920
+ *
921
+ * This option does not affect the public interface of any generated code;
922
+ * all method signatures remain the same. Furthermore, thread-safety of the
923
+ * interface is not affected by this option; const methods remain safe to
924
+ * call from multiple threads concurrently, while non-const methods continue
925
+ * to require exclusive access.
926
+ *
927
+ * Note that lazy message fields are still eagerly verified to check
928
+ * ill-formed wireformat or missing required fields. Calling IsInitialized()
929
+ * on the outer message would fail if the inner message has missing required
930
+ * fields. Failed verification would result in parsing failure (except when
931
+ * uninitialized messages are acceptable).
932
+ */
933
+ readonly lazy?: boolean;
934
+ /**
935
+ * unverified_lazy does no correctness checks on the byte stream. This should
936
+ * only be used where lazy with verification is prohibitive for performance
937
+ * reasons.
938
+ */
939
+ readonly unverified_lazy?: boolean;
940
+ /**
941
+ * Is this field deprecated?
942
+ * Depending on the target platform, this can emit Deprecated annotations
943
+ * for accessors, or it will be completely ignored; in the very least, this
944
+ * is a formalization for deprecating fields.
945
+ */
946
+ readonly deprecated?: boolean;
947
+ /**
948
+ * DEPRECATED. DO NOT USE!
949
+ * For Google-internal migration only. Do not use.
950
+ */
951
+ readonly weak?: boolean;
952
+ /**
953
+ * Indicate that the field value should not be printed out when using debug
954
+ * formats, e.g. when the field contains sensitive credentials.
955
+ */
956
+ readonly debug_redact?: boolean;
957
+ readonly retention?: FieldOptions_OptionRetention;
958
+ readonly targets?: ReadonlyArray<FieldOptions_OptionTargetType>;
959
+ readonly edition_defaults?: ReadonlyArray<FieldOptions_EditionDefault>;
960
+ /**
961
+ * Any features defined in the specific edition.
962
+ * WARNING: This field should only be used by protobuf plugins or special
963
+ * cases like the proto compiler. Other uses are discouraged and
964
+ * developers should rely on the protoreflect APIs for their client language.
965
+ */
966
+ readonly features?: FeatureSet;
967
+ readonly feature_support?: FieldOptions_FeatureSupport;
968
+ /** The parser stores options it doesn't recognize here. See above. */
969
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
970
+ }
971
+ /**
972
+ * The descriptor of `google.protobuf.FieldOptions`.
973
+ *
974
+ * @stability experimental
975
+ * @category descriptor.proto
976
+ * @since 4.1.5
977
+ */
978
+ export declare const FieldOptions: ProtobufDescriptor.MessageDescriptor;
979
+ /**
980
+ * The fields of `google.protobuf.FieldOptions.EditionDefault`.
981
+ *
982
+ * @stability experimental
983
+ * @category descriptor.proto
984
+ * @since 4.1.5
985
+ */
986
+ export interface FieldOptions_EditionDefault {
987
+ readonly edition?: Edition;
988
+ /** Textproto value. */
989
+ readonly value?: string;
990
+ }
991
+ /**
992
+ * The descriptor of `google.protobuf.FieldOptions.EditionDefault`.
993
+ *
994
+ * @stability experimental
995
+ * @category descriptor.proto
996
+ * @since 4.1.5
997
+ */
998
+ export declare const FieldOptions_EditionDefault: ProtobufDescriptor.MessageDescriptor;
999
+ /**
1000
+ * Information about the support window of a feature.
1001
+ *
1002
+ * @stability experimental
1003
+ * @category descriptor.proto
1004
+ * @since 4.1.5
1005
+ */
1006
+ export interface FieldOptions_FeatureSupport {
1007
+ /**
1008
+ * The edition that this feature was first available in. In editions
1009
+ * earlier than this one, the default assigned to EDITION_LEGACY will be
1010
+ * used, and proto files will not be able to override it.
1011
+ */
1012
+ readonly edition_introduced?: Edition;
1013
+ /**
1014
+ * The edition this feature becomes deprecated in. Using this after this
1015
+ * edition may trigger warnings.
1016
+ */
1017
+ readonly edition_deprecated?: Edition;
1018
+ /**
1019
+ * The deprecation warning text if this feature is used after the edition it
1020
+ * was marked deprecated in.
1021
+ */
1022
+ readonly deprecation_warning?: string;
1023
+ /**
1024
+ * The edition this feature is no longer available in. In editions after
1025
+ * this one, the last default assigned will be used, and proto files will
1026
+ * not be able to override it.
1027
+ */
1028
+ readonly edition_removed?: Edition;
1029
+ /**
1030
+ * The removal error text if this feature is used after the edition it was
1031
+ * removed in.
1032
+ */
1033
+ readonly removal_error?: string;
1034
+ }
1035
+ /**
1036
+ * The descriptor of `google.protobuf.FieldOptions.FeatureSupport`.
1037
+ *
1038
+ * @stability experimental
1039
+ * @category descriptor.proto
1040
+ * @since 4.1.5
1041
+ */
1042
+ export declare const FieldOptions_FeatureSupport: ProtobufDescriptor.MessageDescriptor;
1043
+ /**
1044
+ * The values of `google.protobuf.FieldOptions.CType`.
1045
+ *
1046
+ * @stability experimental
1047
+ * @category descriptor.proto
1048
+ * @since 4.1.5
1049
+ */
1050
+ export declare const FieldOptions_CType: {
1051
+ /** Default mode. */
1052
+ readonly STRING: 0;
1053
+ /**
1054
+ * The option [ctype=CORD] may be applied to a non-repeated field of type
1055
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
1056
+ * instead of a string. For very large strings, this may reduce memory
1057
+ * fragmentation. It may also allow better performance when parsing from a
1058
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
1059
+ * alias the original buffer.
1060
+ */
1061
+ readonly CORD: 1;
1062
+ readonly STRING_PIECE: 2;
1063
+ };
1064
+ /**
1065
+ * A value of `google.protobuf.FieldOptions.CType`.
1066
+ *
1067
+ * @stability experimental
1068
+ * @category descriptor.proto
1069
+ * @since 4.1.5
1070
+ */
1071
+ export type FieldOptions_CType = (typeof FieldOptions_CType)[keyof typeof FieldOptions_CType];
1072
+ /**
1073
+ * The values of `google.protobuf.FieldOptions.JSType`.
1074
+ *
1075
+ * @stability experimental
1076
+ * @category descriptor.proto
1077
+ * @since 4.1.5
1078
+ */
1079
+ export declare const FieldOptions_JSType: {
1080
+ /** Use the default type. */
1081
+ readonly JS_NORMAL: 0;
1082
+ /** Use JavaScript strings. */
1083
+ readonly JS_STRING: 1;
1084
+ /** Use JavaScript numbers. */
1085
+ readonly JS_NUMBER: 2;
1086
+ };
1087
+ /**
1088
+ * A value of `google.protobuf.FieldOptions.JSType`.
1089
+ *
1090
+ * @stability experimental
1091
+ * @category descriptor.proto
1092
+ * @since 4.1.5
1093
+ */
1094
+ export type FieldOptions_JSType = (typeof FieldOptions_JSType)[keyof typeof FieldOptions_JSType];
1095
+ /**
1096
+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.
1097
+ *
1098
+ * @stability experimental
1099
+ * @category descriptor.proto
1100
+ * @since 4.1.5
1101
+ */
1102
+ export declare const FieldOptions_OptionRetention: {
1103
+ readonly RETENTION_UNKNOWN: 0;
1104
+ readonly RETENTION_RUNTIME: 1;
1105
+ readonly RETENTION_SOURCE: 2;
1106
+ };
1107
+ /**
1108
+ * A value of `google.protobuf.FieldOptions.OptionRetention`.
1109
+ *
1110
+ * @stability experimental
1111
+ * @category descriptor.proto
1112
+ * @since 4.1.5
1113
+ */
1114
+ export type FieldOptions_OptionRetention = (typeof FieldOptions_OptionRetention)[keyof typeof FieldOptions_OptionRetention];
1115
+ /**
1116
+ * This indicates the types of entities that the field may apply to when used
1117
+ * as an option. If it is unset, then the field may be freely used as an
1118
+ * option on any kind of entity.
1119
+ *
1120
+ * @stability experimental
1121
+ * @category descriptor.proto
1122
+ * @since 4.1.5
1123
+ */
1124
+ export declare const FieldOptions_OptionTargetType: {
1125
+ readonly TARGET_TYPE_UNKNOWN: 0;
1126
+ readonly TARGET_TYPE_FILE: 1;
1127
+ readonly TARGET_TYPE_EXTENSION_RANGE: 2;
1128
+ readonly TARGET_TYPE_MESSAGE: 3;
1129
+ readonly TARGET_TYPE_FIELD: 4;
1130
+ readonly TARGET_TYPE_ONEOF: 5;
1131
+ readonly TARGET_TYPE_ENUM: 6;
1132
+ readonly TARGET_TYPE_ENUM_ENTRY: 7;
1133
+ readonly TARGET_TYPE_SERVICE: 8;
1134
+ readonly TARGET_TYPE_METHOD: 9;
1135
+ };
1136
+ /**
1137
+ * A value of `google.protobuf.FieldOptions.OptionTargetType`.
1138
+ *
1139
+ * @stability experimental
1140
+ * @category descriptor.proto
1141
+ * @since 4.1.5
1142
+ */
1143
+ export type FieldOptions_OptionTargetType = (typeof FieldOptions_OptionTargetType)[keyof typeof FieldOptions_OptionTargetType];
1144
+ /**
1145
+ * The fields of `google.protobuf.OneofOptions`.
1146
+ *
1147
+ * @stability experimental
1148
+ * @category descriptor.proto
1149
+ * @since 4.1.5
1150
+ */
1151
+ export interface OneofOptions {
1152
+ /**
1153
+ * Any features defined in the specific edition.
1154
+ * WARNING: This field should only be used by protobuf plugins or special
1155
+ * cases like the proto compiler. Other uses are discouraged and
1156
+ * developers should rely on the protoreflect APIs for their client language.
1157
+ */
1158
+ readonly features?: FeatureSet;
1159
+ /** The parser stores options it doesn't recognize here. See above. */
1160
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
1161
+ }
1162
+ /**
1163
+ * The descriptor of `google.protobuf.OneofOptions`.
1164
+ *
1165
+ * @stability experimental
1166
+ * @category descriptor.proto
1167
+ * @since 4.1.5
1168
+ */
1169
+ export declare const OneofOptions: ProtobufDescriptor.MessageDescriptor;
1170
+ /**
1171
+ * The fields of `google.protobuf.EnumOptions`.
1172
+ *
1173
+ * @stability experimental
1174
+ * @category descriptor.proto
1175
+ * @since 4.1.5
1176
+ */
1177
+ export interface EnumOptions {
1178
+ /**
1179
+ * Set this option to true to allow mapping different tag names to the same
1180
+ * value.
1181
+ */
1182
+ readonly allow_alias?: boolean;
1183
+ /**
1184
+ * Is this enum deprecated?
1185
+ * Depending on the target platform, this can emit Deprecated annotations
1186
+ * for the enum, or it will be completely ignored; in the very least, this
1187
+ * is a formalization for deprecating enums.
1188
+ */
1189
+ readonly deprecated?: boolean;
1190
+ /**
1191
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
1192
+ * and strips underscored from the fields before comparison in proto3 only.
1193
+ * The new behavior takes `json_name` into account and applies to proto2 as
1194
+ * well.
1195
+ * TODO Remove this legacy behavior once downstream teams have
1196
+ * had time to migrate.
1197
+ */
1198
+ readonly deprecated_legacy_json_field_conflicts?: boolean;
1199
+ /**
1200
+ * Any features defined in the specific edition.
1201
+ * WARNING: This field should only be used by protobuf plugins or special
1202
+ * cases like the proto compiler. Other uses are discouraged and
1203
+ * developers should rely on the protoreflect APIs for their client language.
1204
+ */
1205
+ readonly features?: FeatureSet;
1206
+ /** The parser stores options it doesn't recognize here. See above. */
1207
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
1208
+ }
1209
+ /**
1210
+ * The descriptor of `google.protobuf.EnumOptions`.
1211
+ *
1212
+ * @stability experimental
1213
+ * @category descriptor.proto
1214
+ * @since 4.1.5
1215
+ */
1216
+ export declare const EnumOptions: ProtobufDescriptor.MessageDescriptor;
1217
+ /**
1218
+ * The fields of `google.protobuf.EnumValueOptions`.
1219
+ *
1220
+ * @stability experimental
1221
+ * @category descriptor.proto
1222
+ * @since 4.1.5
1223
+ */
1224
+ export interface EnumValueOptions {
1225
+ /**
1226
+ * Is this enum value deprecated?
1227
+ * Depending on the target platform, this can emit Deprecated annotations
1228
+ * for the enum value, or it will be completely ignored; in the very least,
1229
+ * this is a formalization for deprecating enum values.
1230
+ */
1231
+ readonly deprecated?: boolean;
1232
+ /**
1233
+ * Any features defined in the specific edition.
1234
+ * WARNING: This field should only be used by protobuf plugins or special
1235
+ * cases like the proto compiler. Other uses are discouraged and
1236
+ * developers should rely on the protoreflect APIs for their client language.
1237
+ */
1238
+ readonly features?: FeatureSet;
1239
+ /**
1240
+ * Indicate that fields annotated with this enum value should not be printed
1241
+ * out when using debug formats, e.g. when the field contains sensitive
1242
+ * credentials.
1243
+ */
1244
+ readonly debug_redact?: boolean;
1245
+ /** Information about the support window of a feature value. */
1246
+ readonly feature_support?: FieldOptions_FeatureSupport;
1247
+ /** The parser stores options it doesn't recognize here. See above. */
1248
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
1249
+ }
1250
+ /**
1251
+ * The descriptor of `google.protobuf.EnumValueOptions`.
1252
+ *
1253
+ * @stability experimental
1254
+ * @category descriptor.proto
1255
+ * @since 4.1.5
1256
+ */
1257
+ export declare const EnumValueOptions: ProtobufDescriptor.MessageDescriptor;
1258
+ /**
1259
+ * The fields of `google.protobuf.ServiceOptions`.
1260
+ *
1261
+ * @stability experimental
1262
+ * @category descriptor.proto
1263
+ * @since 4.1.5
1264
+ */
1265
+ export interface ServiceOptions {
1266
+ /**
1267
+ * Any features defined in the specific edition.
1268
+ * WARNING: This field should only be used by protobuf plugins or special
1269
+ * cases like the proto compiler. Other uses are discouraged and
1270
+ * developers should rely on the protoreflect APIs for their client language.
1271
+ */
1272
+ readonly features?: FeatureSet;
1273
+ /**
1274
+ * Is this service deprecated?
1275
+ * Depending on the target platform, this can emit Deprecated annotations
1276
+ * for the service, or it will be completely ignored; in the very least,
1277
+ * this is a formalization for deprecating services.
1278
+ */
1279
+ readonly deprecated?: boolean;
1280
+ /** The parser stores options it doesn't recognize here. See above. */
1281
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
1282
+ }
1283
+ /**
1284
+ * The descriptor of `google.protobuf.ServiceOptions`.
1285
+ *
1286
+ * @stability experimental
1287
+ * @category descriptor.proto
1288
+ * @since 4.1.5
1289
+ */
1290
+ export declare const ServiceOptions: ProtobufDescriptor.MessageDescriptor;
1291
+ /**
1292
+ * The fields of `google.protobuf.MethodOptions`.
1293
+ *
1294
+ * @stability experimental
1295
+ * @category descriptor.proto
1296
+ * @since 4.1.5
1297
+ */
1298
+ export interface MethodOptions {
1299
+ /**
1300
+ * Is this method deprecated?
1301
+ * Depending on the target platform, this can emit Deprecated annotations
1302
+ * for the method, or it will be completely ignored; in the very least,
1303
+ * this is a formalization for deprecating methods.
1304
+ */
1305
+ readonly deprecated?: boolean;
1306
+ readonly idempotency_level?: MethodOptions_IdempotencyLevel;
1307
+ /**
1308
+ * Any features defined in the specific edition.
1309
+ * WARNING: This field should only be used by protobuf plugins or special
1310
+ * cases like the proto compiler. Other uses are discouraged and
1311
+ * developers should rely on the protoreflect APIs for their client language.
1312
+ */
1313
+ readonly features?: FeatureSet;
1314
+ /** The parser stores options it doesn't recognize here. See above. */
1315
+ readonly uninterpreted_option?: ReadonlyArray<UninterpretedOption>;
1316
+ }
1317
+ /**
1318
+ * The descriptor of `google.protobuf.MethodOptions`.
1319
+ *
1320
+ * @stability experimental
1321
+ * @category descriptor.proto
1322
+ * @since 4.1.5
1323
+ */
1324
+ export declare const MethodOptions: ProtobufDescriptor.MessageDescriptor;
1325
+ /**
1326
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
1327
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
1328
+ * methods, and PUT verb for idempotent methods instead of the default POST.
1329
+ *
1330
+ * @stability experimental
1331
+ * @category descriptor.proto
1332
+ * @since 4.1.5
1333
+ */
1334
+ export declare const MethodOptions_IdempotencyLevel: {
1335
+ readonly IDEMPOTENCY_UNKNOWN: 0;
1336
+ /** implies idempotent */
1337
+ readonly NO_SIDE_EFFECTS: 1;
1338
+ /** idempotent, but may have side effects */
1339
+ readonly IDEMPOTENT: 2;
1340
+ };
1341
+ /**
1342
+ * A value of `google.protobuf.MethodOptions.IdempotencyLevel`.
1343
+ *
1344
+ * @stability experimental
1345
+ * @category descriptor.proto
1346
+ * @since 4.1.5
1347
+ */
1348
+ export type MethodOptions_IdempotencyLevel = (typeof MethodOptions_IdempotencyLevel)[keyof typeof MethodOptions_IdempotencyLevel];
1349
+ /**
1350
+ * A message representing a option the parser does not recognize. This only
1351
+ * appears in options protos created by the compiler::Parser class.
1352
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1353
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1354
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1355
+ * in them.
1356
+ *
1357
+ * @stability experimental
1358
+ * @category descriptor.proto
1359
+ * @since 4.1.5
1360
+ */
1361
+ export interface UninterpretedOption {
1362
+ readonly name?: ReadonlyArray<UninterpretedOption_NamePart>;
1363
+ /**
1364
+ * The value of the uninterpreted option, in whatever type the tokenizer
1365
+ * identified it as during parsing. Exactly one of these should be set.
1366
+ */
1367
+ readonly identifier_value?: string;
1368
+ readonly positive_int_value?: bigint;
1369
+ readonly negative_int_value?: bigint;
1370
+ readonly double_value?: number;
1371
+ readonly string_value?: Uint8Array;
1372
+ readonly aggregate_value?: string;
1373
+ }
1374
+ /**
1375
+ * The descriptor of `google.protobuf.UninterpretedOption`.
1376
+ *
1377
+ * @stability experimental
1378
+ * @category descriptor.proto
1379
+ * @since 4.1.5
1380
+ */
1381
+ export declare const UninterpretedOption: ProtobufDescriptor.MessageDescriptor;
1382
+ /**
1383
+ * The name of the uninterpreted option. Each string represents a segment in
1384
+ * a dot-separated name. is_extension is true iff a segment represents an
1385
+ * extension (denoted with parentheses in options specs in .proto files).
1386
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
1387
+ * "foo.(bar.baz).moo".
1388
+ *
1389
+ * @stability experimental
1390
+ * @category descriptor.proto
1391
+ * @since 4.1.5
1392
+ */
1393
+ export interface UninterpretedOption_NamePart {
1394
+ readonly name_part: string;
1395
+ readonly is_extension: boolean;
1396
+ }
1397
+ /**
1398
+ * The descriptor of `google.protobuf.UninterpretedOption.NamePart`.
1399
+ *
1400
+ * @stability experimental
1401
+ * @category descriptor.proto
1402
+ * @since 4.1.5
1403
+ */
1404
+ export declare const UninterpretedOption_NamePart: ProtobufDescriptor.MessageDescriptor;
1405
+ /**
1406
+ * TODO Enums in C++ gencode (and potentially other languages) are
1407
+ * not well scoped. This means that each of the feature enums below can clash
1408
+ * with each other. The short names we've chosen maximize call-site
1409
+ * readability, but leave us very open to this scenario. A future feature will
1410
+ * be designed and implemented to handle this, hopefully before we ever hit a
1411
+ * conflict here.
1412
+ *
1413
+ * @stability experimental
1414
+ * @category descriptor.proto
1415
+ * @since 4.1.5
1416
+ */
1417
+ export interface FeatureSet {
1418
+ readonly field_presence?: FeatureSet_FieldPresence;
1419
+ readonly enum_type?: FeatureSet_EnumType;
1420
+ readonly repeated_field_encoding?: FeatureSet_RepeatedFieldEncoding;
1421
+ readonly utf8_validation?: FeatureSet_Utf8Validation;
1422
+ readonly message_encoding?: FeatureSet_MessageEncoding;
1423
+ readonly json_format?: FeatureSet_JsonFormat;
1424
+ readonly enforce_naming_style?: FeatureSet_EnforceNamingStyle;
1425
+ readonly default_symbol_visibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibility;
1426
+ readonly enforce_proto_limits?: FeatureSet_ProtoLimitsFeature_EnforceProtoLimits;
1427
+ }
1428
+ /**
1429
+ * The descriptor of `google.protobuf.FeatureSet`.
1430
+ *
1431
+ * @stability experimental
1432
+ * @category descriptor.proto
1433
+ * @since 4.1.5
1434
+ */
1435
+ export declare const FeatureSet: ProtobufDescriptor.MessageDescriptor;
1436
+ /**
1437
+ * The fields of `google.protobuf.FeatureSet.VisibilityFeature`.
1438
+ *
1439
+ * @stability experimental
1440
+ * @category descriptor.proto
1441
+ * @since 4.1.5
1442
+ */
1443
+ export interface FeatureSet_VisibilityFeature {
1444
+ }
1445
+ /**
1446
+ * The descriptor of `google.protobuf.FeatureSet.VisibilityFeature`.
1447
+ *
1448
+ * @stability experimental
1449
+ * @category descriptor.proto
1450
+ * @since 4.1.5
1451
+ */
1452
+ export declare const FeatureSet_VisibilityFeature: ProtobufDescriptor.MessageDescriptor;
1453
+ /**
1454
+ * The values of `google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility`.
1455
+ *
1456
+ * @stability experimental
1457
+ * @category descriptor.proto
1458
+ * @since 4.1.5
1459
+ */
1460
+ export declare const FeatureSet_VisibilityFeature_DefaultSymbolVisibility: {
1461
+ readonly DEFAULT_SYMBOL_VISIBILITY_UNKNOWN: 0;
1462
+ /** Default pre-EDITION_2024, all UNSET visibility are export. */
1463
+ readonly EXPORT_ALL: 1;
1464
+ /** All top-level symbols default to export, nested default to local. */
1465
+ readonly EXPORT_TOP_LEVEL: 2;
1466
+ /** All symbols default to local. */
1467
+ readonly LOCAL_ALL: 3;
1468
+ /**
1469
+ * All symbols local by default. Nested types cannot be exported.
1470
+ * With special case caveat for message { enum {} reserved 1 to max; }
1471
+ * This is the recommended setting for new protos.
1472
+ */
1473
+ readonly STRICT: 4;
1474
+ };
1475
+ /**
1476
+ * A value of `google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility`.
1477
+ *
1478
+ * @stability experimental
1479
+ * @category descriptor.proto
1480
+ * @since 4.1.5
1481
+ */
1482
+ export type FeatureSet_VisibilityFeature_DefaultSymbolVisibility = (typeof FeatureSet_VisibilityFeature_DefaultSymbolVisibility)[keyof typeof FeatureSet_VisibilityFeature_DefaultSymbolVisibility];
1483
+ /**
1484
+ * The fields of `google.protobuf.FeatureSet.ProtoLimitsFeature`.
1485
+ *
1486
+ * @stability experimental
1487
+ * @category descriptor.proto
1488
+ * @since 4.1.5
1489
+ */
1490
+ export interface FeatureSet_ProtoLimitsFeature {
1491
+ }
1492
+ /**
1493
+ * The descriptor of `google.protobuf.FeatureSet.ProtoLimitsFeature`.
1494
+ *
1495
+ * @stability experimental
1496
+ * @category descriptor.proto
1497
+ * @since 4.1.5
1498
+ */
1499
+ export declare const FeatureSet_ProtoLimitsFeature: ProtobufDescriptor.MessageDescriptor;
1500
+ /**
1501
+ * The values of `google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits`.
1502
+ *
1503
+ * @stability experimental
1504
+ * @category descriptor.proto
1505
+ * @since 4.1.5
1506
+ */
1507
+ export declare const FeatureSet_ProtoLimitsFeature_EnforceProtoLimits: {
1508
+ readonly PROTO_LIMITS_UNKNOWN: 0;
1509
+ /**
1510
+ * Default pre-EDITION_2026: there are no limit enforcement at the protoc
1511
+ * level. Practical limits still exist, but they will tend to fail while
1512
+ * compiling protoc-generated code, and these limits tend to be language
1513
+ * or toolchain specific.
1514
+ */
1515
+ readonly LEGACY_NO_EXPLICIT_LIMITS: 1;
1516
+ /**
1517
+ * A set of limits enforced by Edition 2026 by default. For a detailed
1518
+ * list of all the limits please consult the Edition 2026 documentation.
1519
+ */
1520
+ readonly PROTO_LIMITS2026: 2;
1521
+ };
1522
+ /**
1523
+ * A value of `google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits`.
1524
+ *
1525
+ * @stability experimental
1526
+ * @category descriptor.proto
1527
+ * @since 4.1.5
1528
+ */
1529
+ export type FeatureSet_ProtoLimitsFeature_EnforceProtoLimits = (typeof FeatureSet_ProtoLimitsFeature_EnforceProtoLimits)[keyof typeof FeatureSet_ProtoLimitsFeature_EnforceProtoLimits];
1530
+ /**
1531
+ * The values of `google.protobuf.FeatureSet.FieldPresence`.
1532
+ *
1533
+ * @stability experimental
1534
+ * @category descriptor.proto
1535
+ * @since 4.1.5
1536
+ */
1537
+ export declare const FeatureSet_FieldPresence: {
1538
+ readonly FIELD_PRESENCE_UNKNOWN: 0;
1539
+ readonly EXPLICIT: 1;
1540
+ readonly IMPLICIT: 2;
1541
+ readonly LEGACY_REQUIRED: 3;
1542
+ };
1543
+ /**
1544
+ * A value of `google.protobuf.FeatureSet.FieldPresence`.
1545
+ *
1546
+ * @stability experimental
1547
+ * @category descriptor.proto
1548
+ * @since 4.1.5
1549
+ */
1550
+ export type FeatureSet_FieldPresence = (typeof FeatureSet_FieldPresence)[keyof typeof FeatureSet_FieldPresence];
1551
+ /**
1552
+ * The values of `google.protobuf.FeatureSet.EnumType`.
1553
+ *
1554
+ * @stability experimental
1555
+ * @category descriptor.proto
1556
+ * @since 4.1.5
1557
+ */
1558
+ export declare const FeatureSet_EnumType: {
1559
+ readonly ENUM_TYPE_UNKNOWN: 0;
1560
+ readonly OPEN: 1;
1561
+ readonly CLOSED: 2;
1562
+ };
1563
+ /**
1564
+ * A value of `google.protobuf.FeatureSet.EnumType`.
1565
+ *
1566
+ * @stability experimental
1567
+ * @category descriptor.proto
1568
+ * @since 4.1.5
1569
+ */
1570
+ export type FeatureSet_EnumType = (typeof FeatureSet_EnumType)[keyof typeof FeatureSet_EnumType];
1571
+ /**
1572
+ * The values of `google.protobuf.FeatureSet.RepeatedFieldEncoding`.
1573
+ *
1574
+ * @stability experimental
1575
+ * @category descriptor.proto
1576
+ * @since 4.1.5
1577
+ */
1578
+ export declare const FeatureSet_RepeatedFieldEncoding: {
1579
+ readonly REPEATED_FIELD_ENCODING_UNKNOWN: 0;
1580
+ readonly PACKED: 1;
1581
+ readonly EXPANDED: 2;
1582
+ };
1583
+ /**
1584
+ * A value of `google.protobuf.FeatureSet.RepeatedFieldEncoding`.
1585
+ *
1586
+ * @stability experimental
1587
+ * @category descriptor.proto
1588
+ * @since 4.1.5
1589
+ */
1590
+ export type FeatureSet_RepeatedFieldEncoding = (typeof FeatureSet_RepeatedFieldEncoding)[keyof typeof FeatureSet_RepeatedFieldEncoding];
1591
+ /**
1592
+ * The values of `google.protobuf.FeatureSet.Utf8Validation`.
1593
+ *
1594
+ * @stability experimental
1595
+ * @category descriptor.proto
1596
+ * @since 4.1.5
1597
+ */
1598
+ export declare const FeatureSet_Utf8Validation: {
1599
+ readonly UTF8_VALIDATION_UNKNOWN: 0;
1600
+ readonly VERIFY: 2;
1601
+ readonly NONE: 3;
1602
+ };
1603
+ /**
1604
+ * A value of `google.protobuf.FeatureSet.Utf8Validation`.
1605
+ *
1606
+ * @stability experimental
1607
+ * @category descriptor.proto
1608
+ * @since 4.1.5
1609
+ */
1610
+ export type FeatureSet_Utf8Validation = (typeof FeatureSet_Utf8Validation)[keyof typeof FeatureSet_Utf8Validation];
1611
+ /**
1612
+ * The values of `google.protobuf.FeatureSet.MessageEncoding`.
1613
+ *
1614
+ * @stability experimental
1615
+ * @category descriptor.proto
1616
+ * @since 4.1.5
1617
+ */
1618
+ export declare const FeatureSet_MessageEncoding: {
1619
+ readonly MESSAGE_ENCODING_UNKNOWN: 0;
1620
+ readonly LENGTH_PREFIXED: 1;
1621
+ readonly DELIMITED: 2;
1622
+ };
1623
+ /**
1624
+ * A value of `google.protobuf.FeatureSet.MessageEncoding`.
1625
+ *
1626
+ * @stability experimental
1627
+ * @category descriptor.proto
1628
+ * @since 4.1.5
1629
+ */
1630
+ export type FeatureSet_MessageEncoding = (typeof FeatureSet_MessageEncoding)[keyof typeof FeatureSet_MessageEncoding];
1631
+ /**
1632
+ * The values of `google.protobuf.FeatureSet.JsonFormat`.
1633
+ *
1634
+ * @stability experimental
1635
+ * @category descriptor.proto
1636
+ * @since 4.1.5
1637
+ */
1638
+ export declare const FeatureSet_JsonFormat: {
1639
+ readonly JSON_FORMAT_UNKNOWN: 0;
1640
+ readonly ALLOW: 1;
1641
+ readonly LEGACY_BEST_EFFORT: 2;
1642
+ };
1643
+ /**
1644
+ * A value of `google.protobuf.FeatureSet.JsonFormat`.
1645
+ *
1646
+ * @stability experimental
1647
+ * @category descriptor.proto
1648
+ * @since 4.1.5
1649
+ */
1650
+ export type FeatureSet_JsonFormat = (typeof FeatureSet_JsonFormat)[keyof typeof FeatureSet_JsonFormat];
1651
+ /**
1652
+ * The values of `google.protobuf.FeatureSet.EnforceNamingStyle`.
1653
+ *
1654
+ * @stability experimental
1655
+ * @category descriptor.proto
1656
+ * @since 4.1.5
1657
+ */
1658
+ export declare const FeatureSet_EnforceNamingStyle: {
1659
+ readonly ENFORCE_NAMING_STYLE_UNKNOWN: 0;
1660
+ readonly STYLE2024: 1;
1661
+ readonly STYLE_LEGACY: 2;
1662
+ readonly STYLE2026: 3;
1663
+ };
1664
+ /**
1665
+ * A value of `google.protobuf.FeatureSet.EnforceNamingStyle`.
1666
+ *
1667
+ * @stability experimental
1668
+ * @category descriptor.proto
1669
+ * @since 4.1.5
1670
+ */
1671
+ export type FeatureSet_EnforceNamingStyle = (typeof FeatureSet_EnforceNamingStyle)[keyof typeof FeatureSet_EnforceNamingStyle];
1672
+ /**
1673
+ * A compiled specification for the defaults of a set of features. These
1674
+ * messages are generated from FeatureSet extensions and can be used to seed
1675
+ * feature resolution. The resolution with this object becomes a simple search
1676
+ * for the closest matching edition, followed by proto merges.
1677
+ *
1678
+ * @stability experimental
1679
+ * @category descriptor.proto
1680
+ * @since 4.1.5
1681
+ */
1682
+ export interface FeatureSetDefaults {
1683
+ readonly defaults?: ReadonlyArray<FeatureSetDefaults_FeatureSetEditionDefault>;
1684
+ /**
1685
+ * The minimum supported edition (inclusive) when this was constructed.
1686
+ * Editions before this will not have defaults.
1687
+ */
1688
+ readonly minimum_edition?: Edition;
1689
+ /**
1690
+ * The maximum known edition (inclusive) when this was constructed. Editions
1691
+ * after this will not have reliable defaults.
1692
+ */
1693
+ readonly maximum_edition?: Edition;
1694
+ }
1695
+ /**
1696
+ * The descriptor of `google.protobuf.FeatureSetDefaults`.
1697
+ *
1698
+ * @stability experimental
1699
+ * @category descriptor.proto
1700
+ * @since 4.1.5
1701
+ */
1702
+ export declare const FeatureSetDefaults: ProtobufDescriptor.MessageDescriptor;
1703
+ /**
1704
+ * A map from every known edition with a unique set of defaults to its
1705
+ * defaults. Not all editions may be contained here. For a given edition,
1706
+ * the defaults at the closest matching edition ordered at or before it should
1707
+ * be used. This field must be in strict ascending order by edition.
1708
+ *
1709
+ * @stability experimental
1710
+ * @category descriptor.proto
1711
+ * @since 4.1.5
1712
+ */
1713
+ export interface FeatureSetDefaults_FeatureSetEditionDefault {
1714
+ readonly edition?: Edition;
1715
+ /** Defaults of features that can be overridden in this edition. */
1716
+ readonly overridable_features?: FeatureSet;
1717
+ /** Defaults of features that can't be overridden in this edition. */
1718
+ readonly fixed_features?: FeatureSet;
1719
+ }
1720
+ /**
1721
+ * The descriptor of `google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault`.
1722
+ *
1723
+ * @stability experimental
1724
+ * @category descriptor.proto
1725
+ * @since 4.1.5
1726
+ */
1727
+ export declare const FeatureSetDefaults_FeatureSetEditionDefault: ProtobufDescriptor.MessageDescriptor;
1728
+ /**
1729
+ * Encapsulates information about the original source file from which a
1730
+ * FileDescriptorProto was generated.
1731
+ *
1732
+ * @stability experimental
1733
+ * @category descriptor.proto
1734
+ * @since 4.1.5
1735
+ */
1736
+ export interface SourceCodeInfo {
1737
+ /**
1738
+ * A Location identifies a piece of source code in a .proto file which
1739
+ * corresponds to a particular definition. This information is intended
1740
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1741
+ * tools.
1742
+ *
1743
+ * **Details**
1744
+ *
1745
+ * For example, say we have a file like:
1746
+ * message Foo {
1747
+ * optional string foo = 1;
1748
+ * }
1749
+ * Let's look at just the field definition:
1750
+ * optional string foo = 1;
1751
+ * ^ ^^ ^^ ^ ^^^
1752
+ * a bc de f ghi
1753
+ * We have the following locations:
1754
+ * span path represents
1755
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1756
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1757
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1758
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1759
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1760
+ *
1761
+ * Notes:
1762
+ * - A location may refer to a repeated field itself (i.e. not to any
1763
+ * particular index within it). This is used whenever a set of elements are
1764
+ * logically enclosed in a single code segment. For example, an entire
1765
+ * extend block (possibly containing multiple extension definitions) will
1766
+ * have an outer location whose path refers to the "extensions" repeated
1767
+ * field without an index.
1768
+ * - Multiple locations may have the same path. This happens when a single
1769
+ * logical declaration is spread out across multiple places. The most
1770
+ * obvious example is the "extend" block again -- there may be multiple
1771
+ * extend blocks in the same scope, each of which will have the same path.
1772
+ * - A location's span is not always a subset of its parent's span. For
1773
+ * example, the "extendee" of an extension declaration appears at the
1774
+ * beginning of the "extend" block and is shared by all extensions within
1775
+ * the block.
1776
+ * - Just because a location's span is a subset of some other location's span
1777
+ * does not mean that it is a descendant. For example, a "group" defines
1778
+ * both a type and a field in a single declaration. Thus, the locations
1779
+ * corresponding to the type and field and their components will overlap.
1780
+ * - Code which tries to interpret locations should probably be designed to
1781
+ * ignore those that it doesn't understand, as more types of locations could
1782
+ * be recorded in the future.
1783
+ */
1784
+ readonly location?: ReadonlyArray<SourceCodeInfo_Location>;
1785
+ }
1786
+ /**
1787
+ * The descriptor of `google.protobuf.SourceCodeInfo`.
1788
+ *
1789
+ * @stability experimental
1790
+ * @category descriptor.proto
1791
+ * @since 4.1.5
1792
+ */
1793
+ export declare const SourceCodeInfo: ProtobufDescriptor.MessageDescriptor;
1794
+ /**
1795
+ * The fields of `google.protobuf.SourceCodeInfo.Location`.
1796
+ *
1797
+ * @stability experimental
1798
+ * @category descriptor.proto
1799
+ * @since 4.1.5
1800
+ */
1801
+ export interface SourceCodeInfo_Location {
1802
+ /**
1803
+ * Identifies which part of the FileDescriptorProto was defined at this
1804
+ * location.
1805
+ *
1806
+ * **Details**
1807
+ *
1808
+ * Each element is a field number or an index. They form a path from
1809
+ * the root FileDescriptorProto to the place where the definition appears.
1810
+ * For example, this path:
1811
+ * [ 4, 3, 2, 7, 1 ]
1812
+ * refers to:
1813
+ * file.message_type(3) // 4, 3
1814
+ * .field(7) // 2, 7
1815
+ * .name() // 1
1816
+ * This is because FileDescriptorProto.message_type has field number 4:
1817
+ * repeated DescriptorProto message_type = 4;
1818
+ * and DescriptorProto.field has field number 2:
1819
+ * repeated FieldDescriptorProto field = 2;
1820
+ * and FieldDescriptorProto.name has field number 1:
1821
+ * optional string name = 1;
1822
+ *
1823
+ * Thus, the above path gives the location of a field name. If we removed
1824
+ * the last element:
1825
+ * [ 4, 3, 2, 7 ]
1826
+ * this path refers to the whole field declaration (from the beginning
1827
+ * of the label to the terminating semicolon).
1828
+ *
1829
+ * For options, the path refers to the interpreted option in the descriptor.
1830
+ * E.g., for a custom option `(my_opt) = "foo"` on a message using extension
1831
+ * number 10101, the path is:
1832
+ * [ 4, 3, 7, 10101 ]
1833
+ * refers to:
1834
+ * file.message_type(3) // 4, 3
1835
+ * .options() // 7
1836
+ * .my_opt() // 10101
1837
+ *
1838
+ * Sub-locations corresponding to the interpreted option's corresponding
1839
+ * `UninterpretedOption` are also appended to the interpreted option, which
1840
+ * deviates from the actual FileDescriptorProto path. E.g.:
1841
+ * [ 4, 3, 7, 10101, 2 ]
1842
+ * refers to the option name `(my_opt)`, and:
1843
+ * [ 4, 3, 7, 10101, 7 ]
1844
+ * refers to the "foo" string value of the option.
1845
+ */
1846
+ readonly path?: ReadonlyArray<number>;
1847
+ /**
1848
+ * Always has exactly three or four elements: start line, start column,
1849
+ * end line (optional, otherwise assumed same as start line), end column.
1850
+ * These are packed into a single field for efficiency. Note that line
1851
+ * and column numbers are zero-based -- typically you will want to add
1852
+ * 1 to each before displaying to a user.
1853
+ */
1854
+ readonly span?: ReadonlyArray<number>;
1855
+ /**
1856
+ * If this SourceCodeInfo represents a complete declaration, these are any
1857
+ * comments appearing before and after the declaration which appear to be
1858
+ * attached to the declaration.
1859
+ *
1860
+ * **Details**
1861
+ *
1862
+ * A series of line comments appearing on consecutive lines, with no other
1863
+ * tokens appearing on those lines, will be treated as a single comment.
1864
+ *
1865
+ * leading_detached_comments will keep paragraphs of comments that appear
1866
+ * before (but not connected to) the current element. Each paragraph,
1867
+ * separated by empty lines, will be one comment element in the repeated
1868
+ * field.
1869
+ *
1870
+ * Only the comment content is provided; comment markers (e.g. //) are
1871
+ * stripped out. For block comments, leading whitespace and an asterisk
1872
+ * will be stripped from the beginning of each line other than the first.
1873
+ * Newlines are included in the output.
1874
+ *
1875
+ * Examples:
1876
+ *
1877
+ * optional int32 foo = 1; // Comment attached to foo.
1878
+ * // Comment attached to bar.
1879
+ * optional int32 bar = 2;
1880
+ *
1881
+ * optional string baz = 3;
1882
+ * // Comment attached to baz.
1883
+ * // Another line attached to baz.
1884
+ *
1885
+ * // Comment attached to moo.
1886
+ * //
1887
+ * // Another line attached to moo.
1888
+ * optional double moo = 4;
1889
+ *
1890
+ * // Detached comment for corge. This is not leading or trailing comments
1891
+ * // to moo or corge because there are blank lines separating it from
1892
+ * // both.
1893
+ *
1894
+ * // Detached comment for corge paragraph 2.
1895
+ *
1896
+ * optional string corge = 5;
1897
+ * /* Block comment attached
1898
+ * * to corge. Leading asterisks
1899
+ * * will be removed. *\/
1900
+ * /* Block comment attached to
1901
+ * * grault. *\/
1902
+ * optional int32 grault = 6;
1903
+ *
1904
+ * // ignored detached comments.
1905
+ */
1906
+ readonly leading_comments?: string;
1907
+ readonly trailing_comments?: string;
1908
+ readonly leading_detached_comments?: ReadonlyArray<string>;
1909
+ }
1910
+ /**
1911
+ * The descriptor of `google.protobuf.SourceCodeInfo.Location`.
1912
+ *
1913
+ * @stability experimental
1914
+ * @category descriptor.proto
1915
+ * @since 4.1.5
1916
+ */
1917
+ export declare const SourceCodeInfo_Location: ProtobufDescriptor.MessageDescriptor;
1918
+ /**
1919
+ * Describes the relationship between generated code and its original source
1920
+ * file. A GeneratedCodeInfo message is associated with only one generated
1921
+ * source file, but may contain references to different source .proto files.
1922
+ *
1923
+ * @stability experimental
1924
+ * @category descriptor.proto
1925
+ * @since 4.1.5
1926
+ */
1927
+ export interface GeneratedCodeInfo {
1928
+ /**
1929
+ * An Annotation connects some span of text in generated code to an element
1930
+ * of its generating .proto file.
1931
+ */
1932
+ readonly annotation?: ReadonlyArray<GeneratedCodeInfo_Annotation>;
1933
+ }
1934
+ /**
1935
+ * The descriptor of `google.protobuf.GeneratedCodeInfo`.
1936
+ *
1937
+ * @stability experimental
1938
+ * @category descriptor.proto
1939
+ * @since 4.1.5
1940
+ */
1941
+ export declare const GeneratedCodeInfo: ProtobufDescriptor.MessageDescriptor;
1942
+ /**
1943
+ * The fields of `google.protobuf.GeneratedCodeInfo.Annotation`.
1944
+ *
1945
+ * @stability experimental
1946
+ * @category descriptor.proto
1947
+ * @since 4.1.5
1948
+ */
1949
+ export interface GeneratedCodeInfo_Annotation {
1950
+ /**
1951
+ * Identifies the element in the original source .proto file. This field
1952
+ * is formatted the same as SourceCodeInfo.Location.path.
1953
+ */
1954
+ readonly path?: ReadonlyArray<number>;
1955
+ /** Identifies the filesystem path to the original source .proto. */
1956
+ readonly source_file?: string;
1957
+ /**
1958
+ * Identifies the starting offset in bytes in the generated code
1959
+ * that relates to the identified object.
1960
+ */
1961
+ readonly begin?: number;
1962
+ /**
1963
+ * Identifies the ending offset in bytes in the generated code that
1964
+ * relates to the identified object. The end offset should be one past
1965
+ * the last relevant byte (so the length of the text = end - begin).
1966
+ */
1967
+ readonly end?: number;
1968
+ readonly semantic?: GeneratedCodeInfo_Annotation_Semantic;
1969
+ }
1970
+ /**
1971
+ * The descriptor of `google.protobuf.GeneratedCodeInfo.Annotation`.
1972
+ *
1973
+ * @stability experimental
1974
+ * @category descriptor.proto
1975
+ * @since 4.1.5
1976
+ */
1977
+ export declare const GeneratedCodeInfo_Annotation: ProtobufDescriptor.MessageDescriptor;
1978
+ /**
1979
+ * Represents the identified object's effect on the element in the original
1980
+ * .proto file.
1981
+ *
1982
+ * @stability experimental
1983
+ * @category descriptor.proto
1984
+ * @since 4.1.5
1985
+ */
1986
+ export declare const GeneratedCodeInfo_Annotation_Semantic: {
1987
+ /** There is no effect or the effect is indescribable. */
1988
+ readonly NONE: 0;
1989
+ /** The element is set or otherwise mutated. */
1990
+ readonly SET: 1;
1991
+ /** An alias to the element is returned. */
1992
+ readonly ALIAS: 2;
1993
+ };
1994
+ /**
1995
+ * A value of `google.protobuf.GeneratedCodeInfo.Annotation.Semantic`.
1996
+ *
1997
+ * @stability experimental
1998
+ * @category descriptor.proto
1999
+ * @since 4.1.5
2000
+ */
2001
+ export type GeneratedCodeInfo_Annotation_Semantic = (typeof GeneratedCodeInfo_Annotation_Semantic)[keyof typeof GeneratedCodeInfo_Annotation_Semantic];
2002
+ /**
2003
+ * The full set of known editions.
2004
+ *
2005
+ * @stability experimental
2006
+ * @category descriptor.proto
2007
+ * @since 4.1.5
2008
+ */
2009
+ export declare const Edition: {
2010
+ /** A placeholder for an unknown edition value. */
2011
+ readonly EDITION_UNKNOWN: 0;
2012
+ /**
2013
+ * A placeholder edition for specifying default behaviors *before* a feature
2014
+ * was first introduced. This is effectively an "infinite past".
2015
+ */
2016
+ readonly EDITION_LEGACY: 900;
2017
+ /**
2018
+ * Legacy syntax "editions". These pre-date editions, but behave much like
2019
+ * distinct editions. These can't be used to specify the edition of proto
2020
+ * files, but feature definitions must supply proto2/proto3 defaults for
2021
+ * backwards compatibility.
2022
+ */
2023
+ readonly EDITION_PROTO2: 998;
2024
+ readonly EDITION_PROTO3: 999;
2025
+ /**
2026
+ * Editions that have been released. The specific values are arbitrary and
2027
+ * should not be depended on, but they will always be time-ordered for easy
2028
+ * comparison.
2029
+ */
2030
+ readonly EDITION_2023: 1000;
2031
+ readonly EDITION_2024: 1001;
2032
+ readonly EDITION_2026: 1002;
2033
+ /** A placeholder edition for developing and testing unscheduled features. */
2034
+ readonly EDITION_UNSTABLE: 9999;
2035
+ /**
2036
+ * Placeholder editions for testing feature resolution. These should not be
2037
+ * used or relied on outside of tests.
2038
+ */
2039
+ readonly EDITION_1_TEST_ONLY: 1;
2040
+ readonly EDITION_2_TEST_ONLY: 2;
2041
+ readonly EDITION_99997_TEST_ONLY: 99997;
2042
+ readonly EDITION_99998_TEST_ONLY: 99998;
2043
+ readonly EDITION_99999_TEST_ONLY: 99999;
2044
+ /**
2045
+ * Placeholder for specifying unbounded edition support. This should only
2046
+ * ever be used by plugins that can expect to never require any changes to
2047
+ * support a new edition.
2048
+ */
2049
+ readonly EDITION_MAX: 2147483647;
2050
+ };
2051
+ /**
2052
+ * A value of `google.protobuf.Edition`.
2053
+ *
2054
+ * @stability experimental
2055
+ * @category descriptor.proto
2056
+ * @since 4.1.5
2057
+ */
2058
+ export type Edition = (typeof Edition)[keyof typeof Edition];
2059
+ /**
2060
+ * Describes the 'visibility' of a symbol with respect to the proto import
2061
+ * system. Symbols can only be imported when the visibility rules do not prevent
2062
+ * it (ex: local symbols cannot be imported). Visibility modifiers can only set
2063
+ * on `message` and `enum` as they are the only types available to be referenced
2064
+ * from other files.
2065
+ *
2066
+ * @stability experimental
2067
+ * @category descriptor.proto
2068
+ * @since 4.1.5
2069
+ */
2070
+ export declare const SymbolVisibility: {
2071
+ readonly VISIBILITY_UNSET: 0;
2072
+ readonly VISIBILITY_LOCAL: 1;
2073
+ readonly VISIBILITY_EXPORT: 2;
2074
+ };
2075
+ /**
2076
+ * A value of `google.protobuf.SymbolVisibility`.
2077
+ *
2078
+ * @stability experimental
2079
+ * @category descriptor.proto
2080
+ * @since 4.1.5
2081
+ */
2082
+ export type SymbolVisibility = (typeof SymbolVisibility)[keyof typeof SymbolVisibility];
2083
+ //# sourceMappingURL=ProtobufDescriptorProto.d.ts.map