@canton-network/core-ledger-client 0.8.0 → 0.10.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 (231) hide show
  1. package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.d.ts +5563 -0
  2. package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.d.ts.map +1 -0
  3. package/dist/generated-clients/openapi-3.4.0-SNAPSHOT.js +5 -0
  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-client.d.ts +22 -12
  8. package/dist/ledger-client.d.ts.map +1 -1
  9. package/dist/ledger-client.js +68 -24
  10. package/dist/token-standard-service.d.ts +8 -0
  11. package/dist/token-standard-service.d.ts.map +1 -1
  12. package/dist/token-standard-service.js +28 -0
  13. package/dist/txparse/parser.d.ts.map +1 -1
  14. package/dist/txparse/parser.js +7 -4
  15. package/dist/txparse/parser.test.js +2 -1
  16. package/dist/txparse/types.d.ts +9 -9
  17. package/dist/txparse/types.d.ts.map +1 -1
  18. package/package.json +5 -5
  19. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +0 -58
  20. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +0 -1
  21. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +0 -34
  22. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +0 -232
  23. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +0 -1
  24. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +0 -560
  25. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +0 -144
  26. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +0 -1
  27. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +0 -85
  28. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +0 -291
  29. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +0 -1
  30. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +0 -663
  31. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +0 -76
  32. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +0 -1
  33. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +0 -96
  34. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +0 -106
  35. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +0 -1
  36. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +0 -62
  37. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +0 -199
  38. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +0 -1
  39. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +0 -427
  40. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +0 -56
  41. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +0 -1
  42. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +0 -35
  43. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +0 -81
  44. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +0 -1
  45. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +0 -135
  46. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +0 -196
  47. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +0 -1
  48. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +0 -113
  49. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +0 -413
  50. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +0 -1
  51. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +0 -867
  52. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +0 -210
  53. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +0 -1
  54. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +0 -126
  55. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +0 -758
  56. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +0 -1
  57. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +0 -1580
  58. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +0 -66
  59. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +0 -1
  60. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +0 -38
  61. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +0 -90
  62. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +0 -1
  63. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +0 -178
  64. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +0 -99
  65. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +0 -1
  66. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +0 -61
  67. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +0 -210
  68. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +0 -1
  69. package/dist/_proto/com/daml/ledger/api/v2/command_service.js +0 -436
  70. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +0 -80
  71. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +0 -1
  72. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +0 -47
  73. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +0 -91
  74. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +0 -1
  75. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +0 -200
  76. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +0 -491
  77. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +0 -1
  78. package/dist/_proto/com/daml/ledger/api/v2/commands.js +0 -828
  79. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +0 -149
  80. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +0 -1
  81. package/dist/_proto/com/daml/ledger/api/v2/completion.js +0 -196
  82. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +0 -495
  83. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +0 -1
  84. package/dist/_proto/com/daml/ledger/api/v2/event.js +0 -723
  85. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +0 -52
  86. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +0 -1
  87. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +0 -31
  88. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +0 -150
  89. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +0 -1
  90. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +0 -291
  91. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +0 -96
  92. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +0 -1
  93. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +0 -225
  94. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +0 -43
  95. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +0 -1
  96. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +0 -85
  97. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +0 -100
  98. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +0 -1
  99. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +0 -59
  100. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +0 -877
  101. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +0 -1
  102. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +0 -1768
  103. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +0 -259
  104. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +0 -1
  105. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +0 -667
  106. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +0 -69
  107. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +0 -1
  108. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +0 -133
  109. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +0 -41
  110. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +0 -1
  111. package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +0 -84
  112. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +0 -68
  113. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +0 -1
  114. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +0 -43
  115. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +0 -181
  116. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +0 -1
  117. package/dist/_proto/com/daml/ledger/api/v2/package_service.js +0 -395
  118. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +0 -308
  119. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +0 -1
  120. package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +0 -521
  121. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +0 -193
  122. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +0 -1
  123. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +0 -350
  124. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +0 -91
  125. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +0 -1
  126. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +0 -56
  127. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +0 -448
  128. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +0 -1
  129. package/dist/_proto/com/daml/ledger/api/v2/state_service.js +0 -874
  130. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +0 -54
  131. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +0 -1
  132. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +0 -34
  133. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +0 -78
  134. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +0 -1
  135. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +0 -168
  136. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +0 -211
  137. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +0 -1
  138. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +0 -447
  139. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +0 -33
  140. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +0 -1
  141. package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +0 -69
  142. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +0 -252
  143. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +0 -1
  144. package/dist/_proto/com/daml/ledger/api/v2/transaction.js +0 -410
  145. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +0 -453
  146. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +0 -1
  147. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +0 -815
  148. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +0 -199
  149. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +0 -1
  150. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +0 -121
  151. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +0 -424
  152. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +0 -1
  153. package/dist/_proto/com/daml/ledger/api/v2/update_service.js +0 -853
  154. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +0 -500
  155. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +0 -1
  156. package/dist/_proto/com/daml/ledger/api/v2/value.js +0 -937
  157. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +0 -40
  158. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +0 -1
  159. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +0 -25
  160. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +0 -190
  161. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +0 -1
  162. package/dist/_proto/com/daml/ledger/api/v2/version_service.js +0 -400
  163. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +0 -1028
  164. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +0 -1
  165. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +0 -2110
  166. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +0 -30
  167. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +0 -1
  168. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +0 -62
  169. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +0 -168
  170. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +0 -1
  171. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +0 -395
  172. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +0 -1105
  173. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +0 -1
  174. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +0 -2294
  175. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +0 -278
  176. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +0 -1
  177. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +0 -654
  178. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +0 -166
  179. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +0 -1
  180. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +0 -379
  181. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +0 -199
  182. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +0 -1
  183. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +0 -136
  184. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +0 -1195
  185. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +0 -1
  186. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +0 -3342
  187. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +0 -119
  188. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +0 -1
  189. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +0 -76
  190. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +0 -607
  191. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +0 -1
  192. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +0 -1292
  193. package/dist/_proto/google/protobuf/any.d.ts +0 -177
  194. package/dist/_proto/google/protobuf/any.d.ts.map +0 -1
  195. package/dist/_proto/google/protobuf/any.js +0 -175
  196. package/dist/_proto/google/protobuf/descriptor.d.ts +0 -1638
  197. package/dist/_proto/google/protobuf/descriptor.d.ts.map +0 -1
  198. package/dist/_proto/google/protobuf/descriptor.js +0 -2999
  199. package/dist/_proto/google/protobuf/duration.d.ts +0 -114
  200. package/dist/_proto/google/protobuf/duration.d.ts.map +0 -1
  201. package/dist/_proto/google/protobuf/duration.js +0 -113
  202. package/dist/_proto/google/protobuf/empty.d.ts +0 -33
  203. package/dist/_proto/google/protobuf/empty.d.ts.map +0 -1
  204. package/dist/_proto/google/protobuf/empty.js +0 -41
  205. package/dist/_proto/google/protobuf/field_mask.d.ts +0 -240
  206. package/dist/_proto/google/protobuf/field_mask.d.ts.map +0 -1
  207. package/dist/_proto/google/protobuf/field_mask.js +0 -95
  208. package/dist/_proto/google/protobuf/struct.d.ts +0 -187
  209. package/dist/_proto/google/protobuf/struct.d.ts.map +0 -1
  210. package/dist/_proto/google/protobuf/struct.js +0 -417
  211. package/dist/_proto/google/protobuf/timestamp.d.ts +0 -159
  212. package/dist/_proto/google/protobuf/timestamp.d.ts.map +0 -1
  213. package/dist/_proto/google/protobuf/timestamp.js +0 -157
  214. package/dist/_proto/google/rpc/code.d.ts +0 -219
  215. package/dist/_proto/google/rpc/code.d.ts.map +0 -1
  216. package/dist/_proto/google/rpc/code.js +0 -237
  217. package/dist/_proto/google/rpc/context/attribute_context.d.ts +0 -594
  218. package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +0 -1
  219. package/dist/_proto/google/rpc/context/attribute_context.js +0 -1007
  220. package/dist/_proto/google/rpc/context/audit_context.d.ts +0 -62
  221. package/dist/_proto/google/rpc/context/audit_context.d.ts.map +0 -1
  222. package/dist/_proto/google/rpc/context/audit_context.js +0 -111
  223. package/dist/_proto/google/rpc/error_details.d.ts +0 -549
  224. package/dist/_proto/google/rpc/error_details.d.ts.map +0 -1
  225. package/dist/_proto/google/rpc/error_details.js +0 -918
  226. package/dist/_proto/google/rpc/status.d.ts +0 -55
  227. package/dist/_proto/google/rpc/status.d.ts.map +0 -1
  228. package/dist/_proto/google/rpc/status.js +0 -79
  229. package/dist/_proto/scalapb/scalapb.d.ts +0 -779
  230. package/dist/_proto/scalapb/scalapb.d.ts.map +0 -1
  231. 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();