diff --git a/web/protobufs/identity-auth-structs.cjs b/web/protobufs/identity-auth-structs.cjs --- a/web/protobufs/identity-auth-structs.cjs +++ b/web/protobufs/identity-auth-structs.cjs @@ -1595,7 +1595,8 @@ */ proto.identity.auth.KeyserverKeysResponse.toObject = function(includeInstance, msg) { var f, obj = { - keyserverInfo: (f = msg.getKeyserverInfo()) && proto.identity.auth.OutboundKeyInfo.toObject(includeInstance, f) + keyserverInfo: (f = msg.getKeyserverInfo()) && proto.identity.auth.OutboundKeyInfo.toObject(includeInstance, f), + identity: (f = msg.getIdentity()) && proto.identity.auth.Identity.toObject(includeInstance, f) }; if (includeInstance) { @@ -1637,6 +1638,11 @@ reader.readMessage(value,proto.identity.auth.OutboundKeyInfo.deserializeBinaryFromReader); msg.setKeyserverInfo(value); break; + case 2: + var value = new proto.identity.auth.Identity; + reader.readMessage(value,proto.identity.auth.Identity.deserializeBinaryFromReader); + msg.setIdentity(value); + break; default: reader.skipField(); break; @@ -1674,6 +1680,14 @@ proto.identity.auth.OutboundKeyInfo.serializeBinaryToWriter ); } + f = message.getIdentity(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.identity.auth.Identity.serializeBinaryToWriter + ); + } }; @@ -1714,6 +1728,43 @@ }; +/** + * optional Identity identity = 2; + * @return {?proto.identity.auth.Identity} + */ +proto.identity.auth.KeyserverKeysResponse.prototype.getIdentity = function() { + return /** @type{?proto.identity.auth.Identity} */ ( + jspb.Message.getWrapperField(this, proto.identity.auth.Identity, 2)); +}; + + +/** + * @param {?proto.identity.auth.Identity|undefined} value + * @return {!proto.identity.auth.KeyserverKeysResponse} returns this +*/ +proto.identity.auth.KeyserverKeysResponse.prototype.setIdentity = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.identity.auth.KeyserverKeysResponse} returns this + */ +proto.identity.auth.KeyserverKeysResponse.prototype.clearIdentity = function() { + return this.setIdentity(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.identity.auth.KeyserverKeysResponse.prototype.hasIdentity = function() { + return jspb.Message.getField(this, 2) != null; +}; + + diff --git a/web/protobufs/identity-auth-structs.cjs.flow b/web/protobufs/identity-auth-structs.cjs.flow --- a/web/protobufs/identity-auth-structs.cjs.flow +++ b/web/protobufs/identity-auth-structs.cjs.flow @@ -151,6 +151,11 @@ hasKeyserverInfo(): boolean; clearKeyserverInfo(): KeyserverKeysResponse; + getIdentity(): Identity | void; + setIdentity(value?: Identity): KeyserverKeysResponse; + hasIdentity(): boolean; + clearIdentity(): KeyserverKeysResponse; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): KeyserverKeysResponseObject; static toObject(includeInstance: boolean, msg: KeyserverKeysResponse): KeyserverKeysResponseObject; @@ -161,6 +166,7 @@ export type KeyserverKeysResponseObject = { keyserverInfo?: OutboundKeyInfoObject, + identity: ?IdentityObject, }; declare export class OutboundKeysForUserResponse extends Message {