@canton-network/core-ledger-proto 0.1.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 (218) hide show
  1. package/README.md +1 -0
  2. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +58 -0
  3. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +1 -0
  4. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +34 -0
  5. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +232 -0
  6. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +1 -0
  7. package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +560 -0
  8. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +144 -0
  9. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +1 -0
  10. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +85 -0
  11. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +291 -0
  12. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +1 -0
  13. package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +663 -0
  14. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +76 -0
  15. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +1 -0
  16. package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +96 -0
  17. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +106 -0
  18. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +1 -0
  19. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +62 -0
  20. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +199 -0
  21. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +1 -0
  22. package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +427 -0
  23. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +56 -0
  24. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +1 -0
  25. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +35 -0
  26. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +81 -0
  27. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +1 -0
  28. package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +135 -0
  29. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +196 -0
  30. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +1 -0
  31. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +113 -0
  32. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +413 -0
  33. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +1 -0
  34. package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +867 -0
  35. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +210 -0
  36. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +1 -0
  37. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +126 -0
  38. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +758 -0
  39. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +1 -0
  40. package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +1580 -0
  41. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +66 -0
  42. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +1 -0
  43. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +38 -0
  44. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +90 -0
  45. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +1 -0
  46. package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +178 -0
  47. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +99 -0
  48. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +1 -0
  49. package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +61 -0
  50. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +210 -0
  51. package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +1 -0
  52. package/dist/_proto/com/daml/ledger/api/v2/command_service.js +436 -0
  53. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +80 -0
  54. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +1 -0
  55. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +47 -0
  56. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +91 -0
  57. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +1 -0
  58. package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +200 -0
  59. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +491 -0
  60. package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +1 -0
  61. package/dist/_proto/com/daml/ledger/api/v2/commands.js +828 -0
  62. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +149 -0
  63. package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +1 -0
  64. package/dist/_proto/com/daml/ledger/api/v2/completion.js +196 -0
  65. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +495 -0
  66. package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +1 -0
  67. package/dist/_proto/com/daml/ledger/api/v2/event.js +723 -0
  68. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +52 -0
  69. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +1 -0
  70. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +31 -0
  71. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +150 -0
  72. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +1 -0
  73. package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +291 -0
  74. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +96 -0
  75. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +1 -0
  76. package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +225 -0
  77. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +43 -0
  78. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +1 -0
  79. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +85 -0
  80. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +100 -0
  81. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +1 -0
  82. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +59 -0
  83. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +877 -0
  84. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +1 -0
  85. package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +1768 -0
  86. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +259 -0
  87. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +1 -0
  88. package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +667 -0
  89. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +69 -0
  90. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +1 -0
  91. package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +133 -0
  92. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +41 -0
  93. package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +1 -0
  94. package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +84 -0
  95. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +68 -0
  96. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +1 -0
  97. package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +43 -0
  98. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +181 -0
  99. package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +1 -0
  100. package/dist/_proto/com/daml/ledger/api/v2/package_service.js +395 -0
  101. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +308 -0
  102. package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +1 -0
  103. package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +521 -0
  104. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +193 -0
  105. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +1 -0
  106. package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +350 -0
  107. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +91 -0
  108. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +1 -0
  109. package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +56 -0
  110. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +448 -0
  111. package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +1 -0
  112. package/dist/_proto/com/daml/ledger/api/v2/state_service.js +874 -0
  113. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +54 -0
  114. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +1 -0
  115. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +34 -0
  116. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +78 -0
  117. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +1 -0
  118. package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +168 -0
  119. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +211 -0
  120. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +1 -0
  121. package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +447 -0
  122. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +33 -0
  123. package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +1 -0
  124. package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +69 -0
  125. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +252 -0
  126. package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +1 -0
  127. package/dist/_proto/com/daml/ledger/api/v2/transaction.js +410 -0
  128. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +453 -0
  129. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +1 -0
  130. package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +815 -0
  131. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +199 -0
  132. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +1 -0
  133. package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +121 -0
  134. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +424 -0
  135. package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +1 -0
  136. package/dist/_proto/com/daml/ledger/api/v2/update_service.js +853 -0
  137. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +500 -0
  138. package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +1 -0
  139. package/dist/_proto/com/daml/ledger/api/v2/value.js +937 -0
  140. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +40 -0
  141. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +1 -0
  142. package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +25 -0
  143. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +190 -0
  144. package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +1 -0
  145. package/dist/_proto/com/daml/ledger/api/v2/version_service.js +400 -0
  146. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +1028 -0
  147. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -0
  148. package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +2110 -0
  149. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +30 -0
  150. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +1 -0
  151. package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +62 -0
  152. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +168 -0
  153. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +1 -0
  154. package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +395 -0
  155. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +1105 -0
  156. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -0
  157. package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +2294 -0
  158. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +278 -0
  159. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +1 -0
  160. package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +654 -0
  161. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +166 -0
  162. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +1 -0
  163. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +379 -0
  164. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +199 -0
  165. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +1 -0
  166. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +136 -0
  167. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +1195 -0
  168. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +1 -0
  169. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +3342 -0
  170. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +119 -0
  171. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +1 -0
  172. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +76 -0
  173. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +607 -0
  174. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -0
  175. package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +1292 -0
  176. package/dist/_proto/google/protobuf/any.d.ts +177 -0
  177. package/dist/_proto/google/protobuf/any.d.ts.map +1 -0
  178. package/dist/_proto/google/protobuf/any.js +175 -0
  179. package/dist/_proto/google/protobuf/descriptor.d.ts +1638 -0
  180. package/dist/_proto/google/protobuf/descriptor.d.ts.map +1 -0
  181. package/dist/_proto/google/protobuf/descriptor.js +2999 -0
  182. package/dist/_proto/google/protobuf/duration.d.ts +114 -0
  183. package/dist/_proto/google/protobuf/duration.d.ts.map +1 -0
  184. package/dist/_proto/google/protobuf/duration.js +113 -0
  185. package/dist/_proto/google/protobuf/empty.d.ts +33 -0
  186. package/dist/_proto/google/protobuf/empty.d.ts.map +1 -0
  187. package/dist/_proto/google/protobuf/empty.js +41 -0
  188. package/dist/_proto/google/protobuf/field_mask.d.ts +240 -0
  189. package/dist/_proto/google/protobuf/field_mask.d.ts.map +1 -0
  190. package/dist/_proto/google/protobuf/field_mask.js +95 -0
  191. package/dist/_proto/google/protobuf/struct.d.ts +187 -0
  192. package/dist/_proto/google/protobuf/struct.d.ts.map +1 -0
  193. package/dist/_proto/google/protobuf/struct.js +417 -0
  194. package/dist/_proto/google/protobuf/timestamp.d.ts +159 -0
  195. package/dist/_proto/google/protobuf/timestamp.d.ts.map +1 -0
  196. package/dist/_proto/google/protobuf/timestamp.js +157 -0
  197. package/dist/_proto/google/rpc/code.d.ts +219 -0
  198. package/dist/_proto/google/rpc/code.d.ts.map +1 -0
  199. package/dist/_proto/google/rpc/code.js +237 -0
  200. package/dist/_proto/google/rpc/context/attribute_context.d.ts +594 -0
  201. package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +1 -0
  202. package/dist/_proto/google/rpc/context/attribute_context.js +1007 -0
  203. package/dist/_proto/google/rpc/context/audit_context.d.ts +62 -0
  204. package/dist/_proto/google/rpc/context/audit_context.d.ts.map +1 -0
  205. package/dist/_proto/google/rpc/context/audit_context.js +111 -0
  206. package/dist/_proto/google/rpc/error_details.d.ts +549 -0
  207. package/dist/_proto/google/rpc/error_details.d.ts.map +1 -0
  208. package/dist/_proto/google/rpc/error_details.js +918 -0
  209. package/dist/_proto/google/rpc/status.d.ts +55 -0
  210. package/dist/_proto/google/rpc/status.d.ts.map +1 -0
  211. package/dist/_proto/google/rpc/status.js +79 -0
  212. package/dist/_proto/scalapb/scalapb.d.ts +779 -0
  213. package/dist/_proto/scalapb/scalapb.d.ts.map +1 -0
  214. package/dist/_proto/scalapb/scalapb.js +1658 -0
  215. package/dist/index.d.ts +13 -0
  216. package/dist/index.d.ts.map +1 -0
  217. package/dist/index.js +12 -0
  218. package/package.json +29 -0
@@ -0,0 +1,447 @@
1
+ import { WireType } from '@protobuf-ts/runtime';
2
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
3
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
4
+ import { MessageType } from '@protobuf-ts/runtime';
5
+ import { ParticipantPermission } from './state_service.js';
6
+ import { TraceContext } from './trace_context.js';
7
+ import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
8
+ // @generated message type with reflection information, may provide speed optimized methods
9
+ class TopologyTransaction$Type extends MessageType {
10
+ constructor() {
11
+ super('com.daml.ledger.api.v2.TopologyTransaction', [
12
+ {
13
+ no: 1,
14
+ name: 'update_id',
15
+ kind: 'scalar',
16
+ T: 9 /*ScalarType.STRING*/,
17
+ },
18
+ {
19
+ no: 2,
20
+ name: 'offset',
21
+ kind: 'scalar',
22
+ T: 3 /*ScalarType.INT64*/,
23
+ L: 0 /*LongType.BIGINT*/,
24
+ },
25
+ {
26
+ no: 3,
27
+ name: 'synchronizer_id',
28
+ kind: 'scalar',
29
+ T: 9 /*ScalarType.STRING*/,
30
+ },
31
+ { no: 4, name: 'record_time', kind: 'message', T: () => Timestamp },
32
+ {
33
+ no: 5,
34
+ name: 'events',
35
+ kind: 'message',
36
+ repeat: 2 /*RepeatType.UNPACKED*/,
37
+ T: () => TopologyEvent,
38
+ },
39
+ {
40
+ no: 6,
41
+ name: 'trace_context',
42
+ kind: 'message',
43
+ T: () => TraceContext,
44
+ },
45
+ ]);
46
+ }
47
+ create(value) {
48
+ const message = globalThis.Object.create(this.messagePrototype);
49
+ message.updateId = '';
50
+ message.offset = 0n;
51
+ message.synchronizerId = '';
52
+ message.events = [];
53
+ if (value !== undefined)
54
+ reflectionMergePartial(this, message, value);
55
+ return message;
56
+ }
57
+ internalBinaryRead(reader, length, options, target) {
58
+ let message = target ?? this.create(), end = reader.pos + length;
59
+ while (reader.pos < end) {
60
+ let [fieldNo, wireType] = reader.tag();
61
+ switch (fieldNo) {
62
+ case /* string update_id */ 1:
63
+ message.updateId = reader.string();
64
+ break;
65
+ case /* int64 offset */ 2:
66
+ message.offset = reader.int64().toBigInt();
67
+ break;
68
+ case /* string synchronizer_id */ 3:
69
+ message.synchronizerId = reader.string();
70
+ break;
71
+ case /* google.protobuf.Timestamp record_time */ 4:
72
+ message.recordTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.recordTime);
73
+ break;
74
+ case /* repeated com.daml.ledger.api.v2.TopologyEvent events */ 5:
75
+ message.events.push(TopologyEvent.internalBinaryRead(reader, reader.uint32(), options));
76
+ break;
77
+ case /* com.daml.ledger.api.v2.TraceContext trace_context */ 6:
78
+ message.traceContext = TraceContext.internalBinaryRead(reader, reader.uint32(), options, message.traceContext);
79
+ break;
80
+ default:
81
+ let u = options.readUnknownField;
82
+ if (u === 'throw')
83
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
84
+ let d = reader.skip(wireType);
85
+ if (u !== false)
86
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
87
+ }
88
+ }
89
+ return message;
90
+ }
91
+ internalBinaryWrite(message, writer, options) {
92
+ /* string update_id = 1; */
93
+ if (message.updateId !== '')
94
+ writer.tag(1, WireType.LengthDelimited).string(message.updateId);
95
+ /* int64 offset = 2; */
96
+ if (message.offset !== 0n)
97
+ writer.tag(2, WireType.Varint).int64(message.offset);
98
+ /* string synchronizer_id = 3; */
99
+ if (message.synchronizerId !== '')
100
+ writer
101
+ .tag(3, WireType.LengthDelimited)
102
+ .string(message.synchronizerId);
103
+ /* google.protobuf.Timestamp record_time = 4; */
104
+ if (message.recordTime)
105
+ Timestamp.internalBinaryWrite(message.recordTime, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
106
+ /* repeated com.daml.ledger.api.v2.TopologyEvent events = 5; */
107
+ for (let i = 0; i < message.events.length; i++)
108
+ TopologyEvent.internalBinaryWrite(message.events[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
109
+ /* com.daml.ledger.api.v2.TraceContext trace_context = 6; */
110
+ if (message.traceContext)
111
+ TraceContext.internalBinaryWrite(message.traceContext, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
112
+ let u = options.writeUnknownFields;
113
+ if (u !== false)
114
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
115
+ return writer;
116
+ }
117
+ }
118
+ /**
119
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.TopologyTransaction
120
+ */
121
+ export const TopologyTransaction = new TopologyTransaction$Type();
122
+ // @generated message type with reflection information, may provide speed optimized methods
123
+ class TopologyEvent$Type extends MessageType {
124
+ constructor() {
125
+ super('com.daml.ledger.api.v2.TopologyEvent', [
126
+ {
127
+ no: 1,
128
+ name: 'participant_authorization_changed',
129
+ kind: 'message',
130
+ oneof: 'event',
131
+ T: () => ParticipantAuthorizationChanged,
132
+ },
133
+ {
134
+ no: 2,
135
+ name: 'participant_authorization_revoked',
136
+ kind: 'message',
137
+ oneof: 'event',
138
+ T: () => ParticipantAuthorizationRevoked,
139
+ },
140
+ {
141
+ no: 3,
142
+ name: 'participant_authorization_added',
143
+ kind: 'message',
144
+ oneof: 'event',
145
+ T: () => ParticipantAuthorizationAdded,
146
+ },
147
+ ]);
148
+ }
149
+ create(value) {
150
+ const message = globalThis.Object.create(this.messagePrototype);
151
+ message.event = { oneofKind: undefined };
152
+ if (value !== undefined)
153
+ reflectionMergePartial(this, message, value);
154
+ return message;
155
+ }
156
+ internalBinaryRead(reader, length, options, target) {
157
+ let message = target ?? this.create(), end = reader.pos + length;
158
+ while (reader.pos < end) {
159
+ let [fieldNo, wireType] = reader.tag();
160
+ switch (fieldNo) {
161
+ case /* com.daml.ledger.api.v2.ParticipantAuthorizationChanged participant_authorization_changed */ 1:
162
+ message.event = {
163
+ oneofKind: 'participantAuthorizationChanged',
164
+ participantAuthorizationChanged: ParticipantAuthorizationChanged.internalBinaryRead(reader, reader.uint32(), options, message.event
165
+ .participantAuthorizationChanged),
166
+ };
167
+ break;
168
+ case /* com.daml.ledger.api.v2.ParticipantAuthorizationRevoked participant_authorization_revoked */ 2:
169
+ message.event = {
170
+ oneofKind: 'participantAuthorizationRevoked',
171
+ participantAuthorizationRevoked: ParticipantAuthorizationRevoked.internalBinaryRead(reader, reader.uint32(), options, message.event
172
+ .participantAuthorizationRevoked),
173
+ };
174
+ break;
175
+ case /* com.daml.ledger.api.v2.ParticipantAuthorizationAdded participant_authorization_added */ 3:
176
+ message.event = {
177
+ oneofKind: 'participantAuthorizationAdded',
178
+ participantAuthorizationAdded: ParticipantAuthorizationAdded.internalBinaryRead(reader, reader.uint32(), options, message.event
179
+ .participantAuthorizationAdded),
180
+ };
181
+ break;
182
+ default:
183
+ let u = options.readUnknownField;
184
+ if (u === 'throw')
185
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
186
+ let d = reader.skip(wireType);
187
+ if (u !== false)
188
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
189
+ }
190
+ }
191
+ return message;
192
+ }
193
+ internalBinaryWrite(message, writer, options) {
194
+ /* com.daml.ledger.api.v2.ParticipantAuthorizationChanged participant_authorization_changed = 1; */
195
+ if (message.event.oneofKind === 'participantAuthorizationChanged')
196
+ ParticipantAuthorizationChanged.internalBinaryWrite(message.event.participantAuthorizationChanged, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
197
+ /* com.daml.ledger.api.v2.ParticipantAuthorizationRevoked participant_authorization_revoked = 2; */
198
+ if (message.event.oneofKind === 'participantAuthorizationRevoked')
199
+ ParticipantAuthorizationRevoked.internalBinaryWrite(message.event.participantAuthorizationRevoked, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
200
+ /* com.daml.ledger.api.v2.ParticipantAuthorizationAdded participant_authorization_added = 3; */
201
+ if (message.event.oneofKind === 'participantAuthorizationAdded')
202
+ ParticipantAuthorizationAdded.internalBinaryWrite(message.event.participantAuthorizationAdded, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
203
+ let u = options.writeUnknownFields;
204
+ if (u !== false)
205
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
206
+ return writer;
207
+ }
208
+ }
209
+ /**
210
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.TopologyEvent
211
+ */
212
+ export const TopologyEvent = new TopologyEvent$Type();
213
+ // @generated message type with reflection information, may provide speed optimized methods
214
+ class ParticipantAuthorizationAdded$Type extends MessageType {
215
+ constructor() {
216
+ super('com.daml.ledger.api.v2.ParticipantAuthorizationAdded', [
217
+ {
218
+ no: 1,
219
+ name: 'party_id',
220
+ kind: 'scalar',
221
+ T: 9 /*ScalarType.STRING*/,
222
+ },
223
+ {
224
+ no: 2,
225
+ name: 'participant_id',
226
+ kind: 'scalar',
227
+ T: 9 /*ScalarType.STRING*/,
228
+ },
229
+ {
230
+ no: 3,
231
+ name: 'participant_permission',
232
+ kind: 'enum',
233
+ T: () => [
234
+ 'com.daml.ledger.api.v2.ParticipantPermission',
235
+ ParticipantPermission,
236
+ 'PARTICIPANT_PERMISSION_',
237
+ ],
238
+ },
239
+ ]);
240
+ }
241
+ create(value) {
242
+ const message = globalThis.Object.create(this.messagePrototype);
243
+ message.partyId = '';
244
+ message.participantId = '';
245
+ message.participantPermission = 0;
246
+ if (value !== undefined)
247
+ reflectionMergePartial(this, message, value);
248
+ return message;
249
+ }
250
+ internalBinaryRead(reader, length, options, target) {
251
+ let message = target ?? this.create(), end = reader.pos + length;
252
+ while (reader.pos < end) {
253
+ let [fieldNo, wireType] = reader.tag();
254
+ switch (fieldNo) {
255
+ case /* string party_id */ 1:
256
+ message.partyId = reader.string();
257
+ break;
258
+ case /* string participant_id */ 2:
259
+ message.participantId = reader.string();
260
+ break;
261
+ case /* com.daml.ledger.api.v2.ParticipantPermission participant_permission */ 3:
262
+ message.participantPermission = reader.int32();
263
+ break;
264
+ default:
265
+ let u = options.readUnknownField;
266
+ if (u === 'throw')
267
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
268
+ let d = reader.skip(wireType);
269
+ if (u !== false)
270
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
271
+ }
272
+ }
273
+ return message;
274
+ }
275
+ internalBinaryWrite(message, writer, options) {
276
+ /* string party_id = 1; */
277
+ if (message.partyId !== '')
278
+ writer.tag(1, WireType.LengthDelimited).string(message.partyId);
279
+ /* string participant_id = 2; */
280
+ if (message.participantId !== '')
281
+ writer
282
+ .tag(2, WireType.LengthDelimited)
283
+ .string(message.participantId);
284
+ /* com.daml.ledger.api.v2.ParticipantPermission participant_permission = 3; */
285
+ if (message.participantPermission !== 0)
286
+ writer.tag(3, WireType.Varint).int32(message.participantPermission);
287
+ let u = options.writeUnknownFields;
288
+ if (u !== false)
289
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
290
+ return writer;
291
+ }
292
+ }
293
+ /**
294
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.ParticipantAuthorizationAdded
295
+ */
296
+ export const ParticipantAuthorizationAdded = new ParticipantAuthorizationAdded$Type();
297
+ // @generated message type with reflection information, may provide speed optimized methods
298
+ class ParticipantAuthorizationChanged$Type extends MessageType {
299
+ constructor() {
300
+ super('com.daml.ledger.api.v2.ParticipantAuthorizationChanged', [
301
+ {
302
+ no: 1,
303
+ name: 'party_id',
304
+ kind: 'scalar',
305
+ T: 9 /*ScalarType.STRING*/,
306
+ },
307
+ {
308
+ no: 2,
309
+ name: 'participant_id',
310
+ kind: 'scalar',
311
+ T: 9 /*ScalarType.STRING*/,
312
+ },
313
+ {
314
+ no: 3,
315
+ name: 'participant_permission',
316
+ kind: 'enum',
317
+ T: () => [
318
+ 'com.daml.ledger.api.v2.ParticipantPermission',
319
+ ParticipantPermission,
320
+ 'PARTICIPANT_PERMISSION_',
321
+ ],
322
+ },
323
+ ]);
324
+ }
325
+ create(value) {
326
+ const message = globalThis.Object.create(this.messagePrototype);
327
+ message.partyId = '';
328
+ message.participantId = '';
329
+ message.participantPermission = 0;
330
+ if (value !== undefined)
331
+ reflectionMergePartial(this, message, value);
332
+ return message;
333
+ }
334
+ internalBinaryRead(reader, length, options, target) {
335
+ let message = target ?? this.create(), end = reader.pos + length;
336
+ while (reader.pos < end) {
337
+ let [fieldNo, wireType] = reader.tag();
338
+ switch (fieldNo) {
339
+ case /* string party_id */ 1:
340
+ message.partyId = reader.string();
341
+ break;
342
+ case /* string participant_id */ 2:
343
+ message.participantId = reader.string();
344
+ break;
345
+ case /* com.daml.ledger.api.v2.ParticipantPermission participant_permission */ 3:
346
+ message.participantPermission = reader.int32();
347
+ break;
348
+ default:
349
+ let u = options.readUnknownField;
350
+ if (u === 'throw')
351
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
352
+ let d = reader.skip(wireType);
353
+ if (u !== false)
354
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
355
+ }
356
+ }
357
+ return message;
358
+ }
359
+ internalBinaryWrite(message, writer, options) {
360
+ /* string party_id = 1; */
361
+ if (message.partyId !== '')
362
+ writer.tag(1, WireType.LengthDelimited).string(message.partyId);
363
+ /* string participant_id = 2; */
364
+ if (message.participantId !== '')
365
+ writer
366
+ .tag(2, WireType.LengthDelimited)
367
+ .string(message.participantId);
368
+ /* com.daml.ledger.api.v2.ParticipantPermission participant_permission = 3; */
369
+ if (message.participantPermission !== 0)
370
+ writer.tag(3, WireType.Varint).int32(message.participantPermission);
371
+ let u = options.writeUnknownFields;
372
+ if (u !== false)
373
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
374
+ return writer;
375
+ }
376
+ }
377
+ /**
378
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.ParticipantAuthorizationChanged
379
+ */
380
+ export const ParticipantAuthorizationChanged = new ParticipantAuthorizationChanged$Type();
381
+ // @generated message type with reflection information, may provide speed optimized methods
382
+ class ParticipantAuthorizationRevoked$Type extends MessageType {
383
+ constructor() {
384
+ super('com.daml.ledger.api.v2.ParticipantAuthorizationRevoked', [
385
+ {
386
+ no: 1,
387
+ name: 'party_id',
388
+ kind: 'scalar',
389
+ T: 9 /*ScalarType.STRING*/,
390
+ },
391
+ {
392
+ no: 2,
393
+ name: 'participant_id',
394
+ kind: 'scalar',
395
+ T: 9 /*ScalarType.STRING*/,
396
+ },
397
+ ]);
398
+ }
399
+ create(value) {
400
+ const message = globalThis.Object.create(this.messagePrototype);
401
+ message.partyId = '';
402
+ message.participantId = '';
403
+ if (value !== undefined)
404
+ reflectionMergePartial(this, message, value);
405
+ return message;
406
+ }
407
+ internalBinaryRead(reader, length, options, target) {
408
+ let message = target ?? this.create(), end = reader.pos + length;
409
+ while (reader.pos < end) {
410
+ let [fieldNo, wireType] = reader.tag();
411
+ switch (fieldNo) {
412
+ case /* string party_id */ 1:
413
+ message.partyId = reader.string();
414
+ break;
415
+ case /* string participant_id */ 2:
416
+ message.participantId = reader.string();
417
+ break;
418
+ default:
419
+ let u = options.readUnknownField;
420
+ if (u === 'throw')
421
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
422
+ let d = reader.skip(wireType);
423
+ if (u !== false)
424
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
425
+ }
426
+ }
427
+ return message;
428
+ }
429
+ internalBinaryWrite(message, writer, options) {
430
+ /* string party_id = 1; */
431
+ if (message.partyId !== '')
432
+ writer.tag(1, WireType.LengthDelimited).string(message.partyId);
433
+ /* string participant_id = 2; */
434
+ if (message.participantId !== '')
435
+ writer
436
+ .tag(2, WireType.LengthDelimited)
437
+ .string(message.participantId);
438
+ let u = options.writeUnknownFields;
439
+ if (u !== false)
440
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
441
+ return writer;
442
+ }
443
+ }
444
+ /**
445
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.ParticipantAuthorizationRevoked
446
+ */
447
+ export const ParticipantAuthorizationRevoked = new ParticipantAuthorizationRevoked$Type();
@@ -0,0 +1,33 @@
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 { MessageType } from '@protobuf-ts/runtime';
7
+ /**
8
+ * @generated from protobuf message com.daml.ledger.api.v2.TraceContext
9
+ */
10
+ export interface TraceContext {
11
+ /**
12
+ * https://www.w3.org/TR/trace-context/
13
+ *
14
+ * @generated from protobuf field: optional string traceparent = 1
15
+ */
16
+ traceparent?: string;
17
+ /**
18
+ * @generated from protobuf field: optional string tracestate = 2
19
+ */
20
+ tracestate?: string;
21
+ }
22
+ declare class TraceContext$Type extends MessageType<TraceContext> {
23
+ constructor();
24
+ create(value?: PartialMessage<TraceContext>): TraceContext;
25
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TraceContext): TraceContext;
26
+ internalBinaryWrite(message: TraceContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
27
+ }
28
+ /**
29
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.TraceContext
30
+ */
31
+ export declare const TraceContext: TraceContext$Type;
32
+ export {};
33
+ //# sourceMappingURL=trace_context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace_context.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/trace_context.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,cAAM,iBAAkB,SAAQ,WAAW,CAAC,YAAY,CAAC;;IAmBrD,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,YAAY;IAM1D,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,YAAY,GACtB,YAAY;IA+Bf,mBAAmB,CACf,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAgBnB;AACD;;GAEG;AACH,eAAO,MAAM,YAAY,mBAA0B,CAAA"}
@@ -0,0 +1,69 @@
1
+ import { WireType } from '@protobuf-ts/runtime';
2
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
3
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
4
+ import { MessageType } from '@protobuf-ts/runtime';
5
+ // @generated message type with reflection information, may provide speed optimized methods
6
+ class TraceContext$Type extends MessageType {
7
+ constructor() {
8
+ super('com.daml.ledger.api.v2.TraceContext', [
9
+ {
10
+ no: 1,
11
+ name: 'traceparent',
12
+ kind: 'scalar',
13
+ opt: true,
14
+ T: 9 /*ScalarType.STRING*/,
15
+ },
16
+ {
17
+ no: 2,
18
+ name: 'tracestate',
19
+ kind: 'scalar',
20
+ opt: true,
21
+ T: 9 /*ScalarType.STRING*/,
22
+ },
23
+ ]);
24
+ }
25
+ create(value) {
26
+ const message = globalThis.Object.create(this.messagePrototype);
27
+ if (value !== undefined)
28
+ reflectionMergePartial(this, message, value);
29
+ return message;
30
+ }
31
+ internalBinaryRead(reader, length, options, target) {
32
+ let message = target ?? this.create(), end = reader.pos + length;
33
+ while (reader.pos < end) {
34
+ let [fieldNo, wireType] = reader.tag();
35
+ switch (fieldNo) {
36
+ case /* optional string traceparent */ 1:
37
+ message.traceparent = reader.string();
38
+ break;
39
+ case /* optional string tracestate */ 2:
40
+ message.tracestate = reader.string();
41
+ break;
42
+ default:
43
+ let u = options.readUnknownField;
44
+ if (u === 'throw')
45
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
46
+ let d = reader.skip(wireType);
47
+ if (u !== false)
48
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
49
+ }
50
+ }
51
+ return message;
52
+ }
53
+ internalBinaryWrite(message, writer, options) {
54
+ /* optional string traceparent = 1; */
55
+ if (message.traceparent !== undefined)
56
+ writer.tag(1, WireType.LengthDelimited).string(message.traceparent);
57
+ /* optional string tracestate = 2; */
58
+ if (message.tracestate !== undefined)
59
+ writer.tag(2, WireType.LengthDelimited).string(message.tracestate);
60
+ let u = options.writeUnknownFields;
61
+ if (u !== false)
62
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
63
+ return writer;
64
+ }
65
+ }
66
+ /**
67
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.TraceContext
68
+ */
69
+ export const TraceContext = new TraceContext$Type();