blue-js-sdk 2.0.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 (215) hide show
  1. package/CHANGELOG.md +446 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -0
  4. package/ai-path/ADMIN-ELEVATION.md +116 -0
  5. package/ai-path/AI-MANIFESTO.md +185 -0
  6. package/ai-path/BREAKING.md +74 -0
  7. package/ai-path/CHECKLIST.md +619 -0
  8. package/ai-path/CONNECTION-STEPS.md +724 -0
  9. package/ai-path/DECISION-TREE.md +378 -0
  10. package/ai-path/DEPENDENCIES.md +459 -0
  11. package/ai-path/E2E-FLOW.md +1555 -0
  12. package/ai-path/FAILURES.md +403 -0
  13. package/ai-path/GUIDE.md +1217 -0
  14. package/ai-path/README.md +558 -0
  15. package/ai-path/SPLIT-TUNNEL.md +266 -0
  16. package/ai-path/cli.js +535 -0
  17. package/ai-path/connect.js +884 -0
  18. package/ai-path/discover.js +178 -0
  19. package/ai-path/environment.js +266 -0
  20. package/ai-path/errors.js +86 -0
  21. package/ai-path/examples/autonomous-agent.mjs +220 -0
  22. package/ai-path/examples/multi-region.mjs +174 -0
  23. package/ai-path/examples/one-shot.mjs +31 -0
  24. package/ai-path/index.js +60 -0
  25. package/ai-path/pricing.js +136 -0
  26. package/ai-path/recommend.js +413 -0
  27. package/ai-path/run-admin.vbs +25 -0
  28. package/ai-path/setup.js +291 -0
  29. package/ai-path/wallet.js +137 -0
  30. package/app-helpers.js +363 -0
  31. package/app-settings.js +95 -0
  32. package/app-types.js +267 -0
  33. package/audit.js +847 -0
  34. package/batch.js +293 -0
  35. package/bin/setup.js +376 -0
  36. package/chain/authz.js +109 -0
  37. package/chain/broadcast.js +472 -0
  38. package/chain/client.js +160 -0
  39. package/chain/fee-grants.js +305 -0
  40. package/chain/index.js +891 -0
  41. package/chain/lcd.js +313 -0
  42. package/chain/queries.js +547 -0
  43. package/chain/rpc.js +408 -0
  44. package/chain/wallet.js +141 -0
  45. package/cli/config.js +143 -0
  46. package/cli/index.js +463 -0
  47. package/cli/output.js +182 -0
  48. package/cli.js +491 -0
  49. package/client/index.js +251 -0
  50. package/client.js +271 -0
  51. package/config/index.js +255 -0
  52. package/connection/connect.js +849 -0
  53. package/connection/disconnect.js +180 -0
  54. package/connection/discovery.js +321 -0
  55. package/connection/index.js +76 -0
  56. package/connection/proxy.js +148 -0
  57. package/connection/resilience.js +428 -0
  58. package/connection/security.js +232 -0
  59. package/connection/state.js +369 -0
  60. package/connection/tunnel.js +691 -0
  61. package/consumer.js +132 -0
  62. package/cosmjs-setup.js +1884 -0
  63. package/defaults.js +366 -0
  64. package/disk-cache.js +107 -0
  65. package/dist/client.d.ts +108 -0
  66. package/dist/client.d.ts.map +1 -0
  67. package/dist/client.js +400 -0
  68. package/dist/client.js.map +1 -0
  69. package/dist/index.d.ts +8 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.js +8 -0
  72. package/dist/index.js.map +1 -0
  73. package/errors/index.js +112 -0
  74. package/errors.js +218 -0
  75. package/examples/README.md +64 -0
  76. package/examples/connect-direct.mjs +106 -0
  77. package/examples/connect-plan.mjs +125 -0
  78. package/examples/error-handling.mjs +109 -0
  79. package/examples/query-nodes.mjs +94 -0
  80. package/examples/wallet-basics.mjs +61 -0
  81. package/generated/amino/amino.ts +9 -0
  82. package/generated/cosmos/base/v1beta1/coin.ts +365 -0
  83. package/generated/cosmos_proto/cosmos.ts +323 -0
  84. package/generated/gogoproto/gogo.ts +9 -0
  85. package/generated/google/protobuf/descriptor.ts +7601 -0
  86. package/generated/google/protobuf/duration.ts +208 -0
  87. package/generated/google/protobuf/timestamp.ts +238 -0
  88. package/generated/sentinel/lease/v1/events.ts +924 -0
  89. package/generated/sentinel/lease/v1/lease.ts +292 -0
  90. package/generated/sentinel/lease/v1/msg.ts +949 -0
  91. package/generated/sentinel/lease/v1/params.ts +164 -0
  92. package/generated/sentinel/node/v3/events.ts +881 -0
  93. package/generated/sentinel/node/v3/msg.ts +1002 -0
  94. package/generated/sentinel/node/v3/node.ts +263 -0
  95. package/generated/sentinel/node/v3/params.ts +183 -0
  96. package/generated/sentinel/plan/v3/events.ts +675 -0
  97. package/generated/sentinel/plan/v3/msg.ts +1191 -0
  98. package/generated/sentinel/plan/v3/plan.ts +283 -0
  99. package/generated/sentinel/provider/v2/events.ts +171 -0
  100. package/generated/sentinel/provider/v2/msg.ts +480 -0
  101. package/generated/sentinel/provider/v2/params.ts +131 -0
  102. package/generated/sentinel/provider/v2/provider.ts +246 -0
  103. package/generated/sentinel/session/v3/events.ts +480 -0
  104. package/generated/sentinel/session/v3/msg.ts +616 -0
  105. package/generated/sentinel/session/v3/params.ts +260 -0
  106. package/generated/sentinel/session/v3/proof.ts +180 -0
  107. package/generated/sentinel/session/v3/session.ts +384 -0
  108. package/generated/sentinel/subscription/v3/events.ts +1181 -0
  109. package/generated/sentinel/subscription/v3/msg.ts +1305 -0
  110. package/generated/sentinel/subscription/v3/params.ts +167 -0
  111. package/generated/sentinel/subscription/v3/subscription.ts +315 -0
  112. package/generated/sentinel/types/v1/bandwidth.ts +124 -0
  113. package/generated/sentinel/types/v1/price.ts +149 -0
  114. package/generated/sentinel/types/v1/renewal.ts +87 -0
  115. package/generated/sentinel/types/v1/status.ts +54 -0
  116. package/generated/typeRegistry.ts +27 -0
  117. package/index.js +486 -0
  118. package/node-connect.js +3015 -0
  119. package/operator.js +134 -0
  120. package/package.json +113 -0
  121. package/plan-operations.js +199 -0
  122. package/preflight.js +352 -0
  123. package/pricing/index.js +262 -0
  124. package/proto/amino/amino.proto +84 -0
  125. package/proto/cosmos/base/v1beta1/coin.proto +61 -0
  126. package/proto/cosmos_proto/cosmos.proto +112 -0
  127. package/proto/gogoproto/gogo.proto +145 -0
  128. package/proto/google/api/annotations.proto +31 -0
  129. package/proto/google/api/http.proto +370 -0
  130. package/proto/google/protobuf/any.proto +106 -0
  131. package/proto/google/protobuf/duration.proto +115 -0
  132. package/proto/google/protobuf/timestamp.proto +145 -0
  133. package/proto/sentinel/lease/v1/events.proto +52 -0
  134. package/proto/sentinel/lease/v1/genesis.proto +15 -0
  135. package/proto/sentinel/lease/v1/lease.proto +25 -0
  136. package/proto/sentinel/lease/v1/msg.proto +62 -0
  137. package/proto/sentinel/lease/v1/params.proto +17 -0
  138. package/proto/sentinel/node/v3/events.proto +50 -0
  139. package/proto/sentinel/node/v3/genesis.proto +15 -0
  140. package/proto/sentinel/node/v3/msg.proto +63 -0
  141. package/proto/sentinel/node/v3/node.proto +27 -0
  142. package/proto/sentinel/node/v3/params.proto +21 -0
  143. package/proto/sentinel/node/v3/querier.proto +63 -0
  144. package/proto/sentinel/plan/v3/events.proto +41 -0
  145. package/proto/sentinel/plan/v3/genesis.proto +21 -0
  146. package/proto/sentinel/plan/v3/msg.proto +83 -0
  147. package/proto/sentinel/plan/v3/plan.proto +32 -0
  148. package/proto/sentinel/plan/v3/querier.proto +53 -0
  149. package/proto/sentinel/provider/v2/events.proto +16 -0
  150. package/proto/sentinel/provider/v2/genesis.proto +15 -0
  151. package/proto/sentinel/provider/v2/msg.proto +35 -0
  152. package/proto/sentinel/provider/v2/params.proto +17 -0
  153. package/proto/sentinel/provider/v2/provider.proto +24 -0
  154. package/proto/sentinel/provider/v3/genesis.proto +15 -0
  155. package/proto/sentinel/provider/v3/params.proto +13 -0
  156. package/proto/sentinel/session/v3/events.proto +30 -0
  157. package/proto/sentinel/session/v3/genesis.proto +15 -0
  158. package/proto/sentinel/session/v3/msg.proto +50 -0
  159. package/proto/sentinel/session/v3/params.proto +25 -0
  160. package/proto/sentinel/session/v3/proof.proto +25 -0
  161. package/proto/sentinel/session/v3/querier.proto +100 -0
  162. package/proto/sentinel/session/v3/session.proto +50 -0
  163. package/proto/sentinel/subscription/v2/allocation.proto +21 -0
  164. package/proto/sentinel/subscription/v2/payout.proto +22 -0
  165. package/proto/sentinel/subscription/v3/events.proto +65 -0
  166. package/proto/sentinel/subscription/v3/genesis.proto +17 -0
  167. package/proto/sentinel/subscription/v3/msg.proto +83 -0
  168. package/proto/sentinel/subscription/v3/params.proto +21 -0
  169. package/proto/sentinel/subscription/v3/subscription.proto +33 -0
  170. package/proto/sentinel/types/v1/bandwidth.proto +19 -0
  171. package/proto/sentinel/types/v1/price.proto +21 -0
  172. package/proto/sentinel/types/v1/renewal.proto +21 -0
  173. package/proto/sentinel/types/v1/status.proto +16 -0
  174. package/protocol/encoding.js +341 -0
  175. package/protocol/events.js +361 -0
  176. package/protocol/handshake.js +297 -0
  177. package/protocol/index.js +15 -0
  178. package/protocol/messages.js +346 -0
  179. package/protocol/plans.js +199 -0
  180. package/protocol/v2ray.js +268 -0
  181. package/protocol/v3.js +723 -0
  182. package/protocol/wireguard.js +125 -0
  183. package/security/index.js +132 -0
  184. package/session-manager.js +329 -0
  185. package/session-tracker.js +80 -0
  186. package/setup.js +376 -0
  187. package/speedtest/index.js +528 -0
  188. package/speedtest.js +567 -0
  189. package/src/client.ts +502 -0
  190. package/src/index.ts +20 -0
  191. package/state/index.js +347 -0
  192. package/state.js +516 -0
  193. package/test-all-chain-ops.js +493 -0
  194. package/test-all-logic.js +199 -0
  195. package/test-all-msg-types.js +292 -0
  196. package/test-every-connection.js +208 -0
  197. package/test-feegrant-connect.js +98 -0
  198. package/test-logic.js +148 -0
  199. package/test-mainnet.js +176 -0
  200. package/test-plan-lifecycle.js +335 -0
  201. package/tls-trust.js +132 -0
  202. package/tsconfig.build.json +20 -0
  203. package/tsconfig.json +34 -0
  204. package/types/chain.d.ts +746 -0
  205. package/types/connection.d.ts +425 -0
  206. package/types/errors.d.ts +174 -0
  207. package/types/index.d.ts +1380 -0
  208. package/types/nodes.d.ts +187 -0
  209. package/types/pricing.d.ts +156 -0
  210. package/types/protocol.d.ts +332 -0
  211. package/types/session.d.ts +236 -0
  212. package/types/settings.d.ts +192 -0
  213. package/v3protocol.js +1053 -0
  214. package/wallet/index.js +153 -0
  215. package/wireguard.js +307 -0
@@ -0,0 +1,84 @@
1
+ syntax = "proto3";
2
+
3
+ package amino;
4
+
5
+ import "google/protobuf/descriptor.proto";
6
+
7
+ // TODO(fdymylja): once we fully migrate to protov2 the go_package needs to be updated.
8
+ // We need this right now because gogoproto codegen needs to import the extension.
9
+ option go_package = "github.com/cosmos/cosmos-sdk/types/tx/amino";
10
+
11
+ extend google.protobuf.MessageOptions {
12
+ // name is the string used when registering a concrete
13
+ // type into the Amino type registry, via the Amino codec's
14
+ // `RegisterConcrete()` method. This string MUST be at most 39
15
+ // characters long, or else the message will be rejected by the
16
+ // Ledger hardware device.
17
+ string name = 11110001;
18
+
19
+ // encoding describes the encoding format used by Amino for the given
20
+ // message. The field type is chosen to be a string for
21
+ // flexibility, but it should ideally be short and expected to be
22
+ // machine-readable, for example "base64" or "utf8_json". We
23
+ // highly recommend to use underscores for word separation instead of spaces.
24
+ //
25
+ // If left empty, then the Amino encoding is expected to be the same as the
26
+ // Protobuf one.
27
+ //
28
+ // This annotation should not be confused with the `encoding`
29
+ // one which operates on the field level.
30
+ string message_encoding = 11110002;
31
+ }
32
+
33
+ extend google.protobuf.FieldOptions {
34
+ // encoding describes the encoding format used by Amino for
35
+ // the given field. The field type is chosen to be a string for
36
+ // flexibility, but it should ideally be short and expected to be
37
+ // machine-readable, for example "base64" or "utf8_json". We
38
+ // highly recommend to use underscores for word separation instead of spaces.
39
+ //
40
+ // If left empty, then the Amino encoding is expected to be the same as the
41
+ // Protobuf one.
42
+ //
43
+ // This annotation should not be confused with the
44
+ // `message_encoding` one which operates on the message level.
45
+ string encoding = 11110003;
46
+
47
+ // field_name sets a different field name (i.e. key name) in
48
+ // the amino JSON object for the given field.
49
+ //
50
+ // Example:
51
+ //
52
+ // message Foo {
53
+ // string bar = 1 [(amino.field_name) = "baz"];
54
+ // }
55
+ //
56
+ // Then the Amino encoding of Foo will be:
57
+ // `{"baz":"some value"}`
58
+ string field_name = 11110004;
59
+
60
+ // dont_omitempty sets the field in the JSON object even if
61
+ // its value is empty, i.e. equal to the Golang zero value. To learn what
62
+ // the zero values are, see https://go.dev/ref/spec#The_zero_value.
63
+ //
64
+ // Fields default to `omitempty`, which is the default behavior when this
65
+ // annotation is unset. When set to true, then the field value in the
66
+ // JSON object will be set, i.e. not `undefined`.
67
+ //
68
+ // Example:
69
+ //
70
+ // message Foo {
71
+ // string bar = 1;
72
+ // string baz = 2 [(amino.dont_omitempty) = true];
73
+ // }
74
+ //
75
+ // f := Foo{};
76
+ // out := AminoJSONEncoder(&f);
77
+ // out == {"baz":""}
78
+ bool dont_omitempty = 11110005;
79
+
80
+ // oneof_name sets the type name for the given field oneof field. This is used
81
+ // by the Amino JSON encoder to encode the type of the oneof field, and must be the same string in
82
+ // the RegisterConcrete() method usage used to register the concrete type.
83
+ string oneof_name = 11110006;
84
+ }
@@ -0,0 +1,61 @@
1
+ syntax = "proto3";
2
+ package cosmos.base.v1beta1;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "cosmos_proto/cosmos.proto";
6
+ import "amino/amino.proto";
7
+
8
+ option go_package = "github.com/cosmos/cosmos-sdk/types";
9
+ option (gogoproto.goproto_stringer_all) = false;
10
+ option (gogoproto.stringer_all) = false;
11
+
12
+ // Coin defines a token with a denomination and an amount.
13
+ //
14
+ // NOTE: The amount field is an Int which implements the custom method
15
+ // signatures required by gogoproto.
16
+ message Coin {
17
+ option (gogoproto.equal) = true;
18
+
19
+ string denom = 1;
20
+ string amount = 2 [
21
+ (cosmos_proto.scalar) = "cosmos.Int",
22
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
23
+ (gogoproto.nullable) = false,
24
+ (amino.dont_omitempty) = true
25
+ ];
26
+ }
27
+
28
+ // DecCoin defines a token with a denomination and a decimal amount.
29
+ //
30
+ // NOTE: The amount field is a Dec which implements the custom method
31
+ // signatures required by gogoproto.
32
+ message DecCoin {
33
+ option (gogoproto.equal) = true;
34
+
35
+ string denom = 1;
36
+ string amount = 2 [
37
+ (cosmos_proto.scalar) = "cosmos.Dec",
38
+ (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
39
+ (gogoproto.nullable) = false
40
+ ];
41
+ }
42
+
43
+ // IntProto defines a Protobuf wrapper around an Int object.
44
+ // Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
45
+ message IntProto {
46
+ string int = 1 [
47
+ (cosmos_proto.scalar) = "cosmos.Int",
48
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
49
+ (gogoproto.nullable) = false
50
+ ];
51
+ }
52
+
53
+ // DecProto defines a Protobuf wrapper around a Dec object.
54
+ // Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
55
+ message DecProto {
56
+ string dec = 1 [
57
+ (cosmos_proto.scalar) = "cosmos.Dec",
58
+ (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
59
+ (gogoproto.nullable) = false
60
+ ];
61
+ }
@@ -0,0 +1,112 @@
1
+ syntax = "proto3";
2
+ package cosmos_proto;
3
+
4
+ import "google/protobuf/descriptor.proto";
5
+
6
+ option go_package = "github.com/cosmos/cosmos-proto;cosmos_proto";
7
+
8
+ extend google.protobuf.MethodOptions {
9
+
10
+ // method_added_in is used to indicate from which version the method was added.
11
+ string method_added_in = 93001;
12
+ }
13
+
14
+ extend google.protobuf.MessageOptions {
15
+
16
+ // implements_interface is used to indicate the type name of the interface
17
+ // that a message implements so that it can be used in google.protobuf.Any
18
+ // fields that accept that interface. A message can implement multiple
19
+ // interfaces. Interfaces should be declared using a declare_interface
20
+ // file option.
21
+ repeated string implements_interface = 93001;
22
+
23
+ // message_added_in is used to indicate from which version the message was added.
24
+ string message_added_in = 93002;
25
+ }
26
+
27
+ extend google.protobuf.FieldOptions {
28
+
29
+ // accepts_interface is used to annotate that a google.protobuf.Any
30
+ // field accepts messages that implement the specified interface.
31
+ // Interfaces should be declared using a declare_interface file option.
32
+ string accepts_interface = 93001;
33
+
34
+ // scalar is used to indicate that this field follows the formatting defined
35
+ // by the named scalar which should be declared with declare_scalar. Code
36
+ // generators may choose to use this information to map this field to a
37
+ // language-specific type representing the scalar.
38
+ string scalar = 93002;
39
+
40
+ // field_added_in is used to indicate from which version the field was added.
41
+ string field_added_in = 93003;
42
+ }
43
+
44
+ extend google.protobuf.FileOptions {
45
+
46
+ // declare_interface declares an interface type to be used with
47
+ // accepts_interface and implements_interface. Interface names are
48
+ // expected to follow the following convention such that their declaration
49
+ // can be discovered by tools: for a given interface type a.b.C, it is
50
+ // expected that the declaration will be found in a protobuf file named
51
+ // a/b/interfaces.proto in the file descriptor set.
52
+ repeated InterfaceDescriptor declare_interface = 793021;
53
+
54
+ // declare_scalar declares a scalar type to be used with
55
+ // the scalar field option. Scalar names are
56
+ // expected to follow the following convention such that their declaration
57
+ // can be discovered by tools: for a given scalar type a.b.C, it is
58
+ // expected that the declaration will be found in a protobuf file named
59
+ // a/b/scalars.proto in the file descriptor set.
60
+ repeated ScalarDescriptor declare_scalar = 793022;
61
+
62
+ // file_added_in is used to indicate from which the version the file was added.
63
+ string file_added_in = 793023;
64
+ }
65
+
66
+ // InterfaceDescriptor describes an interface type to be used with
67
+ // accepts_interface and implements_interface and declared by declare_interface.
68
+ message InterfaceDescriptor {
69
+
70
+ // name is the name of the interface. It should be a short-name (without
71
+ // a period) such that the fully qualified name of the interface will be
72
+ // package.name, ex. for the package a.b and interface named C, the
73
+ // fully-qualified name will be a.b.C.
74
+ string name = 1;
75
+
76
+ // description is a human-readable description of the interface and its
77
+ // purpose.
78
+ string description = 2;
79
+ }
80
+
81
+ // ScalarDescriptor describes an scalar type to be used with
82
+ // the scalar field option and declared by declare_scalar.
83
+ // Scalars extend simple protobuf built-in types with additional
84
+ // syntax and semantics, for instance to represent big integers.
85
+ // Scalars should ideally define an encoding such that there is only one
86
+ // valid syntactical representation for a given semantic meaning,
87
+ // i.e. the encoding should be deterministic.
88
+ message ScalarDescriptor {
89
+
90
+ // name is the name of the scalar. It should be a short-name (without
91
+ // a period) such that the fully qualified name of the scalar will be
92
+ // package.name, ex. for the package a.b and scalar named C, the
93
+ // fully-qualified name will be a.b.C.
94
+ string name = 1;
95
+
96
+ // description is a human-readable description of the scalar and its
97
+ // encoding format. For instance a big integer or decimal scalar should
98
+ // specify precisely the expected encoding format.
99
+ string description = 2;
100
+
101
+ // field_type is the type of field with which this scalar can be used.
102
+ // Scalars can be used with one and only one type of field so that
103
+ // encoding standards and simple and clear. Currently only string and
104
+ // bytes fields are supported for scalars.
105
+ repeated ScalarType field_type = 3;
106
+ }
107
+
108
+ enum ScalarType {
109
+ SCALAR_TYPE_UNSPECIFIED = 0;
110
+ SCALAR_TYPE_STRING = 1;
111
+ SCALAR_TYPE_BYTES = 2;
112
+ }
@@ -0,0 +1,145 @@
1
+ // Protocol Buffers for Go with Gadgets
2
+ //
3
+ // Copyright (c) 2013, The GoGo Authors. All rights reserved.
4
+ // http://github.com/cosmos/gogoproto
5
+ //
6
+ // Redistribution and use in source and binary forms, with or without
7
+ // modification, are permitted provided that the following conditions are
8
+ // met:
9
+ //
10
+ // * Redistributions of source code must retain the above copyright
11
+ // notice, this list of conditions and the following disclaimer.
12
+ // * Redistributions in binary form must reproduce the above
13
+ // copyright notice, this list of conditions and the following disclaimer
14
+ // in the documentation and/or other materials provided with the
15
+ // distribution.
16
+ //
17
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
29
+ syntax = "proto2";
30
+ package gogoproto;
31
+
32
+ import "google/protobuf/descriptor.proto";
33
+
34
+ option java_package = "com.google.protobuf";
35
+ option java_outer_classname = "GoGoProtos";
36
+ option go_package = "github.com/cosmos/gogoproto/gogoproto";
37
+
38
+ extend google.protobuf.EnumOptions {
39
+ optional bool goproto_enum_prefix = 62001;
40
+ optional bool goproto_enum_stringer = 62021;
41
+ optional bool enum_stringer = 62022;
42
+ optional string enum_customname = 62023;
43
+ optional bool enumdecl = 62024;
44
+ }
45
+
46
+ extend google.protobuf.EnumValueOptions {
47
+ optional string enumvalue_customname = 66001;
48
+ }
49
+
50
+ extend google.protobuf.FileOptions {
51
+ optional bool goproto_getters_all = 63001;
52
+ optional bool goproto_enum_prefix_all = 63002;
53
+ optional bool goproto_stringer_all = 63003;
54
+ optional bool verbose_equal_all = 63004;
55
+ optional bool face_all = 63005;
56
+ optional bool gostring_all = 63006;
57
+ optional bool populate_all = 63007;
58
+ optional bool stringer_all = 63008;
59
+ optional bool onlyone_all = 63009;
60
+
61
+ optional bool equal_all = 63013;
62
+ optional bool description_all = 63014;
63
+ optional bool testgen_all = 63015;
64
+ optional bool benchgen_all = 63016;
65
+ optional bool marshaler_all = 63017;
66
+ optional bool unmarshaler_all = 63018;
67
+ optional bool stable_marshaler_all = 63019;
68
+
69
+ optional bool sizer_all = 63020;
70
+
71
+ optional bool goproto_enum_stringer_all = 63021;
72
+ optional bool enum_stringer_all = 63022;
73
+
74
+ optional bool unsafe_marshaler_all = 63023;
75
+ optional bool unsafe_unmarshaler_all = 63024;
76
+
77
+ optional bool goproto_extensions_map_all = 63025;
78
+ optional bool goproto_unrecognized_all = 63026;
79
+ optional bool gogoproto_import = 63027;
80
+ optional bool protosizer_all = 63028;
81
+ optional bool compare_all = 63029;
82
+ optional bool typedecl_all = 63030;
83
+ optional bool enumdecl_all = 63031;
84
+
85
+ optional bool goproto_registration = 63032;
86
+ optional bool messagename_all = 63033;
87
+
88
+ optional bool goproto_sizecache_all = 63034;
89
+ optional bool goproto_unkeyed_all = 63035;
90
+ }
91
+
92
+ extend google.protobuf.MessageOptions {
93
+ optional bool goproto_getters = 64001;
94
+ optional bool goproto_stringer = 64003;
95
+ optional bool verbose_equal = 64004;
96
+ optional bool face = 64005;
97
+ optional bool gostring = 64006;
98
+ optional bool populate = 64007;
99
+ optional bool stringer = 67008;
100
+ optional bool onlyone = 64009;
101
+
102
+ optional bool equal = 64013;
103
+ optional bool description = 64014;
104
+ optional bool testgen = 64015;
105
+ optional bool benchgen = 64016;
106
+ optional bool marshaler = 64017;
107
+ optional bool unmarshaler = 64018;
108
+ optional bool stable_marshaler = 64019;
109
+
110
+ optional bool sizer = 64020;
111
+
112
+ optional bool unsafe_marshaler = 64023;
113
+ optional bool unsafe_unmarshaler = 64024;
114
+
115
+ optional bool goproto_extensions_map = 64025;
116
+ optional bool goproto_unrecognized = 64026;
117
+
118
+ optional bool protosizer = 64028;
119
+ optional bool compare = 64029;
120
+
121
+ optional bool typedecl = 64030;
122
+
123
+ optional bool messagename = 64033;
124
+
125
+ optional bool goproto_sizecache = 64034;
126
+ optional bool goproto_unkeyed = 64035;
127
+ }
128
+
129
+ extend google.protobuf.FieldOptions {
130
+ optional bool nullable = 65001;
131
+ optional bool embed = 65002;
132
+ optional string customtype = 65003;
133
+ optional string customname = 65004;
134
+ optional string jsontag = 65005;
135
+ optional string moretags = 65006;
136
+ optional string casttype = 65007;
137
+ optional string castkey = 65008;
138
+ optional string castvalue = 65009;
139
+
140
+ optional bool stdtime = 65010;
141
+ optional bool stdduration = 65011;
142
+ optional bool wktpointer = 65012;
143
+
144
+ optional string castrepeated = 65013;
145
+ }
@@ -0,0 +1,31 @@
1
+ // Copyright 2025 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ import "google/api/http.proto";
20
+ import "google/protobuf/descriptor.proto";
21
+
22
+ option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
23
+ option java_multiple_files = true;
24
+ option java_outer_classname = "AnnotationsProto";
25
+ option java_package = "com.google.api";
26
+ option objc_class_prefix = "GAPI";
27
+
28
+ extend google.protobuf.MethodOptions {
29
+ // See `HttpRule`.
30
+ HttpRule http = 72295728;
31
+ }