@inco/js 0.3.2-alpha.0 → 0.3.2-alpha.3

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 (381) hide show
  1. package/dist/cjs/advancedacl/session-key.d.ts +29 -0
  2. package/dist/cjs/advancedacl/session-key.js +167 -27
  3. package/dist/cjs/attestedcompute/attested-compute.d.ts +2 -0
  4. package/dist/cjs/attestedcompute/attested-compute.js +17 -9
  5. package/dist/cjs/attestedcompute/types.d.ts +3 -2
  6. package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +2 -0
  7. package/dist/cjs/attesteddecrypt/attested-decrypt.js +27 -11
  8. package/dist/cjs/attesteddecrypt/types.d.ts +3 -2
  9. package/dist/cjs/attestedreveal/attested-reveal.d.ts +21 -0
  10. package/dist/cjs/attestedreveal/attested-reveal.js +66 -0
  11. package/dist/cjs/attestedreveal/index.d.ts +1 -0
  12. package/dist/cjs/{fhevm → attestedreveal}/index.js +2 -2
  13. package/dist/cjs/attestedreveal/types.d.ts +7 -0
  14. package/dist/cjs/attestedreveal/types.js +16 -0
  15. package/dist/cjs/generated/abis/TestElist.d.ts +247 -0
  16. package/dist/cjs/generated/abis/TestElist.js +152 -0
  17. package/dist/cjs/generated/abis/addTwo.d.ts +18 -0
  18. package/dist/cjs/generated/abis/addTwo.js +9 -1
  19. package/dist/cjs/generated/abis/lightning-preview.d.ts +48 -0
  20. package/dist/cjs/generated/abis/lightning-preview.js +29 -1
  21. package/dist/cjs/generated/abis/lightning.d.ts +34 -0
  22. package/dist/cjs/generated/abis/lightning.js +22 -1
  23. package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
  24. package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +17 -7
  25. package/dist/cjs/generated/lightning.d.ts +31 -10
  26. package/dist/cjs/generated/lightning.js +33 -11
  27. package/dist/cjs/lite/attested-compute.d.ts +6 -3
  28. package/dist/cjs/lite/attested-compute.js +7 -1
  29. package/dist/cjs/lite/attested-decrypt.d.ts +2 -0
  30. package/dist/cjs/lite/attested-decrypt.js +5 -1
  31. package/dist/cjs/lite/index.d.ts +4 -1
  32. package/dist/cjs/lite/index.js +3 -1
  33. package/dist/cjs/lite/lightning.d.ts +32 -0
  34. package/dist/cjs/lite/lightning.js +52 -44
  35. package/dist/cjs/lite/reencrypt.d.ts +0 -1
  36. package/dist/cjs/lite/reencrypt.js +8 -20
  37. package/dist/cjs/local/local-node.js +35 -3
  38. package/dist/cjs/reencryption/types.d.ts +1 -2
  39. package/dist/esm/advancedacl/session-key.d.ts +29 -0
  40. package/dist/esm/advancedacl/session-key.js +160 -22
  41. package/dist/esm/attestedcompute/attested-compute.d.ts +2 -0
  42. package/dist/esm/attestedcompute/attested-compute.js +14 -7
  43. package/dist/esm/attestedcompute/types.d.ts +3 -2
  44. package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +2 -0
  45. package/dist/esm/attesteddecrypt/attested-decrypt.js +24 -9
  46. package/dist/esm/attesteddecrypt/types.d.ts +3 -2
  47. package/dist/esm/attestedreveal/attested-reveal.d.ts +21 -0
  48. package/dist/esm/attestedreveal/attested-reveal.js +63 -0
  49. package/dist/esm/attestedreveal/index.d.ts +1 -0
  50. package/dist/esm/attestedreveal/index.js +2 -0
  51. package/dist/esm/attestedreveal/types.d.ts +7 -0
  52. package/dist/esm/attestedreveal/types.js +12 -0
  53. package/dist/esm/generated/abis/TestElist.d.ts +247 -0
  54. package/dist/esm/generated/abis/TestElist.js +149 -0
  55. package/dist/esm/generated/abis/addTwo.d.ts +18 -0
  56. package/dist/esm/generated/abis/addTwo.js +9 -1
  57. package/dist/esm/generated/abis/lightning-preview.d.ts +48 -0
  58. package/dist/esm/generated/abis/lightning-preview.js +29 -1
  59. package/dist/esm/generated/abis/lightning.d.ts +34 -0
  60. package/dist/esm/generated/abis/lightning.js +22 -1
  61. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
  62. package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +16 -6
  63. package/dist/esm/generated/lightning.d.ts +31 -10
  64. package/dist/esm/generated/lightning.js +33 -11
  65. package/dist/esm/lite/attested-compute.d.ts +6 -3
  66. package/dist/esm/lite/attested-compute.js +4 -2
  67. package/dist/esm/lite/attested-decrypt.d.ts +2 -0
  68. package/dist/esm/lite/attested-decrypt.js +3 -2
  69. package/dist/esm/lite/index.d.ts +4 -1
  70. package/dist/esm/lite/index.js +3 -1
  71. package/dist/esm/lite/lightning.d.ts +32 -0
  72. package/dist/esm/lite/lightning.js +53 -45
  73. package/dist/esm/lite/reencrypt.d.ts +0 -1
  74. package/dist/esm/lite/reencrypt.js +9 -20
  75. package/dist/esm/local/local-node.js +35 -3
  76. package/dist/esm/reencryption/types.d.ts +1 -2
  77. package/dist/types/advancedacl/session-key.d.ts +29 -0
  78. package/dist/types/attestedcompute/attested-compute.d.ts +2 -0
  79. package/dist/types/attestedcompute/types.d.ts +3 -2
  80. package/dist/types/attesteddecrypt/attested-decrypt.d.ts +2 -0
  81. package/dist/types/attesteddecrypt/types.d.ts +3 -2
  82. package/dist/types/attestedreveal/attested-reveal.d.ts +21 -0
  83. package/dist/types/attestedreveal/index.d.ts +1 -0
  84. package/dist/types/attestedreveal/types.d.ts +7 -0
  85. package/dist/types/generated/abis/TestElist.d.ts +247 -0
  86. package/dist/types/generated/abis/addTwo.d.ts +18 -0
  87. package/dist/types/generated/abis/lightning-preview.d.ts +48 -0
  88. package/dist/types/generated/abis/lightning.d.ts +34 -0
  89. package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +63 -5
  90. package/dist/types/generated/lightning.d.ts +31 -10
  91. package/dist/types/lite/attested-compute.d.ts +6 -3
  92. package/dist/types/lite/attested-decrypt.d.ts +2 -0
  93. package/dist/types/lite/index.d.ts +4 -1
  94. package/dist/types/lite/lightning.d.ts +32 -0
  95. package/dist/types/lite/reencrypt.d.ts +0 -1
  96. package/dist/types/reencryption/types.d.ts +1 -2
  97. package/package.json +28 -17
  98. package/dist/cjs/fhevm/fhe-environment.d.ts +0 -9
  99. package/dist/cjs/fhevm/fhe-environment.js +0 -11
  100. package/dist/cjs/fhevm/fhevm.d.ts +0 -41
  101. package/dist/cjs/fhevm/fhevm.js +0 -145
  102. package/dist/cjs/fhevm/index.d.ts +0 -1
  103. package/dist/cjs/fhevm/reencrypt.d.ts +0 -20
  104. package/dist/cjs/fhevm/reencrypt.js +0 -127
  105. package/dist/cjs/fhevm/tfhe.d.ts +0 -74
  106. package/dist/cjs/fhevm/tfhe.js +0 -336
  107. package/dist/cjs/fhevm/types.d.ts +0 -3
  108. package/dist/cjs/fhevm/types.js +0 -29
  109. package/dist/cjs/generated/abis/inco-fhevm.d.ts +0 -874
  110. package/dist/cjs/generated/abis/inco-fhevm.js +0 -681
  111. package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
  112. package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.js +0 -36
  113. package/dist/cjs/generated/es/google/api/annotations_pb.d.ts +0 -13
  114. package/dist/cjs/generated/es/google/api/annotations_pb.js +0 -30
  115. package/dist/cjs/generated/es/google/api/http_pb.d.ts +0 -440
  116. package/dist/cjs/generated/es/google/api/http_pb.js +0 -37
  117. package/dist/cjs/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
  118. package/dist/cjs/generated/es/inco/fhe/v1/events_pb.js +0 -24
  119. package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
  120. package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.js +0 -49
  121. package/dist/cjs/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
  122. package/dist/cjs/generated/es/inco/fhe/v1/query_pb.js +0 -111
  123. package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
  124. package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.js +0 -111
  125. package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
  126. package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.js +0 -23
  127. package/dist/cjs/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
  128. package/dist/cjs/generated/es/inco/preflight/v1/query_pb.js +0 -41
  129. package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
  130. package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.js +0 -51
  131. package/dist/cjs/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
  132. package/dist/cjs/generated/es/inco/preflight/v1/types_pb.js +0 -37
  133. package/dist/cjs/generated/fhe-environments.d.ts +0 -14
  134. package/dist/cjs/generated/fhe-environments.js +0 -18
  135. package/dist/cjs/generated/ts/amino/amino.d.ts +0 -1
  136. package/dist/cjs/generated/ts/amino/amino.js +0 -11
  137. package/dist/cjs/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
  138. package/dist/cjs/generated/ts/cometbft/abci/v1/types.js +0 -5079
  139. package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
  140. package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.js +0 -108
  141. package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
  142. package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.js +0 -433
  143. package/dist/cjs/generated/ts/cometbft/types/v1/params.d.ts +0 -179
  144. package/dist/cjs/generated/ts/cometbft/types/v1/params.js +0 -716
  145. package/dist/cjs/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
  146. package/dist/cjs/generated/ts/cometbft/types/v1/validator.js +0 -358
  147. package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
  148. package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.js +0 -221
  149. package/dist/cjs/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
  150. package/dist/cjs/generated/ts/cosmos/msg/v1/msg.js +0 -11
  151. package/dist/cjs/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
  152. package/dist/cjs/generated/ts/cosmos_proto/cosmos.js +0 -216
  153. package/dist/cjs/generated/ts/gogoproto/gogo.d.ts +0 -1
  154. package/dist/cjs/generated/ts/gogoproto/gogo.js +0 -11
  155. package/dist/cjs/generated/ts/google/api/annotations.d.ts +0 -1
  156. package/dist/cjs/generated/ts/google/api/annotations.js +0 -11
  157. package/dist/cjs/generated/ts/google/api/http.d.ts +0 -371
  158. package/dist/cjs/generated/ts/google/api/http.js +0 -356
  159. package/dist/cjs/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
  160. package/dist/cjs/generated/ts/google/protobuf/descriptor.js +0 -5108
  161. package/dist/cjs/generated/ts/google/protobuf/duration.d.ts +0 -99
  162. package/dist/cjs/generated/ts/google/protobuf/duration.js +0 -93
  163. package/dist/cjs/generated/ts/google/protobuf/timestamp.d.ts +0 -128
  164. package/dist/cjs/generated/ts/google/protobuf/timestamp.js +0 -93
  165. package/dist/cjs/generated/ts/google/protobuf/wrappers.d.ts +0 -111
  166. package/dist/cjs/generated/ts/google/protobuf/wrappers.js +0 -509
  167. package/dist/cjs/generated/ts/inco/abci/v1/types.d.ts +0 -35
  168. package/dist/cjs/generated/ts/inco/abci/v1/types.js +0 -73
  169. package/dist/cjs/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
  170. package/dist/cjs/generated/ts/inco/fhe/module/v1/module.js +0 -66
  171. package/dist/cjs/generated/ts/inco/fhe/v1/events.d.ts +0 -66
  172. package/dist/cjs/generated/ts/inco/fhe/v1/events.js +0 -190
  173. package/dist/cjs/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
  174. package/dist/cjs/generated/ts/inco/fhe/v1/genesis.js +0 -714
  175. package/dist/cjs/generated/ts/inco/fhe/v1/query.d.ts +0 -366
  176. package/dist/cjs/generated/ts/inco/fhe/v1/query.js +0 -1394
  177. package/dist/cjs/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
  178. package/dist/cjs/generated/ts/inco/fhe/v1/tx.js +0 -1236
  179. package/dist/cjs/generated/ts/inco/fhe/v1/types.d.ts +0 -225
  180. package/dist/cjs/generated/ts/inco/fhe/v1/types.js +0 -990
  181. package/dist/cjs/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
  182. package/dist/cjs/generated/ts/inco/originchain/module/v1/module.js +0 -66
  183. package/dist/cjs/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
  184. package/dist/cjs/generated/ts/inco/originchain/v1/abci.js +0 -331
  185. package/dist/cjs/generated/ts/inco/originchain/v1/events.d.ts +0 -60
  186. package/dist/cjs/generated/ts/inco/originchain/v1/events.js +0 -216
  187. package/dist/cjs/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
  188. package/dist/cjs/generated/ts/inco/originchain/v1/genesis.js +0 -69
  189. package/dist/cjs/generated/ts/inco/originchain/v1/query.d.ts +0 -116
  190. package/dist/cjs/generated/ts/inco/originchain/v1/query.js +0 -280
  191. package/dist/cjs/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
  192. package/dist/cjs/generated/ts/inco/originchain/v1/tx.js +0 -140
  193. package/dist/cjs/generated/ts/inco/originchain/v1/types.d.ts +0 -58
  194. package/dist/cjs/generated/ts/inco/originchain/v1/types.js +0 -203
  195. package/dist/cjs/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
  196. package/dist/cjs/generated/ts/inco/preflight/module/v1/module.js +0 -66
  197. package/dist/cjs/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
  198. package/dist/cjs/generated/ts/inco/preflight/v1/genesis.js +0 -185
  199. package/dist/cjs/generated/ts/inco/preflight/v1/query.d.ts +0 -93
  200. package/dist/cjs/generated/ts/inco/preflight/v1/query.js +0 -259
  201. package/dist/cjs/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
  202. package/dist/cjs/generated/ts/inco/preflight/v1/tx.js +0 -448
  203. package/dist/cjs/generated/ts/inco/preflight/v1/types.d.ts +0 -84
  204. package/dist/cjs/generated/ts/inco/preflight/v1/types.js +0 -398
  205. package/dist/cjs/l1/client.d.ts +0 -35
  206. package/dist/cjs/l1/client.js +0 -97
  207. package/dist/cjs/l1/index.d.ts +0 -2
  208. package/dist/cjs/l1/index.js +0 -19
  209. package/dist/cjs/l1/preflight.d.ts +0 -20
  210. package/dist/cjs/l1/preflight.js +0 -42
  211. package/dist/esm/fhevm/fhe-environment.d.ts +0 -9
  212. package/dist/esm/fhevm/fhe-environment.js +0 -8
  213. package/dist/esm/fhevm/fhevm.d.ts +0 -41
  214. package/dist/esm/fhevm/fhevm.js +0 -139
  215. package/dist/esm/fhevm/index.d.ts +0 -1
  216. package/dist/esm/fhevm/index.js +0 -2
  217. package/dist/esm/fhevm/reencrypt.d.ts +0 -20
  218. package/dist/esm/fhevm/reencrypt.js +0 -123
  219. package/dist/esm/fhevm/tfhe.d.ts +0 -74
  220. package/dist/esm/fhevm/tfhe.js +0 -328
  221. package/dist/esm/fhevm/types.d.ts +0 -3
  222. package/dist/esm/fhevm/types.js +0 -26
  223. package/dist/esm/generated/abis/inco-fhevm.d.ts +0 -874
  224. package/dist/esm/generated/abis/inco-fhevm.js +0 -678
  225. package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
  226. package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.js +0 -33
  227. package/dist/esm/generated/es/google/api/annotations_pb.d.ts +0 -13
  228. package/dist/esm/generated/es/google/api/annotations_pb.js +0 -27
  229. package/dist/esm/generated/es/google/api/http_pb.d.ts +0 -440
  230. package/dist/esm/generated/es/google/api/http_pb.js +0 -34
  231. package/dist/esm/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
  232. package/dist/esm/generated/es/inco/fhe/v1/events_pb.js +0 -21
  233. package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
  234. package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.js +0 -46
  235. package/dist/esm/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
  236. package/dist/esm/generated/es/inco/fhe/v1/query_pb.js +0 -108
  237. package/dist/esm/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
  238. package/dist/esm/generated/es/inco/fhe/v1/tx_pb.js +0 -108
  239. package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
  240. package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.js +0 -20
  241. package/dist/esm/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
  242. package/dist/esm/generated/es/inco/preflight/v1/query_pb.js +0 -38
  243. package/dist/esm/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
  244. package/dist/esm/generated/es/inco/preflight/v1/tx_pb.js +0 -48
  245. package/dist/esm/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
  246. package/dist/esm/generated/es/inco/preflight/v1/types_pb.js +0 -34
  247. package/dist/esm/generated/fhe-environments.d.ts +0 -14
  248. package/dist/esm/generated/fhe-environments.js +0 -15
  249. package/dist/esm/generated/ts/amino/amino.d.ts +0 -1
  250. package/dist/esm/generated/ts/amino/amino.js +0 -8
  251. package/dist/esm/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
  252. package/dist/esm/generated/ts/cometbft/abci/v1/types.js +0 -5063
  253. package/dist/esm/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
  254. package/dist/esm/generated/ts/cometbft/crypto/v1/keys.js +0 -105
  255. package/dist/esm/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
  256. package/dist/esm/generated/ts/cometbft/crypto/v1/proof.js +0 -430
  257. package/dist/esm/generated/ts/cometbft/types/v1/params.d.ts +0 -179
  258. package/dist/esm/generated/ts/cometbft/types/v1/params.js +0 -713
  259. package/dist/esm/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
  260. package/dist/esm/generated/ts/cometbft/types/v1/validator.js +0 -353
  261. package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
  262. package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.js +0 -218
  263. package/dist/esm/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
  264. package/dist/esm/generated/ts/cosmos/msg/v1/msg.js +0 -8
  265. package/dist/esm/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
  266. package/dist/esm/generated/ts/cosmos_proto/cosmos.js +0 -211
  267. package/dist/esm/generated/ts/gogoproto/gogo.d.ts +0 -1
  268. package/dist/esm/generated/ts/gogoproto/gogo.js +0 -8
  269. package/dist/esm/generated/ts/google/api/annotations.d.ts +0 -1
  270. package/dist/esm/generated/ts/google/api/annotations.js +0 -8
  271. package/dist/esm/generated/ts/google/api/http.d.ts +0 -371
  272. package/dist/esm/generated/ts/google/api/http.js +0 -353
  273. package/dist/esm/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
  274. package/dist/esm/generated/ts/google/protobuf/descriptor.js +0 -5070
  275. package/dist/esm/generated/ts/google/protobuf/duration.d.ts +0 -99
  276. package/dist/esm/generated/ts/google/protobuf/duration.js +0 -90
  277. package/dist/esm/generated/ts/google/protobuf/timestamp.d.ts +0 -128
  278. package/dist/esm/generated/ts/google/protobuf/timestamp.js +0 -90
  279. package/dist/esm/generated/ts/google/protobuf/wrappers.d.ts +0 -111
  280. package/dist/esm/generated/ts/google/protobuf/wrappers.js +0 -506
  281. package/dist/esm/generated/ts/inco/abci/v1/types.d.ts +0 -35
  282. package/dist/esm/generated/ts/inco/abci/v1/types.js +0 -70
  283. package/dist/esm/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
  284. package/dist/esm/generated/ts/inco/fhe/module/v1/module.js +0 -63
  285. package/dist/esm/generated/ts/inco/fhe/v1/events.d.ts +0 -66
  286. package/dist/esm/generated/ts/inco/fhe/v1/events.js +0 -187
  287. package/dist/esm/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
  288. package/dist/esm/generated/ts/inco/fhe/v1/genesis.js +0 -711
  289. package/dist/esm/generated/ts/inco/fhe/v1/query.d.ts +0 -366
  290. package/dist/esm/generated/ts/inco/fhe/v1/query.js +0 -1391
  291. package/dist/esm/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
  292. package/dist/esm/generated/ts/inco/fhe/v1/tx.js +0 -1233
  293. package/dist/esm/generated/ts/inco/fhe/v1/types.d.ts +0 -225
  294. package/dist/esm/generated/ts/inco/fhe/v1/types.js +0 -985
  295. package/dist/esm/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
  296. package/dist/esm/generated/ts/inco/originchain/module/v1/module.js +0 -63
  297. package/dist/esm/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
  298. package/dist/esm/generated/ts/inco/originchain/v1/abci.js +0 -328
  299. package/dist/esm/generated/ts/inco/originchain/v1/events.d.ts +0 -60
  300. package/dist/esm/generated/ts/inco/originchain/v1/events.js +0 -213
  301. package/dist/esm/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
  302. package/dist/esm/generated/ts/inco/originchain/v1/genesis.js +0 -66
  303. package/dist/esm/generated/ts/inco/originchain/v1/query.d.ts +0 -116
  304. package/dist/esm/generated/ts/inco/originchain/v1/query.js +0 -277
  305. package/dist/esm/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
  306. package/dist/esm/generated/ts/inco/originchain/v1/tx.js +0 -137
  307. package/dist/esm/generated/ts/inco/originchain/v1/types.d.ts +0 -58
  308. package/dist/esm/generated/ts/inco/originchain/v1/types.js +0 -200
  309. package/dist/esm/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
  310. package/dist/esm/generated/ts/inco/preflight/module/v1/module.js +0 -63
  311. package/dist/esm/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
  312. package/dist/esm/generated/ts/inco/preflight/v1/genesis.js +0 -182
  313. package/dist/esm/generated/ts/inco/preflight/v1/query.d.ts +0 -93
  314. package/dist/esm/generated/ts/inco/preflight/v1/query.js +0 -256
  315. package/dist/esm/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
  316. package/dist/esm/generated/ts/inco/preflight/v1/tx.js +0 -445
  317. package/dist/esm/generated/ts/inco/preflight/v1/types.d.ts +0 -84
  318. package/dist/esm/generated/ts/inco/preflight/v1/types.js +0 -395
  319. package/dist/esm/l1/client.d.ts +0 -35
  320. package/dist/esm/l1/client.js +0 -93
  321. package/dist/esm/l1/index.d.ts +0 -2
  322. package/dist/esm/l1/index.js +0 -3
  323. package/dist/esm/l1/preflight.d.ts +0 -20
  324. package/dist/esm/l1/preflight.js +0 -39
  325. package/dist/types/fhevm/fhe-environment.d.ts +0 -9
  326. package/dist/types/fhevm/fhevm.d.ts +0 -41
  327. package/dist/types/fhevm/index.d.ts +0 -1
  328. package/dist/types/fhevm/reencrypt.d.ts +0 -20
  329. package/dist/types/fhevm/tfhe.d.ts +0 -74
  330. package/dist/types/fhevm/types.d.ts +0 -3
  331. package/dist/types/generated/abis/inco-fhevm.d.ts +0 -874
  332. package/dist/types/generated/es/cosmos/msg/v1/msg_pb.d.ts +0 -29
  333. package/dist/types/generated/es/google/api/annotations_pb.d.ts +0 -13
  334. package/dist/types/generated/es/google/api/http_pb.d.ts +0 -440
  335. package/dist/types/generated/es/inco/fhe/v1/events_pb.d.ts +0 -79
  336. package/dist/types/generated/es/inco/fhe/v1/genesis_pb.d.ts +0 -252
  337. package/dist/types/generated/es/inco/fhe/v1/query_pb.d.ts +0 -569
  338. package/dist/types/generated/es/inco/fhe/v1/tx_pb.d.ts +0 -494
  339. package/dist/types/generated/es/inco/preflight/v1/genesis_pb.d.ts +0 -56
  340. package/dist/types/generated/es/inco/preflight/v1/query_pb.d.ts +0 -100
  341. package/dist/types/generated/es/inco/preflight/v1/tx_pb.d.ts +0 -193
  342. package/dist/types/generated/es/inco/preflight/v1/types_pb.d.ts +0 -144
  343. package/dist/types/generated/fhe-environments.d.ts +0 -14
  344. package/dist/types/generated/ts/amino/amino.d.ts +0 -1
  345. package/dist/types/generated/ts/cometbft/abci/v1/types.d.ts +0 -597
  346. package/dist/types/generated/ts/cometbft/crypto/v1/keys.d.ts +0 -27
  347. package/dist/types/generated/ts/cometbft/crypto/v1/proof.d.ts +0 -60
  348. package/dist/types/generated/ts/cometbft/types/v1/params.d.ts +0 -179
  349. package/dist/types/generated/ts/cometbft/types/v1/validator.d.ts +0 -61
  350. package/dist/types/generated/ts/cosmos/app/v1alpha1/module.d.ts +0 -104
  351. package/dist/types/generated/ts/cosmos/msg/v1/msg.d.ts +0 -1
  352. package/dist/types/generated/ts/cosmos_proto/cosmos.d.ts +0 -80
  353. package/dist/types/generated/ts/gogoproto/gogo.d.ts +0 -1
  354. package/dist/types/generated/ts/google/api/annotations.d.ts +0 -1
  355. package/dist/types/generated/ts/google/api/http.d.ts +0 -371
  356. package/dist/types/generated/ts/google/protobuf/descriptor.d.ts +0 -1228
  357. package/dist/types/generated/ts/google/protobuf/duration.d.ts +0 -99
  358. package/dist/types/generated/ts/google/protobuf/timestamp.d.ts +0 -128
  359. package/dist/types/generated/ts/google/protobuf/wrappers.d.ts +0 -111
  360. package/dist/types/generated/ts/inco/abci/v1/types.d.ts +0 -35
  361. package/dist/types/generated/ts/inco/fhe/module/v1/module.d.ts +0 -31
  362. package/dist/types/generated/ts/inco/fhe/v1/events.d.ts +0 -66
  363. package/dist/types/generated/ts/inco/fhe/v1/genesis.d.ts +0 -117
  364. package/dist/types/generated/ts/inco/fhe/v1/query.d.ts +0 -366
  365. package/dist/types/generated/ts/inco/fhe/v1/tx.d.ts +0 -409
  366. package/dist/types/generated/ts/inco/fhe/v1/types.d.ts +0 -225
  367. package/dist/types/generated/ts/inco/originchain/module/v1/module.d.ts +0 -30
  368. package/dist/types/generated/ts/inco/originchain/v1/abci.d.ts +0 -80
  369. package/dist/types/generated/ts/inco/originchain/v1/events.d.ts +0 -60
  370. package/dist/types/generated/ts/inco/originchain/v1/genesis.d.ts +0 -28
  371. package/dist/types/generated/ts/inco/originchain/v1/query.d.ts +0 -116
  372. package/dist/types/generated/ts/inco/originchain/v1/tx.d.ts +0 -89
  373. package/dist/types/generated/ts/inco/originchain/v1/types.d.ts +0 -58
  374. package/dist/types/generated/ts/inco/preflight/module/v1/module.d.ts +0 -31
  375. package/dist/types/generated/ts/inco/preflight/v1/genesis.d.ts +0 -41
  376. package/dist/types/generated/ts/inco/preflight/v1/query.d.ts +0 -93
  377. package/dist/types/generated/ts/inco/preflight/v1/tx.d.ts +0 -187
  378. package/dist/types/generated/ts/inco/preflight/v1/types.d.ts +0 -84
  379. package/dist/types/l1/client.d.ts +0 -35
  380. package/dist/types/l1/index.d.ts +0 -2
  381. package/dist/types/l1/preflight.d.ts +0 -20
@@ -1,1228 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "google.protobuf";
3
- /** The full set of known editions. */
4
- export declare enum Edition {
5
- /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
6
- EDITION_UNKNOWN = 0,
7
- /**
8
- * EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature
9
- * was first introduced. This is effectively an "infinite past".
10
- */
11
- EDITION_LEGACY = 900,
12
- /**
13
- * EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
14
- * distinct editions. These can't be used to specify the edition of proto
15
- * files, but feature definitions must supply proto2/proto3 defaults for
16
- * backwards compatibility.
17
- */
18
- EDITION_PROTO2 = 998,
19
- EDITION_PROTO3 = 999,
20
- /**
21
- * EDITION_2023 - Editions that have been released. The specific values are arbitrary and
22
- * should not be depended on, but they will always be time-ordered for easy
23
- * comparison.
24
- */
25
- EDITION_2023 = 1000,
26
- EDITION_2024 = 1001,
27
- /**
28
- * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
29
- * used or relied on outside of tests.
30
- */
31
- EDITION_1_TEST_ONLY = 1,
32
- EDITION_2_TEST_ONLY = 2,
33
- EDITION_99997_TEST_ONLY = 99997,
34
- EDITION_99998_TEST_ONLY = 99998,
35
- EDITION_99999_TEST_ONLY = 99999,
36
- /**
37
- * EDITION_MAX - Placeholder for specifying unbounded edition support. This should only
38
- * ever be used by plugins that can expect to never require any changes to
39
- * support a new edition.
40
- */
41
- EDITION_MAX = 2147483647,
42
- UNRECOGNIZED = -1
43
- }
44
- export declare function editionFromJSON(object: any): Edition;
45
- export declare function editionToJSON(object: Edition): string;
46
- /**
47
- * The protocol compiler can output a FileDescriptorSet containing the .proto
48
- * files it parses.
49
- */
50
- export interface FileDescriptorSet {
51
- file: FileDescriptorProto[];
52
- }
53
- /** Describes a complete .proto file. */
54
- export interface FileDescriptorProto {
55
- /** file name, relative to root of source tree */
56
- name?: string | undefined;
57
- /** e.g. "foo", "foo.bar", etc. */
58
- package?: string | undefined;
59
- /** Names of files imported by this file. */
60
- dependency: string[];
61
- /** Indexes of the public imported files in the dependency list above. */
62
- publicDependency: number[];
63
- /**
64
- * Indexes of the weak imported files in the dependency list.
65
- * For Google-internal migration only. Do not use.
66
- */
67
- weakDependency: number[];
68
- /** All top-level definitions in this file. */
69
- messageType: DescriptorProto[];
70
- enumType: EnumDescriptorProto[];
71
- service: ServiceDescriptorProto[];
72
- extension: FieldDescriptorProto[];
73
- options?: FileOptions | undefined;
74
- /**
75
- * This field contains optional information about the original source code.
76
- * You may safely remove this entire field without harming runtime
77
- * functionality of the descriptors -- the information is needed only by
78
- * development tools.
79
- */
80
- sourceCodeInfo?: SourceCodeInfo | undefined;
81
- /**
82
- * The syntax of the proto file.
83
- * The supported values are "proto2", "proto3", and "editions".
84
- *
85
- * If `edition` is present, this value must be "editions".
86
- */
87
- syntax?: string | undefined;
88
- /** The edition of the proto file. */
89
- edition?: Edition | undefined;
90
- }
91
- /** Describes a message type. */
92
- export interface DescriptorProto {
93
- name?: string | undefined;
94
- field: FieldDescriptorProto[];
95
- extension: FieldDescriptorProto[];
96
- nestedType: DescriptorProto[];
97
- enumType: EnumDescriptorProto[];
98
- extensionRange: DescriptorProto_ExtensionRange[];
99
- oneofDecl: OneofDescriptorProto[];
100
- options?: MessageOptions | undefined;
101
- reservedRange: DescriptorProto_ReservedRange[];
102
- /**
103
- * Reserved field names, which may not be used by fields in the same message.
104
- * A given name may only be reserved once.
105
- */
106
- reservedName: string[];
107
- }
108
- export interface DescriptorProto_ExtensionRange {
109
- /** Inclusive. */
110
- start?: number | undefined;
111
- /** Exclusive. */
112
- end?: number | undefined;
113
- options?: ExtensionRangeOptions | undefined;
114
- }
115
- /**
116
- * Range of reserved tag numbers. Reserved tag numbers may not be used by
117
- * fields or extension ranges in the same message. Reserved ranges may
118
- * not overlap.
119
- */
120
- export interface DescriptorProto_ReservedRange {
121
- /** Inclusive. */
122
- start?: number | undefined;
123
- /** Exclusive. */
124
- end?: number | undefined;
125
- }
126
- export interface ExtensionRangeOptions {
127
- /** The parser stores options it doesn't recognize here. See above. */
128
- uninterpretedOption: UninterpretedOption[];
129
- /**
130
- * For external users: DO NOT USE. We are in the process of open sourcing
131
- * extension declaration and executing internal cleanups before it can be
132
- * used externally.
133
- */
134
- declaration: ExtensionRangeOptions_Declaration[];
135
- /** Any features defined in the specific edition. */
136
- features?: FeatureSet | undefined;
137
- /**
138
- * The verification state of the range.
139
- * TODO: flip the default to DECLARATION once all empty ranges
140
- * are marked as UNVERIFIED.
141
- */
142
- verification?: ExtensionRangeOptions_VerificationState | undefined;
143
- }
144
- /** The verification state of the extension range. */
145
- export declare enum ExtensionRangeOptions_VerificationState {
146
- /** DECLARATION - All the extensions of the range must be declared. */
147
- DECLARATION = 0,
148
- UNVERIFIED = 1,
149
- UNRECOGNIZED = -1
150
- }
151
- export declare function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState;
152
- export declare function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string;
153
- export interface ExtensionRangeOptions_Declaration {
154
- /** The extension number declared within the extension range. */
155
- number?: number | undefined;
156
- /**
157
- * The fully-qualified name of the extension field. There must be a leading
158
- * dot in front of the full name.
159
- */
160
- fullName?: string | undefined;
161
- /**
162
- * The fully-qualified type name of the extension field. Unlike
163
- * Metadata.type, Declaration.type must have a leading dot for messages
164
- * and enums.
165
- */
166
- type?: string | undefined;
167
- /**
168
- * If true, indicates that the number is reserved in the extension range,
169
- * and any extension field with the number will fail to compile. Set this
170
- * when a declared extension field is deleted.
171
- */
172
- reserved?: boolean | undefined;
173
- /**
174
- * If true, indicates that the extension must be defined as repeated.
175
- * Otherwise the extension must be defined as optional.
176
- */
177
- repeated?: boolean | undefined;
178
- }
179
- /** Describes a field within a message. */
180
- export interface FieldDescriptorProto {
181
- name?: string | undefined;
182
- number?: number | undefined;
183
- label?: FieldDescriptorProto_Label | undefined;
184
- /**
185
- * If type_name is set, this need not be set. If both this and type_name
186
- * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
187
- */
188
- type?: FieldDescriptorProto_Type | undefined;
189
- /**
190
- * For message and enum types, this is the name of the type. If the name
191
- * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
192
- * rules are used to find the type (i.e. first the nested types within this
193
- * message are searched, then within the parent, on up to the root
194
- * namespace).
195
- */
196
- typeName?: string | undefined;
197
- /**
198
- * For extensions, this is the name of the type being extended. It is
199
- * resolved in the same manner as type_name.
200
- */
201
- extendee?: string | undefined;
202
- /**
203
- * For numeric types, contains the original text representation of the value.
204
- * For booleans, "true" or "false".
205
- * For strings, contains the default text contents (not escaped in any way).
206
- * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
207
- */
208
- defaultValue?: string | undefined;
209
- /**
210
- * If set, gives the index of a oneof in the containing type's oneof_decl
211
- * list. This field is a member of that oneof.
212
- */
213
- oneofIndex?: number | undefined;
214
- /**
215
- * JSON name of this field. The value is set by protocol compiler. If the
216
- * user has set a "json_name" option on this field, that option's value
217
- * will be used. Otherwise, it's deduced from the field's name by converting
218
- * it to camelCase.
219
- */
220
- jsonName?: string | undefined;
221
- options?: FieldOptions | undefined;
222
- /**
223
- * If true, this is a proto3 "optional". When a proto3 field is optional, it
224
- * tracks presence regardless of field type.
225
- *
226
- * When proto3_optional is true, this field must belong to a oneof to signal
227
- * to old proto3 clients that presence is tracked for this field. This oneof
228
- * is known as a "synthetic" oneof, and this field must be its sole member
229
- * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
230
- * exist in the descriptor only, and do not generate any API. Synthetic oneofs
231
- * must be ordered after all "real" oneofs.
232
- *
233
- * For message fields, proto3_optional doesn't create any semantic change,
234
- * since non-repeated message fields always track presence. However it still
235
- * indicates the semantic detail of whether the user wrote "optional" or not.
236
- * This can be useful for round-tripping the .proto file. For consistency we
237
- * give message fields a synthetic oneof also, even though it is not required
238
- * to track presence. This is especially important because the parser can't
239
- * tell if a field is a message or an enum, so it must always create a
240
- * synthetic oneof.
241
- *
242
- * Proto2 optional fields do not set this flag, because they already indicate
243
- * optional with `LABEL_OPTIONAL`.
244
- */
245
- proto3Optional?: boolean | undefined;
246
- }
247
- export declare enum FieldDescriptorProto_Type {
248
- /**
249
- * TYPE_DOUBLE - 0 is reserved for errors.
250
- * Order is weird for historical reasons.
251
- */
252
- TYPE_DOUBLE = 1,
253
- TYPE_FLOAT = 2,
254
- /**
255
- * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
256
- * negative values are likely.
257
- */
258
- TYPE_INT64 = 3,
259
- TYPE_UINT64 = 4,
260
- /**
261
- * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
262
- * negative values are likely.
263
- */
264
- TYPE_INT32 = 5,
265
- TYPE_FIXED64 = 6,
266
- TYPE_FIXED32 = 7,
267
- TYPE_BOOL = 8,
268
- TYPE_STRING = 9,
269
- /**
270
- * TYPE_GROUP - Tag-delimited aggregate.
271
- * Group type is deprecated and not supported after google.protobuf. However, Proto3
272
- * implementations should still be able to parse the group wire format and
273
- * treat group fields as unknown fields. In Editions, the group wire format
274
- * can be enabled via the `message_encoding` feature.
275
- */
276
- TYPE_GROUP = 10,
277
- /** TYPE_MESSAGE - Length-delimited aggregate. */
278
- TYPE_MESSAGE = 11,
279
- /** TYPE_BYTES - New in version 2. */
280
- TYPE_BYTES = 12,
281
- TYPE_UINT32 = 13,
282
- TYPE_ENUM = 14,
283
- TYPE_SFIXED32 = 15,
284
- TYPE_SFIXED64 = 16,
285
- /** TYPE_SINT32 - Uses ZigZag encoding. */
286
- TYPE_SINT32 = 17,
287
- /** TYPE_SINT64 - Uses ZigZag encoding. */
288
- TYPE_SINT64 = 18,
289
- UNRECOGNIZED = -1
290
- }
291
- export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type;
292
- export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string;
293
- export declare enum FieldDescriptorProto_Label {
294
- /** LABEL_OPTIONAL - 0 is reserved for errors */
295
- LABEL_OPTIONAL = 1,
296
- LABEL_REPEATED = 3,
297
- /**
298
- * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
299
- * it's explicitly prohibited. In Editions, the `field_presence` feature
300
- * can be used to get this behavior.
301
- */
302
- LABEL_REQUIRED = 2,
303
- UNRECOGNIZED = -1
304
- }
305
- export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label;
306
- export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string;
307
- /** Describes a oneof. */
308
- export interface OneofDescriptorProto {
309
- name?: string | undefined;
310
- options?: OneofOptions | undefined;
311
- }
312
- /** Describes an enum type. */
313
- export interface EnumDescriptorProto {
314
- name?: string | undefined;
315
- value: EnumValueDescriptorProto[];
316
- options?: EnumOptions | undefined;
317
- /**
318
- * Range of reserved numeric values. Reserved numeric values may not be used
319
- * by enum values in the same enum declaration. Reserved ranges may not
320
- * overlap.
321
- */
322
- reservedRange: EnumDescriptorProto_EnumReservedRange[];
323
- /**
324
- * Reserved enum value names, which may not be reused. A given name may only
325
- * be reserved once.
326
- */
327
- reservedName: string[];
328
- }
329
- /**
330
- * Range of reserved numeric values. Reserved values may not be used by
331
- * entries in the same enum. Reserved ranges may not overlap.
332
- *
333
- * Note that this is distinct from DescriptorProto.ReservedRange in that it
334
- * is inclusive such that it can appropriately represent the entire int32
335
- * domain.
336
- */
337
- export interface EnumDescriptorProto_EnumReservedRange {
338
- /** Inclusive. */
339
- start?: number | undefined;
340
- /** Inclusive. */
341
- end?: number | undefined;
342
- }
343
- /** Describes a value within an enum. */
344
- export interface EnumValueDescriptorProto {
345
- name?: string | undefined;
346
- number?: number | undefined;
347
- options?: EnumValueOptions | undefined;
348
- }
349
- /** Describes a service. */
350
- export interface ServiceDescriptorProto {
351
- name?: string | undefined;
352
- method: MethodDescriptorProto[];
353
- options?: ServiceOptions | undefined;
354
- }
355
- /** Describes a method of a service. */
356
- export interface MethodDescriptorProto {
357
- name?: string | undefined;
358
- /**
359
- * Input and output type names. These are resolved in the same way as
360
- * FieldDescriptorProto.type_name, but must refer to a message type.
361
- */
362
- inputType?: string | undefined;
363
- outputType?: string | undefined;
364
- options?: MethodOptions | undefined;
365
- /** Identifies if client streams multiple client messages */
366
- clientStreaming?: boolean | undefined;
367
- /** Identifies if server streams multiple server messages */
368
- serverStreaming?: boolean | undefined;
369
- }
370
- export interface FileOptions {
371
- /**
372
- * Sets the Java package where classes generated from this .proto will be
373
- * placed. By default, the proto package is used, but this is often
374
- * inappropriate because proto packages do not normally start with backwards
375
- * domain names.
376
- */
377
- javaPackage?: string | undefined;
378
- /**
379
- * Controls the name of the wrapper Java class generated for the .proto file.
380
- * That class will always contain the .proto file's getDescriptor() method as
381
- * well as any top-level extensions defined in the .proto file.
382
- * If java_multiple_files is disabled, then all the other classes from the
383
- * .proto file will be nested inside the single wrapper outer class.
384
- */
385
- javaOuterClassname?: string | undefined;
386
- /**
387
- * If enabled, then the Java code generator will generate a separate .java
388
- * file for each top-level message, enum, and service defined in the .proto
389
- * file. Thus, these types will *not* be nested inside the wrapper class
390
- * named by java_outer_classname. However, the wrapper class will still be
391
- * generated to contain the file's getDescriptor() method as well as any
392
- * top-level extensions defined in the file.
393
- */
394
- javaMultipleFiles?: boolean | undefined;
395
- /**
396
- * This option does nothing.
397
- *
398
- * @deprecated
399
- */
400
- javaGenerateEqualsAndHash?: boolean | undefined;
401
- /**
402
- * A proto2 file can set this to true to opt in to UTF-8 checking for Java,
403
- * which will throw an exception if invalid UTF-8 is parsed from the wire or
404
- * assigned to a string field.
405
- *
406
- * TODO: clarify exactly what kinds of field types this option
407
- * applies to, and update these docs accordingly.
408
- *
409
- * Proto3 files already perform these checks. Setting the option explicitly to
410
- * false has no effect: it cannot be used to opt proto3 files out of UTF-8
411
- * checks.
412
- */
413
- javaStringCheckUtf8?: boolean | undefined;
414
- optimizeFor?: FileOptions_OptimizeMode | undefined;
415
- /**
416
- * Sets the Go package where structs generated from this .proto will be
417
- * placed. If omitted, the Go package will be derived from the following:
418
- * - The basename of the package import path, if provided.
419
- * - Otherwise, the package statement in the .proto file, if present.
420
- * - Otherwise, the basename of the .proto file, without extension.
421
- */
422
- goPackage?: string | undefined;
423
- /**
424
- * Should generic services be generated in each language? "Generic" services
425
- * are not specific to any particular RPC system. They are generated by the
426
- * main code generators in each language (without additional plugins).
427
- * Generic services were the only kind of service generation supported by
428
- * early versions of google.protobuf.
429
- *
430
- * Generic services are now considered deprecated in favor of using plugins
431
- * that generate code specific to your particular RPC system. Therefore,
432
- * these default to false. Old code which depends on generic services should
433
- * explicitly set them to true.
434
- */
435
- ccGenericServices?: boolean | undefined;
436
- javaGenericServices?: boolean | undefined;
437
- pyGenericServices?: boolean | undefined;
438
- /**
439
- * Is this file deprecated?
440
- * Depending on the target platform, this can emit Deprecated annotations
441
- * for everything in the file, or it will be completely ignored; in the very
442
- * least, this is a formalization for deprecating files.
443
- */
444
- deprecated?: boolean | undefined;
445
- /**
446
- * Enables the use of arenas for the proto messages in this file. This applies
447
- * only to generated classes for C++.
448
- */
449
- ccEnableArenas?: boolean | undefined;
450
- /**
451
- * Sets the objective c class prefix which is prepended to all objective c
452
- * generated classes from this .proto. There is no default.
453
- */
454
- objcClassPrefix?: string | undefined;
455
- /** Namespace for generated classes; defaults to the package. */
456
- csharpNamespace?: string | undefined;
457
- /**
458
- * By default Swift generators will take the proto package and CamelCase it
459
- * replacing '.' with underscore and use that to prefix the types/symbols
460
- * defined. When this options is provided, they will use this value instead
461
- * to prefix the types/symbols defined.
462
- */
463
- swiftPrefix?: string | undefined;
464
- /**
465
- * Sets the php class prefix which is prepended to all php generated classes
466
- * from this .proto. Default is empty.
467
- */
468
- phpClassPrefix?: string | undefined;
469
- /**
470
- * Use this option to change the namespace of php generated classes. Default
471
- * is empty. When this option is empty, the package name will be used for
472
- * determining the namespace.
473
- */
474
- phpNamespace?: string | undefined;
475
- /**
476
- * Use this option to change the namespace of php generated metadata classes.
477
- * Default is empty. When this option is empty, the proto file name will be
478
- * used for determining the namespace.
479
- */
480
- phpMetadataNamespace?: string | undefined;
481
- /**
482
- * Use this option to change the package of ruby generated classes. Default
483
- * is empty. When this option is not set, the package name will be used for
484
- * determining the ruby package.
485
- */
486
- rubyPackage?: string | undefined;
487
- /** Any features defined in the specific edition. */
488
- features?: FeatureSet | undefined;
489
- /**
490
- * The parser stores options it doesn't recognize here.
491
- * See the documentation for the "Options" section above.
492
- */
493
- uninterpretedOption: UninterpretedOption[];
494
- }
495
- /** Generated classes can be optimized for speed or code size. */
496
- export declare enum FileOptions_OptimizeMode {
497
- /** SPEED - Generate complete code for parsing, serialization, */
498
- SPEED = 1,
499
- /** CODE_SIZE - etc. */
500
- CODE_SIZE = 2,
501
- /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
502
- LITE_RUNTIME = 3,
503
- UNRECOGNIZED = -1
504
- }
505
- export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode;
506
- export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string;
507
- export interface MessageOptions {
508
- /**
509
- * Set true to use the old proto1 MessageSet wire format for extensions.
510
- * This is provided for backwards-compatibility with the MessageSet wire
511
- * format. You should not use this for any other reason: It's less
512
- * efficient, has fewer features, and is more complicated.
513
- *
514
- * The message must be defined exactly as follows:
515
- * message Foo {
516
- * option message_set_wire_format = true;
517
- * extensions 4 to max;
518
- * }
519
- * Note that the message cannot have any defined fields; MessageSets only
520
- * have extensions.
521
- *
522
- * All extensions of your type must be singular messages; e.g. they cannot
523
- * be int32s, enums, or repeated messages.
524
- *
525
- * Because this is an option, the above two restrictions are not enforced by
526
- * the protocol compiler.
527
- */
528
- messageSetWireFormat?: boolean | undefined;
529
- /**
530
- * Disables the generation of the standard "descriptor()" accessor, which can
531
- * conflict with a field of the same name. This is meant to make migration
532
- * from proto1 easier; new code should avoid fields named "descriptor".
533
- */
534
- noStandardDescriptorAccessor?: boolean | undefined;
535
- /**
536
- * Is this message deprecated?
537
- * Depending on the target platform, this can emit Deprecated annotations
538
- * for the message, or it will be completely ignored; in the very least,
539
- * this is a formalization for deprecating messages.
540
- */
541
- deprecated?: boolean | undefined;
542
- /**
543
- * Whether the message is an automatically generated map entry type for the
544
- * maps field.
545
- *
546
- * For maps fields:
547
- * map<KeyType, ValueType> map_field = 1;
548
- * The parsed descriptor looks like:
549
- * message MapFieldEntry {
550
- * option map_entry = true;
551
- * optional KeyType key = 1;
552
- * optional ValueType value = 2;
553
- * }
554
- * repeated MapFieldEntry map_field = 1;
555
- *
556
- * Implementations may choose not to generate the map_entry=true message, but
557
- * use a native map in the target language to hold the keys and values.
558
- * The reflection APIs in such implementations still need to work as
559
- * if the field is a repeated message field.
560
- *
561
- * NOTE: Do not set the option in .proto files. Always use the maps syntax
562
- * instead. The option should only be implicitly set by the proto compiler
563
- * parser.
564
- */
565
- mapEntry?: boolean | undefined;
566
- /**
567
- * Enable the legacy handling of JSON field name conflicts. This lowercases
568
- * and strips underscored from the fields before comparison in proto3 only.
569
- * The new behavior takes `json_name` into account and applies to proto2 as
570
- * well.
571
- *
572
- * This should only be used as a temporary measure against broken builds due
573
- * to the change in behavior for JSON field name conflicts.
574
- *
575
- * TODO This is legacy behavior we plan to remove once downstream
576
- * teams have had time to migrate.
577
- *
578
- * @deprecated
579
- */
580
- deprecatedLegacyJsonFieldConflicts?: boolean | undefined;
581
- /** Any features defined in the specific edition. */
582
- features?: FeatureSet | undefined;
583
- /** The parser stores options it doesn't recognize here. See above. */
584
- uninterpretedOption: UninterpretedOption[];
585
- }
586
- export interface FieldOptions {
587
- /**
588
- * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
589
- * The ctype option instructs the C++ code generator to use a different
590
- * representation of the field than it normally would. See the specific
591
- * options below. This option is only implemented to support use of
592
- * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
593
- * type "bytes" in the open source release.
594
- * TODO: make ctype actually deprecated.
595
- */
596
- ctype?: FieldOptions_CType | undefined;
597
- /**
598
- * The packed option can be enabled for repeated primitive fields to enable
599
- * a more efficient representation on the wire. Rather than repeatedly
600
- * writing the tag and type for each element, the entire array is encoded as
601
- * a single length-delimited blob. In proto3, only explicit setting it to
602
- * false will avoid using packed encoding. This option is prohibited in
603
- * Editions, but the `repeated_field_encoding` feature can be used to control
604
- * the behavior.
605
- */
606
- packed?: boolean | undefined;
607
- /**
608
- * The jstype option determines the JavaScript type used for values of the
609
- * field. The option is permitted only for 64 bit integral and fixed types
610
- * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
611
- * is represented as JavaScript string, which avoids loss of precision that
612
- * can happen when a large value is converted to a floating point JavaScript.
613
- * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
614
- * use the JavaScript "number" type. The behavior of the default option
615
- * JS_NORMAL is implementation dependent.
616
- *
617
- * This option is an enum to permit additional types to be added, e.g.
618
- * goog.math.Integer.
619
- */
620
- jstype?: FieldOptions_JSType | undefined;
621
- /**
622
- * Should this field be parsed lazily? Lazy applies only to message-type
623
- * fields. It means that when the outer message is initially parsed, the
624
- * inner message's contents will not be parsed but instead stored in encoded
625
- * form. The inner message will actually be parsed when it is first accessed.
626
- *
627
- * This is only a hint. Implementations are free to choose whether to use
628
- * eager or lazy parsing regardless of the value of this option. However,
629
- * setting this option true suggests that the protocol author believes that
630
- * using lazy parsing on this field is worth the additional bookkeeping
631
- * overhead typically needed to implement it.
632
- *
633
- * This option does not affect the public interface of any generated code;
634
- * all method signatures remain the same. Furthermore, thread-safety of the
635
- * interface is not affected by this option; const methods remain safe to
636
- * call from multiple threads concurrently, while non-const methods continue
637
- * to require exclusive access.
638
- *
639
- * Note that lazy message fields are still eagerly verified to check
640
- * ill-formed wireformat or missing required fields. Calling IsInitialized()
641
- * on the outer message would fail if the inner message has missing required
642
- * fields. Failed verification would result in parsing failure (except when
643
- * uninitialized messages are acceptable).
644
- */
645
- lazy?: boolean | undefined;
646
- /**
647
- * unverified_lazy does no correctness checks on the byte stream. This should
648
- * only be used where lazy with verification is prohibitive for performance
649
- * reasons.
650
- */
651
- unverifiedLazy?: boolean | undefined;
652
- /**
653
- * Is this field deprecated?
654
- * Depending on the target platform, this can emit Deprecated annotations
655
- * for accessors, or it will be completely ignored; in the very least, this
656
- * is a formalization for deprecating fields.
657
- */
658
- deprecated?: boolean | undefined;
659
- /** For Google-internal migration only. Do not use. */
660
- weak?: boolean | undefined;
661
- /**
662
- * Indicate that the field value should not be printed out when using debug
663
- * formats, e.g. when the field contains sensitive credentials.
664
- */
665
- debugRedact?: boolean | undefined;
666
- retention?: FieldOptions_OptionRetention | undefined;
667
- targets: FieldOptions_OptionTargetType[];
668
- editionDefaults: FieldOptions_EditionDefault[];
669
- /** Any features defined in the specific edition. */
670
- features?: FeatureSet | undefined;
671
- featureSupport?: FieldOptions_FeatureSupport | undefined;
672
- /** The parser stores options it doesn't recognize here. See above. */
673
- uninterpretedOption: UninterpretedOption[];
674
- }
675
- export declare enum FieldOptions_CType {
676
- /** STRING - Default mode. */
677
- STRING = 0,
678
- /**
679
- * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
680
- * "bytes". It indicates that in C++, the data should be stored in a Cord
681
- * instead of a string. For very large strings, this may reduce memory
682
- * fragmentation. It may also allow better performance when parsing from a
683
- * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
684
- * alias the original buffer.
685
- */
686
- CORD = 1,
687
- STRING_PIECE = 2,
688
- UNRECOGNIZED = -1
689
- }
690
- export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType;
691
- export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string;
692
- export declare enum FieldOptions_JSType {
693
- /** JS_NORMAL - Use the default type. */
694
- JS_NORMAL = 0,
695
- /** JS_STRING - Use JavaScript strings. */
696
- JS_STRING = 1,
697
- /** JS_NUMBER - Use JavaScript numbers. */
698
- JS_NUMBER = 2,
699
- UNRECOGNIZED = -1
700
- }
701
- export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType;
702
- export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string;
703
- /** If set to RETENTION_SOURCE, the option will be omitted from the binary. */
704
- export declare enum FieldOptions_OptionRetention {
705
- RETENTION_UNKNOWN = 0,
706
- RETENTION_RUNTIME = 1,
707
- RETENTION_SOURCE = 2,
708
- UNRECOGNIZED = -1
709
- }
710
- export declare function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_OptionRetention;
711
- export declare function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRetention): string;
712
- /**
713
- * This indicates the types of entities that the field may apply to when used
714
- * as an option. If it is unset, then the field may be freely used as an
715
- * option on any kind of entity.
716
- */
717
- export declare enum FieldOptions_OptionTargetType {
718
- TARGET_TYPE_UNKNOWN = 0,
719
- TARGET_TYPE_FILE = 1,
720
- TARGET_TYPE_EXTENSION_RANGE = 2,
721
- TARGET_TYPE_MESSAGE = 3,
722
- TARGET_TYPE_FIELD = 4,
723
- TARGET_TYPE_ONEOF = 5,
724
- TARGET_TYPE_ENUM = 6,
725
- TARGET_TYPE_ENUM_ENTRY = 7,
726
- TARGET_TYPE_SERVICE = 8,
727
- TARGET_TYPE_METHOD = 9,
728
- UNRECOGNIZED = -1
729
- }
730
- export declare function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions_OptionTargetType;
731
- export declare function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionTargetType): string;
732
- export interface FieldOptions_EditionDefault {
733
- edition?: Edition | undefined;
734
- /** Textproto value. */
735
- value?: string | undefined;
736
- }
737
- /** Information about the support window of a feature. */
738
- export interface FieldOptions_FeatureSupport {
739
- /**
740
- * The edition that this feature was first available in. In editions
741
- * earlier than this one, the default assigned to EDITION_LEGACY will be
742
- * used, and proto files will not be able to override it.
743
- */
744
- editionIntroduced?: Edition | undefined;
745
- /**
746
- * The edition this feature becomes deprecated in. Using this after this
747
- * edition may trigger warnings.
748
- */
749
- editionDeprecated?: Edition | undefined;
750
- /**
751
- * The deprecation warning text if this feature is used after the edition it
752
- * was marked deprecated in.
753
- */
754
- deprecationWarning?: string | undefined;
755
- /**
756
- * The edition this feature is no longer available in. In editions after
757
- * this one, the last default assigned will be used, and proto files will
758
- * not be able to override it.
759
- */
760
- editionRemoved?: Edition | undefined;
761
- }
762
- export interface OneofOptions {
763
- /** Any features defined in the specific edition. */
764
- features?: FeatureSet | undefined;
765
- /** The parser stores options it doesn't recognize here. See above. */
766
- uninterpretedOption: UninterpretedOption[];
767
- }
768
- export interface EnumOptions {
769
- /**
770
- * Set this option to true to allow mapping different tag names to the same
771
- * value.
772
- */
773
- allowAlias?: boolean | undefined;
774
- /**
775
- * Is this enum deprecated?
776
- * Depending on the target platform, this can emit Deprecated annotations
777
- * for the enum, or it will be completely ignored; in the very least, this
778
- * is a formalization for deprecating enums.
779
- */
780
- deprecated?: boolean | undefined;
781
- /**
782
- * Enable the legacy handling of JSON field name conflicts. This lowercases
783
- * and strips underscored from the fields before comparison in proto3 only.
784
- * The new behavior takes `json_name` into account and applies to proto2 as
785
- * well.
786
- * TODO Remove this legacy behavior once downstream teams have
787
- * had time to migrate.
788
- *
789
- * @deprecated
790
- */
791
- deprecatedLegacyJsonFieldConflicts?: boolean | undefined;
792
- /** Any features defined in the specific edition. */
793
- features?: FeatureSet | undefined;
794
- /** The parser stores options it doesn't recognize here. See above. */
795
- uninterpretedOption: UninterpretedOption[];
796
- }
797
- export interface EnumValueOptions {
798
- /**
799
- * Is this enum value deprecated?
800
- * Depending on the target platform, this can emit Deprecated annotations
801
- * for the enum value, or it will be completely ignored; in the very least,
802
- * this is a formalization for deprecating enum values.
803
- */
804
- deprecated?: boolean | undefined;
805
- /** Any features defined in the specific edition. */
806
- features?: FeatureSet | undefined;
807
- /**
808
- * Indicate that fields annotated with this enum value should not be printed
809
- * out when using debug formats, e.g. when the field contains sensitive
810
- * credentials.
811
- */
812
- debugRedact?: boolean | undefined;
813
- /** Information about the support window of a feature value. */
814
- featureSupport?: FieldOptions_FeatureSupport | undefined;
815
- /** The parser stores options it doesn't recognize here. See above. */
816
- uninterpretedOption: UninterpretedOption[];
817
- }
818
- export interface ServiceOptions {
819
- /** Any features defined in the specific edition. */
820
- features?: FeatureSet | undefined;
821
- /**
822
- * Is this service deprecated?
823
- * Depending on the target platform, this can emit Deprecated annotations
824
- * for the service, or it will be completely ignored; in the very least,
825
- * this is a formalization for deprecating services.
826
- */
827
- deprecated?: boolean | undefined;
828
- /** The parser stores options it doesn't recognize here. See above. */
829
- uninterpretedOption: UninterpretedOption[];
830
- }
831
- export interface MethodOptions {
832
- /**
833
- * Is this method deprecated?
834
- * Depending on the target platform, this can emit Deprecated annotations
835
- * for the method, or it will be completely ignored; in the very least,
836
- * this is a formalization for deprecating methods.
837
- */
838
- deprecated?: boolean | undefined;
839
- idempotencyLevel?: MethodOptions_IdempotencyLevel | undefined;
840
- /** Any features defined in the specific edition. */
841
- features?: FeatureSet | undefined;
842
- /** The parser stores options it doesn't recognize here. See above. */
843
- uninterpretedOption: UninterpretedOption[];
844
- }
845
- /**
846
- * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
847
- * or neither? HTTP based RPC implementation may choose GET verb for safe
848
- * methods, and PUT verb for idempotent methods instead of the default POST.
849
- */
850
- export declare enum MethodOptions_IdempotencyLevel {
851
- IDEMPOTENCY_UNKNOWN = 0,
852
- /** NO_SIDE_EFFECTS - implies idempotent */
853
- NO_SIDE_EFFECTS = 1,
854
- /** IDEMPOTENT - idempotent, but may have side effects */
855
- IDEMPOTENT = 2,
856
- UNRECOGNIZED = -1
857
- }
858
- export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel;
859
- export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string;
860
- /**
861
- * A message representing a option the parser does not recognize. This only
862
- * appears in options protos created by the compiler::Parser class.
863
- * DescriptorPool resolves these when building Descriptor objects. Therefore,
864
- * options protos in descriptor objects (e.g. returned by Descriptor::options(),
865
- * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
866
- * in them.
867
- */
868
- export interface UninterpretedOption {
869
- name: UninterpretedOption_NamePart[];
870
- /**
871
- * The value of the uninterpreted option, in whatever type the tokenizer
872
- * identified it as during parsing. Exactly one of these should be set.
873
- */
874
- identifierValue?: string | undefined;
875
- positiveIntValue?: number | undefined;
876
- negativeIntValue?: number | undefined;
877
- doubleValue?: number | undefined;
878
- stringValue?: Uint8Array | undefined;
879
- aggregateValue?: string | undefined;
880
- }
881
- /**
882
- * The name of the uninterpreted option. Each string represents a segment in
883
- * a dot-separated name. is_extension is true iff a segment represents an
884
- * extension (denoted with parentheses in options specs in .proto files).
885
- * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
886
- * "foo.(bar.baz).moo".
887
- */
888
- export interface UninterpretedOption_NamePart {
889
- namePart: string;
890
- isExtension: boolean;
891
- }
892
- /**
893
- * TODO Enums in C++ gencode (and potentially other languages) are
894
- * not well scoped. This means that each of the feature enums below can clash
895
- * with each other. The short names we've chosen maximize call-site
896
- * readability, but leave us very open to this scenario. A future feature will
897
- * be designed and implemented to handle this, hopefully before we ever hit a
898
- * conflict here.
899
- */
900
- export interface FeatureSet {
901
- fieldPresence?: FeatureSet_FieldPresence | undefined;
902
- enumType?: FeatureSet_EnumType | undefined;
903
- repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding | undefined;
904
- utf8Validation?: FeatureSet_Utf8Validation | undefined;
905
- messageEncoding?: FeatureSet_MessageEncoding | undefined;
906
- jsonFormat?: FeatureSet_JsonFormat | undefined;
907
- }
908
- export declare enum FeatureSet_FieldPresence {
909
- FIELD_PRESENCE_UNKNOWN = 0,
910
- EXPLICIT = 1,
911
- IMPLICIT = 2,
912
- LEGACY_REQUIRED = 3,
913
- UNRECOGNIZED = -1
914
- }
915
- export declare function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence;
916
- export declare function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string;
917
- export declare enum FeatureSet_EnumType {
918
- ENUM_TYPE_UNKNOWN = 0,
919
- OPEN = 1,
920
- CLOSED = 2,
921
- UNRECOGNIZED = -1
922
- }
923
- export declare function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType;
924
- export declare function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string;
925
- export declare enum FeatureSet_RepeatedFieldEncoding {
926
- REPEATED_FIELD_ENCODING_UNKNOWN = 0,
927
- PACKED = 1,
928
- EXPANDED = 2,
929
- UNRECOGNIZED = -1
930
- }
931
- export declare function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding;
932
- export declare function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string;
933
- export declare enum FeatureSet_Utf8Validation {
934
- UTF8_VALIDATION_UNKNOWN = 0,
935
- VERIFY = 2,
936
- NONE = 3,
937
- UNRECOGNIZED = -1
938
- }
939
- export declare function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation;
940
- export declare function featureSet_Utf8ValidationToJSON(object: FeatureSet_Utf8Validation): string;
941
- export declare enum FeatureSet_MessageEncoding {
942
- MESSAGE_ENCODING_UNKNOWN = 0,
943
- LENGTH_PREFIXED = 1,
944
- DELIMITED = 2,
945
- UNRECOGNIZED = -1
946
- }
947
- export declare function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding;
948
- export declare function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string;
949
- export declare enum FeatureSet_JsonFormat {
950
- JSON_FORMAT_UNKNOWN = 0,
951
- ALLOW = 1,
952
- LEGACY_BEST_EFFORT = 2,
953
- UNRECOGNIZED = -1
954
- }
955
- export declare function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat;
956
- export declare function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string;
957
- /**
958
- * A compiled specification for the defaults of a set of features. These
959
- * messages are generated from FeatureSet extensions and can be used to seed
960
- * feature resolution. The resolution with this object becomes a simple search
961
- * for the closest matching edition, followed by proto merges.
962
- */
963
- export interface FeatureSetDefaults {
964
- defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
965
- /**
966
- * The minimum supported edition (inclusive) when this was constructed.
967
- * Editions before this will not have defaults.
968
- */
969
- minimumEdition?: Edition | undefined;
970
- /**
971
- * The maximum known edition (inclusive) when this was constructed. Editions
972
- * after this will not have reliable defaults.
973
- */
974
- maximumEdition?: Edition | undefined;
975
- }
976
- /**
977
- * A map from every known edition with a unique set of defaults to its
978
- * defaults. Not all editions may be contained here. For a given edition,
979
- * the defaults at the closest matching edition ordered at or before it should
980
- * be used. This field must be in strict ascending order by edition.
981
- */
982
- export interface FeatureSetDefaults_FeatureSetEditionDefault {
983
- edition?: Edition | undefined;
984
- /** Defaults of features that can be overridden in this edition. */
985
- overridableFeatures?: FeatureSet | undefined;
986
- /** Defaults of features that can't be overridden in this edition. */
987
- fixedFeatures?: FeatureSet | undefined;
988
- }
989
- /**
990
- * Encapsulates information about the original source file from which a
991
- * FileDescriptorProto was generated.
992
- */
993
- export interface SourceCodeInfo {
994
- /**
995
- * A Location identifies a piece of source code in a .proto file which
996
- * corresponds to a particular definition. This information is intended
997
- * to be useful to IDEs, code indexers, documentation generators, and similar
998
- * tools.
999
- *
1000
- * For example, say we have a file like:
1001
- * message Foo {
1002
- * optional string foo = 1;
1003
- * }
1004
- * Let's look at just the field definition:
1005
- * optional string foo = 1;
1006
- * ^ ^^ ^^ ^ ^^^
1007
- * a bc de f ghi
1008
- * We have the following locations:
1009
- * span path represents
1010
- * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1011
- * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1012
- * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1013
- * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1014
- * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1015
- *
1016
- * Notes:
1017
- * - A location may refer to a repeated field itself (i.e. not to any
1018
- * particular index within it). This is used whenever a set of elements are
1019
- * logically enclosed in a single code segment. For example, an entire
1020
- * extend block (possibly containing multiple extension definitions) will
1021
- * have an outer location whose path refers to the "extensions" repeated
1022
- * field without an index.
1023
- * - Multiple locations may have the same path. This happens when a single
1024
- * logical declaration is spread out across multiple places. The most
1025
- * obvious example is the "extend" block again -- there may be multiple
1026
- * extend blocks in the same scope, each of which will have the same path.
1027
- * - A location's span is not always a subset of its parent's span. For
1028
- * example, the "extendee" of an extension declaration appears at the
1029
- * beginning of the "extend" block and is shared by all extensions within
1030
- * the block.
1031
- * - Just because a location's span is a subset of some other location's span
1032
- * does not mean that it is a descendant. For example, a "group" defines
1033
- * both a type and a field in a single declaration. Thus, the locations
1034
- * corresponding to the type and field and their components will overlap.
1035
- * - Code which tries to interpret locations should probably be designed to
1036
- * ignore those that it doesn't understand, as more types of locations could
1037
- * be recorded in the future.
1038
- */
1039
- location: SourceCodeInfo_Location[];
1040
- }
1041
- export interface SourceCodeInfo_Location {
1042
- /**
1043
- * Identifies which part of the FileDescriptorProto was defined at this
1044
- * location.
1045
- *
1046
- * Each element is a field number or an index. They form a path from
1047
- * the root FileDescriptorProto to the place where the definition appears.
1048
- * For example, this path:
1049
- * [ 4, 3, 2, 7, 1 ]
1050
- * refers to:
1051
- * file.message_type(3) // 4, 3
1052
- * .field(7) // 2, 7
1053
- * .name() // 1
1054
- * This is because FileDescriptorProto.message_type has field number 4:
1055
- * repeated DescriptorProto message_type = 4;
1056
- * and DescriptorProto.field has field number 2:
1057
- * repeated FieldDescriptorProto field = 2;
1058
- * and FieldDescriptorProto.name has field number 1:
1059
- * optional string name = 1;
1060
- *
1061
- * Thus, the above path gives the location of a field name. If we removed
1062
- * the last element:
1063
- * [ 4, 3, 2, 7 ]
1064
- * this path refers to the whole field declaration (from the beginning
1065
- * of the label to the terminating semicolon).
1066
- */
1067
- path: number[];
1068
- /**
1069
- * Always has exactly three or four elements: start line, start column,
1070
- * end line (optional, otherwise assumed same as start line), end column.
1071
- * These are packed into a single field for efficiency. Note that line
1072
- * and column numbers are zero-based -- typically you will want to add
1073
- * 1 to each before displaying to a user.
1074
- */
1075
- span: number[];
1076
- /**
1077
- * If this SourceCodeInfo represents a complete declaration, these are any
1078
- * comments appearing before and after the declaration which appear to be
1079
- * attached to the declaration.
1080
- *
1081
- * A series of line comments appearing on consecutive lines, with no other
1082
- * tokens appearing on those lines, will be treated as a single comment.
1083
- *
1084
- * leading_detached_comments will keep paragraphs of comments that appear
1085
- * before (but not connected to) the current element. Each paragraph,
1086
- * separated by empty lines, will be one comment element in the repeated
1087
- * field.
1088
- *
1089
- * Only the comment content is provided; comment markers (e.g. //) are
1090
- * stripped out. For block comments, leading whitespace and an asterisk
1091
- * will be stripped from the beginning of each line other than the first.
1092
- * Newlines are included in the output.
1093
- *
1094
- * Examples:
1095
- *
1096
- * optional int32 foo = 1; // Comment attached to foo.
1097
- * // Comment attached to bar.
1098
- * optional int32 bar = 2;
1099
- *
1100
- * optional string baz = 3;
1101
- * // Comment attached to baz.
1102
- * // Another line attached to baz.
1103
- *
1104
- * // Comment attached to moo.
1105
- * //
1106
- * // Another line attached to moo.
1107
- * optional double moo = 4;
1108
- *
1109
- * // Detached comment for corge. This is not leading or trailing comments
1110
- * // to moo or corge because there are blank lines separating it from
1111
- * // both.
1112
- *
1113
- * // Detached comment for corge paragraph 2.
1114
- *
1115
- * optional string corge = 5;
1116
- * /* Block comment attached
1117
- * * to corge. Leading asterisks
1118
- * * will be removed. * /
1119
- * /* Block comment attached to
1120
- * * grault. * /
1121
- * optional int32 grault = 6;
1122
- *
1123
- * // ignored detached comments.
1124
- */
1125
- leadingComments?: string | undefined;
1126
- trailingComments?: string | undefined;
1127
- leadingDetachedComments: string[];
1128
- }
1129
- /**
1130
- * Describes the relationship between generated code and its original source
1131
- * file. A GeneratedCodeInfo message is associated with only one generated
1132
- * source file, but may contain references to different source .proto files.
1133
- */
1134
- export interface GeneratedCodeInfo {
1135
- /**
1136
- * An Annotation connects some span of text in generated code to an element
1137
- * of its generating .proto file.
1138
- */
1139
- annotation: GeneratedCodeInfo_Annotation[];
1140
- }
1141
- export interface GeneratedCodeInfo_Annotation {
1142
- /**
1143
- * Identifies the element in the original source .proto file. This field
1144
- * is formatted the same as SourceCodeInfo.Location.path.
1145
- */
1146
- path: number[];
1147
- /** Identifies the filesystem path to the original source .proto. */
1148
- sourceFile?: string | undefined;
1149
- /**
1150
- * Identifies the starting offset in bytes in the generated code
1151
- * that relates to the identified object.
1152
- */
1153
- begin?: number | undefined;
1154
- /**
1155
- * Identifies the ending offset in bytes in the generated code that
1156
- * relates to the identified object. The end offset should be one past
1157
- * the last relevant byte (so the length of the text = end - begin).
1158
- */
1159
- end?: number | undefined;
1160
- semantic?: GeneratedCodeInfo_Annotation_Semantic | undefined;
1161
- }
1162
- /**
1163
- * Represents the identified object's effect on the element in the original
1164
- * .proto file.
1165
- */
1166
- export declare enum GeneratedCodeInfo_Annotation_Semantic {
1167
- /** NONE - There is no effect or the effect is indescribable. */
1168
- NONE = 0,
1169
- /** SET - The element is set or otherwise mutated. */
1170
- SET = 1,
1171
- /** ALIAS - An alias to the element is returned. */
1172
- ALIAS = 2,
1173
- UNRECOGNIZED = -1
1174
- }
1175
- export declare function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): GeneratedCodeInfo_Annotation_Semantic;
1176
- export declare function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCodeInfo_Annotation_Semantic): string;
1177
- export declare const FileDescriptorSet: MessageFns<FileDescriptorSet>;
1178
- export declare const FileDescriptorProto: MessageFns<FileDescriptorProto>;
1179
- export declare const DescriptorProto: MessageFns<DescriptorProto>;
1180
- export declare const DescriptorProto_ExtensionRange: MessageFns<DescriptorProto_ExtensionRange>;
1181
- export declare const DescriptorProto_ReservedRange: MessageFns<DescriptorProto_ReservedRange>;
1182
- export declare const ExtensionRangeOptions: MessageFns<ExtensionRangeOptions>;
1183
- export declare const ExtensionRangeOptions_Declaration: MessageFns<ExtensionRangeOptions_Declaration>;
1184
- export declare const FieldDescriptorProto: MessageFns<FieldDescriptorProto>;
1185
- export declare const OneofDescriptorProto: MessageFns<OneofDescriptorProto>;
1186
- export declare const EnumDescriptorProto: MessageFns<EnumDescriptorProto>;
1187
- export declare const EnumDescriptorProto_EnumReservedRange: MessageFns<EnumDescriptorProto_EnumReservedRange>;
1188
- export declare const EnumValueDescriptorProto: MessageFns<EnumValueDescriptorProto>;
1189
- export declare const ServiceDescriptorProto: MessageFns<ServiceDescriptorProto>;
1190
- export declare const MethodDescriptorProto: MessageFns<MethodDescriptorProto>;
1191
- export declare const FileOptions: MessageFns<FileOptions>;
1192
- export declare const MessageOptions: MessageFns<MessageOptions>;
1193
- export declare const FieldOptions: MessageFns<FieldOptions>;
1194
- export declare const FieldOptions_EditionDefault: MessageFns<FieldOptions_EditionDefault>;
1195
- export declare const FieldOptions_FeatureSupport: MessageFns<FieldOptions_FeatureSupport>;
1196
- export declare const OneofOptions: MessageFns<OneofOptions>;
1197
- export declare const EnumOptions: MessageFns<EnumOptions>;
1198
- export declare const EnumValueOptions: MessageFns<EnumValueOptions>;
1199
- export declare const ServiceOptions: MessageFns<ServiceOptions>;
1200
- export declare const MethodOptions: MessageFns<MethodOptions>;
1201
- export declare const UninterpretedOption: MessageFns<UninterpretedOption>;
1202
- export declare const UninterpretedOption_NamePart: MessageFns<UninterpretedOption_NamePart>;
1203
- export declare const FeatureSet: MessageFns<FeatureSet>;
1204
- export declare const FeatureSetDefaults: MessageFns<FeatureSetDefaults>;
1205
- export declare const FeatureSetDefaults_FeatureSetEditionDefault: MessageFns<FeatureSetDefaults_FeatureSetEditionDefault>;
1206
- export declare const SourceCodeInfo: MessageFns<SourceCodeInfo>;
1207
- export declare const SourceCodeInfo_Location: MessageFns<SourceCodeInfo_Location>;
1208
- export declare const GeneratedCodeInfo: MessageFns<GeneratedCodeInfo>;
1209
- export declare const GeneratedCodeInfo_Annotation: MessageFns<GeneratedCodeInfo_Annotation>;
1210
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1211
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
1212
- [K in keyof T]?: DeepPartial<T[K]>;
1213
- } : Partial<T>;
1214
- type KeysOfUnion<T> = T extends T ? keyof T : never;
1215
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
1216
- [K in keyof P]: Exact<P[K], I[K]>;
1217
- } & {
1218
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
1219
- };
1220
- export interface MessageFns<T> {
1221
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
1222
- decode(input: BinaryReader | Uint8Array, length?: number): T;
1223
- fromJSON(object: any): T;
1224
- toJSON(message: T): unknown;
1225
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
1226
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
1227
- }
1228
- export {};