@canton-network/core-ledger-client 0.9.0 → 0.11.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 (238) hide show
  1. package/dist/constants.d.ts +0 -3
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.js +8 -8
  4. package/dist/index.d.ts +2 -10
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1 -9
  7. package/dist/ledger-api-utils.d.ts +14 -2
  8. package/dist/ledger-api-utils.d.ts.map +1 -1
  9. package/dist/ledger-api-utils.js +76 -5
  10. package/dist/ledger-client.d.ts +35 -1
  11. package/dist/ledger-client.d.ts.map +1 -1
  12. package/dist/ledger-client.js +146 -10
  13. package/dist/token-standard-service.d.ts +33 -9
  14. package/dist/token-standard-service.d.ts.map +1 -1
  15. package/dist/token-standard-service.js +284 -67
  16. package/dist/topology-write-service.d.ts +15 -3
  17. package/dist/topology-write-service.d.ts.map +1 -1
  18. package/dist/topology-write-service.js +28 -18
  19. package/dist/txparse/parser.d.ts +2 -1
  20. package/dist/txparse/parser.d.ts.map +1 -1
  21. package/dist/txparse/parser.js +22 -18
  22. package/dist/txparse/parser.test.js +3 -3
  23. package/dist/txparse/types.d.ts +9 -9
  24. package/dist/txparse/types.d.ts.map +1 -1
  25. package/package.json +6 -8
  26. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +0 -58
  27. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +0 -1
  28. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +0 -34
  29. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +0 -232
  30. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +0 -1
  31. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +0 -560
  32. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +0 -144
  33. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +0 -1
  34. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +0 -85
  35. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +0 -291
  36. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +0 -1
  37. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +0 -663
  38. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +0 -76
  39. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +0 -1
  40. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +0 -96
  41. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +0 -106
  42. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +0 -1
  43. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +0 -62
  44. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +0 -199
  45. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +0 -1
  46. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +0 -427
  47. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +0 -56
  48. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +0 -1
  49. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +0 -35
  50. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +0 -81
  51. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +0 -1
  52. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +0 -135
  53. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +0 -196
  54. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +0 -1
  55. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +0 -113
  56. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +0 -413
  57. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +0 -1
  58. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +0 -867
  59. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +0 -210
  60. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +0 -1
  61. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +0 -126
  62. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +0 -758
  63. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +0 -1
  64. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +0 -1580
  65. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +0 -66
  66. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +0 -1
  67. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +0 -38
  68. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +0 -90
  69. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +0 -1
  70. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +0 -178
  71. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +0 -99
  72. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +0 -1
  73. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +0 -61
  74. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +0 -210
  75. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +0 -1
  76. package/dist/_proto/com/daml/ledger/api/v2/command_service.js +0 -436
  77. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +0 -80
  78. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +0 -1
  79. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +0 -47
  80. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +0 -91
  81. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +0 -1
  82. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +0 -200
  83. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +0 -491
  84. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +0 -1
  85. package/dist/_proto/com/daml/ledger/api/v2/commands.js +0 -828
  86. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +0 -149
  87. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +0 -1
  88. package/dist/_proto/com/daml/ledger/api/v2/completion.js +0 -196
  89. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +0 -495
  90. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +0 -1
  91. package/dist/_proto/com/daml/ledger/api/v2/event.js +0 -723
  92. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +0 -52
  93. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +0 -1
  94. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +0 -31
  95. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +0 -150
  96. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +0 -1
  97. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +0 -291
  98. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +0 -96
  99. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +0 -1
  100. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +0 -225
  101. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +0 -43
  102. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +0 -1
  103. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +0 -85
  104. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +0 -100
  105. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +0 -1
  106. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +0 -59
  107. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +0 -877
  108. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +0 -1
  109. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +0 -1768
  110. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +0 -259
  111. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +0 -1
  112. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +0 -667
  113. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +0 -69
  114. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +0 -1
  115. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +0 -133
  116. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +0 -41
  117. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +0 -1
  118. package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +0 -84
  119. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +0 -68
  120. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +0 -1
  121. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +0 -43
  122. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +0 -181
  123. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +0 -1
  124. package/dist/_proto/com/daml/ledger/api/v2/package_service.js +0 -395
  125. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +0 -308
  126. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +0 -1
  127. package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +0 -521
  128. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +0 -193
  129. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +0 -1
  130. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +0 -350
  131. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +0 -91
  132. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +0 -1
  133. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +0 -56
  134. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +0 -448
  135. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +0 -1
  136. package/dist/_proto/com/daml/ledger/api/v2/state_service.js +0 -874
  137. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +0 -54
  138. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +0 -1
  139. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +0 -34
  140. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +0 -78
  141. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +0 -1
  142. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +0 -168
  143. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +0 -211
  144. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +0 -1
  145. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +0 -447
  146. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +0 -33
  147. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +0 -1
  148. package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +0 -69
  149. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +0 -252
  150. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +0 -1
  151. package/dist/_proto/com/daml/ledger/api/v2/transaction.js +0 -410
  152. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +0 -453
  153. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +0 -1
  154. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +0 -815
  155. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +0 -199
  156. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +0 -1
  157. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +0 -121
  158. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +0 -424
  159. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +0 -1
  160. package/dist/_proto/com/daml/ledger/api/v2/update_service.js +0 -853
  161. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +0 -500
  162. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +0 -1
  163. package/dist/_proto/com/daml/ledger/api/v2/value.js +0 -937
  164. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +0 -40
  165. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +0 -1
  166. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +0 -25
  167. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +0 -190
  168. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +0 -1
  169. package/dist/_proto/com/daml/ledger/api/v2/version_service.js +0 -400
  170. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +0 -1028
  171. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +0 -1
  172. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +0 -2110
  173. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +0 -30
  174. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +0 -1
  175. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +0 -62
  176. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +0 -168
  177. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +0 -1
  178. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +0 -395
  179. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +0 -1105
  180. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +0 -1
  181. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +0 -2294
  182. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +0 -278
  183. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +0 -1
  184. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +0 -654
  185. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +0 -166
  186. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +0 -1
  187. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +0 -379
  188. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +0 -199
  189. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +0 -1
  190. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +0 -136
  191. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +0 -1195
  192. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +0 -1
  193. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +0 -3342
  194. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +0 -119
  195. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +0 -1
  196. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +0 -76
  197. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +0 -607
  198. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +0 -1
  199. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +0 -1292
  200. package/dist/_proto/google/protobuf/any.d.ts +0 -177
  201. package/dist/_proto/google/protobuf/any.d.ts.map +0 -1
  202. package/dist/_proto/google/protobuf/any.js +0 -175
  203. package/dist/_proto/google/protobuf/descriptor.d.ts +0 -1638
  204. package/dist/_proto/google/protobuf/descriptor.d.ts.map +0 -1
  205. package/dist/_proto/google/protobuf/descriptor.js +0 -2999
  206. package/dist/_proto/google/protobuf/duration.d.ts +0 -114
  207. package/dist/_proto/google/protobuf/duration.d.ts.map +0 -1
  208. package/dist/_proto/google/protobuf/duration.js +0 -113
  209. package/dist/_proto/google/protobuf/empty.d.ts +0 -33
  210. package/dist/_proto/google/protobuf/empty.d.ts.map +0 -1
  211. package/dist/_proto/google/protobuf/empty.js +0 -41
  212. package/dist/_proto/google/protobuf/field_mask.d.ts +0 -240
  213. package/dist/_proto/google/protobuf/field_mask.d.ts.map +0 -1
  214. package/dist/_proto/google/protobuf/field_mask.js +0 -95
  215. package/dist/_proto/google/protobuf/struct.d.ts +0 -187
  216. package/dist/_proto/google/protobuf/struct.d.ts.map +0 -1
  217. package/dist/_proto/google/protobuf/struct.js +0 -417
  218. package/dist/_proto/google/protobuf/timestamp.d.ts +0 -159
  219. package/dist/_proto/google/protobuf/timestamp.d.ts.map +0 -1
  220. package/dist/_proto/google/protobuf/timestamp.js +0 -157
  221. package/dist/_proto/google/rpc/code.d.ts +0 -219
  222. package/dist/_proto/google/rpc/code.d.ts.map +0 -1
  223. package/dist/_proto/google/rpc/code.js +0 -237
  224. package/dist/_proto/google/rpc/context/attribute_context.d.ts +0 -594
  225. package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +0 -1
  226. package/dist/_proto/google/rpc/context/attribute_context.js +0 -1007
  227. package/dist/_proto/google/rpc/context/audit_context.d.ts +0 -62
  228. package/dist/_proto/google/rpc/context/audit_context.d.ts.map +0 -1
  229. package/dist/_proto/google/rpc/context/audit_context.js +0 -111
  230. package/dist/_proto/google/rpc/error_details.d.ts +0 -549
  231. package/dist/_proto/google/rpc/error_details.d.ts.map +0 -1
  232. package/dist/_proto/google/rpc/error_details.js +0 -918
  233. package/dist/_proto/google/rpc/status.d.ts +0 -55
  234. package/dist/_proto/google/rpc/status.d.ts.map +0 -1
  235. package/dist/_proto/google/rpc/status.js +0 -79
  236. package/dist/_proto/scalapb/scalapb.d.ts +0 -779
  237. package/dist/_proto/scalapb/scalapb.d.ts.map +0 -1
  238. package/dist/_proto/scalapb/scalapb.js +0 -1658
@@ -1,187 +0,0 @@
1
- import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
2
- import type { IBinaryWriter } from '@protobuf-ts/runtime';
3
- import type { BinaryReadOptions } from '@protobuf-ts/runtime';
4
- import type { IBinaryReader } from '@protobuf-ts/runtime';
5
- import type { PartialMessage } from '@protobuf-ts/runtime';
6
- import type { JsonValue } from '@protobuf-ts/runtime';
7
- import type { JsonReadOptions } from '@protobuf-ts/runtime';
8
- import type { JsonWriteOptions } from '@protobuf-ts/runtime';
9
- import { MessageType } from '@protobuf-ts/runtime';
10
- /**
11
- * `Struct` represents a structured data value, consisting of fields
12
- * which map to dynamically typed values. In some languages, `Struct`
13
- * might be supported by a native representation. For example, in
14
- * scripting languages like JS a struct is represented as an
15
- * object. The details of that representation are described together
16
- * with the proto support for the language.
17
- *
18
- * The JSON representation for `Struct` is JSON object.
19
- *
20
- * @generated from protobuf message google.protobuf.Struct
21
- */
22
- export interface Struct {
23
- /**
24
- * Unordered map of dynamically typed values.
25
- *
26
- * @generated from protobuf field: map<string, google.protobuf.Value> fields = 1
27
- */
28
- fields: {
29
- [key: string]: Value;
30
- };
31
- }
32
- /**
33
- * `Value` represents a dynamically typed value which can be either
34
- * null, a number, a string, a boolean, a recursive struct value, or a
35
- * list of values. A producer of value is expected to set one of these
36
- * variants. Absence of any variant indicates an error.
37
- *
38
- * The JSON representation for `Value` is JSON value.
39
- *
40
- * @generated from protobuf message google.protobuf.Value
41
- */
42
- export interface Value {
43
- /**
44
- * The kind of value.
45
- *
46
- * @generated from protobuf oneof: kind
47
- */
48
- kind: {
49
- oneofKind: 'nullValue';
50
- /**
51
- * Represents a null value.
52
- *
53
- * @generated from protobuf field: google.protobuf.NullValue null_value = 1
54
- */
55
- nullValue: NullValue;
56
- } | {
57
- oneofKind: 'numberValue';
58
- /**
59
- * Represents a double value.
60
- *
61
- * @generated from protobuf field: double number_value = 2
62
- */
63
- numberValue: number;
64
- } | {
65
- oneofKind: 'stringValue';
66
- /**
67
- * Represents a string value.
68
- *
69
- * @generated from protobuf field: string string_value = 3
70
- */
71
- stringValue: string;
72
- } | {
73
- oneofKind: 'boolValue';
74
- /**
75
- * Represents a boolean value.
76
- *
77
- * @generated from protobuf field: bool bool_value = 4
78
- */
79
- boolValue: boolean;
80
- } | {
81
- oneofKind: 'structValue';
82
- /**
83
- * Represents a structured value.
84
- *
85
- * @generated from protobuf field: google.protobuf.Struct struct_value = 5
86
- */
87
- structValue: Struct;
88
- } | {
89
- oneofKind: 'listValue';
90
- /**
91
- * Represents a repeated `Value`.
92
- *
93
- * @generated from protobuf field: google.protobuf.ListValue list_value = 6
94
- */
95
- listValue: ListValue;
96
- } | {
97
- oneofKind: undefined;
98
- };
99
- }
100
- /**
101
- * `ListValue` is a wrapper around a repeated field of values.
102
- *
103
- * The JSON representation for `ListValue` is JSON array.
104
- *
105
- * @generated from protobuf message google.protobuf.ListValue
106
- */
107
- export interface ListValue {
108
- /**
109
- * Repeated field of dynamically typed values.
110
- *
111
- * @generated from protobuf field: repeated google.protobuf.Value values = 1
112
- */
113
- values: Value[];
114
- }
115
- /**
116
- * `NullValue` is a singleton enumeration to represent the null value for the
117
- * `Value` type union.
118
- *
119
- * The JSON representation for `NullValue` is JSON `null`.
120
- *
121
- * @generated from protobuf enum google.protobuf.NullValue
122
- */
123
- export declare enum NullValue {
124
- /**
125
- * Null value.
126
- *
127
- * @generated from protobuf enum value: NULL_VALUE = 0;
128
- */
129
- NULL_VALUE = 0
130
- }
131
- declare class Struct$Type extends MessageType<Struct> {
132
- constructor();
133
- /**
134
- * Encode `Struct` to JSON object.
135
- */
136
- internalJsonWrite(message: Struct, options: JsonWriteOptions): JsonValue;
137
- /**
138
- * Decode `Struct` from JSON object.
139
- */
140
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Struct): Struct;
141
- create(value?: PartialMessage<Struct>): Struct;
142
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Struct): Struct;
143
- private binaryReadMap1;
144
- internalBinaryWrite(message: Struct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
145
- }
146
- /**
147
- * @generated MessageType for protobuf message google.protobuf.Struct
148
- */
149
- export declare const Struct: Struct$Type;
150
- declare class Value$Type extends MessageType<Value> {
151
- constructor();
152
- /**
153
- * Encode `Value` to JSON value.
154
- */
155
- internalJsonWrite(message: Value, options: JsonWriteOptions): JsonValue;
156
- /**
157
- * Decode `Value` from JSON value.
158
- */
159
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Value): Value;
160
- create(value?: PartialMessage<Value>): Value;
161
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Value): Value;
162
- internalBinaryWrite(message: Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
163
- }
164
- /**
165
- * @generated MessageType for protobuf message google.protobuf.Value
166
- */
167
- export declare const Value: Value$Type;
168
- declare class ListValue$Type extends MessageType<ListValue> {
169
- constructor();
170
- /**
171
- * Encode `ListValue` to JSON array.
172
- */
173
- internalJsonWrite(message: ListValue, options: JsonWriteOptions): JsonValue;
174
- /**
175
- * Decode `ListValue` from JSON array.
176
- */
177
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: ListValue): ListValue;
178
- create(value?: PartialMessage<ListValue>): ListValue;
179
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListValue): ListValue;
180
- internalBinaryWrite(message: ListValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
181
- }
182
- /**
183
- * @generated MessageType for protobuf message google.protobuf.ListValue
184
- */
185
- export declare const ListValue: ListValue$Type;
186
- export {};
187
- //# sourceMappingURL=struct.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"struct.d.ts","sourceRoot":"","sources":["../../../../src/_proto/google/protobuf/struct.ts"],"names":[],"mappings":"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"}
@@ -1,417 +0,0 @@
1
- import { WireType } from '@protobuf-ts/runtime';
2
- import { UnknownFieldHandler } from '@protobuf-ts/runtime';
3
- import { reflectionMergePartial } from '@protobuf-ts/runtime';
4
- import { isJsonObject } from '@protobuf-ts/runtime';
5
- import { typeofJsonValue } from '@protobuf-ts/runtime';
6
- import { MessageType } from '@protobuf-ts/runtime';
7
- /**
8
- * `NullValue` is a singleton enumeration to represent the null value for the
9
- * `Value` type union.
10
- *
11
- * The JSON representation for `NullValue` is JSON `null`.
12
- *
13
- * @generated from protobuf enum google.protobuf.NullValue
14
- */
15
- export var NullValue;
16
- (function (NullValue) {
17
- /**
18
- * Null value.
19
- *
20
- * @generated from protobuf enum value: NULL_VALUE = 0;
21
- */
22
- NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
23
- })(NullValue || (NullValue = {}));
24
- // @generated message type with reflection information, may provide speed optimized methods
25
- class Struct$Type extends MessageType {
26
- constructor() {
27
- super('google.protobuf.Struct', [
28
- {
29
- no: 1,
30
- name: 'fields',
31
- kind: 'map',
32
- K: 9 /*ScalarType.STRING*/,
33
- V: { kind: 'message', T: () => Value },
34
- },
35
- ]);
36
- }
37
- /**
38
- * Encode `Struct` to JSON object.
39
- */
40
- internalJsonWrite(message, options) {
41
- let json = {};
42
- for (let [k, v] of Object.entries(message.fields)) {
43
- json[k] = Value.toJson(v);
44
- }
45
- return json;
46
- }
47
- /**
48
- * Decode `Struct` from JSON object.
49
- */
50
- internalJsonRead(json, options, target) {
51
- if (!isJsonObject(json))
52
- throw new globalThis.Error('Unable to parse message ' +
53
- this.typeName +
54
- ' from JSON ' +
55
- typeofJsonValue(json) +
56
- '.');
57
- if (!target)
58
- target = this.create();
59
- for (let [k, v] of globalThis.Object.entries(json)) {
60
- target.fields[k] = Value.fromJson(v);
61
- }
62
- return target;
63
- }
64
- create(value) {
65
- const message = globalThis.Object.create(this.messagePrototype);
66
- message.fields = {};
67
- if (value !== undefined)
68
- reflectionMergePartial(this, message, value);
69
- return message;
70
- }
71
- internalBinaryRead(reader, length, options, target) {
72
- let message = target ?? this.create(), end = reader.pos + length;
73
- while (reader.pos < end) {
74
- let [fieldNo, wireType] = reader.tag();
75
- switch (fieldNo) {
76
- case /* map<string, google.protobuf.Value> fields */ 1:
77
- this.binaryReadMap1(message.fields, reader, options);
78
- break;
79
- default:
80
- let u = options.readUnknownField;
81
- if (u === 'throw')
82
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
83
- let d = reader.skip(wireType);
84
- if (u !== false)
85
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
86
- }
87
- }
88
- return message;
89
- }
90
- binaryReadMap1(map, reader, options) {
91
- let len = reader.uint32(), end = reader.pos + len, key, val;
92
- while (reader.pos < end) {
93
- let [fieldNo, wireType] = reader.tag();
94
- switch (fieldNo) {
95
- case 1:
96
- key = reader.string();
97
- break;
98
- case 2:
99
- val = Value.internalBinaryRead(reader, reader.uint32(), options);
100
- break;
101
- default:
102
- throw new globalThis.Error('unknown map entry field for google.protobuf.Struct.fields');
103
- }
104
- }
105
- map[key ?? ''] = val ?? Value.create();
106
- }
107
- internalBinaryWrite(message, writer, options) {
108
- /* map<string, google.protobuf.Value> fields = 1; */
109
- for (let k of globalThis.Object.keys(message.fields)) {
110
- writer
111
- .tag(1, WireType.LengthDelimited)
112
- .fork()
113
- .tag(1, WireType.LengthDelimited)
114
- .string(k);
115
- writer.tag(2, WireType.LengthDelimited).fork();
116
- Value.internalBinaryWrite(message.fields[k], writer, options);
117
- writer.join().join();
118
- }
119
- let u = options.writeUnknownFields;
120
- if (u !== false)
121
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
122
- return writer;
123
- }
124
- }
125
- /**
126
- * @generated MessageType for protobuf message google.protobuf.Struct
127
- */
128
- export const Struct = new Struct$Type();
129
- // @generated message type with reflection information, may provide speed optimized methods
130
- class Value$Type extends MessageType {
131
- constructor() {
132
- super('google.protobuf.Value', [
133
- {
134
- no: 1,
135
- name: 'null_value',
136
- kind: 'enum',
137
- oneof: 'kind',
138
- T: () => ['google.protobuf.NullValue', NullValue],
139
- },
140
- {
141
- no: 2,
142
- name: 'number_value',
143
- kind: 'scalar',
144
- oneof: 'kind',
145
- T: 1 /*ScalarType.DOUBLE*/,
146
- },
147
- {
148
- no: 3,
149
- name: 'string_value',
150
- kind: 'scalar',
151
- oneof: 'kind',
152
- T: 9 /*ScalarType.STRING*/,
153
- },
154
- {
155
- no: 4,
156
- name: 'bool_value',
157
- kind: 'scalar',
158
- oneof: 'kind',
159
- T: 8 /*ScalarType.BOOL*/,
160
- },
161
- {
162
- no: 5,
163
- name: 'struct_value',
164
- kind: 'message',
165
- oneof: 'kind',
166
- T: () => Struct,
167
- },
168
- {
169
- no: 6,
170
- name: 'list_value',
171
- kind: 'message',
172
- oneof: 'kind',
173
- T: () => ListValue,
174
- },
175
- ]);
176
- }
177
- /**
178
- * Encode `Value` to JSON value.
179
- */
180
- internalJsonWrite(message, options) {
181
- if (message.kind.oneofKind === undefined)
182
- throw new globalThis.Error();
183
- switch (message.kind.oneofKind) {
184
- case undefined:
185
- throw new globalThis.Error();
186
- case 'boolValue':
187
- return message.kind.boolValue;
188
- case 'nullValue':
189
- return null;
190
- case 'numberValue':
191
- let numberValue = message.kind.numberValue;
192
- if (typeof numberValue == 'number' &&
193
- !Number.isFinite(numberValue))
194
- throw new globalThis.Error();
195
- return numberValue;
196
- case 'stringValue':
197
- return message.kind.stringValue;
198
- case 'listValue':
199
- let listValueField = this.fields.find((f) => f.no === 6);
200
- if (listValueField?.kind !== 'message')
201
- throw new globalThis.Error();
202
- return listValueField.T().toJson(message.kind.listValue);
203
- case 'structValue':
204
- let structValueField = this.fields.find((f) => f.no === 5);
205
- if (structValueField?.kind !== 'message')
206
- throw new globalThis.Error();
207
- return structValueField.T().toJson(message.kind.structValue);
208
- }
209
- }
210
- /**
211
- * Decode `Value` from JSON value.
212
- */
213
- internalJsonRead(json, options, target) {
214
- if (!target)
215
- target = this.create();
216
- switch (typeof json) {
217
- case 'number':
218
- target.kind = { oneofKind: 'numberValue', numberValue: json };
219
- break;
220
- case 'string':
221
- target.kind = { oneofKind: 'stringValue', stringValue: json };
222
- break;
223
- case 'boolean':
224
- target.kind = { oneofKind: 'boolValue', boolValue: json };
225
- break;
226
- case 'object':
227
- if (json === null) {
228
- target.kind = {
229
- oneofKind: 'nullValue',
230
- nullValue: NullValue.NULL_VALUE,
231
- };
232
- }
233
- else if (globalThis.Array.isArray(json)) {
234
- target.kind = {
235
- oneofKind: 'listValue',
236
- listValue: ListValue.fromJson(json),
237
- };
238
- }
239
- else {
240
- target.kind = {
241
- oneofKind: 'structValue',
242
- structValue: Struct.fromJson(json),
243
- };
244
- }
245
- break;
246
- default:
247
- throw new globalThis.Error('Unable to parse ' +
248
- this.typeName +
249
- ' from JSON ' +
250
- typeofJsonValue(json));
251
- }
252
- return target;
253
- }
254
- create(value) {
255
- const message = globalThis.Object.create(this.messagePrototype);
256
- message.kind = { oneofKind: undefined };
257
- if (value !== undefined)
258
- reflectionMergePartial(this, message, value);
259
- return message;
260
- }
261
- internalBinaryRead(reader, length, options, target) {
262
- let message = target ?? this.create(), end = reader.pos + length;
263
- while (reader.pos < end) {
264
- let [fieldNo, wireType] = reader.tag();
265
- switch (fieldNo) {
266
- case /* google.protobuf.NullValue null_value */ 1:
267
- message.kind = {
268
- oneofKind: 'nullValue',
269
- nullValue: reader.int32(),
270
- };
271
- break;
272
- case /* double number_value */ 2:
273
- message.kind = {
274
- oneofKind: 'numberValue',
275
- numberValue: reader.double(),
276
- };
277
- break;
278
- case /* string string_value */ 3:
279
- message.kind = {
280
- oneofKind: 'stringValue',
281
- stringValue: reader.string(),
282
- };
283
- break;
284
- case /* bool bool_value */ 4:
285
- message.kind = {
286
- oneofKind: 'boolValue',
287
- boolValue: reader.bool(),
288
- };
289
- break;
290
- case /* google.protobuf.Struct struct_value */ 5:
291
- message.kind = {
292
- oneofKind: 'structValue',
293
- structValue: Struct.internalBinaryRead(reader, reader.uint32(), options, message.kind.structValue),
294
- };
295
- break;
296
- case /* google.protobuf.ListValue list_value */ 6:
297
- message.kind = {
298
- oneofKind: 'listValue',
299
- listValue: ListValue.internalBinaryRead(reader, reader.uint32(), options, message.kind.listValue),
300
- };
301
- break;
302
- default:
303
- let u = options.readUnknownField;
304
- if (u === 'throw')
305
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
306
- let d = reader.skip(wireType);
307
- if (u !== false)
308
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
309
- }
310
- }
311
- return message;
312
- }
313
- internalBinaryWrite(message, writer, options) {
314
- /* google.protobuf.NullValue null_value = 1; */
315
- if (message.kind.oneofKind === 'nullValue')
316
- writer.tag(1, WireType.Varint).int32(message.kind.nullValue);
317
- /* double number_value = 2; */
318
- if (message.kind.oneofKind === 'numberValue')
319
- writer.tag(2, WireType.Bit64).double(message.kind.numberValue);
320
- /* string string_value = 3; */
321
- if (message.kind.oneofKind === 'stringValue')
322
- writer
323
- .tag(3, WireType.LengthDelimited)
324
- .string(message.kind.stringValue);
325
- /* bool bool_value = 4; */
326
- if (message.kind.oneofKind === 'boolValue')
327
- writer.tag(4, WireType.Varint).bool(message.kind.boolValue);
328
- /* google.protobuf.Struct struct_value = 5; */
329
- if (message.kind.oneofKind === 'structValue')
330
- Struct.internalBinaryWrite(message.kind.structValue, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
331
- /* google.protobuf.ListValue list_value = 6; */
332
- if (message.kind.oneofKind === 'listValue')
333
- ListValue.internalBinaryWrite(message.kind.listValue, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
334
- let u = options.writeUnknownFields;
335
- if (u !== false)
336
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
337
- return writer;
338
- }
339
- }
340
- /**
341
- * @generated MessageType for protobuf message google.protobuf.Value
342
- */
343
- export const Value = new Value$Type();
344
- // @generated message type with reflection information, may provide speed optimized methods
345
- class ListValue$Type extends MessageType {
346
- constructor() {
347
- super('google.protobuf.ListValue', [
348
- {
349
- no: 1,
350
- name: 'values',
351
- kind: 'message',
352
- repeat: 2 /*RepeatType.UNPACKED*/,
353
- T: () => Value,
354
- },
355
- ]);
356
- }
357
- /**
358
- * Encode `ListValue` to JSON array.
359
- */
360
- internalJsonWrite(message, options) {
361
- return message.values.map((v) => Value.toJson(v));
362
- }
363
- /**
364
- * Decode `ListValue` from JSON array.
365
- */
366
- internalJsonRead(json, options, target) {
367
- if (!globalThis.Array.isArray(json))
368
- throw new globalThis.Error('Unable to parse ' +
369
- this.typeName +
370
- ' from JSON ' +
371
- typeofJsonValue(json));
372
- if (!target)
373
- target = this.create();
374
- let values = json.map((v) => Value.fromJson(v));
375
- target.values.push(...values);
376
- return target;
377
- }
378
- create(value) {
379
- const message = globalThis.Object.create(this.messagePrototype);
380
- message.values = [];
381
- if (value !== undefined)
382
- reflectionMergePartial(this, message, value);
383
- return message;
384
- }
385
- internalBinaryRead(reader, length, options, target) {
386
- let message = target ?? this.create(), end = reader.pos + length;
387
- while (reader.pos < end) {
388
- let [fieldNo, wireType] = reader.tag();
389
- switch (fieldNo) {
390
- case /* repeated google.protobuf.Value values */ 1:
391
- message.values.push(Value.internalBinaryRead(reader, reader.uint32(), options));
392
- break;
393
- default:
394
- let u = options.readUnknownField;
395
- if (u === 'throw')
396
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
397
- let d = reader.skip(wireType);
398
- if (u !== false)
399
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
400
- }
401
- }
402
- return message;
403
- }
404
- internalBinaryWrite(message, writer, options) {
405
- /* repeated google.protobuf.Value values = 1; */
406
- for (let i = 0; i < message.values.length; i++)
407
- Value.internalBinaryWrite(message.values[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
408
- let u = options.writeUnknownFields;
409
- if (u !== false)
410
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
411
- return writer;
412
- }
413
- }
414
- /**
415
- * @generated MessageType for protobuf message google.protobuf.ListValue
416
- */
417
- export const ListValue = new ListValue$Type();