@gitopia/gitopiajs 0.0.4 → 0.0.6
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.
- package/dist/LICENSE +21 -0
- package/dist/amino/amino.d.ts +1 -0
- package/dist/amino/amino.js +2 -0
- package/dist/amino/bundle.d.ts +1 -0
- package/dist/amino/bundle.js +41 -0
- package/dist/binary.d.ts +130 -0
- package/dist/binary.js +371 -0
- package/dist/cosmos/bank/v1beta1/bank.d.ts +407 -0
- package/dist/cosmos/bank/v1beta1/bank.js +664 -0
- package/dist/cosmos/bank/v1beta1/query.d.ts +1062 -0
- package/dist/cosmos/bank/v1beta1/query.js +1759 -0
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +19 -0
- package/dist/cosmos/bank/v1beta1/query.lcd.js +173 -0
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +106 -0
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +123 -0
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +190 -0
- package/dist/cosmos/base/query/v1beta1/pagination.js +204 -0
- package/dist/cosmos/base/v1beta1/coin.d.ts +193 -0
- package/dist/cosmos/base/v1beta1/coin.js +306 -0
- package/dist/cosmos/bundle.d.ts +2311 -0
- package/dist/cosmos/bundle.js +134 -0
- package/dist/cosmos/client.d.ts +84 -0
- package/dist/cosmos/client.js +65 -0
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +245 -0
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +456 -0
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +258 -0
- package/dist/cosmos/feegrant/v1beta1/query.js +487 -0
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +11 -0
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +44 -0
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +28 -0
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +47 -0
- package/dist/cosmos/gov/v1beta1/gov.d.ts +571 -0
- package/dist/cosmos/gov/v1beta1/gov.js +1122 -0
- package/dist/cosmos/gov/v1beta1/query.d.ts +636 -0
- package/dist/cosmos/gov/v1beta1/query.js +1264 -0
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/dist/cosmos/gov/v1beta1/query.lcd.js +87 -0
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +44 -0
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +92 -0
- package/dist/cosmos/group/v1/query.d.ts +1097 -0
- package/dist/cosmos/group/v1/query.js +2182 -0
- package/dist/cosmos/group/v1/query.lcd.d.ts +22 -0
- package/dist/cosmos/group/v1/query.lcd.js +158 -0
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +78 -0
- package/dist/cosmos/group/v1/query.rpc.Query.js +148 -0
- package/dist/cosmos/group/v1/tx.amino.d.ts +73 -0
- package/dist/cosmos/group/v1/tx.amino.js +77 -0
- package/dist/cosmos/group/v1/tx.d.ts +1198 -0
- package/dist/cosmos/group/v1/tx.js +2362 -0
- package/dist/cosmos/group/v1/tx.registry.d.ts +180 -0
- package/dist/cosmos/group/v1/tx.registry.js +271 -0
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +51 -0
- package/dist/cosmos/group/v1/tx.rpc.msg.js +96 -0
- package/dist/cosmos/group/v1/types.d.ts +873 -0
- package/dist/cosmos/group/v1/types.js +1495 -0
- package/dist/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos/query/v1/query.d.ts +1 -0
- package/dist/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos/rpc.query.d.ts +59 -0
- package/dist/cosmos/rpc.query.js +60 -0
- package/dist/cosmos/rpc.tx.d.ts +10 -0
- package/dist/cosmos/rpc.tx.js +44 -0
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +278 -0
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +382 -0
- package/dist/cosmos_proto/bundle.d.ts +32 -0
- package/dist/cosmos_proto/bundle.js +41 -0
- package/dist/cosmos_proto/cosmos.d.ts +171 -0
- package/dist/cosmos_proto/cosmos.js +221 -0
- package/dist/esm/amino/amino.js +1 -0
- package/dist/esm/amino/bundle.js +5 -0
- package/dist/esm/binary.js +366 -0
- package/dist/esm/cosmos/bank/v1beta1/bank.js +661 -0
- package/dist/esm/cosmos/bank/v1beta1/query.js +1756 -0
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +169 -0
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +118 -0
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +201 -0
- package/dist/esm/cosmos/base/v1beta1/coin.js +303 -0
- package/dist/esm/cosmos/bundle.js +98 -0
- package/dist/esm/cosmos/client.js +27 -0
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +450 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +484 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +40 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +42 -0
- package/dist/esm/cosmos/gov/v1beta1/gov.js +1112 -0
- package/dist/esm/cosmos/gov/v1beta1/query.js +1261 -0
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +83 -0
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +87 -0
- package/dist/esm/cosmos/group/v1/query.js +2179 -0
- package/dist/esm/cosmos/group/v1/query.lcd.js +154 -0
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +143 -0
- package/dist/esm/cosmos/group/v1/tx.amino.js +74 -0
- package/dist/esm/cosmos/group/v1/tx.js +2354 -0
- package/dist/esm/cosmos/group/v1/tx.registry.js +267 -0
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +92 -0
- package/dist/esm/cosmos/group/v1/types.js +1483 -0
- package/dist/esm/cosmos/msg/v1/msg.js +1 -0
- package/dist/esm/cosmos/query/v1/query.js +1 -0
- package/dist/esm/cosmos/rpc.query.js +23 -0
- package/dist/esm/cosmos/rpc.tx.js +7 -0
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +379 -0
- package/dist/esm/cosmos_proto/bundle.js +5 -0
- package/dist/esm/cosmos_proto/cosmos.js +216 -0
- package/dist/esm/gitopia/bundle.js +95 -0
- package/dist/esm/gitopia/client.js +32 -0
- package/dist/esm/gitopia/custom-lcd-client.js +50 -0
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +101 -0
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +255 -0
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +137 -0
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +488 -0
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +451 -0
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +78 -0
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +460 -0
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +323 -0
- package/dist/esm/gitopia/gitopia/gitopia/params.js +293 -0
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +565 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.js +7351 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +452 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +453 -0
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +123 -0
- package/dist/esm/gitopia/gitopia/gitopia/release.js +225 -0
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +1200 -0
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +125 -0
- package/dist/esm/gitopia/gitopia/gitopia/task.js +197 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +464 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +14679 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +1671 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +560 -0
- package/dist/esm/gitopia/gitopia/gitopia/user.js +340 -0
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +146 -0
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +144 -0
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +82 -0
- package/dist/esm/gitopia/gitopia/rewards/params.js +81 -0
- package/dist/esm/gitopia/gitopia/rewards/pool.js +191 -0
- package/dist/esm/gitopia/gitopia/rewards/query.js +654 -0
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +40 -0
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +53 -0
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +191 -0
- package/dist/esm/gitopia/gitopia/rewards/task.js +176 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +19 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.js +525 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +69 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +26 -0
- package/dist/esm/gitopia/rpc.query.js +29 -0
- package/dist/esm/gitopia/rpc.tx.js +13 -0
- package/dist/esm/gogoproto/bundle.js +5 -0
- package/dist/esm/gogoproto/gogo.js +1 -0
- package/dist/esm/google/api/annotations.js +1 -0
- package/dist/esm/google/api/http.js +329 -0
- package/dist/esm/google/bundle.js +14 -0
- package/dist/esm/google/protobuf/any.js +74 -0
- package/dist/esm/google/protobuf/descriptor.js +4848 -0
- package/dist/esm/google/protobuf/duration.js +71 -0
- package/dist/esm/google/protobuf/timestamp.js +68 -0
- package/dist/esm/helpers.js +131 -0
- package/dist/esm/ibc/applications/transfer/v1/query.js +847 -0
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +70 -0
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +71 -0
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +164 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +9 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.js +226 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +33 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +14 -0
- package/dist/esm/ibc/bundle.js +44 -0
- package/dist/esm/ibc/client.js +29 -0
- package/dist/esm/ibc/core/client/v1/client.js +611 -0
- package/dist/esm/ibc/rpc.query.js +30 -0
- package/dist/esm/ibc/rpc.tx.js +14 -0
- package/dist/esm/index.js +19 -0
- package/dist/esm/utf8.js +137 -0
- package/dist/esm/varint.js +408 -0
- package/dist/gitopia/bundle.d.ts +6123 -0
- package/dist/gitopia/bundle.js +131 -0
- package/dist/gitopia/client.d.ts +492 -0
- package/dist/gitopia/client.js +70 -0
- package/dist/gitopia/custom-lcd-client.d.ts +31 -0
- package/dist/gitopia/custom-lcd-client.js +87 -0
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +39 -0
- package/dist/gitopia/gitopia/gitopia/attachment.js +104 -0
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +79 -0
- package/dist/gitopia/gitopia/gitopia/bounty.js +262 -0
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +48 -0
- package/dist/gitopia/gitopia/gitopia/branch.js +140 -0
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +125 -0
- package/dist/gitopia/gitopia/gitopia/comment.js +495 -0
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +160 -0
- package/dist/gitopia/gitopia/gitopia/dao.js +454 -0
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +34 -0
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +81 -0
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +143 -0
- package/dist/gitopia/gitopia/gitopia/genesis.js +463 -0
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +88 -0
- package/dist/gitopia/gitopia/gitopia/issue.js +328 -0
- package/dist/gitopia/gitopia/gitopia/params.d.ts +115 -0
- package/dist/gitopia/gitopia/gitopia/params.js +296 -0
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +177 -0
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +570 -0
- package/dist/gitopia/gitopia/gitopia/query.d.ts +3130 -0
- package/dist/gitopia/gitopia/gitopia/query.js +7355 -0
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +54 -0
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +456 -0
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +188 -0
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +458 -0
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +42 -0
- package/dist/gitopia/gitopia/gitopia/reaction.js +128 -0
- package/dist/gitopia/gitopia/gitopia/release.d.ts +70 -0
- package/dist/gitopia/gitopia/gitopia/release.js +228 -0
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +424 -0
- package/dist/gitopia/gitopia/gitopia/repository.js +1207 -0
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +45 -0
- package/dist/gitopia/gitopia/gitopia/tag.js +128 -0
- package/dist/gitopia/gitopia/gitopia/task.d.ts +64 -0
- package/dist/gitopia/gitopia/gitopia/task.js +204 -0
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +463 -0
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +467 -0
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +6246 -0
- package/dist/gitopia/gitopia/gitopia/tx.js +14687 -0
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +1116 -0
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +1675 -0
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +200 -0
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +564 -0
- package/dist/gitopia/gitopia/gitopia/user.d.ts +104 -0
- package/dist/gitopia/gitopia/gitopia/user.js +343 -0
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +51 -0
- package/dist/gitopia/gitopia/gitopia/whois.js +151 -0
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +74 -0
- package/dist/gitopia/gitopia/offchain/offchain.js +147 -0
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +40 -0
- package/dist/gitopia/gitopia/rewards/genesis.js +85 -0
- package/dist/gitopia/gitopia/rewards/params.d.ts +37 -0
- package/dist/gitopia/gitopia/rewards/params.js +84 -0
- package/dist/gitopia/gitopia/rewards/pool.d.ts +59 -0
- package/dist/gitopia/gitopia/rewards/pool.js +196 -0
- package/dist/gitopia/gitopia/rewards/query.d.ts +294 -0
- package/dist/gitopia/gitopia/rewards/query.js +657 -0
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +12 -0
- package/dist/gitopia/gitopia/rewards/query.lcd.js +44 -0
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +28 -0
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +58 -0
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +79 -0
- package/dist/gitopia/gitopia/rewards/rewards.js +194 -0
- package/dist/gitopia/gitopia/rewards/task.d.ts +54 -0
- package/dist/gitopia/gitopia/rewards/task.js +181 -0
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +18 -0
- package/dist/gitopia/gitopia/rewards/tx.amino.js +22 -0
- package/dist/gitopia/gitopia/rewards/tx.d.ts +242 -0
- package/dist/gitopia/gitopia/rewards/tx.js +528 -0
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +48 -0
- package/dist/gitopia/gitopia/rewards/tx.registry.js +73 -0
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +19 -0
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +30 -0
- package/dist/gitopia/rpc.query.d.ts +117 -0
- package/dist/gitopia/rpc.query.js +66 -0
- package/dist/gitopia/rpc.tx.d.ts +16 -0
- package/dist/gitopia/rpc.tx.js +50 -0
- package/dist/gogoproto/bundle.d.ts +1 -0
- package/dist/gogoproto/bundle.js +41 -0
- package/dist/gogoproto/gogo.d.ts +1 -0
- package/dist/gogoproto/gogo.js +2 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +2 -0
- package/dist/google/api/http.d.ts +1049 -0
- package/dist/google/api/http.js +332 -0
- package/dist/google/bundle.d.ts +525 -0
- package/dist/google/bundle.js +50 -0
- package/dist/google/protobuf/any.d.ts +358 -0
- package/dist/google/protobuf/any.js +77 -0
- package/dist/google/protobuf/descriptor.d.ts +3178 -0
- package/dist/google/protobuf/descriptor.js +4886 -0
- package/dist/google/protobuf/duration.d.ts +223 -0
- package/dist/google/protobuf/duration.js +74 -0
- package/dist/google/protobuf/timestamp.d.ts +314 -0
- package/dist/google/protobuf/timestamp.js +71 -0
- package/dist/helpers.d.ts +82 -0
- package/dist/helpers.js +146 -0
- package/dist/ibc/applications/transfer/v1/query.d.ts +479 -0
- package/dist/ibc/applications/transfer/v1/query.js +850 -0
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +14 -0
- package/dist/ibc/applications/transfer/v1/query.lcd.js +74 -0
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +36 -0
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +76 -0
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +123 -0
- package/dist/ibc/applications/transfer/v1/transfer.js +167 -0
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +8 -0
- package/dist/ibc/applications/transfer/v1/tx.amino.js +12 -0
- package/dist/ibc/applications/transfer/v1/tx.d.ts +132 -0
- package/dist/ibc/applications/transfer/v1/tx.js +229 -0
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/dist/ibc/applications/transfer/v1/tx.registry.js +37 -0
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +18 -0
- package/dist/ibc/bundle.d.ts +450 -0
- package/dist/ibc/bundle.js +80 -0
- package/dist/ibc/client.d.ts +22 -0
- package/dist/ibc/client.js +67 -0
- package/dist/ibc/core/client/v1/client.d.ts +408 -0
- package/dist/ibc/core/client/v1/client.js +614 -0
- package/dist/ibc/rpc.query.d.ts +73 -0
- package/dist/ibc/rpc.query.js +67 -0
- package/dist/ibc/rpc.tx.d.ts +17 -0
- package/dist/ibc/rpc.tx.js +51 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +35 -0
- package/dist/package.json +49 -0
- package/dist/utf8.d.ts +27 -0
- package/dist/utf8.js +141 -0
- package/dist/varint.d.ts +105 -0
- package/dist/varint.js +426 -0
- package/package.json +11 -8
- package/CHANGELOG.md +0 -8
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
|
+
function createBaseHttp() {
|
|
4
|
+
return {
|
|
5
|
+
rules: [],
|
|
6
|
+
fullyDecodeReservedExpansion: false
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export const Http = {
|
|
10
|
+
typeUrl: "/google.api.Http",
|
|
11
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
12
|
+
for (const v of message.rules) {
|
|
13
|
+
HttpRule.encode(v, writer.uint32(10).fork()).ldelim();
|
|
14
|
+
}
|
|
15
|
+
if (message.fullyDecodeReservedExpansion === true) {
|
|
16
|
+
writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
|
|
17
|
+
}
|
|
18
|
+
return writer;
|
|
19
|
+
},
|
|
20
|
+
decode(input, length) {
|
|
21
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
22
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
+
const message = createBaseHttp();
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
message.rules.push(HttpRule.decode(reader, reader.uint32()));
|
|
29
|
+
break;
|
|
30
|
+
case 2:
|
|
31
|
+
message.fullyDecodeReservedExpansion = reader.bool();
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
reader.skipType(tag & 7);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return message;
|
|
39
|
+
},
|
|
40
|
+
fromPartial(object) {
|
|
41
|
+
const message = createBaseHttp();
|
|
42
|
+
message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || [];
|
|
43
|
+
message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromAmino(object) {
|
|
47
|
+
const message = createBaseHttp();
|
|
48
|
+
message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || [];
|
|
49
|
+
if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) {
|
|
50
|
+
message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion;
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
toAmino(message) {
|
|
55
|
+
const obj = {};
|
|
56
|
+
if (message.rules) {
|
|
57
|
+
obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
obj.rules = message.rules;
|
|
61
|
+
}
|
|
62
|
+
obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion;
|
|
63
|
+
return obj;
|
|
64
|
+
},
|
|
65
|
+
fromAminoMsg(object) {
|
|
66
|
+
return Http.fromAmino(object.value);
|
|
67
|
+
},
|
|
68
|
+
fromProtoMsg(message) {
|
|
69
|
+
return Http.decode(message.value);
|
|
70
|
+
},
|
|
71
|
+
toProto(message) {
|
|
72
|
+
return Http.encode(message).finish();
|
|
73
|
+
},
|
|
74
|
+
toProtoMsg(message) {
|
|
75
|
+
return {
|
|
76
|
+
typeUrl: "/google.api.Http",
|
|
77
|
+
value: Http.encode(message).finish()
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
function createBaseHttpRule() {
|
|
82
|
+
return {
|
|
83
|
+
selector: "",
|
|
84
|
+
get: undefined,
|
|
85
|
+
put: undefined,
|
|
86
|
+
post: undefined,
|
|
87
|
+
delete: undefined,
|
|
88
|
+
patch: undefined,
|
|
89
|
+
custom: undefined,
|
|
90
|
+
body: "",
|
|
91
|
+
responseBody: "",
|
|
92
|
+
additionalBindings: []
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export const HttpRule = {
|
|
96
|
+
typeUrl: "/google.api.HttpRule",
|
|
97
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
98
|
+
if (message.selector !== "") {
|
|
99
|
+
writer.uint32(10).string(message.selector);
|
|
100
|
+
}
|
|
101
|
+
if (message.get !== undefined) {
|
|
102
|
+
writer.uint32(18).string(message.get);
|
|
103
|
+
}
|
|
104
|
+
if (message.put !== undefined) {
|
|
105
|
+
writer.uint32(26).string(message.put);
|
|
106
|
+
}
|
|
107
|
+
if (message.post !== undefined) {
|
|
108
|
+
writer.uint32(34).string(message.post);
|
|
109
|
+
}
|
|
110
|
+
if (message.delete !== undefined) {
|
|
111
|
+
writer.uint32(42).string(message.delete);
|
|
112
|
+
}
|
|
113
|
+
if (message.patch !== undefined) {
|
|
114
|
+
writer.uint32(50).string(message.patch);
|
|
115
|
+
}
|
|
116
|
+
if (message.custom !== undefined) {
|
|
117
|
+
CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim();
|
|
118
|
+
}
|
|
119
|
+
if (message.body !== "") {
|
|
120
|
+
writer.uint32(58).string(message.body);
|
|
121
|
+
}
|
|
122
|
+
if (message.responseBody !== "") {
|
|
123
|
+
writer.uint32(98).string(message.responseBody);
|
|
124
|
+
}
|
|
125
|
+
for (const v of message.additionalBindings) {
|
|
126
|
+
HttpRule.encode(v, writer.uint32(90).fork()).ldelim();
|
|
127
|
+
}
|
|
128
|
+
return writer;
|
|
129
|
+
},
|
|
130
|
+
decode(input, length) {
|
|
131
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
132
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
133
|
+
const message = createBaseHttpRule();
|
|
134
|
+
while (reader.pos < end) {
|
|
135
|
+
const tag = reader.uint32();
|
|
136
|
+
switch (tag >>> 3) {
|
|
137
|
+
case 1:
|
|
138
|
+
message.selector = reader.string();
|
|
139
|
+
break;
|
|
140
|
+
case 2:
|
|
141
|
+
message.get = reader.string();
|
|
142
|
+
break;
|
|
143
|
+
case 3:
|
|
144
|
+
message.put = reader.string();
|
|
145
|
+
break;
|
|
146
|
+
case 4:
|
|
147
|
+
message.post = reader.string();
|
|
148
|
+
break;
|
|
149
|
+
case 5:
|
|
150
|
+
message.delete = reader.string();
|
|
151
|
+
break;
|
|
152
|
+
case 6:
|
|
153
|
+
message.patch = reader.string();
|
|
154
|
+
break;
|
|
155
|
+
case 8:
|
|
156
|
+
message.custom = CustomHttpPattern.decode(reader, reader.uint32());
|
|
157
|
+
break;
|
|
158
|
+
case 7:
|
|
159
|
+
message.body = reader.string();
|
|
160
|
+
break;
|
|
161
|
+
case 12:
|
|
162
|
+
message.responseBody = reader.string();
|
|
163
|
+
break;
|
|
164
|
+
case 11:
|
|
165
|
+
message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
|
|
166
|
+
break;
|
|
167
|
+
default:
|
|
168
|
+
reader.skipType(tag & 7);
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
fromPartial(object) {
|
|
175
|
+
const message = createBaseHttpRule();
|
|
176
|
+
message.selector = object.selector ?? "";
|
|
177
|
+
message.get = object.get ?? undefined;
|
|
178
|
+
message.put = object.put ?? undefined;
|
|
179
|
+
message.post = object.post ?? undefined;
|
|
180
|
+
message.delete = object.delete ?? undefined;
|
|
181
|
+
message.patch = object.patch ?? undefined;
|
|
182
|
+
message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined;
|
|
183
|
+
message.body = object.body ?? "";
|
|
184
|
+
message.responseBody = object.responseBody ?? "";
|
|
185
|
+
message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || [];
|
|
186
|
+
return message;
|
|
187
|
+
},
|
|
188
|
+
fromAmino(object) {
|
|
189
|
+
const message = createBaseHttpRule();
|
|
190
|
+
if (object.selector !== undefined && object.selector !== null) {
|
|
191
|
+
message.selector = object.selector;
|
|
192
|
+
}
|
|
193
|
+
if (object.get !== undefined && object.get !== null) {
|
|
194
|
+
message.get = object.get;
|
|
195
|
+
}
|
|
196
|
+
if (object.put !== undefined && object.put !== null) {
|
|
197
|
+
message.put = object.put;
|
|
198
|
+
}
|
|
199
|
+
if (object.post !== undefined && object.post !== null) {
|
|
200
|
+
message.post = object.post;
|
|
201
|
+
}
|
|
202
|
+
if (object.delete !== undefined && object.delete !== null) {
|
|
203
|
+
message.delete = object.delete;
|
|
204
|
+
}
|
|
205
|
+
if (object.patch !== undefined && object.patch !== null) {
|
|
206
|
+
message.patch = object.patch;
|
|
207
|
+
}
|
|
208
|
+
if (object.custom !== undefined && object.custom !== null) {
|
|
209
|
+
message.custom = CustomHttpPattern.fromAmino(object.custom);
|
|
210
|
+
}
|
|
211
|
+
if (object.body !== undefined && object.body !== null) {
|
|
212
|
+
message.body = object.body;
|
|
213
|
+
}
|
|
214
|
+
if (object.response_body !== undefined && object.response_body !== null) {
|
|
215
|
+
message.responseBody = object.response_body;
|
|
216
|
+
}
|
|
217
|
+
message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || [];
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
toAmino(message) {
|
|
221
|
+
const obj = {};
|
|
222
|
+
obj.selector = message.selector === "" ? undefined : message.selector;
|
|
223
|
+
obj.get = message.get === null ? undefined : message.get;
|
|
224
|
+
obj.put = message.put === null ? undefined : message.put;
|
|
225
|
+
obj.post = message.post === null ? undefined : message.post;
|
|
226
|
+
obj.delete = message.delete === null ? undefined : message.delete;
|
|
227
|
+
obj.patch = message.patch === null ? undefined : message.patch;
|
|
228
|
+
obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined;
|
|
229
|
+
obj.body = message.body === "" ? undefined : message.body;
|
|
230
|
+
obj.response_body = message.responseBody === "" ? undefined : message.responseBody;
|
|
231
|
+
if (message.additionalBindings) {
|
|
232
|
+
obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
obj.additional_bindings = message.additionalBindings;
|
|
236
|
+
}
|
|
237
|
+
return obj;
|
|
238
|
+
},
|
|
239
|
+
fromAminoMsg(object) {
|
|
240
|
+
return HttpRule.fromAmino(object.value);
|
|
241
|
+
},
|
|
242
|
+
fromProtoMsg(message) {
|
|
243
|
+
return HttpRule.decode(message.value);
|
|
244
|
+
},
|
|
245
|
+
toProto(message) {
|
|
246
|
+
return HttpRule.encode(message).finish();
|
|
247
|
+
},
|
|
248
|
+
toProtoMsg(message) {
|
|
249
|
+
return {
|
|
250
|
+
typeUrl: "/google.api.HttpRule",
|
|
251
|
+
value: HttpRule.encode(message).finish()
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
function createBaseCustomHttpPattern() {
|
|
256
|
+
return {
|
|
257
|
+
kind: "",
|
|
258
|
+
path: ""
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
export const CustomHttpPattern = {
|
|
262
|
+
typeUrl: "/google.api.CustomHttpPattern",
|
|
263
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
264
|
+
if (message.kind !== "") {
|
|
265
|
+
writer.uint32(10).string(message.kind);
|
|
266
|
+
}
|
|
267
|
+
if (message.path !== "") {
|
|
268
|
+
writer.uint32(18).string(message.path);
|
|
269
|
+
}
|
|
270
|
+
return writer;
|
|
271
|
+
},
|
|
272
|
+
decode(input, length) {
|
|
273
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
274
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
275
|
+
const message = createBaseCustomHttpPattern();
|
|
276
|
+
while (reader.pos < end) {
|
|
277
|
+
const tag = reader.uint32();
|
|
278
|
+
switch (tag >>> 3) {
|
|
279
|
+
case 1:
|
|
280
|
+
message.kind = reader.string();
|
|
281
|
+
break;
|
|
282
|
+
case 2:
|
|
283
|
+
message.path = reader.string();
|
|
284
|
+
break;
|
|
285
|
+
default:
|
|
286
|
+
reader.skipType(tag & 7);
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return message;
|
|
291
|
+
},
|
|
292
|
+
fromPartial(object) {
|
|
293
|
+
const message = createBaseCustomHttpPattern();
|
|
294
|
+
message.kind = object.kind ?? "";
|
|
295
|
+
message.path = object.path ?? "";
|
|
296
|
+
return message;
|
|
297
|
+
},
|
|
298
|
+
fromAmino(object) {
|
|
299
|
+
const message = createBaseCustomHttpPattern();
|
|
300
|
+
if (object.kind !== undefined && object.kind !== null) {
|
|
301
|
+
message.kind = object.kind;
|
|
302
|
+
}
|
|
303
|
+
if (object.path !== undefined && object.path !== null) {
|
|
304
|
+
message.path = object.path;
|
|
305
|
+
}
|
|
306
|
+
return message;
|
|
307
|
+
},
|
|
308
|
+
toAmino(message) {
|
|
309
|
+
const obj = {};
|
|
310
|
+
obj.kind = message.kind === "" ? undefined : message.kind;
|
|
311
|
+
obj.path = message.path === "" ? undefined : message.path;
|
|
312
|
+
return obj;
|
|
313
|
+
},
|
|
314
|
+
fromAminoMsg(object) {
|
|
315
|
+
return CustomHttpPattern.fromAmino(object.value);
|
|
316
|
+
},
|
|
317
|
+
fromProtoMsg(message) {
|
|
318
|
+
return CustomHttpPattern.decode(message.value);
|
|
319
|
+
},
|
|
320
|
+
toProto(message) {
|
|
321
|
+
return CustomHttpPattern.encode(message).finish();
|
|
322
|
+
},
|
|
323
|
+
toProtoMsg(message) {
|
|
324
|
+
return {
|
|
325
|
+
typeUrl: "/google.api.CustomHttpPattern",
|
|
326
|
+
value: CustomHttpPattern.encode(message).finish()
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _43 from "./protobuf/any";
|
|
3
|
+
import * as _44 from "./protobuf/descriptor";
|
|
4
|
+
import * as _45 from "./protobuf/duration";
|
|
5
|
+
import * as _46 from "./protobuf/timestamp";
|
|
6
|
+
export var google;
|
|
7
|
+
(function (google) {
|
|
8
|
+
google.protobuf = {
|
|
9
|
+
..._43,
|
|
10
|
+
..._44,
|
|
11
|
+
..._45,
|
|
12
|
+
..._46
|
|
13
|
+
};
|
|
14
|
+
})(google || (google = {}));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
|
+
function createBaseAny() {
|
|
4
|
+
return {
|
|
5
|
+
$typeUrl: "/google.protobuf.Any",
|
|
6
|
+
typeUrl: "",
|
|
7
|
+
value: new Uint8Array()
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export const Any = {
|
|
11
|
+
typeUrl: "/google.protobuf.Any",
|
|
12
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
+
if (message.typeUrl !== "") {
|
|
14
|
+
writer.uint32(10).string(message.typeUrl);
|
|
15
|
+
}
|
|
16
|
+
if (message.value.length !== 0) {
|
|
17
|
+
writer.uint32(18).bytes(message.value);
|
|
18
|
+
}
|
|
19
|
+
return writer;
|
|
20
|
+
},
|
|
21
|
+
decode(input, length) {
|
|
22
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
24
|
+
const message = createBaseAny();
|
|
25
|
+
while (reader.pos < end) {
|
|
26
|
+
const tag = reader.uint32();
|
|
27
|
+
switch (tag >>> 3) {
|
|
28
|
+
case 1:
|
|
29
|
+
message.typeUrl = reader.string();
|
|
30
|
+
break;
|
|
31
|
+
case 2:
|
|
32
|
+
message.value = reader.bytes();
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
reader.skipType(tag & 7);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
fromPartial(object) {
|
|
42
|
+
const message = createBaseAny();
|
|
43
|
+
message.typeUrl = object.typeUrl ?? "";
|
|
44
|
+
message.value = object.value ?? new Uint8Array();
|
|
45
|
+
return message;
|
|
46
|
+
},
|
|
47
|
+
fromAmino(object) {
|
|
48
|
+
return {
|
|
49
|
+
typeUrl: object.type,
|
|
50
|
+
value: object.value
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
toAmino(message) {
|
|
54
|
+
const obj = {};
|
|
55
|
+
obj.type = message.typeUrl;
|
|
56
|
+
obj.value = message.value;
|
|
57
|
+
return obj;
|
|
58
|
+
},
|
|
59
|
+
fromAminoMsg(object) {
|
|
60
|
+
return Any.fromAmino(object.value);
|
|
61
|
+
},
|
|
62
|
+
fromProtoMsg(message) {
|
|
63
|
+
return Any.decode(message.value);
|
|
64
|
+
},
|
|
65
|
+
toProto(message) {
|
|
66
|
+
return Any.encode(message).finish();
|
|
67
|
+
},
|
|
68
|
+
toProtoMsg(message) {
|
|
69
|
+
return {
|
|
70
|
+
typeUrl: "/google.protobuf.Any",
|
|
71
|
+
value: Any.encode(message).finish()
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
};
|