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