@dashevo/dapi-grpc 5.0.0-beta.4 → 5.0.0-beta.5
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/Cargo.toml +7 -0
- package/build.rs +48 -6
- package/clients/drive/v0/nodejs/drive_pbjs.js +25 -235
- package/clients/platform/v0/nodejs/platform_pbjs.js +25 -235
- package/clients/platform/v0/nodejs/platform_protoc.js +18 -261
- package/clients/platform/v0/web/platform_pb.d.ts +6 -34
- package/clients/platform/v0/web/platform_pb.js +18 -261
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +21 -8
- package/src/lib.rs +3 -0
- package/src/request_codec.rs +49 -0
- package/test/unit/nonunique-proof.spec.js +42 -0
- package/tests/protobuf_request_errors.rs +372 -0
|
@@ -495,7 +495,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicK
|
|
|
495
495
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.VersionCase', null, { proto });
|
|
496
496
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse', null, { proto });
|
|
497
497
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0', null, { proto });
|
|
498
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse', null, { proto });
|
|
499
498
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse', null, { proto });
|
|
500
499
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.ResultCase', null, { proto });
|
|
501
500
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.VersionCase', null, { proto });
|
|
@@ -5240,27 +5239,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5240
5239
|
*/
|
|
5241
5240
|
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse';
|
|
5242
5241
|
}
|
|
5243
|
-
/**
|
|
5244
|
-
* Generated by JsPbCodeGenerator.
|
|
5245
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5246
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5247
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5248
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5249
|
-
* valid.
|
|
5250
|
-
* @extends {jspb.Message}
|
|
5251
|
-
* @constructor
|
|
5252
|
-
*/
|
|
5253
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse = function(opt_data) {
|
|
5254
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5255
|
-
};
|
|
5256
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse, jspb.Message);
|
|
5257
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5258
|
-
/**
|
|
5259
|
-
* @public
|
|
5260
|
-
* @override
|
|
5261
|
-
*/
|
|
5262
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse';
|
|
5263
|
-
}
|
|
5264
5242
|
/**
|
|
5265
5243
|
* Generated by JsPbCodeGenerator.
|
|
5266
5244
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -46142,7 +46120,9 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator = {
|
|
|
46142
46120
|
IN: 9,
|
|
46143
46121
|
STARTS_WITH: 10,
|
|
46144
46122
|
IN_TIME_RANGE: 11,
|
|
46145
|
-
IN_INTEGER_RANGE: 12
|
|
46123
|
+
IN_INTEGER_RANGE: 12,
|
|
46124
|
+
CONTAINS: 13,
|
|
46125
|
+
CONTAINS_ANY: 14
|
|
46146
46126
|
};
|
|
46147
46127
|
|
|
46148
46128
|
|
|
@@ -59202,7 +59182,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.seri
|
|
|
59202
59182
|
* @private {!Array<!Array<number>>}
|
|
59203
59183
|
* @const
|
|
59204
59184
|
*/
|
|
59205
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.oneofGroups_ = [[1,
|
|
59185
|
+
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.oneofGroups_ = [[1,4]];
|
|
59206
59186
|
|
|
59207
59187
|
/**
|
|
59208
59188
|
* @enum {number}
|
|
@@ -59210,7 +59190,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetI
|
|
|
59210
59190
|
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.ResultCase = {
|
|
59211
59191
|
RESULT_NOT_SET: 0,
|
|
59212
59192
|
IDENTITY: 1,
|
|
59213
|
-
PROOF:
|
|
59193
|
+
PROOF: 4
|
|
59214
59194
|
};
|
|
59215
59195
|
|
|
59216
59196
|
/**
|
|
@@ -59252,7 +59232,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetI
|
|
|
59252
59232
|
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.toObject = function(includeInstance, msg) {
|
|
59253
59233
|
var f, obj = {
|
|
59254
59234
|
identity: (f = msg.getIdentity()) && proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse.toObject(includeInstance, f),
|
|
59255
|
-
proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.
|
|
59235
|
+
proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
|
|
59256
59236
|
metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f)
|
|
59257
59237
|
};
|
|
59258
59238
|
|
|
@@ -59295,9 +59275,9 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetI
|
|
|
59295
59275
|
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse.deserializeBinaryFromReader);
|
|
59296
59276
|
msg.setIdentity(value);
|
|
59297
59277
|
break;
|
|
59298
|
-
case
|
|
59299
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
59300
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
59278
|
+
case 4:
|
|
59279
|
+
var value = new proto.org.dash.platform.dapi.v0.Proof;
|
|
59280
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader);
|
|
59301
59281
|
msg.setProof(value);
|
|
59302
59282
|
break;
|
|
59303
59283
|
case 3:
|
|
@@ -59345,9 +59325,9 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetI
|
|
|
59345
59325
|
f = message.getProof();
|
|
59346
59326
|
if (f != null) {
|
|
59347
59327
|
writer.writeMessage(
|
|
59348
|
-
|
|
59328
|
+
4,
|
|
59349
59329
|
f,
|
|
59350
|
-
proto.org.dash.platform.dapi.v0.
|
|
59330
|
+
proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
|
|
59351
59331
|
);
|
|
59352
59332
|
}
|
|
59353
59333
|
f = message.getMetadata();
|
|
@@ -59533,229 +59513,6 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetI
|
|
|
59533
59513
|
};
|
|
59534
59514
|
|
|
59535
59515
|
|
|
59536
|
-
|
|
59537
|
-
|
|
59538
|
-
|
|
59539
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59540
|
-
/**
|
|
59541
|
-
* Creates an object representation of this proto.
|
|
59542
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
59543
|
-
* Optional fields that are not set will be set to undefined.
|
|
59544
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
59545
|
-
* For the list of reserved names please see:
|
|
59546
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
59547
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
59548
|
-
* JSPB instance for transitional soy proto support:
|
|
59549
|
-
* http://goto/soy-param-migration
|
|
59550
|
-
* @return {!Object}
|
|
59551
|
-
*/
|
|
59552
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.toObject = function(opt_includeInstance) {
|
|
59553
|
-
return proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.toObject(opt_includeInstance, this);
|
|
59554
|
-
};
|
|
59555
|
-
|
|
59556
|
-
|
|
59557
|
-
/**
|
|
59558
|
-
* Static version of the {@see toObject} method.
|
|
59559
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
59560
|
-
* the JSPB instance for transitional soy proto support:
|
|
59561
|
-
* http://goto/soy-param-migration
|
|
59562
|
-
* @param {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} msg The msg instance to transform.
|
|
59563
|
-
* @return {!Object}
|
|
59564
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59565
|
-
*/
|
|
59566
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.toObject = function(includeInstance, msg) {
|
|
59567
|
-
var f, obj = {
|
|
59568
|
-
grovedbIdentityPublicKeyHashProof: (f = msg.getGrovedbIdentityPublicKeyHashProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
|
|
59569
|
-
identityProofBytes: msg.getIdentityProofBytes_asB64()
|
|
59570
|
-
};
|
|
59571
|
-
|
|
59572
|
-
if (includeInstance) {
|
|
59573
|
-
obj.$jspbMessageInstance = msg;
|
|
59574
|
-
}
|
|
59575
|
-
return obj;
|
|
59576
|
-
};
|
|
59577
|
-
}
|
|
59578
|
-
|
|
59579
|
-
|
|
59580
|
-
/**
|
|
59581
|
-
* Deserializes binary data (in protobuf wire format).
|
|
59582
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
59583
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse}
|
|
59584
|
-
*/
|
|
59585
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.deserializeBinary = function(bytes) {
|
|
59586
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
59587
|
-
var msg = new proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse;
|
|
59588
|
-
return proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.deserializeBinaryFromReader(msg, reader);
|
|
59589
|
-
};
|
|
59590
|
-
|
|
59591
|
-
|
|
59592
|
-
/**
|
|
59593
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
59594
|
-
* given reader into the given message object.
|
|
59595
|
-
* @param {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} msg The message object to deserialize into.
|
|
59596
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
59597
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse}
|
|
59598
|
-
*/
|
|
59599
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
59600
|
-
while (reader.nextField()) {
|
|
59601
|
-
if (reader.isEndGroup()) {
|
|
59602
|
-
break;
|
|
59603
|
-
}
|
|
59604
|
-
var field = reader.getFieldNumber();
|
|
59605
|
-
switch (field) {
|
|
59606
|
-
case 1:
|
|
59607
|
-
var value = new proto.org.dash.platform.dapi.v0.Proof;
|
|
59608
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader);
|
|
59609
|
-
msg.setGrovedbIdentityPublicKeyHashProof(value);
|
|
59610
|
-
break;
|
|
59611
|
-
case 2:
|
|
59612
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
59613
|
-
msg.setIdentityProofBytes(value);
|
|
59614
|
-
break;
|
|
59615
|
-
default:
|
|
59616
|
-
reader.skipField();
|
|
59617
|
-
break;
|
|
59618
|
-
}
|
|
59619
|
-
}
|
|
59620
|
-
return msg;
|
|
59621
|
-
};
|
|
59622
|
-
|
|
59623
|
-
|
|
59624
|
-
/**
|
|
59625
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
59626
|
-
* @return {!Uint8Array}
|
|
59627
|
-
*/
|
|
59628
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.serializeBinary = function() {
|
|
59629
|
-
var writer = new jspb.BinaryWriter();
|
|
59630
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.serializeBinaryToWriter(this, writer);
|
|
59631
|
-
return writer.getResultBuffer();
|
|
59632
|
-
};
|
|
59633
|
-
|
|
59634
|
-
|
|
59635
|
-
/**
|
|
59636
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
59637
|
-
* format), writing to the given BinaryWriter.
|
|
59638
|
-
* @param {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} message
|
|
59639
|
-
* @param {!jspb.BinaryWriter} writer
|
|
59640
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59641
|
-
*/
|
|
59642
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.serializeBinaryToWriter = function(message, writer) {
|
|
59643
|
-
var f = undefined;
|
|
59644
|
-
f = message.getGrovedbIdentityPublicKeyHashProof();
|
|
59645
|
-
if (f != null) {
|
|
59646
|
-
writer.writeMessage(
|
|
59647
|
-
1,
|
|
59648
|
-
f,
|
|
59649
|
-
proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
|
|
59650
|
-
);
|
|
59651
|
-
}
|
|
59652
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
59653
|
-
if (f != null) {
|
|
59654
|
-
writer.writeBytes(
|
|
59655
|
-
2,
|
|
59656
|
-
f
|
|
59657
|
-
);
|
|
59658
|
-
}
|
|
59659
|
-
};
|
|
59660
|
-
|
|
59661
|
-
|
|
59662
|
-
/**
|
|
59663
|
-
* optional Proof grovedb_identity_public_key_hash_proof = 1;
|
|
59664
|
-
* @return {?proto.org.dash.platform.dapi.v0.Proof}
|
|
59665
|
-
*/
|
|
59666
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.getGrovedbIdentityPublicKeyHashProof = function() {
|
|
59667
|
-
return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ (
|
|
59668
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 1));
|
|
59669
|
-
};
|
|
59670
|
-
|
|
59671
|
-
|
|
59672
|
-
/**
|
|
59673
|
-
* @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value
|
|
59674
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} returns this
|
|
59675
|
-
*/
|
|
59676
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.setGrovedbIdentityPublicKeyHashProof = function(value) {
|
|
59677
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
59678
|
-
};
|
|
59679
|
-
|
|
59680
|
-
|
|
59681
|
-
/**
|
|
59682
|
-
* Clears the message field making it undefined.
|
|
59683
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} returns this
|
|
59684
|
-
*/
|
|
59685
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.clearGrovedbIdentityPublicKeyHashProof = function() {
|
|
59686
|
-
return this.setGrovedbIdentityPublicKeyHashProof(undefined);
|
|
59687
|
-
};
|
|
59688
|
-
|
|
59689
|
-
|
|
59690
|
-
/**
|
|
59691
|
-
* Returns whether this field is set.
|
|
59692
|
-
* @return {boolean}
|
|
59693
|
-
*/
|
|
59694
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.hasGrovedbIdentityPublicKeyHashProof = function() {
|
|
59695
|
-
return jspb.Message.getField(this, 1) != null;
|
|
59696
|
-
};
|
|
59697
|
-
|
|
59698
|
-
|
|
59699
|
-
/**
|
|
59700
|
-
* optional bytes identity_proof_bytes = 2;
|
|
59701
|
-
* @return {string}
|
|
59702
|
-
*/
|
|
59703
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.getIdentityProofBytes = function() {
|
|
59704
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
59705
|
-
};
|
|
59706
|
-
|
|
59707
|
-
|
|
59708
|
-
/**
|
|
59709
|
-
* optional bytes identity_proof_bytes = 2;
|
|
59710
|
-
* This is a type-conversion wrapper around `getIdentityProofBytes()`
|
|
59711
|
-
* @return {string}
|
|
59712
|
-
*/
|
|
59713
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.getIdentityProofBytes_asB64 = function() {
|
|
59714
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
59715
|
-
this.getIdentityProofBytes()));
|
|
59716
|
-
};
|
|
59717
|
-
|
|
59718
|
-
|
|
59719
|
-
/**
|
|
59720
|
-
* optional bytes identity_proof_bytes = 2;
|
|
59721
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
59722
|
-
* @see http://caniuse.com/Uint8Array
|
|
59723
|
-
* This is a type-conversion wrapper around `getIdentityProofBytes()`
|
|
59724
|
-
* @return {!Uint8Array}
|
|
59725
|
-
*/
|
|
59726
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.getIdentityProofBytes_asU8 = function() {
|
|
59727
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
59728
|
-
this.getIdentityProofBytes()));
|
|
59729
|
-
};
|
|
59730
|
-
|
|
59731
|
-
|
|
59732
|
-
/**
|
|
59733
|
-
* @param {!(string|Uint8Array)} value
|
|
59734
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} returns this
|
|
59735
|
-
*/
|
|
59736
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.setIdentityProofBytes = function(value) {
|
|
59737
|
-
return jspb.Message.setField(this, 2, value);
|
|
59738
|
-
};
|
|
59739
|
-
|
|
59740
|
-
|
|
59741
|
-
/**
|
|
59742
|
-
* Clears the field making it undefined.
|
|
59743
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} returns this
|
|
59744
|
-
*/
|
|
59745
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.clearIdentityProofBytes = function() {
|
|
59746
|
-
return jspb.Message.setField(this, 2, undefined);
|
|
59747
|
-
};
|
|
59748
|
-
|
|
59749
|
-
|
|
59750
|
-
/**
|
|
59751
|
-
* Returns whether this field is set.
|
|
59752
|
-
* @return {boolean}
|
|
59753
|
-
*/
|
|
59754
|
-
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.prototype.hasIdentityProofBytes = function() {
|
|
59755
|
-
return jspb.Message.getField(this, 2) != null;
|
|
59756
|
-
};
|
|
59757
|
-
|
|
59758
|
-
|
|
59759
59516
|
/**
|
|
59760
59517
|
* optional IdentityResponse identity = 1;
|
|
59761
59518
|
* @return {?proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse}
|
|
@@ -59794,21 +59551,21 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetI
|
|
|
59794
59551
|
|
|
59795
59552
|
|
|
59796
59553
|
/**
|
|
59797
|
-
* optional
|
|
59798
|
-
* @return {?proto.org.dash.platform.dapi.v0.
|
|
59554
|
+
* optional Proof proof = 4;
|
|
59555
|
+
* @return {?proto.org.dash.platform.dapi.v0.Proof}
|
|
59799
59556
|
*/
|
|
59800
59557
|
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.prototype.getProof = function() {
|
|
59801
|
-
return /** @type{?proto.org.dash.platform.dapi.v0.
|
|
59802
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.
|
|
59558
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ (
|
|
59559
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 4));
|
|
59803
59560
|
};
|
|
59804
59561
|
|
|
59805
59562
|
|
|
59806
59563
|
/**
|
|
59807
|
-
* @param {?proto.org.dash.platform.dapi.v0.
|
|
59564
|
+
* @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value
|
|
59808
59565
|
* @return {!proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0} returns this
|
|
59809
59566
|
*/
|
|
59810
59567
|
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.prototype.setProof = function(value) {
|
|
59811
|
-
return jspb.Message.setOneofWrapperField(this,
|
|
59568
|
+
return jspb.Message.setOneofWrapperField(this, 4, proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.oneofGroups_[0], value);
|
|
59812
59569
|
};
|
|
59813
59570
|
|
|
59814
59571
|
|
|
@@ -59826,7 +59583,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetI
|
|
|
59826
59583
|
* @return {boolean}
|
|
59827
59584
|
*/
|
|
59828
59585
|
proto.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.prototype.hasProof = function() {
|
|
59829
|
-
return jspb.Message.getField(this,
|
|
59586
|
+
return jspb.Message.getField(this, 4) != null;
|
|
59830
59587
|
};
|
|
59831
59588
|
|
|
59832
59589
|
|
|
@@ -5802,6 +5802,8 @@ export namespace GetDocumentsRequest {
|
|
|
5802
5802
|
STARTS_WITH: 10;
|
|
5803
5803
|
IN_TIME_RANGE: 11;
|
|
5804
5804
|
IN_INTEGER_RANGE: 12;
|
|
5805
|
+
CONTAINS: 13;
|
|
5806
|
+
CONTAINS_ANY: 14;
|
|
5805
5807
|
}
|
|
5806
5808
|
|
|
5807
5809
|
export const WhereOperator: WhereOperatorMap;
|
|
@@ -6972,8 +6974,8 @@ export namespace GetIdentityByNonUniquePublicKeyHashResponse {
|
|
|
6972
6974
|
|
|
6973
6975
|
hasProof(): boolean;
|
|
6974
6976
|
clearProof(): void;
|
|
6975
|
-
getProof():
|
|
6976
|
-
setProof(value?:
|
|
6977
|
+
getProof(): Proof | undefined;
|
|
6978
|
+
setProof(value?: Proof): void;
|
|
6977
6979
|
|
|
6978
6980
|
hasMetadata(): boolean;
|
|
6979
6981
|
clearMetadata(): void;
|
|
@@ -6994,7 +6996,7 @@ export namespace GetIdentityByNonUniquePublicKeyHashResponse {
|
|
|
6994
6996
|
export namespace GetIdentityByNonUniquePublicKeyHashResponseV0 {
|
|
6995
6997
|
export type AsObject = {
|
|
6996
6998
|
identity?: GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse.AsObject,
|
|
6997
|
-
proof?:
|
|
6999
|
+
proof?: Proof.AsObject,
|
|
6998
7000
|
metadata?: ResponseMetadata.AsObject,
|
|
6999
7001
|
}
|
|
7000
7002
|
|
|
@@ -7022,40 +7024,10 @@ export namespace GetIdentityByNonUniquePublicKeyHashResponse {
|
|
|
7022
7024
|
}
|
|
7023
7025
|
}
|
|
7024
7026
|
|
|
7025
|
-
export class IdentityProvedResponse extends jspb.Message {
|
|
7026
|
-
hasGrovedbIdentityPublicKeyHashProof(): boolean;
|
|
7027
|
-
clearGrovedbIdentityPublicKeyHashProof(): void;
|
|
7028
|
-
getGrovedbIdentityPublicKeyHashProof(): Proof | undefined;
|
|
7029
|
-
setGrovedbIdentityPublicKeyHashProof(value?: Proof): void;
|
|
7030
|
-
|
|
7031
|
-
hasIdentityProofBytes(): boolean;
|
|
7032
|
-
clearIdentityProofBytes(): void;
|
|
7033
|
-
getIdentityProofBytes(): Uint8Array | string;
|
|
7034
|
-
getIdentityProofBytes_asU8(): Uint8Array;
|
|
7035
|
-
getIdentityProofBytes_asB64(): string;
|
|
7036
|
-
setIdentityProofBytes(value: Uint8Array | string): void;
|
|
7037
|
-
|
|
7038
|
-
serializeBinary(): Uint8Array;
|
|
7039
|
-
toObject(includeInstance?: boolean): IdentityProvedResponse.AsObject;
|
|
7040
|
-
static toObject(includeInstance: boolean, msg: IdentityProvedResponse): IdentityProvedResponse.AsObject;
|
|
7041
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
7042
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
7043
|
-
static serializeBinaryToWriter(message: IdentityProvedResponse, writer: jspb.BinaryWriter): void;
|
|
7044
|
-
static deserializeBinary(bytes: Uint8Array): IdentityProvedResponse;
|
|
7045
|
-
static deserializeBinaryFromReader(message: IdentityProvedResponse, reader: jspb.BinaryReader): IdentityProvedResponse;
|
|
7046
|
-
}
|
|
7047
|
-
|
|
7048
|
-
export namespace IdentityProvedResponse {
|
|
7049
|
-
export type AsObject = {
|
|
7050
|
-
grovedbIdentityPublicKeyHashProof?: Proof.AsObject,
|
|
7051
|
-
identityProofBytes: Uint8Array | string,
|
|
7052
|
-
}
|
|
7053
|
-
}
|
|
7054
|
-
|
|
7055
7027
|
export enum ResultCase {
|
|
7056
7028
|
RESULT_NOT_SET = 0,
|
|
7057
7029
|
IDENTITY = 1,
|
|
7058
|
-
PROOF =
|
|
7030
|
+
PROOF = 4,
|
|
7059
7031
|
}
|
|
7060
7032
|
}
|
|
7061
7033
|
|