@mysten/sui 1.41.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/grpc/client.d.ts +7 -7
  3. package/dist/cjs/grpc/client.js +7 -7
  4. package/dist/cjs/grpc/client.js.map +2 -2
  5. package/dist/cjs/grpc/core.d.ts +1 -1
  6. package/dist/cjs/grpc/core.js +14 -19
  7. package/dist/cjs/grpc/core.js.map +2 -2
  8. package/dist/cjs/grpc/proto/google/protobuf/any.d.ts +6 -6
  9. package/dist/cjs/grpc/proto/google/protobuf/any.js +20 -20
  10. package/dist/cjs/grpc/proto/google/protobuf/any.js.map +2 -2
  11. package/dist/cjs/grpc/proto/google/protobuf/duration.d.ts +4 -4
  12. package/dist/cjs/grpc/proto/google/protobuf/duration.js +12 -8
  13. package/dist/cjs/grpc/proto/google/protobuf/duration.js.map +2 -2
  14. package/dist/cjs/grpc/proto/google/protobuf/empty.d.ts +1 -1
  15. package/dist/cjs/grpc/proto/google/protobuf/empty.js.map +2 -2
  16. package/dist/cjs/grpc/proto/google/protobuf/field_mask.d.ts +4 -4
  17. package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +7 -8
  18. package/dist/cjs/grpc/proto/google/protobuf/field_mask.js.map +2 -2
  19. package/dist/cjs/grpc/proto/google/protobuf/struct.d.ts +10 -10
  20. package/dist/cjs/grpc/proto/google/protobuf/struct.js +17 -29
  21. package/dist/cjs/grpc/proto/google/protobuf/struct.js.map +2 -2
  22. package/dist/cjs/grpc/proto/google/protobuf/timestamp.d.ts +4 -4
  23. package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +18 -21
  24. package/dist/cjs/grpc/proto/google/protobuf/timestamp.js.map +2 -2
  25. package/dist/cjs/grpc/proto/google/rpc/error_details.d.ts +2 -2
  26. package/dist/cjs/grpc/proto/google/rpc/error_details.js +11 -40
  27. package/dist/cjs/grpc/proto/google/rpc/error_details.js.map +2 -2
  28. package/dist/cjs/grpc/proto/google/rpc/status.d.ts +2 -2
  29. package/dist/cjs/grpc/proto/google/rpc/status.js +1 -1
  30. package/dist/cjs/grpc/proto/google/rpc/status.js.map +2 -2
  31. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/argument.d.ts +5 -5
  32. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/argument.js +2 -8
  33. package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js.map +7 -0
  34. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/balance_change.d.ts +3 -3
  35. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/balance_change.js +1 -1
  36. package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.js.map +7 -0
  37. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/bcs.d.ts +3 -3
  38. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/bcs.js +1 -1
  39. package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.js.map +7 -0
  40. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.d.ts +68 -0
  41. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/checkpoint.js +9 -12
  42. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js.map +7 -0
  43. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/checkpoint_contents.d.ts +10 -10
  44. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/checkpoint_contents.js +6 -18
  45. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js.map +7 -0
  46. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/checkpoint_summary.d.ts +19 -19
  47. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/checkpoint_summary.js +16 -38
  48. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js.map +7 -0
  49. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/effects.d.ts +33 -28
  50. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/effects.js +23 -61
  51. package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js.map +7 -0
  52. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/epoch.d.ts +10 -10
  53. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/epoch.js +9 -5
  54. package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js.map +7 -0
  55. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/error_reason.d.ts +1 -1
  56. package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.js.map +7 -0
  57. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/event.d.ts +10 -10
  58. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/event.js +4 -4
  59. package/dist/cjs/grpc/proto/sui/rpc/v2/event.js.map +7 -0
  60. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/executed_transaction.d.ts +19 -24
  61. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/executed_transaction.js +12 -36
  62. package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js.map +7 -0
  63. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/execution_status.d.ts +56 -56
  64. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/execution_status.js +29 -87
  65. package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js.map +7 -0
  66. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/gas_cost_summary.d.ts +3 -3
  67. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/gas_cost_summary.js +5 -1
  68. package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js.map +7 -0
  69. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/input.d.ts +6 -6
  70. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/input.js +4 -9
  71. package/dist/cjs/grpc/proto/sui/rpc/v2/input.js.map +7 -0
  72. package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.d.ts +70 -0
  73. package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.js +88 -0
  74. package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.js.map +7 -0
  75. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +95 -0
  76. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/ledger_service.client.js +15 -57
  77. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js.map +7 -0
  78. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/ledger_service.d.ts +58 -58
  79. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/ledger_service.js +37 -58
  80. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js.map +7 -0
  81. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/move_package.d.ts +49 -49
  82. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package.js +31 -140
  83. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js.map +7 -0
  84. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +61 -0
  85. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package_service.client.js +9 -33
  86. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js.map +7 -0
  87. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package_service.d.ts +28 -28
  88. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package_service.js +16 -26
  89. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js.map +7 -0
  90. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.client.d.ts +14 -14
  91. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.client.js +5 -17
  92. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.js.map +7 -0
  93. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.d.ts +17 -17
  94. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.js +13 -24
  95. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.js.map +7 -0
  96. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/object.d.ts +31 -11
  97. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/object.js +19 -6
  98. package/dist/cjs/grpc/proto/sui/rpc/v2/object.js.map +7 -0
  99. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/object_reference.d.ts +3 -3
  100. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/object_reference.js +2 -1
  101. package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js.map +7 -0
  102. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/owner.d.ts +5 -5
  103. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/owner.js +3 -8
  104. package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js.map +7 -0
  105. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/protocol_config.d.ts +3 -3
  106. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/protocol_config.js +12 -23
  107. package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js.map +7 -0
  108. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/signature.d.ts +85 -72
  109. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/signature.js +44 -95
  110. package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js.map +7 -0
  111. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/signature_scheme.d.ts +1 -1
  112. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.js.map +7 -0
  113. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_verification_service.client.d.ts +10 -10
  114. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_verification_service.client.js +3 -9
  115. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js.map +7 -0
  116. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/signature_verification_service.d.ts +14 -14
  117. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_verification_service.js +8 -9
  118. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js.map +7 -0
  119. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.d.ts +71 -0
  120. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js +69 -0
  121. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js.map +7 -0
  122. package/dist/{esm/grpc/proto/sui/rpc/v2beta2/live_data_service.d.ts → cjs/grpc/proto/sui/rpc/v2/state_service.d.ts} +70 -188
  123. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2/live_data_service.js → v2/state_service.js} +43 -195
  124. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js.map +7 -0
  125. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/subscription_service.client.d.ts +12 -12
  126. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/subscription_service.client.js +4 -10
  127. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js.map +7 -0
  128. package/dist/{esm/grpc/proto/sui/rpc/v2beta2 → cjs/grpc/proto/sui/rpc/v2}/subscription_service.d.ts +11 -11
  129. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/subscription_service.js +7 -12
  130. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js.map +7 -0
  131. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/system_state.d.ts +39 -39
  132. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/system_state.js +68 -35
  133. package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js.map +7 -0
  134. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/transaction.d.ts +308 -288
  135. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/transaction.js +144 -339
  136. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js.map +7 -0
  137. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +41 -0
  138. package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/transaction_execution_service.client.js +10 -12
  139. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js.map +7 -0
  140. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +184 -0
  141. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js +113 -0
  142. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js.map +7 -0
  143. package/dist/cjs/version.d.ts +1 -1
  144. package/dist/cjs/version.js +1 -1
  145. package/dist/cjs/version.js.map +1 -1
  146. package/dist/esm/grpc/client.d.ts +7 -7
  147. package/dist/esm/grpc/client.js +7 -7
  148. package/dist/esm/grpc/client.js.map +2 -2
  149. package/dist/esm/grpc/core.d.ts +1 -1
  150. package/dist/esm/grpc/core.js +14 -19
  151. package/dist/esm/grpc/core.js.map +2 -2
  152. package/dist/esm/grpc/proto/google/protobuf/any.d.ts +6 -6
  153. package/dist/esm/grpc/proto/google/protobuf/any.js +20 -20
  154. package/dist/esm/grpc/proto/google/protobuf/any.js.map +2 -2
  155. package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +4 -4
  156. package/dist/esm/grpc/proto/google/protobuf/duration.js +12 -8
  157. package/dist/esm/grpc/proto/google/protobuf/duration.js.map +2 -2
  158. package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +1 -1
  159. package/dist/esm/grpc/proto/google/protobuf/empty.js.map +2 -2
  160. package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +4 -4
  161. package/dist/esm/grpc/proto/google/protobuf/field_mask.js +7 -8
  162. package/dist/esm/grpc/proto/google/protobuf/field_mask.js.map +2 -2
  163. package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +10 -10
  164. package/dist/esm/grpc/proto/google/protobuf/struct.js +17 -29
  165. package/dist/esm/grpc/proto/google/protobuf/struct.js.map +2 -2
  166. package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +4 -4
  167. package/dist/esm/grpc/proto/google/protobuf/timestamp.js +18 -21
  168. package/dist/esm/grpc/proto/google/protobuf/timestamp.js.map +2 -2
  169. package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +2 -2
  170. package/dist/esm/grpc/proto/google/rpc/error_details.js +11 -40
  171. package/dist/esm/grpc/proto/google/rpc/error_details.js.map +2 -2
  172. package/dist/esm/grpc/proto/google/rpc/status.d.ts +2 -2
  173. package/dist/esm/grpc/proto/google/rpc/status.js +1 -1
  174. package/dist/esm/grpc/proto/google/rpc/status.js.map +2 -2
  175. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/argument.d.ts +5 -5
  176. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/argument.js +2 -8
  177. package/dist/esm/grpc/proto/sui/rpc/v2/argument.js.map +7 -0
  178. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/balance_change.d.ts +3 -3
  179. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/balance_change.js +1 -1
  180. package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js.map +7 -0
  181. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/bcs.d.ts +3 -3
  182. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/bcs.js +1 -1
  183. package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js.map +7 -0
  184. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.d.ts +68 -0
  185. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/checkpoint.js +9 -12
  186. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js.map +7 -0
  187. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/checkpoint_contents.d.ts +10 -10
  188. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/checkpoint_contents.js +6 -18
  189. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js.map +7 -0
  190. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/checkpoint_summary.d.ts +19 -19
  191. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/checkpoint_summary.js +16 -38
  192. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js.map +7 -0
  193. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/effects.d.ts +33 -28
  194. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/effects.js +23 -61
  195. package/dist/esm/grpc/proto/sui/rpc/v2/effects.js.map +7 -0
  196. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/epoch.d.ts +10 -10
  197. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/epoch.js +9 -5
  198. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js.map +7 -0
  199. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/error_reason.d.ts +1 -1
  200. package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js.map +7 -0
  201. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/event.d.ts +10 -10
  202. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/event.js +4 -4
  203. package/dist/esm/grpc/proto/sui/rpc/v2/event.js.map +7 -0
  204. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/executed_transaction.d.ts +19 -24
  205. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +43 -0
  206. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js.map +7 -0
  207. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/execution_status.d.ts +56 -56
  208. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/execution_status.js +29 -87
  209. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js.map +7 -0
  210. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/gas_cost_summary.d.ts +3 -3
  211. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/gas_cost_summary.js +5 -1
  212. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js.map +7 -0
  213. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/input.d.ts +6 -6
  214. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/input.js +4 -9
  215. package/dist/esm/grpc/proto/sui/rpc/v2/input.js.map +7 -0
  216. package/dist/esm/grpc/proto/sui/rpc/v2/jwk.d.ts +70 -0
  217. package/dist/esm/grpc/proto/sui/rpc/v2/jwk.js +68 -0
  218. package/dist/esm/grpc/proto/sui/rpc/v2/jwk.js.map +7 -0
  219. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +95 -0
  220. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +65 -0
  221. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js.map +7 -0
  222. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/ledger_service.d.ts +58 -58
  223. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/ledger_service.js +37 -58
  224. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js.map +7 -0
  225. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/move_package.d.ts +49 -49
  226. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package.js +31 -140
  227. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js.map +7 -0
  228. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +61 -0
  229. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package_service.client.js +9 -33
  230. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js.map +7 -0
  231. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package_service.d.ts +28 -28
  232. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/move_package_service.js +16 -26
  233. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js.map +7 -0
  234. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.client.d.ts +14 -14
  235. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.client.js +5 -17
  236. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js.map +7 -0
  237. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.d.ts +17 -17
  238. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/name_service.js +13 -24
  239. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js.map +7 -0
  240. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/object.d.ts +31 -11
  241. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/object.js +19 -6
  242. package/dist/esm/grpc/proto/sui/rpc/v2/object.js.map +7 -0
  243. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/object_reference.d.ts +3 -3
  244. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/object_reference.js +2 -1
  245. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js.map +7 -0
  246. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/owner.d.ts +5 -5
  247. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/owner.js +3 -8
  248. package/dist/esm/grpc/proto/sui/rpc/v2/owner.js.map +7 -0
  249. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/protocol_config.d.ts +3 -3
  250. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +31 -0
  251. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js.map +7 -0
  252. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/signature.d.ts +85 -72
  253. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/signature.js +44 -95
  254. package/dist/esm/grpc/proto/sui/rpc/v2/signature.js.map +7 -0
  255. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/signature_scheme.d.ts +1 -1
  256. package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js.map +7 -0
  257. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_verification_service.client.d.ts +10 -10
  258. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_verification_service.client.js +3 -9
  259. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js.map +7 -0
  260. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/signature_verification_service.d.ts +14 -14
  261. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_verification_service.js +8 -9
  262. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js.map +7 -0
  263. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.d.ts +71 -0
  264. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +49 -0
  265. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js.map +7 -0
  266. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2/live_data_service.d.ts → esm/grpc/proto/sui/rpc/v2/state_service.d.ts} +70 -188
  267. package/dist/esm/grpc/proto/sui/rpc/{v2beta2/live_data_service.js → v2/state_service.js} +40 -192
  268. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js.map +7 -0
  269. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/subscription_service.client.d.ts +12 -12
  270. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/subscription_service.client.js +4 -10
  271. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js.map +7 -0
  272. package/dist/{cjs/grpc/proto/sui/rpc/v2beta2 → esm/grpc/proto/sui/rpc/v2}/subscription_service.d.ts +11 -11
  273. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/subscription_service.js +7 -12
  274. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js.map +7 -0
  275. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/system_state.d.ts +39 -39
  276. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/system_state.js +68 -35
  277. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js.map +7 -0
  278. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/transaction.d.ts +308 -288
  279. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/transaction.js +142 -337
  280. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js.map +7 -0
  281. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +41 -0
  282. package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/transaction_execution_service.client.js +10 -12
  283. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js.map +7 -0
  284. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +184 -0
  285. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +93 -0
  286. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js.map +7 -0
  287. package/dist/esm/version.d.ts +1 -1
  288. package/dist/esm/version.js +1 -1
  289. package/dist/esm/version.js.map +1 -1
  290. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  291. package/dist/tsconfig.tsbuildinfo +1 -1
  292. package/package.json +2 -2
  293. package/src/grpc/client.ts +8 -8
  294. package/src/grpc/core.ts +20 -26
  295. package/src/grpc/proto/google/protobuf/any.ts +144 -159
  296. package/src/grpc/proto/google/protobuf/duration.ts +74 -77
  297. package/src/grpc/proto/google/protobuf/empty.ts +6 -5
  298. package/src/grpc/proto/google/protobuf/field_mask.ts +47 -59
  299. package/src/grpc/proto/google/protobuf/struct.ts +201 -223
  300. package/src/grpc/proto/google/protobuf/timestamp.ts +100 -121
  301. package/src/grpc/proto/google/rpc/error_details.ts +352 -388
  302. package/src/grpc/proto/google/rpc/status.ts +32 -32
  303. package/src/grpc/proto/sui/rpc/v2/argument.ts +84 -0
  304. package/src/grpc/proto/sui/rpc/v2/balance_change.ts +51 -0
  305. package/src/grpc/proto/sui/rpc/v2/bcs.ts +46 -0
  306. package/src/grpc/proto/sui/rpc/v2/checkpoint.ts +89 -0
  307. package/src/grpc/proto/sui/rpc/v2/checkpoint_contents.ts +99 -0
  308. package/src/grpc/proto/sui/rpc/v2/checkpoint_summary.ts +234 -0
  309. package/src/grpc/proto/sui/rpc/v2/effects.ts +391 -0
  310. package/src/grpc/proto/sui/rpc/v2/epoch.ts +85 -0
  311. package/src/grpc/proto/sui/rpc/v2/error_reason.ts +28 -0
  312. package/src/grpc/proto/sui/rpc/v2/event.ts +115 -0
  313. package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +103 -0
  314. package/src/grpc/proto/sui/rpc/v2/execution_status.ts +946 -0
  315. package/src/grpc/proto/sui/rpc/v2/gas_cost_summary.ts +59 -0
  316. package/src/grpc/proto/sui/rpc/v2/input.ts +119 -0
  317. package/src/grpc/proto/sui/rpc/v2/jwk.ts +94 -0
  318. package/src/grpc/proto/sui/rpc/v2/ledger_service.client.ts +127 -0
  319. package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +533 -0
  320. package/src/grpc/proto/sui/rpc/v2/move_package.ts +678 -0
  321. package/src/grpc/proto/sui/rpc/v2/move_package_service.client.ts +84 -0
  322. package/src/grpc/proto/sui/rpc/v2/move_package_service.ts +297 -0
  323. package/src/grpc/proto/sui/rpc/v2/name_service.client.ts +58 -0
  324. package/src/grpc/proto/sui/rpc/v2/name_service.ts +187 -0
  325. package/src/grpc/proto/sui/rpc/v2/object.ts +159 -0
  326. package/src/grpc/proto/sui/rpc/v2/object_reference.ts +51 -0
  327. package/src/grpc/proto/sui/rpc/v2/owner.ts +78 -0
  328. package/src/grpc/proto/sui/rpc/v2/protocol_config.ts +47 -0
  329. package/src/grpc/proto/sui/rpc/v2/signature.ts +771 -0
  330. package/src/grpc/proto/sui/rpc/v2/signature_scheme.ts +51 -0
  331. package/src/grpc/proto/sui/rpc/v2/signature_verification_service.client.ts +49 -0
  332. package/src/grpc/proto/sui/rpc/v2/signature_verification_service.ts +105 -0
  333. package/src/grpc/proto/sui/rpc/v2/state_service.client.ts +97 -0
  334. package/src/grpc/proto/sui/rpc/v2/state_service.ts +820 -0
  335. package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +69 -0
  336. package/src/grpc/proto/sui/rpc/v2/subscription_service.ts +80 -0
  337. package/src/grpc/proto/sui/rpc/v2/system_state.ts +818 -0
  338. package/src/grpc/proto/sui/rpc/v2/transaction.ts +1549 -0
  339. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.client.ts +58 -0
  340. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +236 -0
  341. package/src/version.ts +1 -1
  342. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/argument.js.map +0 -7
  343. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/balance_change.js.map +0 -7
  344. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/bcs.js.map +0 -7
  345. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/checkpoint.d.ts +0 -55
  346. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/checkpoint.js.map +0 -7
  347. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/checkpoint_contents.js.map +0 -7
  348. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/checkpoint_summary.js.map +0 -7
  349. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/effects.js.map +0 -7
  350. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/epoch.js.map +0 -7
  351. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/error_reason.js.map +0 -7
  352. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/event.js.map +0 -7
  353. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/executed_transaction.js.map +0 -7
  354. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/execution_status.js.map +0 -7
  355. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/gas_cost_summary.js.map +0 -7
  356. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/input.js.map +0 -7
  357. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/ledger_service.client.d.ts +0 -95
  358. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/ledger_service.client.js.map +0 -7
  359. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/ledger_service.js.map +0 -7
  360. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/live_data_service.client.d.ts +0 -81
  361. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/live_data_service.client.js +0 -0
  362. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/live_data_service.client.js.map +0 -7
  363. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/live_data_service.js.map +0 -7
  364. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/move_package.js.map +0 -7
  365. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/move_package_service.client.d.ts +0 -61
  366. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/move_package_service.client.js.map +0 -7
  367. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/move_package_service.js.map +0 -7
  368. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/name_service.client.js.map +0 -7
  369. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/name_service.js.map +0 -7
  370. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/object.js.map +0 -7
  371. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/object_reference.js.map +0 -7
  372. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/owner.js.map +0 -7
  373. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/protocol_config.js.map +0 -7
  374. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/signature.js.map +0 -7
  375. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/signature_scheme.js.map +0 -7
  376. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/signature_verification_service.client.js.map +0 -7
  377. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/signature_verification_service.js.map +0 -7
  378. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/subscription_service.client.js.map +0 -7
  379. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/subscription_service.js.map +0 -7
  380. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/system_state.js.map +0 -7
  381. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/transaction.js.map +0 -7
  382. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.client.d.ts +0 -37
  383. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.client.js.map +0 -7
  384. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.d.ts +0 -115
  385. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.js +0 -94
  386. package/dist/cjs/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.js.map +0 -7
  387. package/dist/esm/grpc/proto/sui/rpc/v2beta2/argument.js.map +0 -7
  388. package/dist/esm/grpc/proto/sui/rpc/v2beta2/balance_change.js.map +0 -7
  389. package/dist/esm/grpc/proto/sui/rpc/v2beta2/bcs.js.map +0 -7
  390. package/dist/esm/grpc/proto/sui/rpc/v2beta2/checkpoint.d.ts +0 -55
  391. package/dist/esm/grpc/proto/sui/rpc/v2beta2/checkpoint.js.map +0 -7
  392. package/dist/esm/grpc/proto/sui/rpc/v2beta2/checkpoint_contents.js.map +0 -7
  393. package/dist/esm/grpc/proto/sui/rpc/v2beta2/checkpoint_summary.js.map +0 -7
  394. package/dist/esm/grpc/proto/sui/rpc/v2beta2/effects.js.map +0 -7
  395. package/dist/esm/grpc/proto/sui/rpc/v2beta2/epoch.js.map +0 -7
  396. package/dist/esm/grpc/proto/sui/rpc/v2beta2/error_reason.js.map +0 -7
  397. package/dist/esm/grpc/proto/sui/rpc/v2beta2/event.js.map +0 -7
  398. package/dist/esm/grpc/proto/sui/rpc/v2beta2/executed_transaction.js +0 -67
  399. package/dist/esm/grpc/proto/sui/rpc/v2beta2/executed_transaction.js.map +0 -7
  400. package/dist/esm/grpc/proto/sui/rpc/v2beta2/execution_status.js.map +0 -7
  401. package/dist/esm/grpc/proto/sui/rpc/v2beta2/gas_cost_summary.js.map +0 -7
  402. package/dist/esm/grpc/proto/sui/rpc/v2beta2/input.js.map +0 -7
  403. package/dist/esm/grpc/proto/sui/rpc/v2beta2/ledger_service.client.d.ts +0 -95
  404. package/dist/esm/grpc/proto/sui/rpc/v2beta2/ledger_service.client.js +0 -107
  405. package/dist/esm/grpc/proto/sui/rpc/v2beta2/ledger_service.client.js.map +0 -7
  406. package/dist/esm/grpc/proto/sui/rpc/v2beta2/ledger_service.js.map +0 -7
  407. package/dist/esm/grpc/proto/sui/rpc/v2beta2/live_data_service.client.d.ts +0 -81
  408. package/dist/esm/grpc/proto/sui/rpc/v2beta2/live_data_service.client.js +0 -92
  409. package/dist/esm/grpc/proto/sui/rpc/v2beta2/live_data_service.client.js.map +0 -7
  410. package/dist/esm/grpc/proto/sui/rpc/v2beta2/live_data_service.js.map +0 -7
  411. package/dist/esm/grpc/proto/sui/rpc/v2beta2/move_package.js.map +0 -7
  412. package/dist/esm/grpc/proto/sui/rpc/v2beta2/move_package_service.client.d.ts +0 -61
  413. package/dist/esm/grpc/proto/sui/rpc/v2beta2/move_package_service.client.js.map +0 -7
  414. package/dist/esm/grpc/proto/sui/rpc/v2beta2/move_package_service.js.map +0 -7
  415. package/dist/esm/grpc/proto/sui/rpc/v2beta2/name_service.client.js.map +0 -7
  416. package/dist/esm/grpc/proto/sui/rpc/v2beta2/name_service.js.map +0 -7
  417. package/dist/esm/grpc/proto/sui/rpc/v2beta2/object.js.map +0 -7
  418. package/dist/esm/grpc/proto/sui/rpc/v2beta2/object_reference.js.map +0 -7
  419. package/dist/esm/grpc/proto/sui/rpc/v2beta2/owner.js.map +0 -7
  420. package/dist/esm/grpc/proto/sui/rpc/v2beta2/protocol_config.js +0 -42
  421. package/dist/esm/grpc/proto/sui/rpc/v2beta2/protocol_config.js.map +0 -7
  422. package/dist/esm/grpc/proto/sui/rpc/v2beta2/signature.js.map +0 -7
  423. package/dist/esm/grpc/proto/sui/rpc/v2beta2/signature_scheme.js.map +0 -7
  424. package/dist/esm/grpc/proto/sui/rpc/v2beta2/signature_verification_service.client.js.map +0 -7
  425. package/dist/esm/grpc/proto/sui/rpc/v2beta2/signature_verification_service.js.map +0 -7
  426. package/dist/esm/grpc/proto/sui/rpc/v2beta2/subscription_service.client.js.map +0 -7
  427. package/dist/esm/grpc/proto/sui/rpc/v2beta2/subscription_service.js.map +0 -7
  428. package/dist/esm/grpc/proto/sui/rpc/v2beta2/system_state.js.map +0 -7
  429. package/dist/esm/grpc/proto/sui/rpc/v2beta2/transaction.js.map +0 -7
  430. package/dist/esm/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.client.d.ts +0 -37
  431. package/dist/esm/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.client.js.map +0 -7
  432. package/dist/esm/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.d.ts +0 -115
  433. package/dist/esm/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.js +0 -74
  434. package/dist/esm/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.js.map +0 -7
  435. package/src/grpc/proto/sui/rpc/v2beta2/argument.ts +0 -90
  436. package/src/grpc/proto/sui/rpc/v2beta2/balance_change.ts +0 -51
  437. package/src/grpc/proto/sui/rpc/v2beta2/bcs.ts +0 -46
  438. package/src/grpc/proto/sui/rpc/v2beta2/checkpoint.ts +0 -88
  439. package/src/grpc/proto/sui/rpc/v2beta2/checkpoint_contents.ts +0 -111
  440. package/src/grpc/proto/sui/rpc/v2beta2/checkpoint_summary.ts +0 -295
  441. package/src/grpc/proto/sui/rpc/v2beta2/effects.ts +0 -479
  442. package/src/grpc/proto/sui/rpc/v2beta2/epoch.ts +0 -113
  443. package/src/grpc/proto/sui/rpc/v2beta2/error_reason.ts +0 -28
  444. package/src/grpc/proto/sui/rpc/v2beta2/event.ts +0 -115
  445. package/src/grpc/proto/sui/rpc/v2beta2/executed_transaction.ts +0 -140
  446. package/src/grpc/proto/sui/rpc/v2beta2/execution_status.ts +0 -1079
  447. package/src/grpc/proto/sui/rpc/v2beta2/gas_cost_summary.ts +0 -87
  448. package/src/grpc/proto/sui/rpc/v2beta2/input.ts +0 -132
  449. package/src/grpc/proto/sui/rpc/v2beta2/ledger_service.client.ts +0 -217
  450. package/src/grpc/proto/sui/rpc/v2beta2/ledger_service.ts +0 -625
  451. package/src/grpc/proto/sui/rpc/v2beta2/live_data_service.client.ts +0 -187
  452. package/src/grpc/proto/sui/rpc/v2beta2/live_data_service.ts +0 -1066
  453. package/src/grpc/proto/sui/rpc/v2beta2/move_package.ts +0 -803
  454. package/src/grpc/proto/sui/rpc/v2beta2/move_package_service.client.ts +0 -135
  455. package/src/grpc/proto/sui/rpc/v2beta2/move_package_service.ts +0 -315
  456. package/src/grpc/proto/sui/rpc/v2beta2/name_service.client.ts +0 -83
  457. package/src/grpc/proto/sui/rpc/v2beta2/name_service.ts +0 -198
  458. package/src/grpc/proto/sui/rpc/v2beta2/object.ts +0 -161
  459. package/src/grpc/proto/sui/rpc/v2beta2/object_reference.ts +0 -58
  460. package/src/grpc/proto/sui/rpc/v2beta2/owner.ts +0 -91
  461. package/src/grpc/proto/sui/rpc/v2beta2/protocol_config.ts +0 -66
  462. package/src/grpc/proto/sui/rpc/v2beta2/signature.ts +0 -861
  463. package/src/grpc/proto/sui/rpc/v2beta2/signature_scheme.ts +0 -51
  464. package/src/grpc/proto/sui/rpc/v2beta2/signature_verification_service.client.ts +0 -63
  465. package/src/grpc/proto/sui/rpc/v2beta2/signature_verification_service.ts +0 -106
  466. package/src/grpc/proto/sui/rpc/v2beta2/subscription_service.client.ts +0 -81
  467. package/src/grpc/proto/sui/rpc/v2beta2/subscription_service.ts +0 -93
  468. package/src/grpc/proto/sui/rpc/v2beta2/system_state.ts +0 -1184
  469. package/src/grpc/proto/sui/rpc/v2beta2/transaction.ts +0 -2012
  470. package/src/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.client.ts +0 -65
  471. package/src/grpc/proto/sui/rpc/v2beta2/transaction_execution_service.ts +0 -178
  472. /package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/error_reason.js +0 -0
  473. /package/dist/cjs/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_scheme.js +0 -0
  474. /package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/error_reason.js +0 -0
  475. /package/dist/esm/grpc/proto/sui/rpc/{v2beta2 → v2}/signature_scheme.js +0 -0
@@ -33,6 +33,7 @@ class Duration$Type extends import_runtime3.MessageType {
33
33
  kind: "scalar",
34
34
  T: 3,
35
35
  L: 0
36
+ /*LongType.BIGINT*/
36
37
  },
37
38
  {
38
39
  no: 2,
@@ -48,14 +49,18 @@ class Duration$Type extends import_runtime3.MessageType {
48
49
  */
49
50
  internalJsonWrite(message, options) {
50
51
  let s = import_runtime2.PbLong.from(message.seconds).toNumber();
51
- if (s > 315576e6 || s < -315576e6) throw new Error("Duration value out of range.");
52
+ if (s > 315576e6 || s < -315576e6)
53
+ throw new Error("Duration value out of range.");
52
54
  let text = message.seconds.toString();
53
- if (s === 0 && message.nanos < 0) text = "-" + text;
55
+ if (s === 0 && message.nanos < 0)
56
+ text = "-" + text;
54
57
  if (message.nanos !== 0) {
55
58
  let nanosStr = Math.abs(message.nanos).toString();
56
59
  nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr;
57
- if (nanosStr.substring(3) === "000000") nanosStr = nanosStr.substring(0, 3);
58
- else if (nanosStr.substring(6) === "000") nanosStr = nanosStr.substring(0, 6);
60
+ if (nanosStr.substring(3) === "000000")
61
+ nanosStr = nanosStr.substring(0, 3);
62
+ else if (nanosStr.substring(6) === "000")
63
+ nanosStr = nanosStr.substring(0, 6);
59
64
  text += "." + nanosStr;
60
65
  }
61
66
  return text + "s";
@@ -65,13 +70,12 @@ class Duration$Type extends import_runtime3.MessageType {
65
70
  */
66
71
  internalJsonRead(json, options, target) {
67
72
  if (typeof json !== "string")
68
- throw new Error(
69
- "Unable to parse Duration from JSON " + (0, import_runtime.typeofJsonValue)(json) + ". Expected string."
70
- );
73
+ throw new Error("Unable to parse Duration from JSON " + (0, import_runtime.typeofJsonValue)(json) + ". Expected string.");
71
74
  let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);
72
75
  if (match === null)
73
76
  throw new Error("Unable to parse Duration from JSON string. Invalid format.");
74
- if (!target) target = this.create();
77
+ if (!target)
78
+ target = this.create();
75
79
  let [, sign, secs, nanos] = match;
76
80
  let longSeconds = import_runtime2.PbLong.from(sign + secs);
77
81
  if (longSeconds.toNumber() > 315576e6 || longSeconds.toNumber() < -315576e6)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/grpc/proto/google/protobuf/duration.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/duration.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { typeofJsonValue } from '@protobuf-ts/runtime';\nimport type { JsonValue } from '@protobuf-ts/runtime';\nimport type { JsonReadOptions } from '@protobuf-ts/runtime';\nimport type { JsonWriteOptions } from '@protobuf-ts/runtime';\nimport { PbLong } from '@protobuf-ts/runtime';\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * A Duration represents a signed, fixed-length span of time represented\n * as a count of seconds and fractions of seconds at nanosecond\n * resolution. It is independent of any calendar and concepts like \"day\"\n * or \"month\". It is related to Timestamp in that the difference between\n * two Timestamp values is a Duration and it can be added or subtracted\n * from a Timestamp. Range is approximately +-10,000 years.\n *\n * # Examples\n *\n * Example 1: Compute Duration from two Timestamps in pseudo code.\n *\n * Timestamp start = ...;\n * Timestamp end = ...;\n * Duration duration = ...;\n *\n * duration.seconds = end.seconds - start.seconds;\n * duration.nanos = end.nanos - start.nanos;\n *\n * if (duration.seconds < 0 && duration.nanos > 0) {\n * duration.seconds += 1;\n * duration.nanos -= 1000000000;\n * } else if (duration.seconds > 0 && duration.nanos < 0) {\n * duration.seconds -= 1;\n * duration.nanos += 1000000000;\n * }\n *\n * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.\n *\n * Timestamp start = ...;\n * Duration duration = ...;\n * Timestamp end = ...;\n *\n * end.seconds = start.seconds + duration.seconds;\n * end.nanos = start.nanos + duration.nanos;\n *\n * if (end.nanos < 0) {\n * end.seconds -= 1;\n * end.nanos += 1000000000;\n * } else if (end.nanos >= 1000000000) {\n * end.seconds += 1;\n * end.nanos -= 1000000000;\n * }\n *\n * Example 3: Compute Duration from datetime.timedelta in Python.\n *\n * td = datetime.timedelta(days=3, minutes=10)\n * duration = Duration()\n * duration.FromTimedelta(td)\n *\n * # JSON Mapping\n *\n * In JSON format, the Duration type is encoded as a string rather than an\n * object, where the string ends in the suffix \"s\" (indicating seconds) and\n * is preceded by the number of seconds, with nanoseconds expressed as\n * fractional seconds. For example, 3 seconds with 0 nanoseconds should be\n * encoded in JSON format as \"3s\", while 3 seconds and 1 nanosecond should\n * be expressed in JSON format as \"3.000000001s\", and 3 seconds and 1\n * microsecond should be expressed in JSON format as \"3.000001s\".\n *\n *\n * @generated from protobuf message google.protobuf.Duration\n */\nexport interface Duration {\n\t/**\n\t * Signed seconds of the span of time. Must be from -315,576,000,000\n\t * to +315,576,000,000 inclusive. Note: these bounds are computed from:\n\t * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years\n\t *\n\t * @generated from protobuf field: int64 seconds = 1;\n\t */\n\tseconds: bigint;\n\t/**\n\t * Signed fractions of a second at nanosecond resolution of the span\n\t * of time. Durations less than one second are represented with a 0\n\t * `seconds` field and a positive or negative `nanos` field. For durations\n\t * of one second or more, a non-zero value for the `nanos` field must be\n\t * of the same sign as the `seconds` field. Must be from -999,999,999\n\t * to +999,999,999 inclusive.\n\t *\n\t * @generated from protobuf field: int32 nanos = 2;\n\t */\n\tnanos: number;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Duration$Type extends MessageType<Duration> {\n\tconstructor() {\n\t\tsuper('google.protobuf.Duration', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'seconds',\n\t\t\t\tkind: 'scalar',\n\t\t\t\tT: 3 /*ScalarType.INT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 2, name: 'nanos', kind: 'scalar', T: 5 /*ScalarType.INT32*/ },\n\t\t]);\n\t}\n\t/**\n\t * Encode `Duration` to JSON string like \"3.000001s\".\n\t */\n\tinternalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue {\n\t\tlet s = PbLong.from(message.seconds).toNumber();\n\t\tif (s > 315576000000 || s < -315576000000) throw new Error('Duration value out of range.');\n\t\tlet text = message.seconds.toString();\n\t\tif (s === 0 && message.nanos < 0) text = '-' + text;\n\t\tif (message.nanos !== 0) {\n\t\t\tlet nanosStr = Math.abs(message.nanos).toString();\n\t\t\tnanosStr = '0'.repeat(9 - nanosStr.length) + nanosStr;\n\t\t\tif (nanosStr.substring(3) === '000000') nanosStr = nanosStr.substring(0, 3);\n\t\t\telse if (nanosStr.substring(6) === '000') nanosStr = nanosStr.substring(0, 6);\n\t\t\ttext += '.' + nanosStr;\n\t\t}\n\t\treturn text + 's';\n\t}\n\t/**\n\t * Decode `Duration` from JSON string like \"3.000001s\"\n\t */\n\tinternalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration {\n\t\tif (typeof json !== 'string')\n\t\t\tthrow new Error(\n\t\t\t\t'Unable to parse Duration from JSON ' + typeofJsonValue(json) + '. Expected string.',\n\t\t\t);\n\t\tlet match = json.match(/^(-?)([0-9]+)(?:\\.([0-9]+))?s/);\n\t\tif (match === null)\n\t\t\tthrow new Error('Unable to parse Duration from JSON string. Invalid format.');\n\t\tif (!target) target = this.create();\n\t\tlet [, sign, secs, nanos] = match;\n\t\tlet longSeconds = PbLong.from(sign + secs);\n\t\tif (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)\n\t\t\tthrow new Error('Unable to parse Duration from JSON string. Value out of range.');\n\t\ttarget.seconds = longSeconds.toBigInt();\n\t\tif (typeof nanos == 'string') {\n\t\t\tlet nanosStr = sign + nanos + '0'.repeat(9 - nanos.length);\n\t\t\ttarget.nanos = parseInt(nanosStr);\n\t\t}\n\t\treturn target;\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Duration\n */\nexport const Duration = new Duration$Type();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAAgC;AAIhC,IAAAA,kBAAuB;AACvB,IAAAA,kB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EAAE,MAAM,MAAM,KAAK,IAAI;AAC5B,QAAI,cAAc,uBAAO,KAAK,OAAO,IAAI;AACzC,QAAI,YAAY,SAAS,IAAI,YAAgB,YAAY,SAAS,IAAI;AACrE,YAAM,IAAI,MAAM,gEAAgE;AACjF,WAAO,UAAU,YAAY,SAAS;AACtC,QAAI,OAAO,SAAS,UAAU;AAC7B,UAAI,WAAW,OAAO,QAAQ,IAAI,OAAO,IAAI,MAAM,MAAM;AACzD,aAAO,QAAQ,SAAS,QAAQ;AAAA,IACjC;AACA,WAAO;AAAA,EACR;AACD;AAIO,MAAM,WAAW,IAAI,cAAc;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/duration.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { typeofJsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonReadOptions } from \"@protobuf-ts/runtime\";\nimport type { JsonWriteOptions } from \"@protobuf-ts/runtime\";\nimport { PbLong } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * A Duration represents a signed, fixed-length span of time represented\n * as a count of seconds and fractions of seconds at nanosecond\n * resolution. It is independent of any calendar and concepts like \"day\"\n * or \"month\". It is related to Timestamp in that the difference between\n * two Timestamp values is a Duration and it can be added or subtracted\n * from a Timestamp. Range is approximately +-10,000 years.\n *\n * # Examples\n *\n * Example 1: Compute Duration from two Timestamps in pseudo code.\n *\n * Timestamp start = ...;\n * Timestamp end = ...;\n * Duration duration = ...;\n *\n * duration.seconds = end.seconds - start.seconds;\n * duration.nanos = end.nanos - start.nanos;\n *\n * if (duration.seconds < 0 && duration.nanos > 0) {\n * duration.seconds += 1;\n * duration.nanos -= 1000000000;\n * } else if (duration.seconds > 0 && duration.nanos < 0) {\n * duration.seconds -= 1;\n * duration.nanos += 1000000000;\n * }\n *\n * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.\n *\n * Timestamp start = ...;\n * Duration duration = ...;\n * Timestamp end = ...;\n *\n * end.seconds = start.seconds + duration.seconds;\n * end.nanos = start.nanos + duration.nanos;\n *\n * if (end.nanos < 0) {\n * end.seconds -= 1;\n * end.nanos += 1000000000;\n * } else if (end.nanos >= 1000000000) {\n * end.seconds += 1;\n * end.nanos -= 1000000000;\n * }\n *\n * Example 3: Compute Duration from datetime.timedelta in Python.\n *\n * td = datetime.timedelta(days=3, minutes=10)\n * duration = Duration()\n * duration.FromTimedelta(td)\n *\n * # JSON Mapping\n *\n * In JSON format, the Duration type is encoded as a string rather than an\n * object, where the string ends in the suffix \"s\" (indicating seconds) and\n * is preceded by the number of seconds, with nanoseconds expressed as\n * fractional seconds. For example, 3 seconds with 0 nanoseconds should be\n * encoded in JSON format as \"3s\", while 3 seconds and 1 nanosecond should\n * be expressed in JSON format as \"3.000000001s\", and 3 seconds and 1\n * microsecond should be expressed in JSON format as \"3.000001s\".\n *\n *\n * @generated from protobuf message google.protobuf.Duration\n */\nexport interface Duration {\n /**\n * Signed seconds of the span of time. Must be from -315,576,000,000\n * to +315,576,000,000 inclusive. Note: these bounds are computed from:\n * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years\n *\n * @generated from protobuf field: int64 seconds = 1;\n */\n seconds: bigint;\n /**\n * Signed fractions of a second at nanosecond resolution of the span\n * of time. Durations less than one second are represented with a 0\n * `seconds` field and a positive or negative `nanos` field. For durations\n * of one second or more, a non-zero value for the `nanos` field must be\n * of the same sign as the `seconds` field. Must be from -999,999,999\n * to +999,999,999 inclusive.\n *\n * @generated from protobuf field: int32 nanos = 2;\n */\n nanos: number;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Duration$Type extends MessageType<Duration> {\n constructor() {\n super(\"google.protobuf.Duration\", [\n { no: 1, name: \"seconds\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"nanos\", kind: \"scalar\", T: 5 /*ScalarType.INT32*/ }\n ]);\n }\n /**\n * Encode `Duration` to JSON string like \"3.000001s\".\n */\n internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue {\n let s = PbLong.from(message.seconds).toNumber();\n if (s > 315576000000 || s < -315576000000)\n throw new Error(\"Duration value out of range.\");\n let text = message.seconds.toString();\n if (s === 0 && message.nanos < 0)\n text = \"-\" + text;\n if (message.nanos !== 0) {\n let nanosStr = Math.abs(message.nanos).toString();\n nanosStr = \"0\".repeat(9 - nanosStr.length) + nanosStr;\n if (nanosStr.substring(3) === \"000000\")\n nanosStr = nanosStr.substring(0, 3);\n else if (nanosStr.substring(6) === \"000\")\n nanosStr = nanosStr.substring(0, 6);\n text += \".\" + nanosStr;\n }\n return text + \"s\";\n }\n /**\n * Decode `Duration` from JSON string like \"3.000001s\"\n */\n internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration {\n if (typeof json !== \"string\")\n throw new Error(\"Unable to parse Duration from JSON \" + typeofJsonValue(json) + \". Expected string.\");\n let match = json.match(/^(-?)([0-9]+)(?:\\.([0-9]+))?s/);\n if (match === null)\n throw new Error(\"Unable to parse Duration from JSON string. Invalid format.\");\n if (!target)\n target = this.create();\n let [, sign, secs, nanos] = match;\n let longSeconds = PbLong.from(sign + secs);\n if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)\n throw new Error(\"Unable to parse Duration from JSON string. Value out of range.\");\n target.seconds = longSeconds.toBigInt();\n if (typeof nanos == \"string\") {\n let nanosStr = sign + nanos + \"0\".repeat(9 - nanos.length);\n target.nanos = parseInt(nanosStr);\n }\n return target;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Duration\n */\nexport const Duration = new Duration$Type();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAAgC;AAIhC,IAAAA,kBAAuB;AACvB,IAAAA,kBAA4B;AAsF5B,MAAM,sBAAsB,4BAAsB;AAAA,EAC9C,cAAc;AACV,UAAM,4BAA4B;AAAA,MAC9B;AAAA,QAAE,IAAI;AAAA,QAAG,MAAM;AAAA,QAAW,MAAM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;AAClE,YAAM,IAAI,MAAM,gEAAgE;AACpF,WAAO,UAAU,YAAY,SAAS;AACtC,QAAI,OAAO,SAAS,UAAU;AAC1B,UAAI,WAAW,OAAO,QAAQ,IAAI,OAAO,IAAI,MAAM,MAAM;AACzD,aAAO,QAAQ,SAAS,QAAQ;AAAA,IACpC;AACA,WAAO;AAAA,EACX;AACJ;AAIO,MAAM,WAAW,IAAI,cAAc;",
6
6
  "names": ["import_runtime"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import { MessageType } from '@protobuf-ts/runtime';
1
+ import { MessageType } from "@protobuf-ts/runtime";
2
2
  /**
3
3
  * A generic empty message that you can re-use to avoid defining duplicated
4
4
  * empty messages in your APIs. A typical example is to use it as the request
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/grpc/proto/google/protobuf/empty.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/empty.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * A generic empty message that you can re-use to avoid defining duplicated\n * empty messages in your APIs. A typical example is to use it as the request\n * or the response type of an API method. For instance:\n *\n * ```\n * service Foo {\n * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n * }\n * ```\n *\n *\n * @generated from protobuf message google.protobuf.Empty\n */\nexport interface Empty {}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Empty$Type extends MessageType<Empty> {\n\tconstructor() {\n\t\tsuper('google.protobuf.Empty', []);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Empty\n */\nexport const Empty = new Empty$Type();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAA4B;AAiB5B,MAAM,mBAAmB,2BAAmB;AAAA,EAC3C,cAAc;AACb,UAAM,yBAAyB,CAAC,CAAC;AAAA,EAClC;AACD;AAIO,MAAM,QAAQ,IAAI,WAAW;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/empty.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * A generic empty message that you can re-use to avoid defining duplicated\n * empty messages in your APIs. A typical example is to use it as the request\n * or the response type of an API method. For instance:\n *\n * ```\n * service Foo {\n * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n * }\n * ```\n *\n *\n * @generated from protobuf message google.protobuf.Empty\n */\nexport interface Empty {\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Empty$Type extends MessageType<Empty> {\n constructor() {\n super(\"google.protobuf.Empty\", []);\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Empty\n */\nexport const Empty = new Empty$Type();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAA4B;AAkB5B,MAAM,mBAAmB,2BAAmB;AAAA,EACxC,cAAc;AACV,UAAM,yBAAyB,CAAC,CAAC;AAAA,EACrC;AACJ;AAIO,MAAM,QAAQ,IAAI,WAAW;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
- import type { JsonValue } from '@protobuf-ts/runtime';
2
- import type { JsonReadOptions } from '@protobuf-ts/runtime';
3
- import type { JsonWriteOptions } from '@protobuf-ts/runtime';
4
- import { MessageType } from '@protobuf-ts/runtime';
1
+ import type { JsonValue } from "@protobuf-ts/runtime";
2
+ import type { JsonReadOptions } from "@protobuf-ts/runtime";
3
+ import type { JsonWriteOptions } from "@protobuf-ts/runtime";
4
+ import { MessageType } from "@protobuf-ts/runtime";
5
5
  /**
6
6
  * `FieldMask` represents a set of symbolic field paths, for example:
7
7
  *
@@ -33,6 +33,7 @@ class FieldMask$Type extends import_runtime3.MessageType {
33
33
  kind: "scalar",
34
34
  repeat: 2,
35
35
  T: 9
36
+ /*ScalarType.STRING*/
36
37
  }
37
38
  ]);
38
39
  }
@@ -43,9 +44,7 @@ class FieldMask$Type extends import_runtime3.MessageType {
43
44
  const invalidFieldMaskJsonRegex = /[A-Z]|(_([.0-9_]|$))/g;
44
45
  return message.paths.map((p) => {
45
46
  if (invalidFieldMaskJsonRegex.test(p))
46
- throw new Error(
47
- 'Unable to encode FieldMask to JSON. lowerCamelCase of path name "' + p + '" is irreversible.'
48
- );
47
+ throw new Error('Unable to encode FieldMask to JSON. lowerCamelCase of path name "' + p + '" is irreversible.');
49
48
  return (0, import_runtime2.lowerCamelCase)(p);
50
49
  }).join(",");
51
50
  }
@@ -54,11 +53,11 @@ class FieldMask$Type extends import_runtime3.MessageType {
54
53
  */
55
54
  internalJsonRead(json, options, target) {
56
55
  if (typeof json !== "string")
57
- throw new Error(
58
- "Unable to parse FieldMask from JSON " + (0, import_runtime.typeofJsonValue)(json) + ". Expected string."
59
- );
60
- if (!target) target = this.create();
61
- if (json === "") return target;
56
+ throw new Error("Unable to parse FieldMask from JSON " + (0, import_runtime.typeofJsonValue)(json) + ". Expected string.");
57
+ if (!target)
58
+ target = this.create();
59
+ if (json === "")
60
+ return target;
62
61
  let camelToSnake = (str) => {
63
62
  if (str.includes("_"))
64
63
  throw new Error("Unable to parse FieldMask from JSON. Path names must be lowerCamelCase.");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/grpc/proto/google/protobuf/field_mask.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/field_mask.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { typeofJsonValue } from '@protobuf-ts/runtime';\nimport type { JsonValue } from '@protobuf-ts/runtime';\nimport { lowerCamelCase } from '@protobuf-ts/runtime';\nimport type { JsonReadOptions } from '@protobuf-ts/runtime';\nimport type { JsonWriteOptions } from '@protobuf-ts/runtime';\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * `FieldMask` represents a set of symbolic field paths, for example:\n *\n * paths: \"f.a\"\n * paths: \"f.b.d\"\n *\n * Here `f` represents a field in some root message, `a` and `b`\n * fields in the message found in `f`, and `d` a field found in the\n * message in `f.b`.\n *\n * Field masks are used to specify a subset of fields that should be\n * returned by a get operation or modified by an update operation.\n * Field masks also have a custom JSON encoding (see below).\n *\n * # Field Masks in Projections\n *\n * When used in the context of a projection, a response message or\n * sub-message is filtered by the API to only contain those fields as\n * specified in the mask. For example, if the mask in the previous\n * example is applied to a response message as follows:\n *\n * f {\n * a : 22\n * b {\n * d : 1\n * x : 2\n * }\n * y : 13\n * }\n * z: 8\n *\n * The result will not contain specific values for fields x,y and z\n * (their value will be set to the default, and omitted in proto text\n * output):\n *\n *\n * f {\n * a : 22\n * b {\n * d : 1\n * }\n * }\n *\n * A repeated field is not allowed except at the last position of a\n * paths string.\n *\n * If a FieldMask object is not present in a get operation, the\n * operation applies to all fields (as if a FieldMask of all fields\n * had been specified).\n *\n * Note that a field mask does not necessarily apply to the\n * top-level response message. In case of a REST get operation, the\n * field mask applies directly to the response, but in case of a REST\n * list operation, the mask instead applies to each individual message\n * in the returned resource list. In case of a REST custom method,\n * other definitions may be used. Where the mask applies will be\n * clearly documented together with its declaration in the API. In\n * any case, the effect on the returned resource/resources is required\n * behavior for APIs.\n *\n * # Field Masks in Update Operations\n *\n * A field mask in update operations specifies which fields of the\n * targeted resource are going to be updated. The API is required\n * to only change the values of the fields as specified in the mask\n * and leave the others untouched. If a resource is passed in to\n * describe the updated values, the API ignores the values of all\n * fields not covered by the mask.\n *\n * If a repeated field is specified for an update operation, new values will\n * be appended to the existing repeated field in the target resource. Note that\n * a repeated field is only allowed in the last position of a `paths` string.\n *\n * If a sub-message is specified in the last position of the field mask for an\n * update operation, then new value will be merged into the existing sub-message\n * in the target resource.\n *\n * For example, given the target message:\n *\n * f {\n * b {\n * d: 1\n * x: 2\n * }\n * c: [1]\n * }\n *\n * And an update message:\n *\n * f {\n * b {\n * d: 10\n * }\n * c: [2]\n * }\n *\n * then if the field mask is:\n *\n * paths: [\"f.b\", \"f.c\"]\n *\n * then the result will be:\n *\n * f {\n * b {\n * d: 10\n * x: 2\n * }\n * c: [1, 2]\n * }\n *\n * An implementation may provide options to override this default behavior for\n * repeated and message fields.\n *\n * In order to reset a field's value to the default, the field must\n * be in the mask and set to the default value in the provided resource.\n * Hence, in order to reset all fields of a resource, provide a default\n * instance of the resource and set all fields in the mask, or do\n * not provide a mask as described below.\n *\n * If a field mask is not present on update, the operation applies to\n * all fields (as if a field mask of all fields has been specified).\n * Note that in the presence of schema evolution, this may mean that\n * fields the client does not know and has therefore not filled into\n * the request will be reset to their default. If this is unwanted\n * behavior, a specific service may require a client to always specify\n * a field mask, producing an error if not.\n *\n * As with get operations, the location of the resource which\n * describes the updated values in the request message depends on the\n * operation kind. In any case, the effect of the field mask is\n * required to be honored by the API.\n *\n * ## Considerations for HTTP REST\n *\n * The HTTP kind of an update operation which uses a field mask must\n * be set to PATCH instead of PUT in order to satisfy HTTP semantics\n * (PUT must only be used for full updates).\n *\n * # JSON Encoding of Field Masks\n *\n * In JSON, a field mask is encoded as a single string where paths are\n * separated by a comma. Fields name in each path are converted\n * to/from lower-camel naming conventions.\n *\n * As an example, consider the following message declarations:\n *\n * message Profile {\n * User user = 1;\n * Photo photo = 2;\n * }\n * message User {\n * string display_name = 1;\n * string address = 2;\n * }\n *\n * In proto a field mask for `Profile` may look as such:\n *\n * mask {\n * paths: \"user.display_name\"\n * paths: \"photo\"\n * }\n *\n * In JSON, the same mask is represented as below:\n *\n * {\n * mask: \"user.displayName,photo\"\n * }\n *\n * # Field Masks and Oneof Fields\n *\n * Field masks treat fields in oneofs just as regular fields. Consider the\n * following message:\n *\n * message SampleMessage {\n * oneof test_oneof {\n * string name = 4;\n * SubMessage sub_message = 9;\n * }\n * }\n *\n * The field mask can be:\n *\n * mask {\n * paths: \"name\"\n * }\n *\n * Or:\n *\n * mask {\n * paths: \"sub_message\"\n * }\n *\n * Note that oneof type names (\"test_oneof\" in this case) cannot be used in\n * paths.\n *\n * ## Field Mask Verification\n *\n * The implementation of any API method which has a FieldMask type field in the\n * request should verify the included field paths, and return an\n * `INVALID_ARGUMENT` error if any path is unmappable.\n *\n * @generated from protobuf message google.protobuf.FieldMask\n */\nexport interface FieldMask {\n\t/**\n\t * The set of field mask paths.\n\t *\n\t * @generated from protobuf field: repeated string paths = 1;\n\t */\n\tpaths: string[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass FieldMask$Type extends MessageType<FieldMask> {\n\tconstructor() {\n\t\tsuper('google.protobuf.FieldMask', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'paths',\n\t\t\t\tkind: 'scalar',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: 9 /*ScalarType.STRING*/,\n\t\t\t},\n\t\t]);\n\t}\n\t/**\n\t * Encode `FieldMask` to JSON object.\n\t */\n\tinternalJsonWrite(message: FieldMask, options: JsonWriteOptions): JsonValue {\n\t\tconst invalidFieldMaskJsonRegex = /[A-Z]|(_([.0-9_]|$))/g;\n\t\treturn message.paths\n\t\t\t.map((p) => {\n\t\t\t\tif (invalidFieldMaskJsonRegex.test(p))\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t'Unable to encode FieldMask to JSON. lowerCamelCase of path name \"' +\n\t\t\t\t\t\t\tp +\n\t\t\t\t\t\t\t'\" is irreversible.',\n\t\t\t\t\t);\n\t\t\t\treturn lowerCamelCase(p);\n\t\t\t})\n\t\t\t.join(',');\n\t}\n\t/**\n\t * Decode `FieldMask` from JSON object.\n\t */\n\tinternalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FieldMask): FieldMask {\n\t\tif (typeof json !== 'string')\n\t\t\tthrow new Error(\n\t\t\t\t'Unable to parse FieldMask from JSON ' + typeofJsonValue(json) + '. Expected string.',\n\t\t\t);\n\t\tif (!target) target = this.create();\n\t\tif (json === '') return target;\n\t\tlet camelToSnake = (str: string) => {\n\t\t\tif (str.includes('_'))\n\t\t\t\tthrow new Error('Unable to parse FieldMask from JSON. Path names must be lowerCamelCase.');\n\t\t\tlet sc = str.replace(/[A-Z]/g, (letter) => '_' + letter.toLowerCase());\n\t\t\treturn sc;\n\t\t};\n\t\ttarget.paths = json.split(',').map(camelToSnake);\n\t\treturn target;\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.FieldMask\n */\nexport const FieldMask = new FieldMask$Type();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAAgC;AAEhC,IAAAA,kBAA+B;AAG/B,IAAAA,kBAA4B;AAqN5B,MAAM,uBAAuB,4BAAuB;AAAA,EACnD,cAAc;AACb,UAAM,6BAA6B;AAAA,MAClC;AAAA,QACC,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,GAAG;AAAA,MACJ;AAAA,IACD,CAAC;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAkB,SAAoB,SAAsC;AAC3E,UAAM,4BAA4B;AAClC,WAAO,QAAQ,MACb,IAAI,CAAC,MAAM;AACX,UAAI,0BAA0B,KAAK,CAAC;AACnC,cAAM,IAAI;AAAA,UACT,sEACC,IACA;AAAA,QACF;AACD,iBAAO,gCAAe,CAAC;AAAA,IACxB,CAAC,EACA,KAAK,GAAG;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAiB,MAAiB,SAA0B,QAA+B;AAC1F,QAAI,OAAO,SAAS;AACnB,YAAM,IAAI;AAAA,QACT,6CAAyC,gCAAgB,IAAI,IAAI;AAAA,MAClE;AACD,QAAI,CAAC,OAAQ,UAAS,KAAK,OAAO;AAClC,QAAI,SAAS,GAAI,QAAO;AACxB,QAAI,eAAe,CAAC,QAAgB;AACnC,UAAI,IAAI,SAAS,GAAG;AACnB,cAAM,IAAI,MAAM,yEAAyE;AAC1F,UAAI,KAAK,IAAI,QAAQ,UAAU,CAAC,WAAW,MAAM,OAAO,YAAY,CAAC;AACrE,aAAO;AAAA,IACR;AACA,WAAO,QAAQ,KAAK,MAAM,GAAG,EAAE,IAAI,YAAY;AAC/C,WAAO;AAAA,EACR;AACD;AAIO,MAAM,YAAY,IAAI,eAAe;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/field_mask.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { typeofJsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonValue } from \"@protobuf-ts/runtime\";\nimport { lowerCamelCase } from \"@protobuf-ts/runtime\";\nimport type { JsonReadOptions } from \"@protobuf-ts/runtime\";\nimport type { JsonWriteOptions } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * `FieldMask` represents a set of symbolic field paths, for example:\n *\n * paths: \"f.a\"\n * paths: \"f.b.d\"\n *\n * Here `f` represents a field in some root message, `a` and `b`\n * fields in the message found in `f`, and `d` a field found in the\n * message in `f.b`.\n *\n * Field masks are used to specify a subset of fields that should be\n * returned by a get operation or modified by an update operation.\n * Field masks also have a custom JSON encoding (see below).\n *\n * # Field Masks in Projections\n *\n * When used in the context of a projection, a response message or\n * sub-message is filtered by the API to only contain those fields as\n * specified in the mask. For example, if the mask in the previous\n * example is applied to a response message as follows:\n *\n * f {\n * a : 22\n * b {\n * d : 1\n * x : 2\n * }\n * y : 13\n * }\n * z: 8\n *\n * The result will not contain specific values for fields x,y and z\n * (their value will be set to the default, and omitted in proto text\n * output):\n *\n *\n * f {\n * a : 22\n * b {\n * d : 1\n * }\n * }\n *\n * A repeated field is not allowed except at the last position of a\n * paths string.\n *\n * If a FieldMask object is not present in a get operation, the\n * operation applies to all fields (as if a FieldMask of all fields\n * had been specified).\n *\n * Note that a field mask does not necessarily apply to the\n * top-level response message. In case of a REST get operation, the\n * field mask applies directly to the response, but in case of a REST\n * list operation, the mask instead applies to each individual message\n * in the returned resource list. In case of a REST custom method,\n * other definitions may be used. Where the mask applies will be\n * clearly documented together with its declaration in the API. In\n * any case, the effect on the returned resource/resources is required\n * behavior for APIs.\n *\n * # Field Masks in Update Operations\n *\n * A field mask in update operations specifies which fields of the\n * targeted resource are going to be updated. The API is required\n * to only change the values of the fields as specified in the mask\n * and leave the others untouched. If a resource is passed in to\n * describe the updated values, the API ignores the values of all\n * fields not covered by the mask.\n *\n * If a repeated field is specified for an update operation, new values will\n * be appended to the existing repeated field in the target resource. Note that\n * a repeated field is only allowed in the last position of a `paths` string.\n *\n * If a sub-message is specified in the last position of the field mask for an\n * update operation, then new value will be merged into the existing sub-message\n * in the target resource.\n *\n * For example, given the target message:\n *\n * f {\n * b {\n * d: 1\n * x: 2\n * }\n * c: [1]\n * }\n *\n * And an update message:\n *\n * f {\n * b {\n * d: 10\n * }\n * c: [2]\n * }\n *\n * then if the field mask is:\n *\n * paths: [\"f.b\", \"f.c\"]\n *\n * then the result will be:\n *\n * f {\n * b {\n * d: 10\n * x: 2\n * }\n * c: [1, 2]\n * }\n *\n * An implementation may provide options to override this default behavior for\n * repeated and message fields.\n *\n * In order to reset a field's value to the default, the field must\n * be in the mask and set to the default value in the provided resource.\n * Hence, in order to reset all fields of a resource, provide a default\n * instance of the resource and set all fields in the mask, or do\n * not provide a mask as described below.\n *\n * If a field mask is not present on update, the operation applies to\n * all fields (as if a field mask of all fields has been specified).\n * Note that in the presence of schema evolution, this may mean that\n * fields the client does not know and has therefore not filled into\n * the request will be reset to their default. If this is unwanted\n * behavior, a specific service may require a client to always specify\n * a field mask, producing an error if not.\n *\n * As with get operations, the location of the resource which\n * describes the updated values in the request message depends on the\n * operation kind. In any case, the effect of the field mask is\n * required to be honored by the API.\n *\n * ## Considerations for HTTP REST\n *\n * The HTTP kind of an update operation which uses a field mask must\n * be set to PATCH instead of PUT in order to satisfy HTTP semantics\n * (PUT must only be used for full updates).\n *\n * # JSON Encoding of Field Masks\n *\n * In JSON, a field mask is encoded as a single string where paths are\n * separated by a comma. Fields name in each path are converted\n * to/from lower-camel naming conventions.\n *\n * As an example, consider the following message declarations:\n *\n * message Profile {\n * User user = 1;\n * Photo photo = 2;\n * }\n * message User {\n * string display_name = 1;\n * string address = 2;\n * }\n *\n * In proto a field mask for `Profile` may look as such:\n *\n * mask {\n * paths: \"user.display_name\"\n * paths: \"photo\"\n * }\n *\n * In JSON, the same mask is represented as below:\n *\n * {\n * mask: \"user.displayName,photo\"\n * }\n *\n * # Field Masks and Oneof Fields\n *\n * Field masks treat fields in oneofs just as regular fields. Consider the\n * following message:\n *\n * message SampleMessage {\n * oneof test_oneof {\n * string name = 4;\n * SubMessage sub_message = 9;\n * }\n * }\n *\n * The field mask can be:\n *\n * mask {\n * paths: \"name\"\n * }\n *\n * Or:\n *\n * mask {\n * paths: \"sub_message\"\n * }\n *\n * Note that oneof type names (\"test_oneof\" in this case) cannot be used in\n * paths.\n *\n * ## Field Mask Verification\n *\n * The implementation of any API method which has a FieldMask type field in the\n * request should verify the included field paths, and return an\n * `INVALID_ARGUMENT` error if any path is unmappable.\n *\n * @generated from protobuf message google.protobuf.FieldMask\n */\nexport interface FieldMask {\n /**\n * The set of field mask paths.\n *\n * @generated from protobuf field: repeated string paths = 1;\n */\n paths: string[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass FieldMask$Type extends MessageType<FieldMask> {\n constructor() {\n super(\"google.protobuf.FieldMask\", [\n { no: 1, name: \"paths\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n /**\n * Encode `FieldMask` to JSON object.\n */\n internalJsonWrite(message: FieldMask, options: JsonWriteOptions): JsonValue {\n const invalidFieldMaskJsonRegex = /[A-Z]|(_([.0-9_]|$))/g;\n return message.paths.map(p => {\n if (invalidFieldMaskJsonRegex.test(p))\n throw new Error(\"Unable to encode FieldMask to JSON. lowerCamelCase of path name \\\"\" + p + \"\\\" is irreversible.\");\n return lowerCamelCase(p);\n }).join(\",\");\n }\n /**\n * Decode `FieldMask` from JSON object.\n */\n internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FieldMask): FieldMask {\n if (typeof json !== \"string\")\n throw new Error(\"Unable to parse FieldMask from JSON \" + typeofJsonValue(json) + \". Expected string.\");\n if (!target)\n target = this.create();\n if (json === \"\")\n return target;\n let camelToSnake = (str: string) => {\n if (str.includes(\"_\"))\n throw new Error(\"Unable to parse FieldMask from JSON. Path names must be lowerCamelCase.\");\n let sc = str.replace(/[A-Z]/g, letter => \"_\" + letter.toLowerCase());\n return sc;\n };\n target.paths = json.split(\",\").map(camelToSnake);\n return target;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.F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ue } from '@protobuf-ts/runtime';
2
- import type { JsonReadOptions } from '@protobuf-ts/runtime';
3
- import type { JsonWriteOptions } from '@protobuf-ts/runtime';
4
- import { MessageType } from '@protobuf-ts/runtime';
1
+ import type { JsonValue } from "@protobuf-ts/runtime";
2
+ import type { JsonReadOptions } from "@protobuf-ts/runtime";
3
+ import type { JsonWriteOptions } from "@protobuf-ts/runtime";
4
+ import { MessageType } from "@protobuf-ts/runtime";
5
5
  /**
6
6
  * `Struct` represents a structured data value, consisting of fields
7
7
  * which map to dynamically typed values. In some languages, `Struct`
@@ -39,7 +39,7 @@ export interface Value {
39
39
  * @generated from protobuf oneof: kind
40
40
  */
41
41
  kind: {
42
- oneofKind: 'nullValue';
42
+ oneofKind: "nullValue";
43
43
  /**
44
44
  * Represents a null value.
45
45
  *
@@ -47,7 +47,7 @@ export interface Value {
47
47
  */
48
48
  nullValue: NullValue;
49
49
  } | {
50
- oneofKind: 'numberValue';
50
+ oneofKind: "numberValue";
51
51
  /**
52
52
  * Represents a double value.
53
53
  *
@@ -55,7 +55,7 @@ export interface Value {
55
55
  */
56
56
  numberValue: number;
57
57
  } | {
58
- oneofKind: 'stringValue';
58
+ oneofKind: "stringValue";
59
59
  /**
60
60
  * Represents a string value.
61
61
  *
@@ -63,7 +63,7 @@ export interface Value {
63
63
  */
64
64
  stringValue: string;
65
65
  } | {
66
- oneofKind: 'boolValue';
66
+ oneofKind: "boolValue";
67
67
  /**
68
68
  * Represents a boolean value.
69
69
  *
@@ -71,7 +71,7 @@ export interface Value {
71
71
  */
72
72
  boolValue: boolean;
73
73
  } | {
74
- oneofKind: 'structValue';
74
+ oneofKind: "structValue";
75
75
  /**
76
76
  * Represents a structured value.
77
77
  *
@@ -79,7 +79,7 @@ export interface Value {
79
79
  */
80
80
  structValue: Struct;
81
81
  } | {
82
- oneofKind: 'listValue';
82
+ oneofKind: "listValue";
83
83
  /**
84
84
  * Represents a repeated `Value`.
85
85
  *
@@ -34,13 +34,7 @@ var NullValue = /* @__PURE__ */ ((NullValue2) => {
34
34
  class Struct$Type extends import_runtime3.MessageType {
35
35
  constructor() {
36
36
  super("google.protobuf.Struct", [
37
- {
38
- no: 1,
39
- name: "fields",
40
- kind: "map",
41
- K: 9,
42
- V: { kind: "message", T: () => Value }
43
- }
37
+ { no: 1, name: "fields", kind: "map", K: 9, V: { kind: "message", T: () => Value } }
44
38
  ]);
45
39
  }
46
40
  /**
@@ -58,10 +52,9 @@ class Struct$Type extends import_runtime3.MessageType {
58
52
  */
59
53
  internalJsonRead(json, options, target) {
60
54
  if (!(0, import_runtime.isJsonObject)(json))
61
- throw new globalThis.Error(
62
- "Unable to parse message " + this.typeName + " from JSON " + (0, import_runtime2.typeofJsonValue)(json) + "."
63
- );
64
- if (!target) target = this.create();
55
+ throw new globalThis.Error("Unable to parse message " + this.typeName + " from JSON " + (0, import_runtime2.typeofJsonValue)(json) + ".");
56
+ if (!target)
57
+ target = this.create();
65
58
  for (let [k, v] of globalThis.Object.entries(json)) {
66
59
  target.fields[k] = Value.fromJson(v);
67
60
  }
@@ -72,13 +65,7 @@ const Struct = new Struct$Type();
72
65
  class Value$Type extends import_runtime3.MessageType {
73
66
  constructor() {
74
67
  super("google.protobuf.Value", [
75
- {
76
- no: 1,
77
- name: "null_value",
78
- kind: "enum",
79
- oneof: "kind",
80
- T: () => ["google.protobuf.NullValue", NullValue]
81
- },
68
+ { no: 1, name: "null_value", kind: "enum", oneof: "kind", T: () => ["google.protobuf.NullValue", NullValue] },
82
69
  {
83
70
  no: 2,
84
71
  name: "number_value",
@@ -111,7 +98,8 @@ class Value$Type extends import_runtime3.MessageType {
111
98
  * Encode `Value` to JSON value.
112
99
  */
113
100
  internalJsonWrite(message, options) {
114
- if (message.kind.oneofKind === void 0) throw new globalThis.Error();
101
+ if (message.kind.oneofKind === void 0)
102
+ throw new globalThis.Error();
115
103
  switch (message.kind.oneofKind) {
116
104
  case void 0:
117
105
  throw new globalThis.Error();
@@ -128,11 +116,13 @@ class Value$Type extends import_runtime3.MessageType {
128
116
  return message.kind.stringValue;
129
117
  case "listValue":
130
118
  let listValueField = this.fields.find((f) => f.no === 6);
131
- if (listValueField?.kind !== "message") throw new globalThis.Error();
119
+ if (listValueField?.kind !== "message")
120
+ throw new globalThis.Error();
132
121
  return listValueField.T().toJson(message.kind.listValue);
133
122
  case "structValue":
134
123
  let structValueField = this.fields.find((f) => f.no === 5);
135
- if (structValueField?.kind !== "message") throw new globalThis.Error();
124
+ if (structValueField?.kind !== "message")
125
+ throw new globalThis.Error();
136
126
  return structValueField.T().toJson(message.kind.structValue);
137
127
  }
138
128
  }
@@ -140,7 +130,8 @@ class Value$Type extends import_runtime3.MessageType {
140
130
  * Decode `Value` from JSON value.
141
131
  */
142
132
  internalJsonRead(json, options, target) {
143
- if (!target) target = this.create();
133
+ if (!target)
134
+ target = this.create();
144
135
  switch (typeof json) {
145
136
  case "number":
146
137
  target.kind = { oneofKind: "numberValue", numberValue: json };
@@ -161,9 +152,7 @@ class Value$Type extends import_runtime3.MessageType {
161
152
  }
162
153
  break;
163
154
  default:
164
- throw new globalThis.Error(
165
- "Unable to parse " + this.typeName + " from JSON " + (0, import_runtime2.typeofJsonValue)(json)
166
- );
155
+ throw new globalThis.Error("Unable to parse " + this.typeName + " from JSON " + (0, import_runtime2.typeofJsonValue)(json));
167
156
  }
168
157
  return target;
169
158
  }
@@ -186,10 +175,9 @@ class ListValue$Type extends import_runtime3.MessageType {
186
175
  */
187
176
  internalJsonRead(json, options, target) {
188
177
  if (!globalThis.Array.isArray(json))
189
- throw new globalThis.Error(
190
- "Unable to parse " + this.typeName + " from JSON " + (0, import_runtime2.typeofJsonValue)(json)
191
- );
192
- if (!target) target = this.create();
178
+ throw new globalThis.Error("Unable to parse " + this.typeName + " from JSON " + (0, import_runtime2.typeofJsonValue)(json));
179
+ if (!target)
180
+ target = this.create();
193
181
  let values = json.map((v) => Value.fromJson(v));
194
182
  target.values.push(...values);
195
183
  return target;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/grpc/proto/google/protobuf/struct.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/struct.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { isJsonObject } from '@protobuf-ts/runtime';\nimport { typeofJsonValue } from '@protobuf-ts/runtime';\nimport type { JsonValue } from '@protobuf-ts/runtime';\nimport type { JsonReadOptions } from '@protobuf-ts/runtime';\nimport type { JsonWriteOptions } from '@protobuf-ts/runtime';\nimport type { JsonObject } from '@protobuf-ts/runtime';\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * `Struct` represents a structured data value, consisting of fields\n * which map to dynamically typed values. In some languages, `Struct`\n * might be supported by a native representation. For example, in\n * scripting languages like JS a struct is represented as an\n * object. The details of that representation are described together\n * with the proto support for the language.\n *\n * The JSON representation for `Struct` is JSON object.\n *\n * @generated from protobuf message google.protobuf.Struct\n */\nexport interface Struct {\n\t/**\n\t * Unordered map of dynamically typed values.\n\t *\n\t * @generated from protobuf field: map<string, google.protobuf.Value> fields = 1;\n\t */\n\tfields: {\n\t\t[key: string]: Value;\n\t};\n}\n/**\n * `Value` represents a dynamically typed value which can be either\n * null, a number, a string, a boolean, a recursive struct value, or a\n * list of values. A producer of value is expected to set one of these\n * variants. Absence of any variant indicates an error.\n *\n * The JSON representation for `Value` is JSON value.\n *\n * @generated from protobuf message google.protobuf.Value\n */\nexport interface Value {\n\t/**\n\t * @generated from protobuf oneof: kind\n\t */\n\tkind:\n\t\t| {\n\t\t\t\toneofKind: 'nullValue';\n\t\t\t\t/**\n\t\t\t\t * Represents a null value.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: google.protobuf.NullValue null_value = 1;\n\t\t\t\t */\n\t\t\t\tnullValue: NullValue;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'numberValue';\n\t\t\t\t/**\n\t\t\t\t * Represents a double value.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: double number_value = 2;\n\t\t\t\t */\n\t\t\t\tnumberValue: number;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'stringValue';\n\t\t\t\t/**\n\t\t\t\t * Represents a string value.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: string string_value = 3;\n\t\t\t\t */\n\t\t\t\tstringValue: string;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'boolValue';\n\t\t\t\t/**\n\t\t\t\t * Represents a boolean value.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: bool bool_value = 4;\n\t\t\t\t */\n\t\t\t\tboolValue: boolean;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'structValue';\n\t\t\t\t/**\n\t\t\t\t * Represents a structured value.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: google.protobuf.Struct struct_value = 5;\n\t\t\t\t */\n\t\t\t\tstructValue: Struct;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'listValue';\n\t\t\t\t/**\n\t\t\t\t * Represents a repeated `Value`.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: google.protobuf.ListValue list_value = 6;\n\t\t\t\t */\n\t\t\t\tlistValue: ListValue;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: undefined;\n\t\t };\n}\n/**\n * `ListValue` is a wrapper around a repeated field of values.\n *\n * The JSON representation for `ListValue` is JSON array.\n *\n * @generated from protobuf message google.protobuf.ListValue\n */\nexport interface ListValue {\n\t/**\n\t * Repeated field of dynamically typed values.\n\t *\n\t * @generated from protobuf field: repeated google.protobuf.Value values = 1;\n\t */\n\tvalues: Value[];\n}\n/**\n * `NullValue` is a singleton enumeration to represent the null value for the\n * `Value` type union.\n *\n * The JSON representation for `NullValue` is JSON `null`.\n *\n * @generated from protobuf enum google.protobuf.NullValue\n */\nexport enum NullValue {\n\t/**\n\t * Null value.\n\t *\n\t * @generated from protobuf enum value: NULL_VALUE = 0;\n\t */\n\tNULL_VALUE = 0,\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Struct$Type extends MessageType<Struct> {\n\tconstructor() {\n\t\tsuper('google.protobuf.Struct', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'fields',\n\t\t\t\tkind: 'map',\n\t\t\t\tK: 9 /*ScalarType.STRING*/,\n\t\t\t\tV: { kind: 'message', T: () => Value },\n\t\t\t},\n\t\t]);\n\t}\n\t/**\n\t * Encode `Struct` to JSON object.\n\t */\n\tinternalJsonWrite(message: Struct, options: JsonWriteOptions): JsonValue {\n\t\tlet json: JsonObject = {};\n\t\tfor (let [k, v] of Object.entries(message.fields)) {\n\t\t\tjson[k] = Value.toJson(v);\n\t\t}\n\t\treturn json;\n\t}\n\t/**\n\t * Decode `Struct` from JSON object.\n\t */\n\tinternalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Struct): Struct {\n\t\tif (!isJsonObject(json))\n\t\t\tthrow new globalThis.Error(\n\t\t\t\t'Unable to parse message ' + this.typeName + ' from JSON ' + typeofJsonValue(json) + '.',\n\t\t\t);\n\t\tif (!target) target = this.create();\n\t\tfor (let [k, v] of globalThis.Object.entries(json)) {\n\t\t\ttarget.fields[k] = Value.fromJson(v);\n\t\t}\n\t\treturn target;\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Struct\n */\nexport const Struct = new Struct$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Value$Type extends MessageType<Value> {\n\tconstructor() {\n\t\tsuper('google.protobuf.Value', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'null_value',\n\t\t\t\tkind: 'enum',\n\t\t\t\toneof: 'kind',\n\t\t\t\tT: () => ['google.protobuf.NullValue', NullValue],\n\t\t\t},\n\t\t\t{ no: 2, name: 'number_value', kind: 'scalar', oneof: 'kind', T: 1 /*ScalarType.DOUBLE*/ },\n\t\t\t{ no: 3, name: 'string_value', kind: 'scalar', oneof: 'kind', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'bool_value', kind: 'scalar', oneof: 'kind', T: 8 /*ScalarType.BOOL*/ },\n\t\t\t{ no: 5, name: 'struct_value', kind: 'message', oneof: 'kind', T: () => Struct },\n\t\t\t{ no: 6, name: 'list_value', kind: 'message', oneof: 'kind', T: () => ListValue },\n\t\t]);\n\t}\n\t/**\n\t * Encode `Value` to JSON value.\n\t */\n\tinternalJsonWrite(message: Value, options: JsonWriteOptions): JsonValue {\n\t\tif (message.kind.oneofKind === undefined) throw new globalThis.Error();\n\t\tswitch (message.kind.oneofKind) {\n\t\t\tcase undefined:\n\t\t\t\tthrow new globalThis.Error();\n\t\t\tcase 'boolValue':\n\t\t\t\treturn message.kind.boolValue;\n\t\t\tcase 'nullValue':\n\t\t\t\treturn null;\n\t\t\tcase 'numberValue':\n\t\t\t\tlet numberValue = message.kind.numberValue;\n\t\t\t\tif (typeof numberValue == 'number' && !Number.isFinite(numberValue))\n\t\t\t\t\tthrow new globalThis.Error();\n\t\t\t\treturn numberValue;\n\t\t\tcase 'stringValue':\n\t\t\t\treturn message.kind.stringValue;\n\t\t\tcase 'listValue':\n\t\t\t\tlet listValueField = this.fields.find((f) => f.no === 6);\n\t\t\t\tif (listValueField?.kind !== 'message') throw new globalThis.Error();\n\t\t\t\treturn listValueField.T().toJson(message.kind.listValue);\n\t\t\tcase 'structValue':\n\t\t\t\tlet structValueField = this.fields.find((f) => f.no === 5);\n\t\t\t\tif (structValueField?.kind !== 'message') throw new globalThis.Error();\n\t\t\t\treturn structValueField.T().toJson(message.kind.structValue);\n\t\t}\n\t}\n\t/**\n\t * Decode `Value` from JSON value.\n\t */\n\tinternalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Value): Value {\n\t\tif (!target) target = this.create();\n\t\tswitch (typeof json) {\n\t\t\tcase 'number':\n\t\t\t\ttarget.kind = { oneofKind: 'numberValue', numberValue: json };\n\t\t\t\tbreak;\n\t\t\tcase 'string':\n\t\t\t\ttarget.kind = { oneofKind: 'stringValue', stringValue: json };\n\t\t\t\tbreak;\n\t\t\tcase 'boolean':\n\t\t\t\ttarget.kind = { oneofKind: 'boolValue', boolValue: json };\n\t\t\t\tbreak;\n\t\t\tcase 'object':\n\t\t\t\tif (json === null) {\n\t\t\t\t\ttarget.kind = { oneofKind: 'nullValue', nullValue: NullValue.NULL_VALUE };\n\t\t\t\t} else if (globalThis.Array.isArray(json)) {\n\t\t\t\t\ttarget.kind = { oneofKind: 'listValue', listValue: ListValue.fromJson(json) };\n\t\t\t\t} else {\n\t\t\t\t\ttarget.kind = { oneofKind: 'structValue', structValue: Struct.fromJson(json) };\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new globalThis.Error(\n\t\t\t\t\t'Unable to parse ' + this.typeName + ' from JSON ' + typeofJsonValue(json),\n\t\t\t\t);\n\t\t}\n\t\treturn target;\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Value\n */\nexport const Value = new Value$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListValue$Type extends MessageType<ListValue> {\n\tconstructor() {\n\t\tsuper('google.protobuf.ListValue', [\n\t\t\t{ no: 1, name: 'values', kind: 'message', repeat: 1 /*RepeatType.PACKED*/, T: () => Value },\n\t\t]);\n\t}\n\t/**\n\t * Encode `ListValue` to JSON array.\n\t */\n\tinternalJsonWrite(message: ListValue, options: JsonWriteOptions): JsonValue {\n\t\treturn message.values.map((v) => Value.toJson(v));\n\t}\n\t/**\n\t * Decode `ListValue` from JSON array.\n\t */\n\tinternalJsonRead(json: JsonValue, options: JsonReadOptions, target?: ListValue): ListValue {\n\t\tif (!globalThis.Array.isArray(json))\n\t\t\tthrow new globalThis.Error(\n\t\t\t\t'Unable to parse ' + this.typeName + ' from JSON ' + typeofJsonValue(json),\n\t\t\t);\n\t\tif (!target) target = this.create();\n\t\tlet values = json.map((v) => Value.fromJson(v));\n\t\ttarget.values.push(...values);\n\t\treturn target;\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.ListValue\n */\nexport const ListValue = new ListValue$Type();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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AC3F,CAAC;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAkB,SAAoB,SAAsC;AAC3E,WAAO,QAAQ,OAAO,IAAI,CAAC,MAAM,MAAM,OAAO,CAAC,CAAC;AAAA,EACjD;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAiB,MAAiB,SAA0B,QAA+B;AAC1F,QAAI,CAAC,WAAW,MAAM,QAAQ,IAAI;AACjC,YAAM,IAAI,WAAW;AAAA,QACpB,qBAAqB,KAAK,WAAW,oBAAgB,iCAAgB,IAAI;AAAA,MAC1E;AACD,QAAI,CAAC,OAAQ,UAAS,KAAK,OAAO;AAClC,QAAI,SAAS,KAAK,IAAI,CAAC,MAAM,MAAM,SAAS,CAAC,CAAC;AAC9C,WAAO,OAAO,KAAK,GAAG,MAAM;AAC5B,WAAO;AAAA,EACR;AACD;AAIO,MAAM,YAAY,IAAI,eAAe;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/struct.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { isJsonObject } from \"@protobuf-ts/runtime\";\nimport { typeofJsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonReadOptions } from \"@protobuf-ts/runtime\";\nimport type { JsonWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { JsonObject } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * `Struct` represents a structured data value, consisting of fields\n * which map to dynamically typed values. In some languages, `Struct`\n * might be supported by a native representation. For example, in\n * scripting languages like JS a struct is represented as an\n * object. The details of that representation are described together\n * with the proto support for the language.\n *\n * The JSON representation for `Struct` is JSON object.\n *\n * @generated from protobuf message google.protobuf.Struct\n */\nexport interface Struct {\n /**\n * Unordered map of dynamically typed values.\n *\n * @generated from protobuf field: map<string, google.protobuf.Value> fields = 1;\n */\n fields: {\n [key: string]: Value;\n };\n}\n/**\n * `Value` represents a dynamically typed value which can be either\n * null, a number, a string, a boolean, a recursive struct value, or a\n * list of values. A producer of value is expected to set one of these\n * variants. Absence of any variant indicates an error.\n *\n * The JSON representation for `Value` is JSON value.\n *\n * @generated from protobuf message google.protobuf.Value\n */\nexport interface Value {\n /**\n * @generated from protobuf oneof: kind\n */\n kind: {\n oneofKind: \"nullValue\";\n /**\n * Represents a null value.\n *\n * @generated from protobuf field: google.protobuf.NullValue null_value = 1;\n */\n nullValue: NullValue;\n } | {\n oneofKind: \"numberValue\";\n /**\n * Represents a double value.\n *\n * @generated from protobuf field: double number_value = 2;\n */\n numberValue: number;\n } | {\n oneofKind: \"stringValue\";\n /**\n * Represents a string value.\n *\n * @generated from protobuf field: string string_value = 3;\n */\n stringValue: string;\n } | {\n oneofKind: \"boolValue\";\n /**\n * Represents a boolean value.\n *\n * @generated from protobuf field: bool bool_value = 4;\n */\n boolValue: boolean;\n } | {\n oneofKind: \"structValue\";\n /**\n * Represents a structured value.\n *\n * @generated from protobuf field: google.protobuf.Struct struct_value = 5;\n */\n structValue: Struct;\n } | {\n oneofKind: \"listValue\";\n /**\n * Represents a repeated `Value`.\n *\n * @generated from protobuf field: google.protobuf.ListValue list_value = 6;\n */\n listValue: ListValue;\n } | {\n oneofKind: undefined;\n };\n}\n/**\n * `ListValue` is a wrapper around a repeated field of values.\n *\n * The JSON representation for `ListValue` is JSON array.\n *\n * @generated from protobuf message google.protobuf.ListValue\n */\nexport interface ListValue {\n /**\n * Repeated field of dynamically typed values.\n *\n * @generated from protobuf field: repeated google.protobuf.Value values = 1;\n */\n values: Value[];\n}\n/**\n * `NullValue` is a singleton enumeration to represent the null value for the\n * `Value` type union.\n *\n * The JSON representation for `NullValue` is JSON `null`.\n *\n * @generated from protobuf enum google.protobuf.NullValue\n */\nexport enum NullValue {\n /**\n * Null value.\n *\n * @generated from protobuf enum value: NULL_VALUE = 0;\n */\n NULL_VALUE = 0\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Struct$Type extends MessageType<Struct> {\n constructor() {\n super(\"google.protobuf.Struct\", [\n { no: 1, name: \"fields\", kind: \"map\", K: 9 /*ScalarType.STRING*/, V: { kind: \"message\", T: () => Value } }\n ]);\n }\n /**\n * Encode `Struct` to JSON object.\n */\n internalJsonWrite(message: Struct, options: JsonWriteOptions): JsonValue {\n let json: JsonObject = {};\n for (let [k, v] of Object.entries(message.fields)) {\n json[k] = Value.toJson(v);\n }\n return json;\n }\n /**\n * Decode `Struct` from JSON object.\n */\n internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Struct): Struct {\n if (!isJsonObject(json))\n throw new globalThis.Error(\"Unable to parse message \" + this.typeName + \" from JSON \" + typeofJsonValue(json) + \".\");\n if (!target)\n target = this.create();\n for (let [k, v] of globalThis.Object.entries(json)) {\n target.fields[k] = Value.fromJson(v);\n }\n return target;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Struct\n */\nexport const Struct = new Struct$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Value$Type extends MessageType<Value> {\n constructor() {\n super(\"google.protobuf.Value\", [\n { no: 1, name: \"null_value\", kind: \"enum\", oneof: \"kind\", T: () => [\"google.protobuf.NullValue\", NullValue] },\n { no: 2, name: \"number_value\", kind: \"scalar\", oneof: \"kind\", T: 1 /*ScalarType.DOUBLE*/ },\n { no: 3, name: \"string_value\", kind: \"scalar\", oneof: \"kind\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"bool_value\", kind: \"scalar\", oneof: \"kind\", T: 8 /*ScalarType.BOOL*/ },\n { no: 5, name: \"struct_value\", kind: \"message\", oneof: \"kind\", T: () => Struct },\n { no: 6, name: \"list_value\", kind: \"message\", oneof: \"kind\", T: () => ListValue }\n ]);\n }\n /**\n * Encode `Value` to JSON value.\n */\n internalJsonWrite(message: Value, options: JsonWriteOptions): JsonValue {\n if (message.kind.oneofKind === undefined)\n throw new globalThis.Error();\n switch (message.kind.oneofKind) {\n case undefined: throw new globalThis.Error();\n case \"boolValue\": return message.kind.boolValue;\n case \"nullValue\": return null;\n case \"numberValue\":\n let numberValue = message.kind.numberValue;\n if (typeof numberValue == \"number\" && !Number.isFinite(numberValue))\n throw new globalThis.Error();\n return numberValue;\n case \"stringValue\": return message.kind.stringValue;\n case \"listValue\":\n let listValueField = this.fields.find(f => f.no === 6);\n if (listValueField?.kind !== \"message\")\n throw new globalThis.Error();\n return listValueField.T().toJson(message.kind.listValue);\n case \"structValue\":\n let structValueField = this.fields.find(f => f.no === 5);\n if (structValueField?.kind !== \"message\")\n throw new globalThis.Error();\n return structValueField.T().toJson(message.kind.structValue);\n }\n }\n /**\n * Decode `Value` from JSON value.\n */\n internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Value): Value {\n if (!target)\n target = this.create();\n switch (typeof json) {\n case \"number\":\n target.kind = { oneofKind: \"numberValue\", numberValue: json };\n break;\n case \"string\":\n target.kind = { oneofKind: \"stringValue\", stringValue: json };\n break;\n case \"boolean\":\n target.kind = { oneofKind: \"boolValue\", boolValue: json };\n break;\n case \"object\":\n if (json === null) {\n target.kind = { oneofKind: \"nullValue\", nullValue: NullValue.NULL_VALUE };\n }\n else if (globalThis.Array.isArray(json)) {\n target.kind = { oneofKind: \"listValue\", listValue: ListValue.fromJson(json) };\n }\n else {\n target.kind = { oneofKind: \"structValue\", structValue: Struct.fromJson(json) };\n }\n break;\n default: throw new globalThis.Error(\"Unable to parse \" + this.typeName + \" from JSON \" + typeofJsonValue(json));\n }\n return target;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Value\n */\nexport const Value = new Value$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListValue$Type extends MessageType<ListValue> {\n constructor() {\n super(\"google.protobuf.ListValue\", [\n { no: 1, name: \"values\", kind: \"message\", repeat: 1 /*RepeatType.PACKED*/, T: () => Value }\n ]);\n }\n /**\n * Encode `ListValue` to JSON array.\n */\n internalJsonWrite(message: ListValue, options: JsonWriteOptions): JsonValue {\n return message.values.map(v => Value.toJson(v));\n }\n /**\n * Decode `ListValue` from JSON array.\n */\n internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: ListValue): ListValue {\n if (!globalThis.Array.isArray(json))\n throw new globalThis.Error(\"Unable to parse \" + this.typeName + \" from JSON \" + typeofJsonValue(json));\n if (!target)\n target = this.create();\n let values = json.map(v => Value.fromJson(v));\n target.values.push(...values);\n return target;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.ListValue\n */\nexport const ListValue = new ListValue$Type();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAA6B;AAC7B,IAAAA,kBAAgC;AAKhC,IAAAA,kBAA4B;AAgHrB,IAAK,YAAL,kBAAKC,eAAL;AAMH,EAAAA,sBAAA,gBAAa,KAAb;AANQ,SAAAA;AAAA,GAAA;AASZ,MAAM,oBAAoB,4BAAoB;AAAA,EAC1C,cAAc;AACV,UAAM,0BAA0B;AAAA,MAC5B,EAAE,IAAI,GAAG,MAAM,UAAU,MAAM,OAAO,GAAG,GAAyB,GAAG,EAAE,MAAM,WAAW,GAAG,MAAM,MAAM,EAAE;AAAA,IAC7G,CAAC;AAAA,EACL;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAkB,SAAiB,SAAsC;AACrE,QAAI,OAAmB,CAAC;AACxB,aAAS,CAAC,GAAG,CAAC,KAAK,OAAO,QAAQ,QAAQ,MAAM,GAAG;AAC/C,WAAK,CAAC,IAAI,MAAM,OAAO,CAAC;AAAA,IAC5B;AACA,WAAO;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAiB,MAAiB,SAA0B,QAAyB;AACjF,QAAI,KAAC,6BAAa,IAAI;AAClB,YAAM,IAAI,WAAW,MAAM,6BAA6B,KAAK,WAAW,oBAAgB,iCAAgB,IAAI,IAAI,GAAG;AACvH,QAAI,CAAC;AACD,eAAS,KAAK,OAAO;AACzB,aAAS,CAAC,GAAG,CAAC,KAAK,WAAW,OAAO,QAAQ,IAAI,GAAG;AAChD,aAAO,OAAO,CAAC,IAAI,MAAM,SAAS,CAAC;AAAA,IACvC;AACA,WA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AAIO,MAAM,QAAQ,IAAI,WAAW;AAEpC,MAAM,uBAAuB,4BAAuB;AAAA,EAChD,cAAc;AACV,UAAM,6BAA6B;AAAA,MAC/B,EAAE,IAAI,GAAG,MAAM,UAAU,MAAM,WAAW,QAAQ,GAAyB,GAAG,MAAM,MAAM;AAAA,IAC9F,CAAC;AAAA,EACL;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAkB,SAAoB,SAAsC;AACxE,WAAO,QAAQ,OAAO,IAAI,OAAK,MAAM,OAAO,CAAC,CAAC;AAAA,EAClD;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAiB,MAAiB,SAA0B,QAA+B;AACvF,QAAI,CAAC,WAAW,MAAM,QAAQ,IAAI;AAC9B,YAAM,IAAI,WAAW,MAAM,qBAAqB,KAAK,WAAW,oBAAgB,iCAAgB,IAAI,CAAC;AACzG,QAAI,CAAC;AACD,eAAS,KAAK,OAAO;AACzB,QAAI,SAAS,KAAK,IAAI,OAAK,MAAM,SAAS,CAAC,CAAC;AAC5C,WAAO,OAAO,KAAK,GAAG,MAAM;AAC5B,WAAO;AAAA,EACX;AACJ;AAIO,MAAM,YAAY,IAAI,eAAe;",
6
6
  "names": ["import_runtime", "NullValue"]
7
7
  }
@@ -1,7 +1,7 @@
1
- import type { JsonValue } from '@protobuf-ts/runtime';
2
- import type { JsonReadOptions } from '@protobuf-ts/runtime';
3
- import type { JsonWriteOptions } from '@protobuf-ts/runtime';
4
- import { MessageType } from '@protobuf-ts/runtime';
1
+ import type { JsonValue } from "@protobuf-ts/runtime";
2
+ import type { JsonReadOptions } from "@protobuf-ts/runtime";
3
+ import type { JsonWriteOptions } from "@protobuf-ts/runtime";
4
+ import { MessageType } from "@protobuf-ts/runtime";
5
5
  /**
6
6
  * A Timestamp represents a point in time independent of any time zone
7
7
  * or calendar, represented as seconds and fractions of seconds at
@@ -33,6 +33,7 @@ class Timestamp$Type extends import_runtime3.MessageType {
33
33
  kind: "scalar",
34
34
  T: 3,
35
35
  L: 0
36
+ /*LongType.BIGINT*/
36
37
  },
37
38
  {
38
39
  no: 2,
@@ -57,9 +58,7 @@ class Timestamp$Type extends import_runtime3.MessageType {
57
58
  * Converts a `Timestamp` to a JavaScript Date.
58
59
  */
59
60
  toDate(message) {
60
- return new Date(
61
- import_runtime2.PbLong.from(message.seconds).toNumber() * 1e3 + Math.ceil(message.nanos / 1e6)
62
- );
61
+ return new Date(import_runtime2.PbLong.from(message.seconds).toNumber() * 1e3 + Math.ceil(message.nanos / 1e6));
63
62
  }
64
63
  /**
65
64
  * Converts a JavaScript Date to a `Timestamp`.
@@ -78,17 +77,18 @@ class Timestamp$Type extends import_runtime3.MessageType {
78
77
  internalJsonWrite(message, options) {
79
78
  let ms = import_runtime2.PbLong.from(message.seconds).toNumber() * 1e3;
80
79
  if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
81
- throw new Error(
82
- "Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."
83
- );
80
+ throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
84
81
  if (message.nanos < 0)
85
82
  throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
86
83
  let z = "Z";
87
84
  if (message.nanos > 0) {
88
85
  let nanosStr = (message.nanos + 1e9).toString().substring(1);
89
- if (nanosStr.substring(3) === "000000") z = "." + nanosStr.substring(0, 3) + "Z";
90
- else if (nanosStr.substring(6) === "000") z = "." + nanosStr.substring(0, 6) + "Z";
91
- else z = "." + nanosStr + "Z";
86
+ if (nanosStr.substring(3) === "000000")
87
+ z = "." + nanosStr.substring(0, 3) + "Z";
88
+ else if (nanosStr.substring(6) === "000")
89
+ z = "." + nanosStr.substring(0, 6) + "Z";
90
+ else
91
+ z = "." + nanosStr + "Z";
92
92
  }
93
93
  return new Date(ms).toISOString().replace(".000Z", z);
94
94
  }
@@ -99,19 +99,16 @@ class Timestamp$Type extends import_runtime3.MessageType {
99
99
  internalJsonRead(json, options, target) {
100
100
  if (typeof json !== "string")
101
101
  throw new Error("Unable to parse Timestamp from JSON " + (0, import_runtime.typeofJsonValue)(json) + ".");
102
- let matches = json.match(
103
- /^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/
104
- );
105
- if (!matches) throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
106
- let ms = Date.parse(
107
- matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z")
108
- );
109
- if (Number.isNaN(ms)) throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
102
+ let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
103
+ if (!matches)
104
+ throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
105
+ let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
106
+ if (Number.isNaN(ms))
107
+ throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
110
108
  if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
111
- throw new globalThis.Error(
112
- "Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."
113
- );
114
- if (!target) target = this.create();
109
+ throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
110
+ if (!target)
111
+ target = this.create();
115
112
  target.seconds = import_runtime2.PbLong.from(ms / 1e3).toBigInt();
116
113
  target.nanos = 0;
117
114
  if (matches[7])