@agoric/cosmic-proto 0.3.1-upgrade-14-dev-c8f9e7b.0 → 0.4.1-orchestration-dev-096c4e8.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 (167) hide show
  1. package/README.md +220 -6
  2. package/dist/codegen/agoric/bundle.d.ts +1006 -0
  3. package/dist/codegen/agoric/bundle.js +71 -0
  4. package/dist/codegen/agoric/bundle.js.map +1 -0
  5. package/dist/codegen/agoric/client.d.ts +47 -0
  6. package/dist/codegen/agoric/client.js +36 -0
  7. package/dist/codegen/agoric/client.js.map +1 -0
  8. package/dist/codegen/agoric/lien/genesis.d.ts +77 -0
  9. package/dist/codegen/agoric/lien/genesis.js +179 -0
  10. package/dist/codegen/agoric/lien/genesis.js.map +1 -0
  11. package/dist/codegen/agoric/lien/lien.d.ts +51 -0
  12. package/dist/codegen/agoric/lien/lien.js +111 -0
  13. package/dist/codegen/agoric/lien/lien.js.map +1 -0
  14. package/dist/codegen/agoric/rpc.query.d.ts +21 -0
  15. package/dist/codegen/agoric/rpc.query.js +15 -0
  16. package/dist/codegen/agoric/rpc.query.js.map +1 -0
  17. package/dist/codegen/agoric/rpc.tx.d.ts +9 -0
  18. package/dist/codegen/agoric/rpc.tx.js +7 -0
  19. package/dist/codegen/agoric/rpc.tx.js.map +1 -0
  20. package/dist/codegen/agoric/swingset/genesis.d.ts +79 -0
  21. package/dist/codegen/agoric/swingset/genesis.js +213 -0
  22. package/dist/codegen/agoric/swingset/genesis.js.map +1 -0
  23. package/dist/codegen/agoric/swingset/msgs.amino.d.ts +28 -0
  24. package/dist/codegen/agoric/swingset/msgs.amino.js +30 -0
  25. package/dist/codegen/agoric/swingset/msgs.amino.js.map +1 -0
  26. package/dist/codegen/agoric/swingset/msgs.d.ts +406 -0
  27. package/dist/codegen/agoric/swingset/msgs.js +896 -0
  28. package/dist/codegen/agoric/swingset/msgs.js.map +1 -0
  29. package/dist/codegen/agoric/swingset/msgs.registry.d.ts +116 -0
  30. package/dist/codegen/agoric/swingset/msgs.registry.js +176 -0
  31. package/dist/codegen/agoric/swingset/msgs.registry.js.map +1 -0
  32. package/dist/codegen/agoric/swingset/msgs.rpc.msg.d.ts +24 -0
  33. package/dist/codegen/agoric/swingset/msgs.rpc.msg.js +39 -0
  34. package/dist/codegen/agoric/swingset/msgs.rpc.msg.js.map +1 -0
  35. package/dist/codegen/agoric/swingset/query.d.ts +205 -0
  36. package/dist/codegen/agoric/swingset/query.js +441 -0
  37. package/dist/codegen/agoric/swingset/query.js.map +1 -0
  38. package/dist/codegen/agoric/swingset/query.rpc.Query.d.ts +24 -0
  39. package/dist/codegen/agoric/swingset/query.rpc.Query.js +43 -0
  40. package/dist/codegen/agoric/swingset/query.rpc.Query.js.map +1 -0
  41. package/dist/codegen/agoric/swingset/swingset.d.ts +499 -0
  42. package/dist/codegen/agoric/swingset/swingset.js +945 -0
  43. package/dist/codegen/agoric/swingset/swingset.js.map +1 -0
  44. package/dist/codegen/agoric/vbank/genesis.d.ts +43 -0
  45. package/dist/codegen/agoric/vbank/genesis.js +100 -0
  46. package/dist/codegen/agoric/vbank/genesis.js.map +1 -0
  47. package/dist/codegen/agoric/vbank/msgs.d.ts +1 -0
  48. package/dist/codegen/agoric/vbank/msgs.js +2 -0
  49. package/dist/codegen/agoric/vbank/msgs.js.map +1 -0
  50. package/dist/codegen/agoric/vbank/query.d.ts +136 -0
  51. package/dist/codegen/agoric/vbank/query.js +273 -0
  52. package/dist/codegen/agoric/vbank/query.js.map +1 -0
  53. package/dist/codegen/agoric/vbank/query.rpc.Query.d.ts +20 -0
  54. package/dist/codegen/agoric/vbank/query.rpc.Query.js +34 -0
  55. package/dist/codegen/agoric/vbank/query.rpc.Query.js.map +1 -0
  56. package/dist/codegen/agoric/vbank/vbank.d.ts +135 -0
  57. package/dist/codegen/agoric/vbank/vbank.js +288 -0
  58. package/dist/codegen/agoric/vbank/vbank.js.map +1 -0
  59. package/dist/codegen/agoric/vibc/msgs.amino.d.ts +8 -0
  60. package/dist/codegen/agoric/vibc/msgs.amino.js +10 -0
  61. package/dist/codegen/agoric/vibc/msgs.amino.js.map +1 -0
  62. package/dist/codegen/agoric/vibc/msgs.d.ts +70 -0
  63. package/dist/codegen/agoric/vibc/msgs.js +156 -0
  64. package/dist/codegen/agoric/vibc/msgs.js.map +1 -0
  65. package/dist/codegen/agoric/vibc/msgs.registry.d.ts +36 -0
  66. package/dist/codegen/agoric/vibc/msgs.registry.js +52 -0
  67. package/dist/codegen/agoric/vibc/msgs.registry.js.map +1 -0
  68. package/dist/codegen/agoric/vibc/msgs.rpc.msg.d.ts +12 -0
  69. package/dist/codegen/agoric/vibc/msgs.rpc.msg.js +15 -0
  70. package/dist/codegen/agoric/vibc/msgs.rpc.msg.js.map +1 -0
  71. package/dist/codegen/agoric/vlocalchain/vlocalchain.d.ts +159 -0
  72. package/dist/codegen/agoric/vlocalchain/vlocalchain.js +389 -0
  73. package/dist/codegen/agoric/vlocalchain/vlocalchain.js.map +1 -0
  74. package/dist/codegen/agoric/vstorage/genesis.d.ts +89 -0
  75. package/dist/codegen/agoric/vstorage/genesis.js +174 -0
  76. package/dist/codegen/agoric/vstorage/genesis.js.map +1 -0
  77. package/dist/codegen/agoric/vstorage/query.d.ts +269 -0
  78. package/dist/codegen/agoric/vstorage/query.js +562 -0
  79. package/dist/codegen/agoric/vstorage/query.js.map +1 -0
  80. package/dist/codegen/agoric/vstorage/query.rpc.Query.d.ts +27 -0
  81. package/dist/codegen/agoric/vstorage/query.rpc.Query.js +43 -0
  82. package/dist/codegen/agoric/vstorage/query.rpc.Query.js.map +1 -0
  83. package/dist/codegen/agoric/vstorage/vstorage.d.ts +78 -0
  84. package/dist/codegen/agoric/vstorage/vstorage.js +160 -0
  85. package/dist/codegen/agoric/vstorage/vstorage.js.map +1 -0
  86. package/dist/codegen/binary.d.ts +130 -0
  87. package/dist/codegen/binary.js +367 -0
  88. package/dist/codegen/binary.js.map +1 -0
  89. package/dist/codegen/cosmos/base/query/v1beta1/pagination.d.ts +202 -0
  90. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +252 -0
  91. package/dist/codegen/cosmos/base/query/v1beta1/pagination.js.map +1 -0
  92. package/dist/codegen/cosmos/base/v1beta1/coin.d.ts +177 -0
  93. package/dist/codegen/cosmos/base/v1beta1/coin.js +348 -0
  94. package/dist/codegen/cosmos/base/v1beta1/coin.js.map +1 -0
  95. package/dist/codegen/cosmos/bundle.d.ts +167 -0
  96. package/dist/codegen/cosmos/bundle.js +26 -0
  97. package/dist/codegen/cosmos/bundle.js.map +1 -0
  98. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +282 -0
  99. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +468 -0
  100. package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js.map +1 -0
  101. package/dist/codegen/cosmos_proto/bundle.d.ts +36 -0
  102. package/dist/codegen/cosmos_proto/bundle.js +6 -0
  103. package/dist/codegen/cosmos_proto/bundle.js.map +1 -0
  104. package/dist/codegen/cosmos_proto/cosmos.d.ts +175 -0
  105. package/dist/codegen/cosmos_proto/cosmos.js +254 -0
  106. package/dist/codegen/cosmos_proto/cosmos.js.map +1 -0
  107. package/dist/codegen/gogoproto/bundle.d.ts +1 -0
  108. package/dist/codegen/gogoproto/bundle.js +6 -0
  109. package/dist/codegen/gogoproto/bundle.js.map +1 -0
  110. package/dist/codegen/gogoproto/gogo.d.ts +1 -0
  111. package/dist/codegen/gogoproto/gogo.js +2 -0
  112. package/dist/codegen/gogoproto/gogo.js.map +1 -0
  113. package/dist/codegen/google/api/annotations.d.ts +1 -0
  114. package/dist/codegen/google/api/annotations.js +2 -0
  115. package/dist/codegen/google/api/annotations.js.map +1 -0
  116. package/dist/codegen/google/api/http.d.ts +1079 -0
  117. package/dist/codegen/google/api/http.js +418 -0
  118. package/dist/codegen/google/api/http.js.map +1 -0
  119. package/dist/codegen/google/bundle.d.ts +443 -0
  120. package/dist/codegen/google/bundle.js +13 -0
  121. package/dist/codegen/google/bundle.js.map +1 -0
  122. package/dist/codegen/google/protobuf/any.d.ts +340 -0
  123. package/dist/codegen/google/protobuf/any.js +91 -0
  124. package/dist/codegen/google/protobuf/any.js.map +1 -0
  125. package/dist/codegen/google/protobuf/descriptor.d.ts +2332 -0
  126. package/dist/codegen/google/protobuf/descriptor.js +4419 -0
  127. package/dist/codegen/google/protobuf/descriptor.js.map +1 -0
  128. package/dist/codegen/google/protobuf/timestamp.d.ts +295 -0
  129. package/dist/codegen/google/protobuf/timestamp.js +89 -0
  130. package/dist/codegen/google/protobuf/timestamp.js.map +1 -0
  131. package/dist/codegen/helpers.d.ts +81 -0
  132. package/dist/codegen/helpers.js +124 -0
  133. package/dist/codegen/helpers.js.map +1 -0
  134. package/dist/codegen/ibc/bundle.d.ts +234 -0
  135. package/dist/codegen/ibc/bundle.js +22 -0
  136. package/dist/codegen/ibc/bundle.js.map +1 -0
  137. package/dist/codegen/ibc/core/channel/v1/channel.d.ts +513 -0
  138. package/dist/codegen/ibc/core/channel/v1/channel.js +1106 -0
  139. package/dist/codegen/ibc/core/channel/v1/channel.js.map +1 -0
  140. package/dist/codegen/ibc/core/client/v1/client.d.ts +414 -0
  141. package/dist/codegen/ibc/core/client/v1/client.js +786 -0
  142. package/dist/codegen/ibc/core/client/v1/client.js.map +1 -0
  143. package/dist/codegen/index.d.ts +15 -0
  144. package/dist/codegen/index.js +17 -0
  145. package/dist/codegen/index.js.map +1 -0
  146. package/dist/codegen/utf8.d.ts +27 -0
  147. package/dist/codegen/utf8.js +138 -0
  148. package/dist/codegen/utf8.js.map +1 -0
  149. package/dist/codegen/varint.d.ts +105 -0
  150. package/dist/codegen/varint.js +409 -0
  151. package/dist/codegen/varint.js.map +1 -0
  152. package/dist/index.d.ts +1 -0
  153. package/dist/index.js +2 -0
  154. package/dist/index.js.map +1 -0
  155. package/package.json +65 -27
  156. package/CHANGELOG.md +0 -41
  157. package/dist/agoric/swingset/msgs.d.ts +0 -450
  158. package/dist/agoric/swingset/msgs.js +0 -630
  159. package/dist/agoric/swingset/query.d.ts +0 -406
  160. package/dist/agoric/swingset/query.js +0 -346
  161. package/dist/agoric/swingset/swingset.d.ts +0 -571
  162. package/dist/agoric/swingset/swingset.js +0 -644
  163. package/dist/cosmos/base/v1beta1/coin.d.ts +0 -90
  164. package/dist/cosmos/base/v1beta1/coin.js +0 -197
  165. package/swingset/msgs.js +0 -2
  166. package/swingset/query.js +0 -2
  167. package/swingset/swingset.js +0 -2
@@ -0,0 +1,340 @@
1
+ import { BinaryReader, BinaryWriter } from '../../binary.js';
2
+ /**
3
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
4
+ * URL that describes the type of the serialized message.
5
+ *
6
+ * Protobuf library provides support to pack/unpack Any values in the form
7
+ * of utility functions or additional generated methods of the Any type.
8
+ *
9
+ * Example 1: Pack and unpack a message in C++.
10
+ *
11
+ * Foo foo = ...;
12
+ * Any any;
13
+ * any.PackFrom(foo);
14
+ * ...
15
+ * if (any.UnpackTo(&foo)) {
16
+ * ...
17
+ * }
18
+ *
19
+ * Example 2: Pack and unpack a message in Java.
20
+ *
21
+ * Foo foo = ...;
22
+ * Any any = Any.pack(foo);
23
+ * ...
24
+ * if (any.is(Foo.class)) {
25
+ * foo = any.unpack(Foo.class);
26
+ * }
27
+ *
28
+ * Example 3: Pack and unpack a message in Python.
29
+ *
30
+ * foo = Foo(...)
31
+ * any = Any()
32
+ * any.Pack(foo)
33
+ * ...
34
+ * if any.Is(Foo.DESCRIPTOR):
35
+ * any.Unpack(foo)
36
+ * ...
37
+ *
38
+ * Example 4: Pack and unpack a message in Go
39
+ *
40
+ * foo := &pb.Foo{...}
41
+ * any, err := ptypes.MarshalAny(foo)
42
+ * ...
43
+ * foo := &pb.Foo{}
44
+ * if err := ptypes.UnmarshalAny(any, foo); err != nil {
45
+ * ...
46
+ * }
47
+ *
48
+ * The pack methods provided by protobuf library will by default use
49
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
50
+ * methods only use the fully qualified type name after the last '/'
51
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
52
+ * name "y.z".
53
+ *
54
+ *
55
+ * JSON
56
+ * ====
57
+ * The JSON representation of an `Any` value uses the regular
58
+ * representation of the deserialized, embedded message, with an
59
+ * additional field `@type` which contains the type URL. Example:
60
+ *
61
+ * package google.profile;
62
+ * message Person {
63
+ * string first_name = 1;
64
+ * string last_name = 2;
65
+ * }
66
+ *
67
+ * {
68
+ * "@type": "type.googleapis.com/google.profile.Person",
69
+ * "firstName": <string>,
70
+ * "lastName": <string>
71
+ * }
72
+ *
73
+ * If the embedded message type is well-known and has a custom JSON
74
+ * representation, that representation will be embedded adding a field
75
+ * `value` which holds the custom JSON in addition to the `@type`
76
+ * field. Example (for message [google.protobuf.Duration][]):
77
+ *
78
+ * {
79
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
80
+ * "value": "1.212s"
81
+ * }
82
+ */
83
+ export interface Any {
84
+ $typeUrl?: '/google.protobuf.Any' | string;
85
+ /**
86
+ * A URL/resource name that uniquely identifies the type of the serialized
87
+ * protocol buffer message. This string must contain at least
88
+ * one "/" character. The last segment of the URL's path must represent
89
+ * the fully qualified name of the type (as in
90
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
91
+ * (e.g., leading "." is not accepted).
92
+ *
93
+ * In practice, teams usually precompile into the binary all types that they
94
+ * expect it to use in the context of Any. However, for URLs which use the
95
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
96
+ * server that maps type URLs to message definitions as follows:
97
+ *
98
+ * * If no scheme is provided, `https` is assumed.
99
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
100
+ * value in binary format, or produce an error.
101
+ * * Applications are allowed to cache lookup results based on the
102
+ * URL, or have them precompiled into a binary to avoid any
103
+ * lookup. Therefore, binary compatibility needs to be preserved
104
+ * on changes to types. (Use versioned type names to manage
105
+ * breaking changes.)
106
+ *
107
+ * Note: this functionality is not currently available in the official
108
+ * protobuf release, and it is not used for type URLs beginning with
109
+ * type.googleapis.com.
110
+ *
111
+ * Schemes other than `http`, `https` (or the empty scheme) might be
112
+ * used with implementation specific semantics.
113
+ */
114
+ typeUrl: string;
115
+ /** Must be a valid serialized protocol buffer of the above specified type. */
116
+ value: Uint8Array;
117
+ }
118
+ export interface AnyProtoMsg {
119
+ typeUrl: '/google.protobuf.Any';
120
+ value: Uint8Array;
121
+ }
122
+ /**
123
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
124
+ * URL that describes the type of the serialized message.
125
+ *
126
+ * Protobuf library provides support to pack/unpack Any values in the form
127
+ * of utility functions or additional generated methods of the Any type.
128
+ *
129
+ * Example 1: Pack and unpack a message in C++.
130
+ *
131
+ * Foo foo = ...;
132
+ * Any any;
133
+ * any.PackFrom(foo);
134
+ * ...
135
+ * if (any.UnpackTo(&foo)) {
136
+ * ...
137
+ * }
138
+ *
139
+ * Example 2: Pack and unpack a message in Java.
140
+ *
141
+ * Foo foo = ...;
142
+ * Any any = Any.pack(foo);
143
+ * ...
144
+ * if (any.is(Foo.class)) {
145
+ * foo = any.unpack(Foo.class);
146
+ * }
147
+ *
148
+ * Example 3: Pack and unpack a message in Python.
149
+ *
150
+ * foo = Foo(...)
151
+ * any = Any()
152
+ * any.Pack(foo)
153
+ * ...
154
+ * if any.Is(Foo.DESCRIPTOR):
155
+ * any.Unpack(foo)
156
+ * ...
157
+ *
158
+ * Example 4: Pack and unpack a message in Go
159
+ *
160
+ * foo := &pb.Foo{...}
161
+ * any, err := ptypes.MarshalAny(foo)
162
+ * ...
163
+ * foo := &pb.Foo{}
164
+ * if err := ptypes.UnmarshalAny(any, foo); err != nil {
165
+ * ...
166
+ * }
167
+ *
168
+ * The pack methods provided by protobuf library will by default use
169
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
170
+ * methods only use the fully qualified type name after the last '/'
171
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
172
+ * name "y.z".
173
+ *
174
+ *
175
+ * JSON
176
+ * ====
177
+ * The JSON representation of an `Any` value uses the regular
178
+ * representation of the deserialized, embedded message, with an
179
+ * additional field `@type` which contains the type URL. Example:
180
+ *
181
+ * package google.profile;
182
+ * message Person {
183
+ * string first_name = 1;
184
+ * string last_name = 2;
185
+ * }
186
+ *
187
+ * {
188
+ * "@type": "type.googleapis.com/google.profile.Person",
189
+ * "firstName": <string>,
190
+ * "lastName": <string>
191
+ * }
192
+ *
193
+ * If the embedded message type is well-known and has a custom JSON
194
+ * representation, that representation will be embedded adding a field
195
+ * `value` which holds the custom JSON in addition to the `@type`
196
+ * field. Example (for message [google.protobuf.Duration][]):
197
+ *
198
+ * {
199
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
200
+ * "value": "1.212s"
201
+ * }
202
+ */
203
+ export interface AnyAmino {
204
+ /**
205
+ * A URL/resource name that uniquely identifies the type of the serialized
206
+ * protocol buffer message. This string must contain at least
207
+ * one "/" character. The last segment of the URL's path must represent
208
+ * the fully qualified name of the type (as in
209
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
210
+ * (e.g., leading "." is not accepted).
211
+ *
212
+ * In practice, teams usually precompile into the binary all types that they
213
+ * expect it to use in the context of Any. However, for URLs which use the
214
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
215
+ * server that maps type URLs to message definitions as follows:
216
+ *
217
+ * * If no scheme is provided, `https` is assumed.
218
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
219
+ * value in binary format, or produce an error.
220
+ * * Applications are allowed to cache lookup results based on the
221
+ * URL, or have them precompiled into a binary to avoid any
222
+ * lookup. Therefore, binary compatibility needs to be preserved
223
+ * on changes to types. (Use versioned type names to manage
224
+ * breaking changes.)
225
+ *
226
+ * Note: this functionality is not currently available in the official
227
+ * protobuf release, and it is not used for type URLs beginning with
228
+ * type.googleapis.com.
229
+ *
230
+ * Schemes other than `http`, `https` (or the empty scheme) might be
231
+ * used with implementation specific semantics.
232
+ */
233
+ type: string;
234
+ /** Must be a valid serialized protocol buffer of the above specified type. */
235
+ value: any;
236
+ }
237
+ export interface AnyAminoMsg {
238
+ type: string;
239
+ value: AnyAmino;
240
+ }
241
+ /**
242
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
243
+ * URL that describes the type of the serialized message.
244
+ *
245
+ * Protobuf library provides support to pack/unpack Any values in the form
246
+ * of utility functions or additional generated methods of the Any type.
247
+ *
248
+ * Example 1: Pack and unpack a message in C++.
249
+ *
250
+ * Foo foo = ...;
251
+ * Any any;
252
+ * any.PackFrom(foo);
253
+ * ...
254
+ * if (any.UnpackTo(&foo)) {
255
+ * ...
256
+ * }
257
+ *
258
+ * Example 2: Pack and unpack a message in Java.
259
+ *
260
+ * Foo foo = ...;
261
+ * Any any = Any.pack(foo);
262
+ * ...
263
+ * if (any.is(Foo.class)) {
264
+ * foo = any.unpack(Foo.class);
265
+ * }
266
+ *
267
+ * Example 3: Pack and unpack a message in Python.
268
+ *
269
+ * foo = Foo(...)
270
+ * any = Any()
271
+ * any.Pack(foo)
272
+ * ...
273
+ * if any.Is(Foo.DESCRIPTOR):
274
+ * any.Unpack(foo)
275
+ * ...
276
+ *
277
+ * Example 4: Pack and unpack a message in Go
278
+ *
279
+ * foo := &pb.Foo{...}
280
+ * any, err := ptypes.MarshalAny(foo)
281
+ * ...
282
+ * foo := &pb.Foo{}
283
+ * if err := ptypes.UnmarshalAny(any, foo); err != nil {
284
+ * ...
285
+ * }
286
+ *
287
+ * The pack methods provided by protobuf library will by default use
288
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
289
+ * methods only use the fully qualified type name after the last '/'
290
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
291
+ * name "y.z".
292
+ *
293
+ *
294
+ * JSON
295
+ * ====
296
+ * The JSON representation of an `Any` value uses the regular
297
+ * representation of the deserialized, embedded message, with an
298
+ * additional field `@type` which contains the type URL. Example:
299
+ *
300
+ * package google.profile;
301
+ * message Person {
302
+ * string first_name = 1;
303
+ * string last_name = 2;
304
+ * }
305
+ *
306
+ * {
307
+ * "@type": "type.googleapis.com/google.profile.Person",
308
+ * "firstName": <string>,
309
+ * "lastName": <string>
310
+ * }
311
+ *
312
+ * If the embedded message type is well-known and has a custom JSON
313
+ * representation, that representation will be embedded adding a field
314
+ * `value` which holds the custom JSON in addition to the `@type`
315
+ * field. Example (for message [google.protobuf.Duration][]):
316
+ *
317
+ * {
318
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
319
+ * "value": "1.212s"
320
+ * }
321
+ */
322
+ export interface AnySDKType {
323
+ $typeUrl?: '/google.protobuf.Any' | string;
324
+ type_url: string;
325
+ value: Uint8Array;
326
+ }
327
+ export declare const Any: {
328
+ typeUrl: string;
329
+ encode(message: Any, writer?: BinaryWriter): BinaryWriter;
330
+ decode(input: BinaryReader | Uint8Array, length?: number): Any;
331
+ fromJSON(object: any): Any;
332
+ toJSON(message: Any): unknown;
333
+ fromPartial(object: Partial<Any>): Any;
334
+ fromAmino(object: AnyAmino): Any;
335
+ toAmino(message: Any): AnyAmino;
336
+ fromAminoMsg(object: AnyAminoMsg): Any;
337
+ fromProtoMsg(message: AnyProtoMsg): Any;
338
+ toProto(message: Any): Uint8Array;
339
+ toProtoMsg(message: Any): AnyProtoMsg;
340
+ };
@@ -0,0 +1,91 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from '../../binary.js';
3
+ import { isSet, bytesFromBase64, base64FromBytes } from '../../helpers.js';
4
+ function createBaseAny() {
5
+ return {
6
+ $typeUrl: '/google.protobuf.Any',
7
+ typeUrl: '',
8
+ value: new Uint8Array(),
9
+ };
10
+ }
11
+ export const Any = {
12
+ typeUrl: '/google.protobuf.Any',
13
+ encode(message, writer = BinaryWriter.create()) {
14
+ if (message.typeUrl !== '') {
15
+ writer.uint32(10).string(message.typeUrl);
16
+ }
17
+ if (message.value.length !== 0) {
18
+ writer.uint32(18).bytes(message.value);
19
+ }
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBaseAny();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ case 1:
30
+ message.typeUrl = reader.string();
31
+ break;
32
+ case 2:
33
+ message.value = reader.bytes();
34
+ break;
35
+ default:
36
+ reader.skipType(tag & 7);
37
+ break;
38
+ }
39
+ }
40
+ return message;
41
+ },
42
+ fromJSON(object) {
43
+ return {
44
+ typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : '',
45
+ value: isSet(object.value)
46
+ ? bytesFromBase64(object.value)
47
+ : new Uint8Array(),
48
+ };
49
+ },
50
+ toJSON(message) {
51
+ const obj = {};
52
+ message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl);
53
+ message.value !== undefined &&
54
+ (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
55
+ return obj;
56
+ },
57
+ fromPartial(object) {
58
+ const message = createBaseAny();
59
+ message.typeUrl = object.typeUrl ?? '';
60
+ message.value = object.value ?? new Uint8Array();
61
+ return message;
62
+ },
63
+ fromAmino(object) {
64
+ return {
65
+ typeUrl: object.type,
66
+ value: object.value,
67
+ };
68
+ },
69
+ toAmino(message) {
70
+ const obj = {};
71
+ obj.type = message.typeUrl;
72
+ obj.value = message.value;
73
+ return obj;
74
+ },
75
+ fromAminoMsg(object) {
76
+ return Any.fromAmino(object.value);
77
+ },
78
+ fromProtoMsg(message) {
79
+ return Any.decode(message.value);
80
+ },
81
+ toProto(message) {
82
+ return Any.encode(message).finish();
83
+ },
84
+ toProtoMsg(message) {
85
+ return {
86
+ typeUrl: '/google.protobuf.Any',
87
+ value: Any.encode(message).finish(),
88
+ };
89
+ },
90
+ };
91
+ //# sourceMappingURL=any.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"any.js","sourceRoot":"","sources":["../../../../src/codegen/google/protobuf/any.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE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