@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,187 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"struct.d.ts","sourceRoot":"","sources":["../../../../src/_proto/google/protobuf/struct.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,417 @@
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();