@verana-labs/verana-types 0.10.1-dev.2 → 0.10.1-dev.21
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/README.md +1 -1
- package/dist/amino-converter/co.d.ts +3 -0
- package/dist/amino-converter/co.js +164 -0
- package/dist/amino-converter/cs.d.ts +7 -0
- package/dist/amino-converter/cs.js +169 -0
- package/dist/amino-converter/de.d.ts +3 -0
- package/dist/amino-converter/de.js +51 -0
- package/dist/amino-converter/di.d.ts +2 -0
- package/dist/amino-converter/di.js +23 -0
- package/dist/amino-converter/ec.d.ts +4 -0
- package/dist/amino-converter/ec.js +63 -0
- package/dist/amino-converter/gf.d.ts +3 -0
- package/dist/amino-converter/gf.js +48 -0
- package/dist/amino-converter/group.d.ts +3 -0
- package/dist/amino-converter/group.js +91 -0
- package/dist/amino-converter/pp.d.ts +13 -0
- package/dist/amino-converter/pp.js +347 -0
- package/dist/amino-converter/td.d.ts +4 -0
- package/dist/amino-converter/td.js +46 -0
- package/dist/amino-converter/util/helpers.d.ts +30 -0
- package/dist/amino-converter/util/helpers.js +88 -0
- package/dist/amino-converter/xr.d.ts +6 -0
- package/dist/amino-converter/xr.js +106 -0
- package/dist/codec/cosmos/base/v1beta1/coin.d.ts +1 -1
- package/dist/codec/google/protobuf/any.d.ts +143 -0
- package/dist/codec/{verana/dd/v1/params.js → google/protobuf/any.js} +46 -39
- package/dist/codec/google/protobuf/descriptor.d.ts +5 -0
- package/dist/codec/google/protobuf/descriptor.js +16 -2
- package/dist/codec/google/protobuf/timestamp.d.ts +3 -3
- package/dist/codec/verana/{perm/module → co/module/v1}/module.d.ts +5 -2
- package/dist/codec/verana/{perm/module → co/module/v1}/module.js +2 -2
- package/dist/codec/verana/co/v1/genesis.d.ts +28 -0
- package/dist/codec/verana/{dd → co}/v1/genesis.js +11 -11
- package/dist/codec/verana/co/v1/params.d.ts +29 -0
- package/dist/codec/verana/co/v1/params.js +81 -0
- package/dist/codec/verana/co/v1/query.d.ts +111 -0
- package/dist/codec/verana/{dd → co}/v1/query.js +151 -117
- package/dist/codec/verana/co/v1/tx.d.ts +172 -0
- package/dist/codec/verana/co/v1/tx.js +639 -0
- package/dist/codec/verana/co/v1/types.d.ts +60 -0
- package/dist/codec/verana/co/v1/types.js +384 -0
- package/dist/codec/verana/cs/v1/query.d.ts +57 -5
- package/dist/codec/verana/cs/v1/query.js +297 -38
- package/dist/codec/verana/cs/v1/tx.d.ts +107 -12
- package/dist/codec/verana/cs/v1/tx.js +548 -64
- package/dist/codec/verana/cs/v1/types.d.ts +75 -16
- package/dist/codec/verana/cs/v1/types.js +419 -82
- package/dist/codec/verana/de/v1/genesis.d.ts +7 -0
- package/dist/codec/verana/de/v1/genesis.js +57 -2
- package/dist/codec/verana/de/v1/query.d.ts +109 -3
- package/dist/codec/verana/de/v1/query.js +396 -10
- package/dist/codec/verana/de/v1/tx.d.ts +22 -10
- package/dist/codec/verana/de/v1/tx.js +16 -16
- package/dist/codec/verana/de/v1/types.d.ts +104 -21
- package/dist/codec/verana/de/v1/types.js +313 -83
- package/dist/codec/verana/di/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/di/module/v1/module.js +98 -0
- package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +5 -4
- package/dist/codec/verana/di/v1/genesis.js +119 -0
- package/dist/codec/verana/di/v1/params.d.ts +24 -0
- package/dist/codec/verana/di/v1/params.js +81 -0
- package/dist/codec/verana/di/v1/query.d.ts +99 -0
- package/dist/codec/verana/di/v1/query.js +349 -0
- package/dist/codec/verana/di/v1/tx.d.ts +120 -0
- package/dist/codec/verana/di/v1/tx.js +409 -0
- package/dist/codec/verana/{dd → ec}/module/module.d.ts +1 -1
- package/dist/codec/verana/{dd → ec}/module/module.js +2 -2
- package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
- package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
- package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
- package/dist/codec/verana/ec/v1/query.d.ts +109 -0
- package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
- package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
- package/dist/codec/verana/{dd → ec}/v1/tx.js +218 -216
- package/dist/codec/verana/ec/v1/types.d.ts +67 -0
- package/dist/codec/verana/ec/v1/types.js +422 -0
- package/dist/codec/verana/gf/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/gf/module/v1/module.js +98 -0
- package/dist/codec/verana/gf/v1/genesis.d.ts +29 -0
- package/dist/codec/verana/gf/v1/genesis.js +137 -0
- package/dist/codec/verana/gf/v1/params.d.ts +28 -0
- package/dist/codec/verana/gf/v1/params.js +81 -0
- package/dist/codec/verana/gf/v1/query.d.ts +108 -0
- package/dist/codec/verana/gf/v1/query.js +462 -0
- package/dist/codec/verana/gf/v1/tx.d.ts +142 -0
- package/dist/codec/verana/gf/v1/tx.js +486 -0
- package/dist/codec/verana/{tr → gf}/v1/types.d.ts +18 -51
- package/dist/codec/verana/gf/v1/types.js +477 -0
- package/dist/codec/verana/{tr → pp}/module/module.d.ts +1 -1
- package/dist/codec/verana/{tr → pp}/module/module.js +2 -2
- package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
- package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
- package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
- package/dist/codec/verana/pp/v1/query.d.ts +220 -0
- package/dist/codec/verana/{perm → pp}/v1/query.js +305 -166
- package/dist/codec/verana/pp/v1/tx.d.ts +479 -0
- package/dist/codec/verana/pp/v1/tx.js +2574 -0
- package/dist/codec/verana/pp/v1/types.d.ts +137 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +312 -354
- package/dist/codec/verana/td/v1/genesis.d.ts +13 -3
- package/dist/codec/verana/td/v1/genesis.js +151 -35
- package/dist/codec/verana/td/v1/params.d.ts +2 -0
- package/dist/codec/verana/td/v1/params.js +18 -1
- package/dist/codec/verana/td/v1/query.d.ts +1 -1
- package/dist/codec/verana/td/v1/query.js +24 -10
- package/dist/codec/verana/td/v1/tx.d.ts +26 -40
- package/dist/codec/verana/td/v1/tx.js +80 -190
- package/dist/codec/verana/td/v1/types.d.ts +8 -8
- package/dist/codec/verana/td/v1/types.js +54 -69
- package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/xr/module/v1/module.js +98 -0
- package/dist/codec/verana/xr/v1/genesis.d.ts +34 -0
- package/dist/codec/verana/xr/v1/genesis.js +166 -0
- package/dist/codec/verana/{dd → xr}/v1/params.d.ts +4 -3
- package/dist/codec/verana/xr/v1/params.js +104 -0
- package/dist/codec/verana/xr/v1/query.d.ts +166 -0
- package/dist/codec/verana/xr/v1/query.js +817 -0
- package/dist/codec/verana/xr/v1/tx.d.ts +284 -0
- package/dist/codec/verana/xr/v1/tx.js +1298 -0
- package/dist/helpers/aminoConverters.d.ts +10 -32
- package/dist/helpers/aminoConverters.js +23 -589
- package/dist/index.d.ts +11 -1
- package/dist/index.js +11 -1
- package/dist/signing.d.ts +75 -0
- package/dist/signing.js +147 -0
- package/package.json +32 -6
- package/dist/codec/verana/dd/v1/query.d.ts +0 -108
- package/dist/codec/verana/dd/v1/tx.d.ts +0 -173
- package/dist/codec/verana/dd/v1/types.d.ts +0 -30
- package/dist/codec/verana/dd/v1/types.js +0 -206
- package/dist/codec/verana/perm/v1/query.d.ts +0 -209
- package/dist/codec/verana/perm/v1/tx.d.ts +0 -395
- package/dist/codec/verana/perm/v1/tx.js +0 -1995
- package/dist/codec/verana/perm/v1/types.d.ts +0 -134
- package/dist/codec/verana/tr/v1/query.d.ts +0 -118
- package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
- package/dist/codec/verana/tr/v1/tx.js +0 -956
- package/dist/codec/verana/tr/v1/types.js +0 -839
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: verana/
|
|
6
|
+
// source: verana/pp/v1/query.proto
|
|
7
7
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
8
|
if (k2 === undefined) k2 = k;
|
|
9
9
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -38,14 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
};
|
|
39
39
|
})();
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryFindBeneficiariesResponse = exports.QueryFindBeneficiariesRequest = exports.
|
|
41
|
+
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryFindBeneficiariesResponse = exports.QueryFindBeneficiariesRequest = exports.QueryFindParticipantsWithDIDResponse = exports.QueryFindParticipantsWithDIDRequest = exports.QueryListParticipantSessionsResponse = exports.QueryListParticipantSessionsRequest = exports.QueryGetParticipantSessionResponse = exports.QueryGetParticipantSessionRequest = exports.QueryGetParticipantResponse = exports.QueryGetParticipantRequest = exports.QueryListParticipantsResponse = exports.QueryListParticipantsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
44
|
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
45
45
|
const params_1 = require("./params");
|
|
46
46
|
const types_1 = require("./types");
|
|
47
47
|
const Long = require("long");
|
|
48
|
-
exports.protobufPackage = "verana.
|
|
48
|
+
exports.protobufPackage = "verana.pp.v1";
|
|
49
49
|
function createBaseQueryParamsRequest() {
|
|
50
50
|
return {};
|
|
51
51
|
}
|
|
@@ -135,10 +135,23 @@ exports.QueryParamsResponse = {
|
|
|
135
135
|
return message;
|
|
136
136
|
},
|
|
137
137
|
};
|
|
138
|
-
function
|
|
139
|
-
return {
|
|
138
|
+
function createBaseQueryListParticipantsRequest() {
|
|
139
|
+
return {
|
|
140
|
+
modifiedAfter: undefined,
|
|
141
|
+
responseMaxSize: 0,
|
|
142
|
+
schemaId: 0,
|
|
143
|
+
grantee: "",
|
|
144
|
+
did: "",
|
|
145
|
+
participantId: 0,
|
|
146
|
+
role: 0,
|
|
147
|
+
onlyValid: false,
|
|
148
|
+
onlySlashed: false,
|
|
149
|
+
onlyRepaid: false,
|
|
150
|
+
opState: 0,
|
|
151
|
+
when: undefined,
|
|
152
|
+
};
|
|
140
153
|
}
|
|
141
|
-
exports.
|
|
154
|
+
exports.QueryListParticipantsRequest = {
|
|
142
155
|
encode(message, writer = _m0.Writer.create()) {
|
|
143
156
|
if (message.modifiedAfter !== undefined) {
|
|
144
157
|
timestamp_1.Timestamp.encode(toTimestamp(message.modifiedAfter), writer.uint32(10).fork()).ldelim();
|
|
@@ -146,12 +159,42 @@ exports.QueryListPermissionsRequest = {
|
|
|
146
159
|
if (message.responseMaxSize !== 0) {
|
|
147
160
|
writer.uint32(16).uint32(message.responseMaxSize);
|
|
148
161
|
}
|
|
162
|
+
if (message.schemaId !== 0) {
|
|
163
|
+
writer.uint32(24).uint64(message.schemaId);
|
|
164
|
+
}
|
|
165
|
+
if (message.grantee !== "") {
|
|
166
|
+
writer.uint32(34).string(message.grantee);
|
|
167
|
+
}
|
|
168
|
+
if (message.did !== "") {
|
|
169
|
+
writer.uint32(42).string(message.did);
|
|
170
|
+
}
|
|
171
|
+
if (message.participantId !== 0) {
|
|
172
|
+
writer.uint32(48).uint64(message.participantId);
|
|
173
|
+
}
|
|
174
|
+
if (message.role !== 0) {
|
|
175
|
+
writer.uint32(56).int32(message.role);
|
|
176
|
+
}
|
|
177
|
+
if (message.onlyValid !== false) {
|
|
178
|
+
writer.uint32(64).bool(message.onlyValid);
|
|
179
|
+
}
|
|
180
|
+
if (message.onlySlashed !== false) {
|
|
181
|
+
writer.uint32(72).bool(message.onlySlashed);
|
|
182
|
+
}
|
|
183
|
+
if (message.onlyRepaid !== false) {
|
|
184
|
+
writer.uint32(80).bool(message.onlyRepaid);
|
|
185
|
+
}
|
|
186
|
+
if (message.opState !== 0) {
|
|
187
|
+
writer.uint32(88).int32(message.opState);
|
|
188
|
+
}
|
|
189
|
+
if (message.when !== undefined) {
|
|
190
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.when), writer.uint32(98).fork()).ldelim();
|
|
191
|
+
}
|
|
149
192
|
return writer;
|
|
150
193
|
},
|
|
151
194
|
decode(input, length) {
|
|
152
195
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
153
196
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
154
|
-
const message =
|
|
197
|
+
const message = createBaseQueryListParticipantsRequest();
|
|
155
198
|
while (reader.pos < end) {
|
|
156
199
|
const tag = reader.uint32();
|
|
157
200
|
switch (tag >>> 3) {
|
|
@@ -167,6 +210,66 @@ exports.QueryListPermissionsRequest = {
|
|
|
167
210
|
}
|
|
168
211
|
message.responseMaxSize = reader.uint32();
|
|
169
212
|
continue;
|
|
213
|
+
case 3:
|
|
214
|
+
if (tag !== 24) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.schemaId = longToNumber(reader.uint64());
|
|
218
|
+
continue;
|
|
219
|
+
case 4:
|
|
220
|
+
if (tag !== 34) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.grantee = reader.string();
|
|
224
|
+
continue;
|
|
225
|
+
case 5:
|
|
226
|
+
if (tag !== 42) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.did = reader.string();
|
|
230
|
+
continue;
|
|
231
|
+
case 6:
|
|
232
|
+
if (tag !== 48) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
message.participantId = longToNumber(reader.uint64());
|
|
236
|
+
continue;
|
|
237
|
+
case 7:
|
|
238
|
+
if (tag !== 56) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
message.role = reader.int32();
|
|
242
|
+
continue;
|
|
243
|
+
case 8:
|
|
244
|
+
if (tag !== 64) {
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
message.onlyValid = reader.bool();
|
|
248
|
+
continue;
|
|
249
|
+
case 9:
|
|
250
|
+
if (tag !== 72) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
message.onlySlashed = reader.bool();
|
|
254
|
+
continue;
|
|
255
|
+
case 10:
|
|
256
|
+
if (tag !== 80) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
message.onlyRepaid = reader.bool();
|
|
260
|
+
continue;
|
|
261
|
+
case 11:
|
|
262
|
+
if (tag !== 88) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
message.opState = reader.int32();
|
|
266
|
+
continue;
|
|
267
|
+
case 12:
|
|
268
|
+
if (tag !== 98) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
message.when = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
272
|
+
continue;
|
|
170
273
|
}
|
|
171
274
|
if ((tag & 7) === 4 || tag === 0) {
|
|
172
275
|
break;
|
|
@@ -179,6 +282,16 @@ exports.QueryListPermissionsRequest = {
|
|
|
179
282
|
return {
|
|
180
283
|
modifiedAfter: isSet(object.modifiedAfter) ? fromJsonTimestamp(object.modifiedAfter) : undefined,
|
|
181
284
|
responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
|
|
285
|
+
schemaId: isSet(object.schemaId) ? globalThis.Number(object.schemaId) : 0,
|
|
286
|
+
grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
|
|
287
|
+
did: isSet(object.did) ? globalThis.String(object.did) : "",
|
|
288
|
+
participantId: isSet(object.participantId) ? globalThis.Number(object.participantId) : 0,
|
|
289
|
+
role: isSet(object.role) ? (0, types_1.participantRoleFromJSON)(object.role) : 0,
|
|
290
|
+
onlyValid: isSet(object.onlyValid) ? globalThis.Boolean(object.onlyValid) : false,
|
|
291
|
+
onlySlashed: isSet(object.onlySlashed) ? globalThis.Boolean(object.onlySlashed) : false,
|
|
292
|
+
onlyRepaid: isSet(object.onlyRepaid) ? globalThis.Boolean(object.onlyRepaid) : false,
|
|
293
|
+
opState: isSet(object.opState) ? (0, types_1.onboardingStateFromJSON)(object.opState) : 0,
|
|
294
|
+
when: isSet(object.when) ? fromJsonTimestamp(object.when) : undefined,
|
|
182
295
|
};
|
|
183
296
|
},
|
|
184
297
|
toJSON(message) {
|
|
@@ -189,33 +302,73 @@ exports.QueryListPermissionsRequest = {
|
|
|
189
302
|
if (message.responseMaxSize !== 0) {
|
|
190
303
|
obj.responseMaxSize = Math.round(message.responseMaxSize);
|
|
191
304
|
}
|
|
305
|
+
if (message.schemaId !== 0) {
|
|
306
|
+
obj.schemaId = Math.round(message.schemaId);
|
|
307
|
+
}
|
|
308
|
+
if (message.grantee !== "") {
|
|
309
|
+
obj.grantee = message.grantee;
|
|
310
|
+
}
|
|
311
|
+
if (message.did !== "") {
|
|
312
|
+
obj.did = message.did;
|
|
313
|
+
}
|
|
314
|
+
if (message.participantId !== 0) {
|
|
315
|
+
obj.participantId = Math.round(message.participantId);
|
|
316
|
+
}
|
|
317
|
+
if (message.role !== 0) {
|
|
318
|
+
obj.role = (0, types_1.participantRoleToJSON)(message.role);
|
|
319
|
+
}
|
|
320
|
+
if (message.onlyValid !== false) {
|
|
321
|
+
obj.onlyValid = message.onlyValid;
|
|
322
|
+
}
|
|
323
|
+
if (message.onlySlashed !== false) {
|
|
324
|
+
obj.onlySlashed = message.onlySlashed;
|
|
325
|
+
}
|
|
326
|
+
if (message.onlyRepaid !== false) {
|
|
327
|
+
obj.onlyRepaid = message.onlyRepaid;
|
|
328
|
+
}
|
|
329
|
+
if (message.opState !== 0) {
|
|
330
|
+
obj.opState = (0, types_1.onboardingStateToJSON)(message.opState);
|
|
331
|
+
}
|
|
332
|
+
if (message.when !== undefined) {
|
|
333
|
+
obj.when = message.when.toISOString();
|
|
334
|
+
}
|
|
192
335
|
return obj;
|
|
193
336
|
},
|
|
194
337
|
create(base) {
|
|
195
|
-
return exports.
|
|
338
|
+
return exports.QueryListParticipantsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
196
339
|
},
|
|
197
340
|
fromPartial(object) {
|
|
198
|
-
var _a, _b;
|
|
199
|
-
const message =
|
|
341
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
342
|
+
const message = createBaseQueryListParticipantsRequest();
|
|
200
343
|
message.modifiedAfter = (_a = object.modifiedAfter) !== null && _a !== void 0 ? _a : undefined;
|
|
201
344
|
message.responseMaxSize = (_b = object.responseMaxSize) !== null && _b !== void 0 ? _b : 0;
|
|
345
|
+
message.schemaId = (_c = object.schemaId) !== null && _c !== void 0 ? _c : 0;
|
|
346
|
+
message.grantee = (_d = object.grantee) !== null && _d !== void 0 ? _d : "";
|
|
347
|
+
message.did = (_e = object.did) !== null && _e !== void 0 ? _e : "";
|
|
348
|
+
message.participantId = (_f = object.participantId) !== null && _f !== void 0 ? _f : 0;
|
|
349
|
+
message.role = (_g = object.role) !== null && _g !== void 0 ? _g : 0;
|
|
350
|
+
message.onlyValid = (_h = object.onlyValid) !== null && _h !== void 0 ? _h : false;
|
|
351
|
+
message.onlySlashed = (_j = object.onlySlashed) !== null && _j !== void 0 ? _j : false;
|
|
352
|
+
message.onlyRepaid = (_k = object.onlyRepaid) !== null && _k !== void 0 ? _k : false;
|
|
353
|
+
message.opState = (_l = object.opState) !== null && _l !== void 0 ? _l : 0;
|
|
354
|
+
message.when = (_m = object.when) !== null && _m !== void 0 ? _m : undefined;
|
|
202
355
|
return message;
|
|
203
356
|
},
|
|
204
357
|
};
|
|
205
|
-
function
|
|
206
|
-
return {
|
|
358
|
+
function createBaseQueryListParticipantsResponse() {
|
|
359
|
+
return { participants: [] };
|
|
207
360
|
}
|
|
208
|
-
exports.
|
|
361
|
+
exports.QueryListParticipantsResponse = {
|
|
209
362
|
encode(message, writer = _m0.Writer.create()) {
|
|
210
|
-
for (const v of message.
|
|
211
|
-
types_1.
|
|
363
|
+
for (const v of message.participants) {
|
|
364
|
+
types_1.Participant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
212
365
|
}
|
|
213
366
|
return writer;
|
|
214
367
|
},
|
|
215
368
|
decode(input, length) {
|
|
216
369
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
217
370
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
|
-
const message =
|
|
371
|
+
const message = createBaseQueryListParticipantsResponse();
|
|
219
372
|
while (reader.pos < end) {
|
|
220
373
|
const tag = reader.uint32();
|
|
221
374
|
switch (tag >>> 3) {
|
|
@@ -223,7 +376,7 @@ exports.QueryListPermissionsResponse = {
|
|
|
223
376
|
if (tag !== 10) {
|
|
224
377
|
break;
|
|
225
378
|
}
|
|
226
|
-
message.
|
|
379
|
+
message.participants.push(types_1.Participant.decode(reader, reader.uint32()));
|
|
227
380
|
continue;
|
|
228
381
|
}
|
|
229
382
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -235,33 +388,33 @@ exports.QueryListPermissionsResponse = {
|
|
|
235
388
|
},
|
|
236
389
|
fromJSON(object) {
|
|
237
390
|
return {
|
|
238
|
-
|
|
239
|
-
? object.
|
|
391
|
+
participants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.participants)
|
|
392
|
+
? object.participants.map((e) => types_1.Participant.fromJSON(e))
|
|
240
393
|
: [],
|
|
241
394
|
};
|
|
242
395
|
},
|
|
243
396
|
toJSON(message) {
|
|
244
397
|
var _a;
|
|
245
398
|
const obj = {};
|
|
246
|
-
if ((_a = message.
|
|
247
|
-
obj.
|
|
399
|
+
if ((_a = message.participants) === null || _a === void 0 ? void 0 : _a.length) {
|
|
400
|
+
obj.participants = message.participants.map((e) => types_1.Participant.toJSON(e));
|
|
248
401
|
}
|
|
249
402
|
return obj;
|
|
250
403
|
},
|
|
251
404
|
create(base) {
|
|
252
|
-
return exports.
|
|
405
|
+
return exports.QueryListParticipantsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
253
406
|
},
|
|
254
407
|
fromPartial(object) {
|
|
255
408
|
var _a;
|
|
256
|
-
const message =
|
|
257
|
-
message.
|
|
409
|
+
const message = createBaseQueryListParticipantsResponse();
|
|
410
|
+
message.participants = ((_a = object.participants) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.Participant.fromPartial(e))) || [];
|
|
258
411
|
return message;
|
|
259
412
|
},
|
|
260
413
|
};
|
|
261
|
-
function
|
|
414
|
+
function createBaseQueryGetParticipantRequest() {
|
|
262
415
|
return { id: 0 };
|
|
263
416
|
}
|
|
264
|
-
exports.
|
|
417
|
+
exports.QueryGetParticipantRequest = {
|
|
265
418
|
encode(message, writer = _m0.Writer.create()) {
|
|
266
419
|
if (message.id !== 0) {
|
|
267
420
|
writer.uint32(8).uint64(message.id);
|
|
@@ -271,7 +424,7 @@ exports.QueryGetPermissionRequest = {
|
|
|
271
424
|
decode(input, length) {
|
|
272
425
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
273
426
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
274
|
-
const message =
|
|
427
|
+
const message = createBaseQueryGetParticipantRequest();
|
|
275
428
|
while (reader.pos < end) {
|
|
276
429
|
const tag = reader.uint32();
|
|
277
430
|
switch (tag >>> 3) {
|
|
@@ -300,29 +453,29 @@ exports.QueryGetPermissionRequest = {
|
|
|
300
453
|
return obj;
|
|
301
454
|
},
|
|
302
455
|
create(base) {
|
|
303
|
-
return exports.
|
|
456
|
+
return exports.QueryGetParticipantRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
304
457
|
},
|
|
305
458
|
fromPartial(object) {
|
|
306
459
|
var _a;
|
|
307
|
-
const message =
|
|
460
|
+
const message = createBaseQueryGetParticipantRequest();
|
|
308
461
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
309
462
|
return message;
|
|
310
463
|
},
|
|
311
464
|
};
|
|
312
|
-
function
|
|
313
|
-
return {
|
|
465
|
+
function createBaseQueryGetParticipantResponse() {
|
|
466
|
+
return { participant: undefined };
|
|
314
467
|
}
|
|
315
|
-
exports.
|
|
468
|
+
exports.QueryGetParticipantResponse = {
|
|
316
469
|
encode(message, writer = _m0.Writer.create()) {
|
|
317
|
-
if (message.
|
|
318
|
-
types_1.
|
|
470
|
+
if (message.participant !== undefined) {
|
|
471
|
+
types_1.Participant.encode(message.participant, writer.uint32(10).fork()).ldelim();
|
|
319
472
|
}
|
|
320
473
|
return writer;
|
|
321
474
|
},
|
|
322
475
|
decode(input, length) {
|
|
323
476
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
324
477
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
325
|
-
const message =
|
|
478
|
+
const message = createBaseQueryGetParticipantResponse();
|
|
326
479
|
while (reader.pos < end) {
|
|
327
480
|
const tag = reader.uint32();
|
|
328
481
|
switch (tag >>> 3) {
|
|
@@ -330,7 +483,7 @@ exports.QueryGetPermissionResponse = {
|
|
|
330
483
|
if (tag !== 10) {
|
|
331
484
|
break;
|
|
332
485
|
}
|
|
333
|
-
message.
|
|
486
|
+
message.participant = types_1.Participant.decode(reader, reader.uint32());
|
|
334
487
|
continue;
|
|
335
488
|
}
|
|
336
489
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -341,30 +494,30 @@ exports.QueryGetPermissionResponse = {
|
|
|
341
494
|
return message;
|
|
342
495
|
},
|
|
343
496
|
fromJSON(object) {
|
|
344
|
-
return {
|
|
497
|
+
return { participant: isSet(object.participant) ? types_1.Participant.fromJSON(object.participant) : undefined };
|
|
345
498
|
},
|
|
346
499
|
toJSON(message) {
|
|
347
500
|
const obj = {};
|
|
348
|
-
if (message.
|
|
349
|
-
obj.
|
|
501
|
+
if (message.participant !== undefined) {
|
|
502
|
+
obj.participant = types_1.Participant.toJSON(message.participant);
|
|
350
503
|
}
|
|
351
504
|
return obj;
|
|
352
505
|
},
|
|
353
506
|
create(base) {
|
|
354
|
-
return exports.
|
|
507
|
+
return exports.QueryGetParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
355
508
|
},
|
|
356
509
|
fromPartial(object) {
|
|
357
|
-
const message =
|
|
358
|
-
message.
|
|
359
|
-
? types_1.
|
|
510
|
+
const message = createBaseQueryGetParticipantResponse();
|
|
511
|
+
message.participant = (object.participant !== undefined && object.participant !== null)
|
|
512
|
+
? types_1.Participant.fromPartial(object.participant)
|
|
360
513
|
: undefined;
|
|
361
514
|
return message;
|
|
362
515
|
},
|
|
363
516
|
};
|
|
364
|
-
function
|
|
517
|
+
function createBaseQueryGetParticipantSessionRequest() {
|
|
365
518
|
return { id: "" };
|
|
366
519
|
}
|
|
367
|
-
exports.
|
|
520
|
+
exports.QueryGetParticipantSessionRequest = {
|
|
368
521
|
encode(message, writer = _m0.Writer.create()) {
|
|
369
522
|
if (message.id !== "") {
|
|
370
523
|
writer.uint32(10).string(message.id);
|
|
@@ -374,7 +527,7 @@ exports.QueryGetPermissionSessionRequest = {
|
|
|
374
527
|
decode(input, length) {
|
|
375
528
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
376
529
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
377
|
-
const message =
|
|
530
|
+
const message = createBaseQueryGetParticipantSessionRequest();
|
|
378
531
|
while (reader.pos < end) {
|
|
379
532
|
const tag = reader.uint32();
|
|
380
533
|
switch (tag >>> 3) {
|
|
@@ -403,29 +556,29 @@ exports.QueryGetPermissionSessionRequest = {
|
|
|
403
556
|
return obj;
|
|
404
557
|
},
|
|
405
558
|
create(base) {
|
|
406
|
-
return exports.
|
|
559
|
+
return exports.QueryGetParticipantSessionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
407
560
|
},
|
|
408
561
|
fromPartial(object) {
|
|
409
562
|
var _a;
|
|
410
|
-
const message =
|
|
563
|
+
const message = createBaseQueryGetParticipantSessionRequest();
|
|
411
564
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
412
565
|
return message;
|
|
413
566
|
},
|
|
414
567
|
};
|
|
415
|
-
function
|
|
568
|
+
function createBaseQueryGetParticipantSessionResponse() {
|
|
416
569
|
return { session: undefined };
|
|
417
570
|
}
|
|
418
|
-
exports.
|
|
571
|
+
exports.QueryGetParticipantSessionResponse = {
|
|
419
572
|
encode(message, writer = _m0.Writer.create()) {
|
|
420
573
|
if (message.session !== undefined) {
|
|
421
|
-
types_1.
|
|
574
|
+
types_1.ParticipantSession.encode(message.session, writer.uint32(10).fork()).ldelim();
|
|
422
575
|
}
|
|
423
576
|
return writer;
|
|
424
577
|
},
|
|
425
578
|
decode(input, length) {
|
|
426
579
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
427
580
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
428
|
-
const message =
|
|
581
|
+
const message = createBaseQueryGetParticipantSessionResponse();
|
|
429
582
|
while (reader.pos < end) {
|
|
430
583
|
const tag = reader.uint32();
|
|
431
584
|
switch (tag >>> 3) {
|
|
@@ -433,7 +586,7 @@ exports.QueryGetPermissionSessionResponse = {
|
|
|
433
586
|
if (tag !== 10) {
|
|
434
587
|
break;
|
|
435
588
|
}
|
|
436
|
-
message.session = types_1.
|
|
589
|
+
message.session = types_1.ParticipantSession.decode(reader, reader.uint32());
|
|
437
590
|
continue;
|
|
438
591
|
}
|
|
439
592
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -444,30 +597,30 @@ exports.QueryGetPermissionSessionResponse = {
|
|
|
444
597
|
return message;
|
|
445
598
|
},
|
|
446
599
|
fromJSON(object) {
|
|
447
|
-
return { session: isSet(object.session) ? types_1.
|
|
600
|
+
return { session: isSet(object.session) ? types_1.ParticipantSession.fromJSON(object.session) : undefined };
|
|
448
601
|
},
|
|
449
602
|
toJSON(message) {
|
|
450
603
|
const obj = {};
|
|
451
604
|
if (message.session !== undefined) {
|
|
452
|
-
obj.session = types_1.
|
|
605
|
+
obj.session = types_1.ParticipantSession.toJSON(message.session);
|
|
453
606
|
}
|
|
454
607
|
return obj;
|
|
455
608
|
},
|
|
456
609
|
create(base) {
|
|
457
|
-
return exports.
|
|
610
|
+
return exports.QueryGetParticipantSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
458
611
|
},
|
|
459
612
|
fromPartial(object) {
|
|
460
|
-
const message =
|
|
613
|
+
const message = createBaseQueryGetParticipantSessionResponse();
|
|
461
614
|
message.session = (object.session !== undefined && object.session !== null)
|
|
462
|
-
? types_1.
|
|
615
|
+
? types_1.ParticipantSession.fromPartial(object.session)
|
|
463
616
|
: undefined;
|
|
464
617
|
return message;
|
|
465
618
|
},
|
|
466
619
|
};
|
|
467
|
-
function
|
|
620
|
+
function createBaseQueryListParticipantSessionsRequest() {
|
|
468
621
|
return { modifiedAfter: undefined, responseMaxSize: 0 };
|
|
469
622
|
}
|
|
470
|
-
exports.
|
|
623
|
+
exports.QueryListParticipantSessionsRequest = {
|
|
471
624
|
encode(message, writer = _m0.Writer.create()) {
|
|
472
625
|
if (message.modifiedAfter !== undefined) {
|
|
473
626
|
timestamp_1.Timestamp.encode(toTimestamp(message.modifiedAfter), writer.uint32(10).fork()).ldelim();
|
|
@@ -480,7 +633,7 @@ exports.QueryListPermissionSessionsRequest = {
|
|
|
480
633
|
decode(input, length) {
|
|
481
634
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
482
635
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
483
|
-
const message =
|
|
636
|
+
const message = createBaseQueryListParticipantSessionsRequest();
|
|
484
637
|
while (reader.pos < end) {
|
|
485
638
|
const tag = reader.uint32();
|
|
486
639
|
switch (tag >>> 3) {
|
|
@@ -521,30 +674,30 @@ exports.QueryListPermissionSessionsRequest = {
|
|
|
521
674
|
return obj;
|
|
522
675
|
},
|
|
523
676
|
create(base) {
|
|
524
|
-
return exports.
|
|
677
|
+
return exports.QueryListParticipantSessionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
525
678
|
},
|
|
526
679
|
fromPartial(object) {
|
|
527
680
|
var _a, _b;
|
|
528
|
-
const message =
|
|
681
|
+
const message = createBaseQueryListParticipantSessionsRequest();
|
|
529
682
|
message.modifiedAfter = (_a = object.modifiedAfter) !== null && _a !== void 0 ? _a : undefined;
|
|
530
683
|
message.responseMaxSize = (_b = object.responseMaxSize) !== null && _b !== void 0 ? _b : 0;
|
|
531
684
|
return message;
|
|
532
685
|
},
|
|
533
686
|
};
|
|
534
|
-
function
|
|
687
|
+
function createBaseQueryListParticipantSessionsResponse() {
|
|
535
688
|
return { sessions: [] };
|
|
536
689
|
}
|
|
537
|
-
exports.
|
|
690
|
+
exports.QueryListParticipantSessionsResponse = {
|
|
538
691
|
encode(message, writer = _m0.Writer.create()) {
|
|
539
692
|
for (const v of message.sessions) {
|
|
540
|
-
types_1.
|
|
693
|
+
types_1.ParticipantSession.encode(v, writer.uint32(10).fork()).ldelim();
|
|
541
694
|
}
|
|
542
695
|
return writer;
|
|
543
696
|
},
|
|
544
697
|
decode(input, length) {
|
|
545
698
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
546
699
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
547
|
-
const message =
|
|
700
|
+
const message = createBaseQueryListParticipantSessionsResponse();
|
|
548
701
|
while (reader.pos < end) {
|
|
549
702
|
const tag = reader.uint32();
|
|
550
703
|
switch (tag >>> 3) {
|
|
@@ -552,7 +705,7 @@ exports.QueryListPermissionSessionsResponse = {
|
|
|
552
705
|
if (tag !== 10) {
|
|
553
706
|
break;
|
|
554
707
|
}
|
|
555
|
-
message.sessions.push(types_1.
|
|
708
|
+
message.sessions.push(types_1.ParticipantSession.decode(reader, reader.uint32()));
|
|
556
709
|
continue;
|
|
557
710
|
}
|
|
558
711
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -565,7 +718,7 @@ exports.QueryListPermissionSessionsResponse = {
|
|
|
565
718
|
fromJSON(object) {
|
|
566
719
|
return {
|
|
567
720
|
sessions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessions)
|
|
568
|
-
? object.sessions.map((e) => types_1.
|
|
721
|
+
? object.sessions.map((e) => types_1.ParticipantSession.fromJSON(e))
|
|
569
722
|
: [],
|
|
570
723
|
};
|
|
571
724
|
},
|
|
@@ -573,37 +726,34 @@ exports.QueryListPermissionSessionsResponse = {
|
|
|
573
726
|
var _a;
|
|
574
727
|
const obj = {};
|
|
575
728
|
if ((_a = message.sessions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
576
|
-
obj.sessions = message.sessions.map((e) => types_1.
|
|
729
|
+
obj.sessions = message.sessions.map((e) => types_1.ParticipantSession.toJSON(e));
|
|
577
730
|
}
|
|
578
731
|
return obj;
|
|
579
732
|
},
|
|
580
733
|
create(base) {
|
|
581
|
-
return exports.
|
|
734
|
+
return exports.QueryListParticipantSessionsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
582
735
|
},
|
|
583
736
|
fromPartial(object) {
|
|
584
737
|
var _a;
|
|
585
|
-
const message =
|
|
586
|
-
message.sessions = ((_a = object.sessions) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.
|
|
738
|
+
const message = createBaseQueryListParticipantSessionsResponse();
|
|
739
|
+
message.sessions = ((_a = object.sessions) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.ParticipantSession.fromPartial(e))) || [];
|
|
587
740
|
return message;
|
|
588
741
|
},
|
|
589
742
|
};
|
|
590
|
-
function
|
|
591
|
-
return { did: "",
|
|
743
|
+
function createBaseQueryFindParticipantsWithDIDRequest() {
|
|
744
|
+
return { did: "", role: 0, schemaId: 0, when: undefined };
|
|
592
745
|
}
|
|
593
|
-
exports.
|
|
746
|
+
exports.QueryFindParticipantsWithDIDRequest = {
|
|
594
747
|
encode(message, writer = _m0.Writer.create()) {
|
|
595
748
|
if (message.did !== "") {
|
|
596
749
|
writer.uint32(10).string(message.did);
|
|
597
750
|
}
|
|
598
|
-
if (message.
|
|
599
|
-
writer.uint32(16).uint32(message.
|
|
751
|
+
if (message.role !== 0) {
|
|
752
|
+
writer.uint32(16).uint32(message.role);
|
|
600
753
|
}
|
|
601
754
|
if (message.schemaId !== 0) {
|
|
602
755
|
writer.uint32(24).uint64(message.schemaId);
|
|
603
756
|
}
|
|
604
|
-
if (message.country !== "") {
|
|
605
|
-
writer.uint32(34).string(message.country);
|
|
606
|
-
}
|
|
607
757
|
if (message.when !== undefined) {
|
|
608
758
|
timestamp_1.Timestamp.encode(toTimestamp(message.when), writer.uint32(42).fork()).ldelim();
|
|
609
759
|
}
|
|
@@ -612,7 +762,7 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
612
762
|
decode(input, length) {
|
|
613
763
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
614
764
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
615
|
-
const message =
|
|
765
|
+
const message = createBaseQueryFindParticipantsWithDIDRequest();
|
|
616
766
|
while (reader.pos < end) {
|
|
617
767
|
const tag = reader.uint32();
|
|
618
768
|
switch (tag >>> 3) {
|
|
@@ -626,7 +776,7 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
626
776
|
if (tag !== 16) {
|
|
627
777
|
break;
|
|
628
778
|
}
|
|
629
|
-
message.
|
|
779
|
+
message.role = reader.uint32();
|
|
630
780
|
continue;
|
|
631
781
|
case 3:
|
|
632
782
|
if (tag !== 24) {
|
|
@@ -634,12 +784,6 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
634
784
|
}
|
|
635
785
|
message.schemaId = longToNumber(reader.uint64());
|
|
636
786
|
continue;
|
|
637
|
-
case 4:
|
|
638
|
-
if (tag !== 34) {
|
|
639
|
-
break;
|
|
640
|
-
}
|
|
641
|
-
message.country = reader.string();
|
|
642
|
-
continue;
|
|
643
787
|
case 5:
|
|
644
788
|
if (tag !== 42) {
|
|
645
789
|
break;
|
|
@@ -657,9 +801,8 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
657
801
|
fromJSON(object) {
|
|
658
802
|
return {
|
|
659
803
|
did: isSet(object.did) ? globalThis.String(object.did) : "",
|
|
660
|
-
|
|
804
|
+
role: isSet(object.role) ? globalThis.Number(object.role) : 0,
|
|
661
805
|
schemaId: isSet(object.schemaId) ? globalThis.Number(object.schemaId) : 0,
|
|
662
|
-
country: isSet(object.country) ? globalThis.String(object.country) : "",
|
|
663
806
|
when: isSet(object.when) ? fromJsonTimestamp(object.when) : undefined,
|
|
664
807
|
};
|
|
665
808
|
},
|
|
@@ -668,48 +811,44 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
668
811
|
if (message.did !== "") {
|
|
669
812
|
obj.did = message.did;
|
|
670
813
|
}
|
|
671
|
-
if (message.
|
|
672
|
-
obj.
|
|
814
|
+
if (message.role !== 0) {
|
|
815
|
+
obj.role = Math.round(message.role);
|
|
673
816
|
}
|
|
674
817
|
if (message.schemaId !== 0) {
|
|
675
818
|
obj.schemaId = Math.round(message.schemaId);
|
|
676
819
|
}
|
|
677
|
-
if (message.country !== "") {
|
|
678
|
-
obj.country = message.country;
|
|
679
|
-
}
|
|
680
820
|
if (message.when !== undefined) {
|
|
681
821
|
obj.when = message.when.toISOString();
|
|
682
822
|
}
|
|
683
823
|
return obj;
|
|
684
824
|
},
|
|
685
825
|
create(base) {
|
|
686
|
-
return exports.
|
|
826
|
+
return exports.QueryFindParticipantsWithDIDRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
687
827
|
},
|
|
688
828
|
fromPartial(object) {
|
|
689
|
-
var _a, _b, _c, _d
|
|
690
|
-
const message =
|
|
829
|
+
var _a, _b, _c, _d;
|
|
830
|
+
const message = createBaseQueryFindParticipantsWithDIDRequest();
|
|
691
831
|
message.did = (_a = object.did) !== null && _a !== void 0 ? _a : "";
|
|
692
|
-
message.
|
|
832
|
+
message.role = (_b = object.role) !== null && _b !== void 0 ? _b : 0;
|
|
693
833
|
message.schemaId = (_c = object.schemaId) !== null && _c !== void 0 ? _c : 0;
|
|
694
|
-
message.
|
|
695
|
-
message.when = (_e = object.when) !== null && _e !== void 0 ? _e : undefined;
|
|
834
|
+
message.when = (_d = object.when) !== null && _d !== void 0 ? _d : undefined;
|
|
696
835
|
return message;
|
|
697
836
|
},
|
|
698
837
|
};
|
|
699
|
-
function
|
|
700
|
-
return {
|
|
838
|
+
function createBaseQueryFindParticipantsWithDIDResponse() {
|
|
839
|
+
return { participants: [] };
|
|
701
840
|
}
|
|
702
|
-
exports.
|
|
841
|
+
exports.QueryFindParticipantsWithDIDResponse = {
|
|
703
842
|
encode(message, writer = _m0.Writer.create()) {
|
|
704
|
-
for (const v of message.
|
|
705
|
-
types_1.
|
|
843
|
+
for (const v of message.participants) {
|
|
844
|
+
types_1.Participant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
706
845
|
}
|
|
707
846
|
return writer;
|
|
708
847
|
},
|
|
709
848
|
decode(input, length) {
|
|
710
849
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
711
850
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
712
|
-
const message =
|
|
851
|
+
const message = createBaseQueryFindParticipantsWithDIDResponse();
|
|
713
852
|
while (reader.pos < end) {
|
|
714
853
|
const tag = reader.uint32();
|
|
715
854
|
switch (tag >>> 3) {
|
|
@@ -717,7 +856,7 @@ exports.QueryFindPermissionsWithDIDResponse = {
|
|
|
717
856
|
if (tag !== 10) {
|
|
718
857
|
break;
|
|
719
858
|
}
|
|
720
|
-
message.
|
|
859
|
+
message.participants.push(types_1.Participant.decode(reader, reader.uint32()));
|
|
721
860
|
continue;
|
|
722
861
|
}
|
|
723
862
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -729,39 +868,39 @@ exports.QueryFindPermissionsWithDIDResponse = {
|
|
|
729
868
|
},
|
|
730
869
|
fromJSON(object) {
|
|
731
870
|
return {
|
|
732
|
-
|
|
733
|
-
? object.
|
|
871
|
+
participants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.participants)
|
|
872
|
+
? object.participants.map((e) => types_1.Participant.fromJSON(e))
|
|
734
873
|
: [],
|
|
735
874
|
};
|
|
736
875
|
},
|
|
737
876
|
toJSON(message) {
|
|
738
877
|
var _a;
|
|
739
878
|
const obj = {};
|
|
740
|
-
if ((_a = message.
|
|
741
|
-
obj.
|
|
879
|
+
if ((_a = message.participants) === null || _a === void 0 ? void 0 : _a.length) {
|
|
880
|
+
obj.participants = message.participants.map((e) => types_1.Participant.toJSON(e));
|
|
742
881
|
}
|
|
743
882
|
return obj;
|
|
744
883
|
},
|
|
745
884
|
create(base) {
|
|
746
|
-
return exports.
|
|
885
|
+
return exports.QueryFindParticipantsWithDIDResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
747
886
|
},
|
|
748
887
|
fromPartial(object) {
|
|
749
888
|
var _a;
|
|
750
|
-
const message =
|
|
751
|
-
message.
|
|
889
|
+
const message = createBaseQueryFindParticipantsWithDIDResponse();
|
|
890
|
+
message.participants = ((_a = object.participants) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.Participant.fromPartial(e))) || [];
|
|
752
891
|
return message;
|
|
753
892
|
},
|
|
754
893
|
};
|
|
755
894
|
function createBaseQueryFindBeneficiariesRequest() {
|
|
756
|
-
return {
|
|
895
|
+
return { issuerParticipantId: 0, verifierParticipantId: 0 };
|
|
757
896
|
}
|
|
758
897
|
exports.QueryFindBeneficiariesRequest = {
|
|
759
898
|
encode(message, writer = _m0.Writer.create()) {
|
|
760
|
-
if (message.
|
|
761
|
-
writer.uint32(8).uint64(message.
|
|
899
|
+
if (message.issuerParticipantId !== 0) {
|
|
900
|
+
writer.uint32(8).uint64(message.issuerParticipantId);
|
|
762
901
|
}
|
|
763
|
-
if (message.
|
|
764
|
-
writer.uint32(16).uint64(message.
|
|
902
|
+
if (message.verifierParticipantId !== 0) {
|
|
903
|
+
writer.uint32(16).uint64(message.verifierParticipantId);
|
|
765
904
|
}
|
|
766
905
|
return writer;
|
|
767
906
|
},
|
|
@@ -776,13 +915,13 @@ exports.QueryFindBeneficiariesRequest = {
|
|
|
776
915
|
if (tag !== 8) {
|
|
777
916
|
break;
|
|
778
917
|
}
|
|
779
|
-
message.
|
|
918
|
+
message.issuerParticipantId = longToNumber(reader.uint64());
|
|
780
919
|
continue;
|
|
781
920
|
case 2:
|
|
782
921
|
if (tag !== 16) {
|
|
783
922
|
break;
|
|
784
923
|
}
|
|
785
|
-
message.
|
|
924
|
+
message.verifierParticipantId = longToNumber(reader.uint64());
|
|
786
925
|
continue;
|
|
787
926
|
}
|
|
788
927
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -794,17 +933,17 @@ exports.QueryFindBeneficiariesRequest = {
|
|
|
794
933
|
},
|
|
795
934
|
fromJSON(object) {
|
|
796
935
|
return {
|
|
797
|
-
|
|
798
|
-
|
|
936
|
+
issuerParticipantId: isSet(object.issuerParticipantId) ? globalThis.Number(object.issuerParticipantId) : 0,
|
|
937
|
+
verifierParticipantId: isSet(object.verifierParticipantId) ? globalThis.Number(object.verifierParticipantId) : 0,
|
|
799
938
|
};
|
|
800
939
|
},
|
|
801
940
|
toJSON(message) {
|
|
802
941
|
const obj = {};
|
|
803
|
-
if (message.
|
|
804
|
-
obj.
|
|
942
|
+
if (message.issuerParticipantId !== 0) {
|
|
943
|
+
obj.issuerParticipantId = Math.round(message.issuerParticipantId);
|
|
805
944
|
}
|
|
806
|
-
if (message.
|
|
807
|
-
obj.
|
|
945
|
+
if (message.verifierParticipantId !== 0) {
|
|
946
|
+
obj.verifierParticipantId = Math.round(message.verifierParticipantId);
|
|
808
947
|
}
|
|
809
948
|
return obj;
|
|
810
949
|
},
|
|
@@ -814,18 +953,18 @@ exports.QueryFindBeneficiariesRequest = {
|
|
|
814
953
|
fromPartial(object) {
|
|
815
954
|
var _a, _b;
|
|
816
955
|
const message = createBaseQueryFindBeneficiariesRequest();
|
|
817
|
-
message.
|
|
818
|
-
message.
|
|
956
|
+
message.issuerParticipantId = (_a = object.issuerParticipantId) !== null && _a !== void 0 ? _a : 0;
|
|
957
|
+
message.verifierParticipantId = (_b = object.verifierParticipantId) !== null && _b !== void 0 ? _b : 0;
|
|
819
958
|
return message;
|
|
820
959
|
},
|
|
821
960
|
};
|
|
822
961
|
function createBaseQueryFindBeneficiariesResponse() {
|
|
823
|
-
return {
|
|
962
|
+
return { participants: [] };
|
|
824
963
|
}
|
|
825
964
|
exports.QueryFindBeneficiariesResponse = {
|
|
826
965
|
encode(message, writer = _m0.Writer.create()) {
|
|
827
|
-
for (const v of message.
|
|
828
|
-
types_1.
|
|
966
|
+
for (const v of message.participants) {
|
|
967
|
+
types_1.Participant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
829
968
|
}
|
|
830
969
|
return writer;
|
|
831
970
|
},
|
|
@@ -840,7 +979,7 @@ exports.QueryFindBeneficiariesResponse = {
|
|
|
840
979
|
if (tag !== 10) {
|
|
841
980
|
break;
|
|
842
981
|
}
|
|
843
|
-
message.
|
|
982
|
+
message.participants.push(types_1.Participant.decode(reader, reader.uint32()));
|
|
844
983
|
continue;
|
|
845
984
|
}
|
|
846
985
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -852,16 +991,16 @@ exports.QueryFindBeneficiariesResponse = {
|
|
|
852
991
|
},
|
|
853
992
|
fromJSON(object) {
|
|
854
993
|
return {
|
|
855
|
-
|
|
856
|
-
? object.
|
|
994
|
+
participants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.participants)
|
|
995
|
+
? object.participants.map((e) => types_1.Participant.fromJSON(e))
|
|
857
996
|
: [],
|
|
858
997
|
};
|
|
859
998
|
},
|
|
860
999
|
toJSON(message) {
|
|
861
1000
|
var _a;
|
|
862
1001
|
const obj = {};
|
|
863
|
-
if ((_a = message.
|
|
864
|
-
obj.
|
|
1002
|
+
if ((_a = message.participants) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1003
|
+
obj.participants = message.participants.map((e) => types_1.Participant.toJSON(e));
|
|
865
1004
|
}
|
|
866
1005
|
return obj;
|
|
867
1006
|
},
|
|
@@ -871,21 +1010,21 @@ exports.QueryFindBeneficiariesResponse = {
|
|
|
871
1010
|
fromPartial(object) {
|
|
872
1011
|
var _a;
|
|
873
1012
|
const message = createBaseQueryFindBeneficiariesResponse();
|
|
874
|
-
message.
|
|
1013
|
+
message.participants = ((_a = object.participants) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.Participant.fromPartial(e))) || [];
|
|
875
1014
|
return message;
|
|
876
1015
|
},
|
|
877
1016
|
};
|
|
878
|
-
exports.QueryServiceName = "verana.
|
|
1017
|
+
exports.QueryServiceName = "verana.pp.v1.Query";
|
|
879
1018
|
class QueryClientImpl {
|
|
880
1019
|
constructor(rpc, opts) {
|
|
881
1020
|
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.QueryServiceName;
|
|
882
1021
|
this.rpc = rpc;
|
|
883
1022
|
this.Params = this.Params.bind(this);
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
886
|
-
this.
|
|
887
|
-
this.
|
|
888
|
-
this.
|
|
1023
|
+
this.ListParticipants = this.ListParticipants.bind(this);
|
|
1024
|
+
this.GetParticipant = this.GetParticipant.bind(this);
|
|
1025
|
+
this.GetParticipantSession = this.GetParticipantSession.bind(this);
|
|
1026
|
+
this.ListParticipantSessions = this.ListParticipantSessions.bind(this);
|
|
1027
|
+
this.FindParticipantsWithDID = this.FindParticipantsWithDID.bind(this);
|
|
889
1028
|
this.FindBeneficiaries = this.FindBeneficiaries.bind(this);
|
|
890
1029
|
}
|
|
891
1030
|
Params(request) {
|
|
@@ -893,30 +1032,30 @@ class QueryClientImpl {
|
|
|
893
1032
|
const promise = this.rpc.request(this.service, "Params", data);
|
|
894
1033
|
return promise.then((data) => exports.QueryParamsResponse.decode(_m0.Reader.create(data)));
|
|
895
1034
|
}
|
|
896
|
-
|
|
897
|
-
const data = exports.
|
|
898
|
-
const promise = this.rpc.request(this.service, "
|
|
899
|
-
return promise.then((data) => exports.
|
|
1035
|
+
ListParticipants(request) {
|
|
1036
|
+
const data = exports.QueryListParticipantsRequest.encode(request).finish();
|
|
1037
|
+
const promise = this.rpc.request(this.service, "ListParticipants", data);
|
|
1038
|
+
return promise.then((data) => exports.QueryListParticipantsResponse.decode(_m0.Reader.create(data)));
|
|
900
1039
|
}
|
|
901
|
-
|
|
902
|
-
const data = exports.
|
|
903
|
-
const promise = this.rpc.request(this.service, "
|
|
904
|
-
return promise.then((data) => exports.
|
|
1040
|
+
GetParticipant(request) {
|
|
1041
|
+
const data = exports.QueryGetParticipantRequest.encode(request).finish();
|
|
1042
|
+
const promise = this.rpc.request(this.service, "GetParticipant", data);
|
|
1043
|
+
return promise.then((data) => exports.QueryGetParticipantResponse.decode(_m0.Reader.create(data)));
|
|
905
1044
|
}
|
|
906
|
-
|
|
907
|
-
const data = exports.
|
|
908
|
-
const promise = this.rpc.request(this.service, "
|
|
909
|
-
return promise.then((data) => exports.
|
|
1045
|
+
GetParticipantSession(request) {
|
|
1046
|
+
const data = exports.QueryGetParticipantSessionRequest.encode(request).finish();
|
|
1047
|
+
const promise = this.rpc.request(this.service, "GetParticipantSession", data);
|
|
1048
|
+
return promise.then((data) => exports.QueryGetParticipantSessionResponse.decode(_m0.Reader.create(data)));
|
|
910
1049
|
}
|
|
911
|
-
|
|
912
|
-
const data = exports.
|
|
913
|
-
const promise = this.rpc.request(this.service, "
|
|
914
|
-
return promise.then((data) => exports.
|
|
1050
|
+
ListParticipantSessions(request) {
|
|
1051
|
+
const data = exports.QueryListParticipantSessionsRequest.encode(request).finish();
|
|
1052
|
+
const promise = this.rpc.request(this.service, "ListParticipantSessions", data);
|
|
1053
|
+
return promise.then((data) => exports.QueryListParticipantSessionsResponse.decode(_m0.Reader.create(data)));
|
|
915
1054
|
}
|
|
916
|
-
|
|
917
|
-
const data = exports.
|
|
918
|
-
const promise = this.rpc.request(this.service, "
|
|
919
|
-
return promise.then((data) => exports.
|
|
1055
|
+
FindParticipantsWithDID(request) {
|
|
1056
|
+
const data = exports.QueryFindParticipantsWithDIDRequest.encode(request).finish();
|
|
1057
|
+
const promise = this.rpc.request(this.service, "FindParticipantsWithDID", data);
|
|
1058
|
+
return promise.then((data) => exports.QueryFindParticipantsWithDIDResponse.decode(_m0.Reader.create(data)));
|
|
920
1059
|
}
|
|
921
1060
|
FindBeneficiaries(request) {
|
|
922
1061
|
const data = exports.QueryFindBeneficiariesRequest.encode(request).finish();
|