@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,210 @@
1
+ import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
+ import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
3
+ import type { IBinaryWriter } from '@protobuf-ts/runtime';
4
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
5
+ import type { IBinaryReader } from '@protobuf-ts/runtime';
6
+ import type { PartialMessage } from '@protobuf-ts/runtime';
7
+ import { MessageType } from '@protobuf-ts/runtime';
8
+ import { Reassignment } from './reassignment.js';
9
+ import { EventFormat } from './transaction_filter.js';
10
+ import { ReassignmentCommands } from './reassignment_commands.js';
11
+ import { TransactionTree } from './transaction.js';
12
+ import { Transaction } from './transaction.js';
13
+ import { TransactionFormat } from './transaction_filter.js';
14
+ import { Commands } from './commands.js';
15
+ /**
16
+ * These commands are executed as a single atomic transaction.
17
+ *
18
+ * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitRequest
19
+ */
20
+ export interface SubmitAndWaitRequest {
21
+ /**
22
+ * The commands to be submitted.
23
+ * Required
24
+ *
25
+ * @generated from protobuf field: com.daml.ledger.api.v2.Commands commands = 1
26
+ */
27
+ commands?: Commands;
28
+ }
29
+ /**
30
+ * These commands are executed as a single atomic transaction.
31
+ *
32
+ * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest
33
+ */
34
+ export interface SubmitAndWaitForTransactionRequest {
35
+ /**
36
+ * The commands to be submitted.
37
+ * Required
38
+ *
39
+ * @generated from protobuf field: com.daml.ledger.api.v2.Commands commands = 1
40
+ */
41
+ commands?: Commands;
42
+ /**
43
+ * If no ``transaction_format`` is provided, a default will be used where ``transaction_shape`` is set to
44
+ * TRANSACTION_SHAPE_ACS_DELTA, ``event_format`` is defined with ``filters_by_party`` containing wildcard-template
45
+ * filter for all original ``act_as`` and ``read_as`` parties and the ``verbose`` flag is set.
46
+ * Optional
47
+ *
48
+ * @generated from protobuf field: com.daml.ledger.api.v2.TransactionFormat transaction_format = 2
49
+ */
50
+ transactionFormat?: TransactionFormat;
51
+ }
52
+ /**
53
+ * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitResponse
54
+ */
55
+ export interface SubmitAndWaitResponse {
56
+ /**
57
+ * The id of the transaction that resulted from the submitted command.
58
+ * Must be a valid LedgerString (as described in ``value.proto``).
59
+ * Required
60
+ *
61
+ * @generated from protobuf field: string update_id = 1
62
+ */
63
+ updateId: string;
64
+ /**
65
+ * The details of the offset field are described in ``community/ledger-api/README.md``.
66
+ * Required
67
+ *
68
+ * @generated from protobuf field: int64 completion_offset = 2
69
+ */
70
+ completionOffset: bigint;
71
+ }
72
+ /**
73
+ * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse
74
+ */
75
+ export interface SubmitAndWaitForTransactionResponse {
76
+ /**
77
+ * The transaction that resulted from the submitted command.
78
+ * The transaction might contain no events (request conditions result in filtering out all of them).
79
+ * Required
80
+ *
81
+ * @generated from protobuf field: com.daml.ledger.api.v2.Transaction transaction = 1
82
+ */
83
+ transaction?: Transaction;
84
+ }
85
+ /**
86
+ * Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
87
+ *
88
+ * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse
89
+ */
90
+ export interface SubmitAndWaitForTransactionTreeResponse {
91
+ /**
92
+ * The transaction tree that resulted from the submitted command.
93
+ * The transaction might contain no events (request conditions result in filtering out all of them).
94
+ * Required
95
+ *
96
+ * @generated from protobuf field: com.daml.ledger.api.v2.TransactionTree transaction = 1
97
+ */
98
+ transaction?: TransactionTree;
99
+ }
100
+ /**
101
+ * This reassignment is executed as a single atomic update.
102
+ *
103
+ * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest
104
+ */
105
+ export interface SubmitAndWaitForReassignmentRequest {
106
+ /**
107
+ * The reassignment commands to be submitted.
108
+ * Required
109
+ *
110
+ * @generated from protobuf field: com.daml.ledger.api.v2.ReassignmentCommands reassignment_commands = 1
111
+ */
112
+ reassignmentCommands?: ReassignmentCommands;
113
+ /**
114
+ * Optional
115
+ * If no event_format provided, the result will contain no events.
116
+ * The events in the result, will take shape TRANSACTION_SHAPE_ACS_DELTA.
117
+ *
118
+ * @generated from protobuf field: com.daml.ledger.api.v2.EventFormat event_format = 2
119
+ */
120
+ eventFormat?: EventFormat;
121
+ }
122
+ /**
123
+ * @generated from protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse
124
+ */
125
+ export interface SubmitAndWaitForReassignmentResponse {
126
+ /**
127
+ * The reassignment that resulted from the submitted reassignment command.
128
+ * The reassignment might contain no events (request conditions result in filtering out all of them).
129
+ * Required
130
+ *
131
+ * @generated from protobuf field: com.daml.ledger.api.v2.Reassignment reassignment = 1
132
+ */
133
+ reassignment?: Reassignment;
134
+ }
135
+ declare class SubmitAndWaitRequest$Type extends MessageType<SubmitAndWaitRequest> {
136
+ constructor();
137
+ create(value?: PartialMessage<SubmitAndWaitRequest>): SubmitAndWaitRequest;
138
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitRequest): SubmitAndWaitRequest;
139
+ internalBinaryWrite(message: SubmitAndWaitRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
140
+ }
141
+ /**
142
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitRequest
143
+ */
144
+ export declare const SubmitAndWaitRequest: SubmitAndWaitRequest$Type;
145
+ declare class SubmitAndWaitForTransactionRequest$Type extends MessageType<SubmitAndWaitForTransactionRequest> {
146
+ constructor();
147
+ create(value?: PartialMessage<SubmitAndWaitForTransactionRequest>): SubmitAndWaitForTransactionRequest;
148
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForTransactionRequest): SubmitAndWaitForTransactionRequest;
149
+ internalBinaryWrite(message: SubmitAndWaitForTransactionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
150
+ }
151
+ /**
152
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest
153
+ */
154
+ export declare const SubmitAndWaitForTransactionRequest: SubmitAndWaitForTransactionRequest$Type;
155
+ declare class SubmitAndWaitResponse$Type extends MessageType<SubmitAndWaitResponse> {
156
+ constructor();
157
+ create(value?: PartialMessage<SubmitAndWaitResponse>): SubmitAndWaitResponse;
158
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitResponse): SubmitAndWaitResponse;
159
+ internalBinaryWrite(message: SubmitAndWaitResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
160
+ }
161
+ /**
162
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitResponse
163
+ */
164
+ export declare const SubmitAndWaitResponse: SubmitAndWaitResponse$Type;
165
+ declare class SubmitAndWaitForTransactionResponse$Type extends MessageType<SubmitAndWaitForTransactionResponse> {
166
+ constructor();
167
+ create(value?: PartialMessage<SubmitAndWaitForTransactionResponse>): SubmitAndWaitForTransactionResponse;
168
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForTransactionResponse): SubmitAndWaitForTransactionResponse;
169
+ internalBinaryWrite(message: SubmitAndWaitForTransactionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
170
+ }
171
+ /**
172
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse
173
+ */
174
+ export declare const SubmitAndWaitForTransactionResponse: SubmitAndWaitForTransactionResponse$Type;
175
+ declare class SubmitAndWaitForTransactionTreeResponse$Type extends MessageType<SubmitAndWaitForTransactionTreeResponse> {
176
+ constructor();
177
+ create(value?: PartialMessage<SubmitAndWaitForTransactionTreeResponse>): SubmitAndWaitForTransactionTreeResponse;
178
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForTransactionTreeResponse): SubmitAndWaitForTransactionTreeResponse;
179
+ internalBinaryWrite(message: SubmitAndWaitForTransactionTreeResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
180
+ }
181
+ /**
182
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse
183
+ */
184
+ export declare const SubmitAndWaitForTransactionTreeResponse: SubmitAndWaitForTransactionTreeResponse$Type;
185
+ declare class SubmitAndWaitForReassignmentRequest$Type extends MessageType<SubmitAndWaitForReassignmentRequest> {
186
+ constructor();
187
+ create(value?: PartialMessage<SubmitAndWaitForReassignmentRequest>): SubmitAndWaitForReassignmentRequest;
188
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForReassignmentRequest): SubmitAndWaitForReassignmentRequest;
189
+ internalBinaryWrite(message: SubmitAndWaitForReassignmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
190
+ }
191
+ /**
192
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest
193
+ */
194
+ export declare const SubmitAndWaitForReassignmentRequest: SubmitAndWaitForReassignmentRequest$Type;
195
+ declare class SubmitAndWaitForReassignmentResponse$Type extends MessageType<SubmitAndWaitForReassignmentResponse> {
196
+ constructor();
197
+ create(value?: PartialMessage<SubmitAndWaitForReassignmentResponse>): SubmitAndWaitForReassignmentResponse;
198
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitAndWaitForReassignmentResponse): SubmitAndWaitForReassignmentResponse;
199
+ internalBinaryWrite(message: SubmitAndWaitForReassignmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
200
+ }
201
+ /**
202
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse
203
+ */
204
+ export declare const SubmitAndWaitForReassignmentResponse: SubmitAndWaitForReassignmentResponse$Type;
205
+ /**
206
+ * @generated ServiceType for protobuf service com.daml.ledger.api.v2.CommandService
207
+ */
208
+ export declare const CommandService: ServiceType;
209
+ export {};
210
+ //# sourceMappingURL=command_service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command_service.d.ts","sourceRoot":"","sources":["../../../../../../../src/_proto/com/daml/ledger/api/v2/command_service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,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,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACtB;AACD;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;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,CAAA"}
@@ -0,0 +1,436 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
2
+ // @generated from protobuf file "com/daml/ledger/api/v2/command_service.proto" (package "com.daml.ledger.api.v2", syntax proto3)
3
+ // tslint:disable
4
+ //
5
+ // Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
6
+ // SPDX-License-Identifier: Apache-2.0
7
+ //
8
+ import { ServiceType } from '@protobuf-ts/runtime-rpc';
9
+ import { WireType } from '@protobuf-ts/runtime';
10
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
11
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
12
+ import { MessageType } from '@protobuf-ts/runtime';
13
+ import { Reassignment } from './reassignment.js';
14
+ import { EventFormat } from './transaction_filter.js';
15
+ import { ReassignmentCommands } from './reassignment_commands.js';
16
+ import { TransactionTree } from './transaction.js';
17
+ import { Transaction } from './transaction.js';
18
+ import { TransactionFormat } from './transaction_filter.js';
19
+ import { Commands } from './commands.js';
20
+ // @generated message type with reflection information, may provide speed optimized methods
21
+ class SubmitAndWaitRequest$Type extends MessageType {
22
+ constructor() {
23
+ super('com.daml.ledger.api.v2.SubmitAndWaitRequest', [
24
+ { no: 1, name: 'commands', kind: 'message', T: () => Commands },
25
+ ]);
26
+ }
27
+ create(value) {
28
+ const message = globalThis.Object.create(this.messagePrototype);
29
+ if (value !== undefined)
30
+ reflectionMergePartial(this, message, value);
31
+ return message;
32
+ }
33
+ internalBinaryRead(reader, length, options, target) {
34
+ let message = target ?? this.create(), end = reader.pos + length;
35
+ while (reader.pos < end) {
36
+ let [fieldNo, wireType] = reader.tag();
37
+ switch (fieldNo) {
38
+ case /* com.daml.ledger.api.v2.Commands commands */ 1:
39
+ message.commands = Commands.internalBinaryRead(reader, reader.uint32(), options, message.commands);
40
+ break;
41
+ default:
42
+ let u = options.readUnknownField;
43
+ if (u === 'throw')
44
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
45
+ let d = reader.skip(wireType);
46
+ if (u !== false)
47
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
48
+ }
49
+ }
50
+ return message;
51
+ }
52
+ internalBinaryWrite(message, writer, options) {
53
+ /* com.daml.ledger.api.v2.Commands commands = 1; */
54
+ if (message.commands)
55
+ Commands.internalBinaryWrite(message.commands, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
56
+ let u = options.writeUnknownFields;
57
+ if (u !== false)
58
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
59
+ return writer;
60
+ }
61
+ }
62
+ /**
63
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitRequest
64
+ */
65
+ export const SubmitAndWaitRequest = new SubmitAndWaitRequest$Type();
66
+ // @generated message type with reflection information, may provide speed optimized methods
67
+ class SubmitAndWaitForTransactionRequest$Type extends MessageType {
68
+ constructor() {
69
+ super('com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest', [
70
+ { no: 1, name: 'commands', kind: 'message', T: () => Commands },
71
+ {
72
+ no: 2,
73
+ name: 'transaction_format',
74
+ kind: 'message',
75
+ T: () => TransactionFormat,
76
+ },
77
+ ]);
78
+ }
79
+ create(value) {
80
+ const message = globalThis.Object.create(this.messagePrototype);
81
+ if (value !== undefined)
82
+ reflectionMergePartial(this, message, value);
83
+ return message;
84
+ }
85
+ internalBinaryRead(reader, length, options, target) {
86
+ let message = target ?? this.create(), end = reader.pos + length;
87
+ while (reader.pos < end) {
88
+ let [fieldNo, wireType] = reader.tag();
89
+ switch (fieldNo) {
90
+ case /* com.daml.ledger.api.v2.Commands commands */ 1:
91
+ message.commands = Commands.internalBinaryRead(reader, reader.uint32(), options, message.commands);
92
+ break;
93
+ case /* com.daml.ledger.api.v2.TransactionFormat transaction_format */ 2:
94
+ message.transactionFormat =
95
+ TransactionFormat.internalBinaryRead(reader, reader.uint32(), options, message.transactionFormat);
96
+ break;
97
+ default:
98
+ let u = options.readUnknownField;
99
+ if (u === 'throw')
100
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
101
+ let d = reader.skip(wireType);
102
+ if (u !== false)
103
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
104
+ }
105
+ }
106
+ return message;
107
+ }
108
+ internalBinaryWrite(message, writer, options) {
109
+ /* com.daml.ledger.api.v2.Commands commands = 1; */
110
+ if (message.commands)
111
+ Commands.internalBinaryWrite(message.commands, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
112
+ /* com.daml.ledger.api.v2.TransactionFormat transaction_format = 2; */
113
+ if (message.transactionFormat)
114
+ TransactionFormat.internalBinaryWrite(message.transactionFormat, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
115
+ let u = options.writeUnknownFields;
116
+ if (u !== false)
117
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
118
+ return writer;
119
+ }
120
+ }
121
+ /**
122
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionRequest
123
+ */
124
+ export const SubmitAndWaitForTransactionRequest = new SubmitAndWaitForTransactionRequest$Type();
125
+ // @generated message type with reflection information, may provide speed optimized methods
126
+ class SubmitAndWaitResponse$Type extends MessageType {
127
+ constructor() {
128
+ super('com.daml.ledger.api.v2.SubmitAndWaitResponse', [
129
+ {
130
+ no: 1,
131
+ name: 'update_id',
132
+ kind: 'scalar',
133
+ T: 9 /*ScalarType.STRING*/,
134
+ },
135
+ {
136
+ no: 2,
137
+ name: 'completion_offset',
138
+ kind: 'scalar',
139
+ T: 3 /*ScalarType.INT64*/,
140
+ L: 0 /*LongType.BIGINT*/,
141
+ },
142
+ ]);
143
+ }
144
+ create(value) {
145
+ const message = globalThis.Object.create(this.messagePrototype);
146
+ message.updateId = '';
147
+ message.completionOffset = 0n;
148
+ if (value !== undefined)
149
+ reflectionMergePartial(this, message, value);
150
+ return message;
151
+ }
152
+ internalBinaryRead(reader, length, options, target) {
153
+ let message = target ?? this.create(), end = reader.pos + length;
154
+ while (reader.pos < end) {
155
+ let [fieldNo, wireType] = reader.tag();
156
+ switch (fieldNo) {
157
+ case /* string update_id */ 1:
158
+ message.updateId = reader.string();
159
+ break;
160
+ case /* int64 completion_offset */ 2:
161
+ message.completionOffset = reader.int64().toBigInt();
162
+ break;
163
+ default:
164
+ let u = options.readUnknownField;
165
+ if (u === 'throw')
166
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
167
+ let d = reader.skip(wireType);
168
+ if (u !== false)
169
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
170
+ }
171
+ }
172
+ return message;
173
+ }
174
+ internalBinaryWrite(message, writer, options) {
175
+ /* string update_id = 1; */
176
+ if (message.updateId !== '')
177
+ writer.tag(1, WireType.LengthDelimited).string(message.updateId);
178
+ /* int64 completion_offset = 2; */
179
+ if (message.completionOffset !== 0n)
180
+ writer.tag(2, WireType.Varint).int64(message.completionOffset);
181
+ let u = options.writeUnknownFields;
182
+ if (u !== false)
183
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
184
+ return writer;
185
+ }
186
+ }
187
+ /**
188
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitResponse
189
+ */
190
+ export const SubmitAndWaitResponse = new SubmitAndWaitResponse$Type();
191
+ // @generated message type with reflection information, may provide speed optimized methods
192
+ class SubmitAndWaitForTransactionResponse$Type extends MessageType {
193
+ constructor() {
194
+ super('com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse', [
195
+ {
196
+ no: 1,
197
+ name: 'transaction',
198
+ kind: 'message',
199
+ T: () => Transaction,
200
+ },
201
+ ]);
202
+ }
203
+ create(value) {
204
+ const message = globalThis.Object.create(this.messagePrototype);
205
+ if (value !== undefined)
206
+ reflectionMergePartial(this, message, value);
207
+ return message;
208
+ }
209
+ internalBinaryRead(reader, length, options, target) {
210
+ let message = target ?? this.create(), end = reader.pos + length;
211
+ while (reader.pos < end) {
212
+ let [fieldNo, wireType] = reader.tag();
213
+ switch (fieldNo) {
214
+ case /* com.daml.ledger.api.v2.Transaction transaction */ 1:
215
+ message.transaction = Transaction.internalBinaryRead(reader, reader.uint32(), options, message.transaction);
216
+ break;
217
+ default:
218
+ let u = options.readUnknownField;
219
+ if (u === 'throw')
220
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
221
+ let d = reader.skip(wireType);
222
+ if (u !== false)
223
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
224
+ }
225
+ }
226
+ return message;
227
+ }
228
+ internalBinaryWrite(message, writer, options) {
229
+ /* com.daml.ledger.api.v2.Transaction transaction = 1; */
230
+ if (message.transaction)
231
+ Transaction.internalBinaryWrite(message.transaction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
232
+ let u = options.writeUnknownFields;
233
+ if (u !== false)
234
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
235
+ return writer;
236
+ }
237
+ }
238
+ /**
239
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionResponse
240
+ */
241
+ export const SubmitAndWaitForTransactionResponse = new SubmitAndWaitForTransactionResponse$Type();
242
+ // @generated message type with reflection information, may provide speed optimized methods
243
+ class SubmitAndWaitForTransactionTreeResponse$Type extends MessageType {
244
+ constructor() {
245
+ super('com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse', [
246
+ {
247
+ no: 1,
248
+ name: 'transaction',
249
+ kind: 'message',
250
+ T: () => TransactionTree,
251
+ },
252
+ ]);
253
+ }
254
+ create(value) {
255
+ const message = globalThis.Object.create(this.messagePrototype);
256
+ if (value !== undefined)
257
+ reflectionMergePartial(this, message, value);
258
+ return message;
259
+ }
260
+ internalBinaryRead(reader, length, options, target) {
261
+ let message = target ?? this.create(), end = reader.pos + length;
262
+ while (reader.pos < end) {
263
+ let [fieldNo, wireType] = reader.tag();
264
+ switch (fieldNo) {
265
+ case /* com.daml.ledger.api.v2.TransactionTree transaction */ 1:
266
+ message.transaction = TransactionTree.internalBinaryRead(reader, reader.uint32(), options, message.transaction);
267
+ break;
268
+ default:
269
+ let u = options.readUnknownField;
270
+ if (u === 'throw')
271
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
272
+ let d = reader.skip(wireType);
273
+ if (u !== false)
274
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
275
+ }
276
+ }
277
+ return message;
278
+ }
279
+ internalBinaryWrite(message, writer, options) {
280
+ /* com.daml.ledger.api.v2.TransactionTree transaction = 1; */
281
+ if (message.transaction)
282
+ TransactionTree.internalBinaryWrite(message.transaction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
283
+ let u = options.writeUnknownFields;
284
+ if (u !== false)
285
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
286
+ return writer;
287
+ }
288
+ }
289
+ /**
290
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForTransactionTreeResponse
291
+ */
292
+ export const SubmitAndWaitForTransactionTreeResponse = new SubmitAndWaitForTransactionTreeResponse$Type();
293
+ // @generated message type with reflection information, may provide speed optimized methods
294
+ class SubmitAndWaitForReassignmentRequest$Type extends MessageType {
295
+ constructor() {
296
+ super('com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest', [
297
+ {
298
+ no: 1,
299
+ name: 'reassignment_commands',
300
+ kind: 'message',
301
+ T: () => ReassignmentCommands,
302
+ },
303
+ {
304
+ no: 2,
305
+ name: 'event_format',
306
+ kind: 'message',
307
+ T: () => EventFormat,
308
+ },
309
+ ]);
310
+ }
311
+ create(value) {
312
+ const message = globalThis.Object.create(this.messagePrototype);
313
+ if (value !== undefined)
314
+ reflectionMergePartial(this, message, value);
315
+ return message;
316
+ }
317
+ internalBinaryRead(reader, length, options, target) {
318
+ let message = target ?? this.create(), end = reader.pos + length;
319
+ while (reader.pos < end) {
320
+ let [fieldNo, wireType] = reader.tag();
321
+ switch (fieldNo) {
322
+ case /* com.daml.ledger.api.v2.ReassignmentCommands reassignment_commands */ 1:
323
+ message.reassignmentCommands =
324
+ ReassignmentCommands.internalBinaryRead(reader, reader.uint32(), options, message.reassignmentCommands);
325
+ break;
326
+ case /* com.daml.ledger.api.v2.EventFormat event_format */ 2:
327
+ message.eventFormat = EventFormat.internalBinaryRead(reader, reader.uint32(), options, message.eventFormat);
328
+ break;
329
+ default:
330
+ let u = options.readUnknownField;
331
+ if (u === 'throw')
332
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
333
+ let d = reader.skip(wireType);
334
+ if (u !== false)
335
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
336
+ }
337
+ }
338
+ return message;
339
+ }
340
+ internalBinaryWrite(message, writer, options) {
341
+ /* com.daml.ledger.api.v2.ReassignmentCommands reassignment_commands = 1; */
342
+ if (message.reassignmentCommands)
343
+ ReassignmentCommands.internalBinaryWrite(message.reassignmentCommands, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
344
+ /* com.daml.ledger.api.v2.EventFormat event_format = 2; */
345
+ if (message.eventFormat)
346
+ EventFormat.internalBinaryWrite(message.eventFormat, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
347
+ let u = options.writeUnknownFields;
348
+ if (u !== false)
349
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
350
+ return writer;
351
+ }
352
+ }
353
+ /**
354
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentRequest
355
+ */
356
+ export const SubmitAndWaitForReassignmentRequest = new SubmitAndWaitForReassignmentRequest$Type();
357
+ // @generated message type with reflection information, may provide speed optimized methods
358
+ class SubmitAndWaitForReassignmentResponse$Type extends MessageType {
359
+ constructor() {
360
+ super('com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse', [
361
+ {
362
+ no: 1,
363
+ name: 'reassignment',
364
+ kind: 'message',
365
+ T: () => Reassignment,
366
+ },
367
+ ]);
368
+ }
369
+ create(value) {
370
+ const message = globalThis.Object.create(this.messagePrototype);
371
+ if (value !== undefined)
372
+ reflectionMergePartial(this, message, value);
373
+ return message;
374
+ }
375
+ internalBinaryRead(reader, length, options, target) {
376
+ let message = target ?? this.create(), end = reader.pos + length;
377
+ while (reader.pos < end) {
378
+ let [fieldNo, wireType] = reader.tag();
379
+ switch (fieldNo) {
380
+ case /* com.daml.ledger.api.v2.Reassignment reassignment */ 1:
381
+ message.reassignment = Reassignment.internalBinaryRead(reader, reader.uint32(), options, message.reassignment);
382
+ break;
383
+ default:
384
+ let u = options.readUnknownField;
385
+ if (u === 'throw')
386
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
387
+ let d = reader.skip(wireType);
388
+ if (u !== false)
389
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
390
+ }
391
+ }
392
+ return message;
393
+ }
394
+ internalBinaryWrite(message, writer, options) {
395
+ /* com.daml.ledger.api.v2.Reassignment reassignment = 1; */
396
+ if (message.reassignment)
397
+ Reassignment.internalBinaryWrite(message.reassignment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
398
+ let u = options.writeUnknownFields;
399
+ if (u !== false)
400
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
401
+ return writer;
402
+ }
403
+ }
404
+ /**
405
+ * @generated MessageType for protobuf message com.daml.ledger.api.v2.SubmitAndWaitForReassignmentResponse
406
+ */
407
+ export const SubmitAndWaitForReassignmentResponse = new SubmitAndWaitForReassignmentResponse$Type();
408
+ /**
409
+ * @generated ServiceType for protobuf service com.daml.ledger.api.v2.CommandService
410
+ */
411
+ export const CommandService = new ServiceType('com.daml.ledger.api.v2.CommandService', [
412
+ {
413
+ name: 'SubmitAndWait',
414
+ options: {},
415
+ I: SubmitAndWaitRequest,
416
+ O: SubmitAndWaitResponse,
417
+ },
418
+ {
419
+ name: 'SubmitAndWaitForTransaction',
420
+ options: {},
421
+ I: SubmitAndWaitForTransactionRequest,
422
+ O: SubmitAndWaitForTransactionResponse,
423
+ },
424
+ {
425
+ name: 'SubmitAndWaitForTransactionTree',
426
+ options: {},
427
+ I: SubmitAndWaitRequest,
428
+ O: SubmitAndWaitForTransactionTreeResponse,
429
+ },
430
+ {
431
+ name: 'SubmitAndWaitForReassignment',
432
+ options: {},
433
+ I: SubmitAndWaitForReassignmentRequest,
434
+ O: SubmitAndWaitForReassignmentResponse,
435
+ },
436
+ ]);