@headspace/protos-events 1.11.0 → 1.13.0

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.
Files changed (3) hide show
  1. package/lib/index.d.ts +184 -82
  2. package/lib/index.js +471 -225
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -231,36 +231,6 @@ $root.subscription = (function() {
231
231
  */
232
232
  var subscription = {};
233
233
 
234
- /**
235
- * PlanAffiliation enum.
236
- * @name subscription.PlanAffiliation
237
- * @enum {string}
238
- * @property {number} STUDENT=0 STUDENT value
239
- * @property {number} VETERAN=1 VETERAN value
240
- * @property {number} FAMILY=2 FAMILY value
241
- */
242
- subscription.PlanAffiliation = (function() {
243
- var valuesById = {}, values = Object.create(valuesById);
244
- values[valuesById[0] = "STUDENT"] = 0;
245
- values[valuesById[1] = "VETERAN"] = 1;
246
- values[valuesById[2] = "FAMILY"] = 2;
247
- return values;
248
- })();
249
-
250
- /**
251
- * SubscriptionMembership enum.
252
- * @name subscription.SubscriptionMembership
253
- * @enum {string}
254
- * @property {number} PRIMARY=0 PRIMARY value
255
- * @property {number} MEMBER=1 MEMBER value
256
- */
257
- subscription.SubscriptionMembership = (function() {
258
- var valuesById = {}, values = Object.create(valuesById);
259
- values[valuesById[0] = "PRIMARY"] = 0;
260
- values[valuesById[1] = "MEMBER"] = 1;
261
- return values;
262
- })();
263
-
264
234
  subscription.SubscriptionGrpcManager = (function() {
265
235
 
266
236
  /**
@@ -1769,6 +1739,36 @@ $root.subscription = (function() {
1769
1739
  return Plan;
1770
1740
  })();
1771
1741
 
1742
+ /**
1743
+ * PlanAffiliation enum.
1744
+ * @name subscription.PlanAffiliation
1745
+ * @enum {string}
1746
+ * @property {number} STUDENT=0 STUDENT value
1747
+ * @property {number} VETERAN=1 VETERAN value
1748
+ * @property {number} FAMILY=2 FAMILY value
1749
+ */
1750
+ subscription.PlanAffiliation = (function() {
1751
+ var valuesById = {}, values = Object.create(valuesById);
1752
+ values[valuesById[0] = "STUDENT"] = 0;
1753
+ values[valuesById[1] = "VETERAN"] = 1;
1754
+ values[valuesById[2] = "FAMILY"] = 2;
1755
+ return values;
1756
+ })();
1757
+
1758
+ /**
1759
+ * SubscriptionMembership enum.
1760
+ * @name subscription.SubscriptionMembership
1761
+ * @enum {string}
1762
+ * @property {number} PRIMARY=0 PRIMARY value
1763
+ * @property {number} MEMBER=1 MEMBER value
1764
+ */
1765
+ subscription.SubscriptionMembership = (function() {
1766
+ var valuesById = {}, values = Object.create(valuesById);
1767
+ values[valuesById[0] = "PRIMARY"] = 0;
1768
+ values[valuesById[1] = "MEMBER"] = 1;
1769
+ return values;
1770
+ })();
1771
+
1772
1772
  return subscription;
1773
1773
  })();
1774
1774
 
@@ -6061,26 +6061,24 @@ $root.SubscriptionPaymentDeclined = (function() {
6061
6061
  return SubscriptionPaymentDeclined;
6062
6062
  })();
6063
6063
 
6064
- $root.UserPasswordUpdated = (function() {
6064
+ $root.UserDoubleOptInEmailRequested = (function() {
6065
6065
 
6066
6066
  /**
6067
- * Properties of a UserPasswordUpdated.
6068
- * @exports IUserPasswordUpdated
6069
- * @interface IUserPasswordUpdated
6070
- * @property {string|null} [userId] UserPasswordUpdated userId
6071
- * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
6072
- * @property {string|null} [email] UserPasswordUpdated email
6067
+ * Properties of a UserDoubleOptInEmailRequested.
6068
+ * @exports IUserDoubleOptInEmailRequested
6069
+ * @interface IUserDoubleOptInEmailRequested
6070
+ * @property {string|null} [userId] UserDoubleOptInEmailRequested userId
6073
6071
  */
6074
6072
 
6075
6073
  /**
6076
- * Constructs a new UserPasswordUpdated.
6077
- * @exports UserPasswordUpdated
6078
- * @classdesc Represents a UserPasswordUpdated.
6079
- * @implements IUserPasswordUpdated
6074
+ * Constructs a new UserDoubleOptInEmailRequested.
6075
+ * @exports UserDoubleOptInEmailRequested
6076
+ * @classdesc Represents a UserDoubleOptInEmailRequested.
6077
+ * @implements IUserDoubleOptInEmailRequested
6080
6078
  * @constructor
6081
- * @param {IUserPasswordUpdated=} [properties] Properties to set
6079
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6082
6080
  */
6083
- function UserPasswordUpdated(properties) {
6081
+ function UserDoubleOptInEmailRequested(properties) {
6084
6082
  if (properties)
6085
6083
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6086
6084
  if (properties[keys[i]] != null)
@@ -6088,102 +6086,76 @@ $root.UserPasswordUpdated = (function() {
6088
6086
  }
6089
6087
 
6090
6088
  /**
6091
- * UserPasswordUpdated userId.
6089
+ * UserDoubleOptInEmailRequested userId.
6092
6090
  * @member {string} userId
6093
- * @memberof UserPasswordUpdated
6094
- * @instance
6095
- */
6096
- UserPasswordUpdated.prototype.userId = "";
6097
-
6098
- /**
6099
- * UserPasswordUpdated updatedOn.
6100
- * @member {number|Long} updatedOn
6101
- * @memberof UserPasswordUpdated
6102
- * @instance
6103
- */
6104
- UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6105
-
6106
- /**
6107
- * UserPasswordUpdated email.
6108
- * @member {string} email
6109
- * @memberof UserPasswordUpdated
6091
+ * @memberof UserDoubleOptInEmailRequested
6110
6092
  * @instance
6111
6093
  */
6112
- UserPasswordUpdated.prototype.email = "";
6094
+ UserDoubleOptInEmailRequested.prototype.userId = "";
6113
6095
 
6114
6096
  /**
6115
- * Creates a new UserPasswordUpdated instance using the specified properties.
6097
+ * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
6116
6098
  * @function create
6117
- * @memberof UserPasswordUpdated
6099
+ * @memberof UserDoubleOptInEmailRequested
6118
6100
  * @static
6119
- * @param {IUserPasswordUpdated=} [properties] Properties to set
6120
- * @returns {UserPasswordUpdated} UserPasswordUpdated instance
6101
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6102
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
6121
6103
  */
6122
- UserPasswordUpdated.create = function create(properties) {
6123
- return new UserPasswordUpdated(properties);
6104
+ UserDoubleOptInEmailRequested.create = function create(properties) {
6105
+ return new UserDoubleOptInEmailRequested(properties);
6124
6106
  };
6125
6107
 
6126
6108
  /**
6127
- * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6109
+ * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6128
6110
  * @function encode
6129
- * @memberof UserPasswordUpdated
6111
+ * @memberof UserDoubleOptInEmailRequested
6130
6112
  * @static
6131
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6113
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6132
6114
  * @param {$protobuf.Writer} [writer] Writer to encode to
6133
6115
  * @returns {$protobuf.Writer} Writer
6134
6116
  */
6135
- UserPasswordUpdated.encode = function encode(message, writer) {
6117
+ UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
6136
6118
  if (!writer)
6137
6119
  writer = $Writer.create();
6138
6120
  if (message.userId != null && message.hasOwnProperty("userId"))
6139
6121
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
6140
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6141
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
6142
- if (message.email != null && message.hasOwnProperty("email"))
6143
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
6144
6122
  return writer;
6145
6123
  };
6146
6124
 
6147
6125
  /**
6148
- * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6126
+ * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6149
6127
  * @function encodeDelimited
6150
- * @memberof UserPasswordUpdated
6128
+ * @memberof UserDoubleOptInEmailRequested
6151
6129
  * @static
6152
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6130
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6153
6131
  * @param {$protobuf.Writer} [writer] Writer to encode to
6154
6132
  * @returns {$protobuf.Writer} Writer
6155
6133
  */
6156
- UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
6134
+ UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
6157
6135
  return this.encode(message, writer).ldelim();
6158
6136
  };
6159
6137
 
6160
6138
  /**
6161
- * Decodes a UserPasswordUpdated message from the specified reader or buffer.
6139
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
6162
6140
  * @function decode
6163
- * @memberof UserPasswordUpdated
6141
+ * @memberof UserDoubleOptInEmailRequested
6164
6142
  * @static
6165
6143
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6166
6144
  * @param {number} [length] Message length if known beforehand
6167
- * @returns {UserPasswordUpdated} UserPasswordUpdated
6145
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6168
6146
  * @throws {Error} If the payload is not a reader or valid buffer
6169
6147
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6170
6148
  */
6171
- UserPasswordUpdated.decode = function decode(reader, length) {
6149
+ UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
6172
6150
  if (!(reader instanceof $Reader))
6173
6151
  reader = $Reader.create(reader);
6174
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
6152
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
6175
6153
  while (reader.pos < end) {
6176
6154
  var tag = reader.uint32();
6177
6155
  switch (tag >>> 3) {
6178
6156
  case 1:
6179
6157
  message.userId = reader.string();
6180
6158
  break;
6181
- case 2:
6182
- message.updatedOn = reader.uint64();
6183
- break;
6184
- case 3:
6185
- message.email = reader.string();
6186
- break;
6187
6159
  default:
6188
6160
  reader.skipType(tag & 7);
6189
6161
  break;
@@ -6193,140 +6165,109 @@ $root.UserPasswordUpdated = (function() {
6193
6165
  };
6194
6166
 
6195
6167
  /**
6196
- * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
6168
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
6197
6169
  * @function decodeDelimited
6198
- * @memberof UserPasswordUpdated
6170
+ * @memberof UserDoubleOptInEmailRequested
6199
6171
  * @static
6200
6172
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6201
- * @returns {UserPasswordUpdated} UserPasswordUpdated
6173
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6202
6174
  * @throws {Error} If the payload is not a reader or valid buffer
6203
6175
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6204
6176
  */
6205
- UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
6177
+ UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
6206
6178
  if (!(reader instanceof $Reader))
6207
6179
  reader = new $Reader(reader);
6208
6180
  return this.decode(reader, reader.uint32());
6209
6181
  };
6210
6182
 
6211
6183
  /**
6212
- * Verifies a UserPasswordUpdated message.
6184
+ * Verifies a UserDoubleOptInEmailRequested message.
6213
6185
  * @function verify
6214
- * @memberof UserPasswordUpdated
6186
+ * @memberof UserDoubleOptInEmailRequested
6215
6187
  * @static
6216
6188
  * @param {Object.<string,*>} message Plain object to verify
6217
6189
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
6218
6190
  */
6219
- UserPasswordUpdated.verify = function verify(message) {
6191
+ UserDoubleOptInEmailRequested.verify = function verify(message) {
6220
6192
  if (typeof message !== "object" || message === null)
6221
6193
  return "object expected";
6222
6194
  if (message.userId != null && message.hasOwnProperty("userId"))
6223
6195
  if (!$util.isString(message.userId))
6224
6196
  return "userId: string expected";
6225
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6226
- if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
6227
- return "updatedOn: integer|Long expected";
6228
- if (message.email != null && message.hasOwnProperty("email"))
6229
- if (!$util.isString(message.email))
6230
- return "email: string expected";
6231
6197
  return null;
6232
6198
  };
6233
6199
 
6234
6200
  /**
6235
- * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
6201
+ * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
6236
6202
  * @function fromObject
6237
- * @memberof UserPasswordUpdated
6203
+ * @memberof UserDoubleOptInEmailRequested
6238
6204
  * @static
6239
6205
  * @param {Object.<string,*>} object Plain object
6240
- * @returns {UserPasswordUpdated} UserPasswordUpdated
6206
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6241
6207
  */
6242
- UserPasswordUpdated.fromObject = function fromObject(object) {
6243
- if (object instanceof $root.UserPasswordUpdated)
6208
+ UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
6209
+ if (object instanceof $root.UserDoubleOptInEmailRequested)
6244
6210
  return object;
6245
- var message = new $root.UserPasswordUpdated();
6211
+ var message = new $root.UserDoubleOptInEmailRequested();
6246
6212
  if (object.userId != null)
6247
6213
  message.userId = String(object.userId);
6248
- if (object.updatedOn != null)
6249
- if ($util.Long)
6250
- (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
6251
- else if (typeof object.updatedOn === "string")
6252
- message.updatedOn = parseInt(object.updatedOn, 10);
6253
- else if (typeof object.updatedOn === "number")
6254
- message.updatedOn = object.updatedOn;
6255
- else if (typeof object.updatedOn === "object")
6256
- message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
6257
- if (object.email != null)
6258
- message.email = String(object.email);
6259
6214
  return message;
6260
6215
  };
6261
6216
 
6262
6217
  /**
6263
- * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
6218
+ * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
6264
6219
  * @function toObject
6265
- * @memberof UserPasswordUpdated
6220
+ * @memberof UserDoubleOptInEmailRequested
6266
6221
  * @static
6267
- * @param {UserPasswordUpdated} message UserPasswordUpdated
6222
+ * @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
6268
6223
  * @param {$protobuf.IConversionOptions} [options] Conversion options
6269
6224
  * @returns {Object.<string,*>} Plain object
6270
6225
  */
6271
- UserPasswordUpdated.toObject = function toObject(message, options) {
6226
+ UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
6272
6227
  if (!options)
6273
6228
  options = {};
6274
6229
  var object = {};
6275
- if (options.defaults) {
6230
+ if (options.defaults)
6276
6231
  object.userId = "";
6277
- if ($util.Long) {
6278
- var long = new $util.Long(0, 0, true);
6279
- object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6280
- } else
6281
- object.updatedOn = options.longs === String ? "0" : 0;
6282
- object.email = "";
6283
- }
6284
6232
  if (message.userId != null && message.hasOwnProperty("userId"))
6285
6233
  object.userId = message.userId;
6286
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6287
- if (typeof message.updatedOn === "number")
6288
- object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
6289
- else
6290
- object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
6291
- if (message.email != null && message.hasOwnProperty("email"))
6292
- object.email = message.email;
6293
6234
  return object;
6294
6235
  };
6295
6236
 
6296
6237
  /**
6297
- * Converts this UserPasswordUpdated to JSON.
6238
+ * Converts this UserDoubleOptInEmailRequested to JSON.
6298
6239
  * @function toJSON
6299
- * @memberof UserPasswordUpdated
6240
+ * @memberof UserDoubleOptInEmailRequested
6300
6241
  * @instance
6301
6242
  * @returns {Object.<string,*>} JSON object
6302
6243
  */
6303
- UserPasswordUpdated.prototype.toJSON = function toJSON() {
6244
+ UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
6304
6245
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6305
6246
  };
6306
6247
 
6307
- return UserPasswordUpdated;
6248
+ return UserDoubleOptInEmailRequested;
6308
6249
  })();
6309
6250
 
6310
- $root.UserEmailVerificationRequested = (function() {
6251
+ $root.UserEmailUpdated = (function() {
6311
6252
 
6312
6253
  /**
6313
- * Properties of a UserEmailVerificationRequested.
6314
- * @exports IUserEmailVerificationRequested
6315
- * @interface IUserEmailVerificationRequested
6316
- * @property {string|null} [userId] UserEmailVerificationRequested userId
6317
- * @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
6318
- * @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
6254
+ * Properties of a UserEmailUpdated.
6255
+ * @exports IUserEmailUpdated
6256
+ * @interface IUserEmailUpdated
6257
+ * @property {string|null} [userId] UserEmailUpdated userId
6258
+ * @property {string|null} [email] UserEmailUpdated email
6259
+ * @property {number|Long|null} [timestamp] UserEmailUpdated timestamp
6319
6260
  */
6320
6261
 
6321
6262
  /**
6322
- * Constructs a new UserEmailVerificationRequested.
6323
- * @exports UserEmailVerificationRequested
6324
- * @classdesc Represents a UserEmailVerificationRequested.
6325
- * @implements IUserEmailVerificationRequested
6263
+ * Constructs a new UserEmailUpdated.
6264
+ * @exports UserEmailUpdated
6265
+ * @classdesc Represents a UserEmailUpdated.
6266
+ * @implements IUserEmailUpdated
6326
6267
  * @constructor
6327
- * @param {IUserEmailVerificationRequested=} [properties] Properties to set
6268
+ * @param {IUserEmailUpdated=} [properties] Properties to set
6328
6269
  */
6329
- function UserEmailVerificationRequested(properties) {
6270
+ function UserEmailUpdated(properties) {
6330
6271
  if (properties)
6331
6272
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6332
6273
  if (properties[keys[i]] != null)
@@ -6334,35 +6275,281 @@ $root.UserEmailVerificationRequested = (function() {
6334
6275
  }
6335
6276
 
6336
6277
  /**
6337
- * UserEmailVerificationRequested userId.
6278
+ * UserEmailUpdated userId.
6338
6279
  * @member {string} userId
6339
- * @memberof UserEmailVerificationRequested
6280
+ * @memberof UserEmailUpdated
6340
6281
  * @instance
6341
6282
  */
6342
- UserEmailVerificationRequested.prototype.userId = "";
6283
+ UserEmailUpdated.prototype.userId = "";
6343
6284
 
6344
6285
  /**
6345
- * UserEmailVerificationRequested verificationCode.
6346
- * @member {string} verificationCode
6347
- * @memberof UserEmailVerificationRequested
6286
+ * UserEmailUpdated email.
6287
+ * @member {string} email
6288
+ * @memberof UserEmailUpdated
6348
6289
  * @instance
6349
6290
  */
6350
- UserEmailVerificationRequested.prototype.verificationCode = "";
6291
+ UserEmailUpdated.prototype.email = "";
6351
6292
 
6352
6293
  /**
6353
- * UserEmailVerificationRequested timestamp.
6294
+ * UserEmailUpdated timestamp.
6354
6295
  * @member {number|Long} timestamp
6355
- * @memberof UserEmailVerificationRequested
6296
+ * @memberof UserEmailUpdated
6356
6297
  * @instance
6357
6298
  */
6358
- UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6299
+ UserEmailUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6359
6300
 
6360
6301
  /**
6361
- * Creates a new UserEmailVerificationRequested instance using the specified properties.
6302
+ * Creates a new UserEmailUpdated instance using the specified properties.
6362
6303
  * @function create
6363
- * @memberof UserEmailVerificationRequested
6304
+ * @memberof UserEmailUpdated
6364
6305
  * @static
6365
- * @param {IUserEmailVerificationRequested=} [properties] Properties to set
6306
+ * @param {IUserEmailUpdated=} [properties] Properties to set
6307
+ * @returns {UserEmailUpdated} UserEmailUpdated instance
6308
+ */
6309
+ UserEmailUpdated.create = function create(properties) {
6310
+ return new UserEmailUpdated(properties);
6311
+ };
6312
+
6313
+ /**
6314
+ * Encodes the specified UserEmailUpdated message. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
6315
+ * @function encode
6316
+ * @memberof UserEmailUpdated
6317
+ * @static
6318
+ * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
6319
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6320
+ * @returns {$protobuf.Writer} Writer
6321
+ */
6322
+ UserEmailUpdated.encode = function encode(message, writer) {
6323
+ if (!writer)
6324
+ writer = $Writer.create();
6325
+ if (message.userId != null && message.hasOwnProperty("userId"))
6326
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
6327
+ if (message.email != null && message.hasOwnProperty("email"))
6328
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
6329
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6330
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
6331
+ return writer;
6332
+ };
6333
+
6334
+ /**
6335
+ * Encodes the specified UserEmailUpdated message, length delimited. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
6336
+ * @function encodeDelimited
6337
+ * @memberof UserEmailUpdated
6338
+ * @static
6339
+ * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
6340
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6341
+ * @returns {$protobuf.Writer} Writer
6342
+ */
6343
+ UserEmailUpdated.encodeDelimited = function encodeDelimited(message, writer) {
6344
+ return this.encode(message, writer).ldelim();
6345
+ };
6346
+
6347
+ /**
6348
+ * Decodes a UserEmailUpdated message from the specified reader or buffer.
6349
+ * @function decode
6350
+ * @memberof UserEmailUpdated
6351
+ * @static
6352
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6353
+ * @param {number} [length] Message length if known beforehand
6354
+ * @returns {UserEmailUpdated} UserEmailUpdated
6355
+ * @throws {Error} If the payload is not a reader or valid buffer
6356
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6357
+ */
6358
+ UserEmailUpdated.decode = function decode(reader, length) {
6359
+ if (!(reader instanceof $Reader))
6360
+ reader = $Reader.create(reader);
6361
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailUpdated();
6362
+ while (reader.pos < end) {
6363
+ var tag = reader.uint32();
6364
+ switch (tag >>> 3) {
6365
+ case 1:
6366
+ message.userId = reader.string();
6367
+ break;
6368
+ case 2:
6369
+ message.email = reader.string();
6370
+ break;
6371
+ case 3:
6372
+ message.timestamp = reader.uint64();
6373
+ break;
6374
+ default:
6375
+ reader.skipType(tag & 7);
6376
+ break;
6377
+ }
6378
+ }
6379
+ return message;
6380
+ };
6381
+
6382
+ /**
6383
+ * Decodes a UserEmailUpdated message from the specified reader or buffer, length delimited.
6384
+ * @function decodeDelimited
6385
+ * @memberof UserEmailUpdated
6386
+ * @static
6387
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6388
+ * @returns {UserEmailUpdated} UserEmailUpdated
6389
+ * @throws {Error} If the payload is not a reader or valid buffer
6390
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6391
+ */
6392
+ UserEmailUpdated.decodeDelimited = function decodeDelimited(reader) {
6393
+ if (!(reader instanceof $Reader))
6394
+ reader = new $Reader(reader);
6395
+ return this.decode(reader, reader.uint32());
6396
+ };
6397
+
6398
+ /**
6399
+ * Verifies a UserEmailUpdated message.
6400
+ * @function verify
6401
+ * @memberof UserEmailUpdated
6402
+ * @static
6403
+ * @param {Object.<string,*>} message Plain object to verify
6404
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
6405
+ */
6406
+ UserEmailUpdated.verify = function verify(message) {
6407
+ if (typeof message !== "object" || message === null)
6408
+ return "object expected";
6409
+ if (message.userId != null && message.hasOwnProperty("userId"))
6410
+ if (!$util.isString(message.userId))
6411
+ return "userId: string expected";
6412
+ if (message.email != null && message.hasOwnProperty("email"))
6413
+ if (!$util.isString(message.email))
6414
+ return "email: string expected";
6415
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6416
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
6417
+ return "timestamp: integer|Long expected";
6418
+ return null;
6419
+ };
6420
+
6421
+ /**
6422
+ * Creates a UserEmailUpdated message from a plain object. Also converts values to their respective internal types.
6423
+ * @function fromObject
6424
+ * @memberof UserEmailUpdated
6425
+ * @static
6426
+ * @param {Object.<string,*>} object Plain object
6427
+ * @returns {UserEmailUpdated} UserEmailUpdated
6428
+ */
6429
+ UserEmailUpdated.fromObject = function fromObject(object) {
6430
+ if (object instanceof $root.UserEmailUpdated)
6431
+ return object;
6432
+ var message = new $root.UserEmailUpdated();
6433
+ if (object.userId != null)
6434
+ message.userId = String(object.userId);
6435
+ if (object.email != null)
6436
+ message.email = String(object.email);
6437
+ if (object.timestamp != null)
6438
+ if ($util.Long)
6439
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
6440
+ else if (typeof object.timestamp === "string")
6441
+ message.timestamp = parseInt(object.timestamp, 10);
6442
+ else if (typeof object.timestamp === "number")
6443
+ message.timestamp = object.timestamp;
6444
+ else if (typeof object.timestamp === "object")
6445
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
6446
+ return message;
6447
+ };
6448
+
6449
+ /**
6450
+ * Creates a plain object from a UserEmailUpdated message. Also converts values to other types if specified.
6451
+ * @function toObject
6452
+ * @memberof UserEmailUpdated
6453
+ * @static
6454
+ * @param {UserEmailUpdated} message UserEmailUpdated
6455
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
6456
+ * @returns {Object.<string,*>} Plain object
6457
+ */
6458
+ UserEmailUpdated.toObject = function toObject(message, options) {
6459
+ if (!options)
6460
+ options = {};
6461
+ var object = {};
6462
+ if (options.defaults) {
6463
+ object.userId = "";
6464
+ object.email = "";
6465
+ if ($util.Long) {
6466
+ var long = new $util.Long(0, 0, true);
6467
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6468
+ } else
6469
+ object.timestamp = options.longs === String ? "0" : 0;
6470
+ }
6471
+ if (message.userId != null && message.hasOwnProperty("userId"))
6472
+ object.userId = message.userId;
6473
+ if (message.email != null && message.hasOwnProperty("email"))
6474
+ object.email = message.email;
6475
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6476
+ if (typeof message.timestamp === "number")
6477
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
6478
+ else
6479
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
6480
+ return object;
6481
+ };
6482
+
6483
+ /**
6484
+ * Converts this UserEmailUpdated to JSON.
6485
+ * @function toJSON
6486
+ * @memberof UserEmailUpdated
6487
+ * @instance
6488
+ * @returns {Object.<string,*>} JSON object
6489
+ */
6490
+ UserEmailUpdated.prototype.toJSON = function toJSON() {
6491
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6492
+ };
6493
+
6494
+ return UserEmailUpdated;
6495
+ })();
6496
+
6497
+ $root.UserEmailVerificationRequested = (function() {
6498
+
6499
+ /**
6500
+ * Properties of a UserEmailVerificationRequested.
6501
+ * @exports IUserEmailVerificationRequested
6502
+ * @interface IUserEmailVerificationRequested
6503
+ * @property {string|null} [userId] UserEmailVerificationRequested userId
6504
+ * @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
6505
+ * @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
6506
+ */
6507
+
6508
+ /**
6509
+ * Constructs a new UserEmailVerificationRequested.
6510
+ * @exports UserEmailVerificationRequested
6511
+ * @classdesc Represents a UserEmailVerificationRequested.
6512
+ * @implements IUserEmailVerificationRequested
6513
+ * @constructor
6514
+ * @param {IUserEmailVerificationRequested=} [properties] Properties to set
6515
+ */
6516
+ function UserEmailVerificationRequested(properties) {
6517
+ if (properties)
6518
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6519
+ if (properties[keys[i]] != null)
6520
+ this[keys[i]] = properties[keys[i]];
6521
+ }
6522
+
6523
+ /**
6524
+ * UserEmailVerificationRequested userId.
6525
+ * @member {string} userId
6526
+ * @memberof UserEmailVerificationRequested
6527
+ * @instance
6528
+ */
6529
+ UserEmailVerificationRequested.prototype.userId = "";
6530
+
6531
+ /**
6532
+ * UserEmailVerificationRequested verificationCode.
6533
+ * @member {string} verificationCode
6534
+ * @memberof UserEmailVerificationRequested
6535
+ * @instance
6536
+ */
6537
+ UserEmailVerificationRequested.prototype.verificationCode = "";
6538
+
6539
+ /**
6540
+ * UserEmailVerificationRequested timestamp.
6541
+ * @member {number|Long} timestamp
6542
+ * @memberof UserEmailVerificationRequested
6543
+ * @instance
6544
+ */
6545
+ UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6546
+
6547
+ /**
6548
+ * Creates a new UserEmailVerificationRequested instance using the specified properties.
6549
+ * @function create
6550
+ * @memberof UserEmailVerificationRequested
6551
+ * @static
6552
+ * @param {IUserEmailVerificationRequested=} [properties] Properties to set
6366
6553
  * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested instance
6367
6554
  */
6368
6555
  UserEmailVerificationRequested.create = function create(properties) {
@@ -6553,24 +6740,26 @@ $root.UserEmailVerificationRequested = (function() {
6553
6740
  return UserEmailVerificationRequested;
6554
6741
  })();
6555
6742
 
6556
- $root.UserDoubleOptInEmailRequested = (function() {
6743
+ $root.UserPasswordUpdated = (function() {
6557
6744
 
6558
6745
  /**
6559
- * Properties of a UserDoubleOptInEmailRequested.
6560
- * @exports IUserDoubleOptInEmailRequested
6561
- * @interface IUserDoubleOptInEmailRequested
6562
- * @property {string|null} [userId] UserDoubleOptInEmailRequested userId
6746
+ * Properties of a UserPasswordUpdated.
6747
+ * @exports IUserPasswordUpdated
6748
+ * @interface IUserPasswordUpdated
6749
+ * @property {string|null} [userId] UserPasswordUpdated userId
6750
+ * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
6751
+ * @property {string|null} [email] UserPasswordUpdated email
6563
6752
  */
6564
6753
 
6565
6754
  /**
6566
- * Constructs a new UserDoubleOptInEmailRequested.
6567
- * @exports UserDoubleOptInEmailRequested
6568
- * @classdesc Represents a UserDoubleOptInEmailRequested.
6569
- * @implements IUserDoubleOptInEmailRequested
6755
+ * Constructs a new UserPasswordUpdated.
6756
+ * @exports UserPasswordUpdated
6757
+ * @classdesc Represents a UserPasswordUpdated.
6758
+ * @implements IUserPasswordUpdated
6570
6759
  * @constructor
6571
- * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6760
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
6572
6761
  */
6573
- function UserDoubleOptInEmailRequested(properties) {
6762
+ function UserPasswordUpdated(properties) {
6574
6763
  if (properties)
6575
6764
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6576
6765
  if (properties[keys[i]] != null)
@@ -6578,76 +6767,102 @@ $root.UserDoubleOptInEmailRequested = (function() {
6578
6767
  }
6579
6768
 
6580
6769
  /**
6581
- * UserDoubleOptInEmailRequested userId.
6770
+ * UserPasswordUpdated userId.
6582
6771
  * @member {string} userId
6583
- * @memberof UserDoubleOptInEmailRequested
6772
+ * @memberof UserPasswordUpdated
6584
6773
  * @instance
6585
6774
  */
6586
- UserDoubleOptInEmailRequested.prototype.userId = "";
6775
+ UserPasswordUpdated.prototype.userId = "";
6587
6776
 
6588
6777
  /**
6589
- * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
6778
+ * UserPasswordUpdated updatedOn.
6779
+ * @member {number|Long} updatedOn
6780
+ * @memberof UserPasswordUpdated
6781
+ * @instance
6782
+ */
6783
+ UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6784
+
6785
+ /**
6786
+ * UserPasswordUpdated email.
6787
+ * @member {string} email
6788
+ * @memberof UserPasswordUpdated
6789
+ * @instance
6790
+ */
6791
+ UserPasswordUpdated.prototype.email = "";
6792
+
6793
+ /**
6794
+ * Creates a new UserPasswordUpdated instance using the specified properties.
6590
6795
  * @function create
6591
- * @memberof UserDoubleOptInEmailRequested
6796
+ * @memberof UserPasswordUpdated
6592
6797
  * @static
6593
- * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6594
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
6798
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
6799
+ * @returns {UserPasswordUpdated} UserPasswordUpdated instance
6595
6800
  */
6596
- UserDoubleOptInEmailRequested.create = function create(properties) {
6597
- return new UserDoubleOptInEmailRequested(properties);
6801
+ UserPasswordUpdated.create = function create(properties) {
6802
+ return new UserPasswordUpdated(properties);
6598
6803
  };
6599
6804
 
6600
6805
  /**
6601
- * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6806
+ * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6602
6807
  * @function encode
6603
- * @memberof UserDoubleOptInEmailRequested
6808
+ * @memberof UserPasswordUpdated
6604
6809
  * @static
6605
- * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6810
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6606
6811
  * @param {$protobuf.Writer} [writer] Writer to encode to
6607
6812
  * @returns {$protobuf.Writer} Writer
6608
6813
  */
6609
- UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
6814
+ UserPasswordUpdated.encode = function encode(message, writer) {
6610
6815
  if (!writer)
6611
6816
  writer = $Writer.create();
6612
6817
  if (message.userId != null && message.hasOwnProperty("userId"))
6613
6818
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
6819
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6820
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
6821
+ if (message.email != null && message.hasOwnProperty("email"))
6822
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
6614
6823
  return writer;
6615
6824
  };
6616
6825
 
6617
6826
  /**
6618
- * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6827
+ * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6619
6828
  * @function encodeDelimited
6620
- * @memberof UserDoubleOptInEmailRequested
6829
+ * @memberof UserPasswordUpdated
6621
6830
  * @static
6622
- * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6831
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6623
6832
  * @param {$protobuf.Writer} [writer] Writer to encode to
6624
6833
  * @returns {$protobuf.Writer} Writer
6625
6834
  */
6626
- UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
6835
+ UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
6627
6836
  return this.encode(message, writer).ldelim();
6628
6837
  };
6629
6838
 
6630
6839
  /**
6631
- * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
6840
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer.
6632
6841
  * @function decode
6633
- * @memberof UserDoubleOptInEmailRequested
6842
+ * @memberof UserPasswordUpdated
6634
6843
  * @static
6635
6844
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6636
6845
  * @param {number} [length] Message length if known beforehand
6637
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6846
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
6638
6847
  * @throws {Error} If the payload is not a reader or valid buffer
6639
6848
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6640
6849
  */
6641
- UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
6850
+ UserPasswordUpdated.decode = function decode(reader, length) {
6642
6851
  if (!(reader instanceof $Reader))
6643
6852
  reader = $Reader.create(reader);
6644
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
6853
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
6645
6854
  while (reader.pos < end) {
6646
6855
  var tag = reader.uint32();
6647
6856
  switch (tag >>> 3) {
6648
6857
  case 1:
6649
6858
  message.userId = reader.string();
6650
6859
  break;
6860
+ case 2:
6861
+ message.updatedOn = reader.uint64();
6862
+ break;
6863
+ case 3:
6864
+ message.email = reader.string();
6865
+ break;
6651
6866
  default:
6652
6867
  reader.skipType(tag & 7);
6653
6868
  break;
@@ -6657,87 +6872,118 @@ $root.UserDoubleOptInEmailRequested = (function() {
6657
6872
  };
6658
6873
 
6659
6874
  /**
6660
- * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
6875
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
6661
6876
  * @function decodeDelimited
6662
- * @memberof UserDoubleOptInEmailRequested
6877
+ * @memberof UserPasswordUpdated
6663
6878
  * @static
6664
6879
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6665
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6880
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
6666
6881
  * @throws {Error} If the payload is not a reader or valid buffer
6667
6882
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6668
6883
  */
6669
- UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
6884
+ UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
6670
6885
  if (!(reader instanceof $Reader))
6671
6886
  reader = new $Reader(reader);
6672
6887
  return this.decode(reader, reader.uint32());
6673
6888
  };
6674
6889
 
6675
6890
  /**
6676
- * Verifies a UserDoubleOptInEmailRequested message.
6891
+ * Verifies a UserPasswordUpdated message.
6677
6892
  * @function verify
6678
- * @memberof UserDoubleOptInEmailRequested
6893
+ * @memberof UserPasswordUpdated
6679
6894
  * @static
6680
6895
  * @param {Object.<string,*>} message Plain object to verify
6681
6896
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
6682
6897
  */
6683
- UserDoubleOptInEmailRequested.verify = function verify(message) {
6898
+ UserPasswordUpdated.verify = function verify(message) {
6684
6899
  if (typeof message !== "object" || message === null)
6685
6900
  return "object expected";
6686
6901
  if (message.userId != null && message.hasOwnProperty("userId"))
6687
6902
  if (!$util.isString(message.userId))
6688
6903
  return "userId: string expected";
6904
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6905
+ if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
6906
+ return "updatedOn: integer|Long expected";
6907
+ if (message.email != null && message.hasOwnProperty("email"))
6908
+ if (!$util.isString(message.email))
6909
+ return "email: string expected";
6689
6910
  return null;
6690
6911
  };
6691
6912
 
6692
6913
  /**
6693
- * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
6914
+ * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
6694
6915
  * @function fromObject
6695
- * @memberof UserDoubleOptInEmailRequested
6916
+ * @memberof UserPasswordUpdated
6696
6917
  * @static
6697
6918
  * @param {Object.<string,*>} object Plain object
6698
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6919
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
6699
6920
  */
6700
- UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
6701
- if (object instanceof $root.UserDoubleOptInEmailRequested)
6921
+ UserPasswordUpdated.fromObject = function fromObject(object) {
6922
+ if (object instanceof $root.UserPasswordUpdated)
6702
6923
  return object;
6703
- var message = new $root.UserDoubleOptInEmailRequested();
6924
+ var message = new $root.UserPasswordUpdated();
6704
6925
  if (object.userId != null)
6705
6926
  message.userId = String(object.userId);
6927
+ if (object.updatedOn != null)
6928
+ if ($util.Long)
6929
+ (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
6930
+ else if (typeof object.updatedOn === "string")
6931
+ message.updatedOn = parseInt(object.updatedOn, 10);
6932
+ else if (typeof object.updatedOn === "number")
6933
+ message.updatedOn = object.updatedOn;
6934
+ else if (typeof object.updatedOn === "object")
6935
+ message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
6936
+ if (object.email != null)
6937
+ message.email = String(object.email);
6706
6938
  return message;
6707
6939
  };
6708
6940
 
6709
6941
  /**
6710
- * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
6942
+ * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
6711
6943
  * @function toObject
6712
- * @memberof UserDoubleOptInEmailRequested
6944
+ * @memberof UserPasswordUpdated
6713
6945
  * @static
6714
- * @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
6946
+ * @param {UserPasswordUpdated} message UserPasswordUpdated
6715
6947
  * @param {$protobuf.IConversionOptions} [options] Conversion options
6716
6948
  * @returns {Object.<string,*>} Plain object
6717
6949
  */
6718
- UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
6950
+ UserPasswordUpdated.toObject = function toObject(message, options) {
6719
6951
  if (!options)
6720
6952
  options = {};
6721
6953
  var object = {};
6722
- if (options.defaults)
6954
+ if (options.defaults) {
6723
6955
  object.userId = "";
6956
+ if ($util.Long) {
6957
+ var long = new $util.Long(0, 0, true);
6958
+ object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6959
+ } else
6960
+ object.updatedOn = options.longs === String ? "0" : 0;
6961
+ object.email = "";
6962
+ }
6724
6963
  if (message.userId != null && message.hasOwnProperty("userId"))
6725
6964
  object.userId = message.userId;
6965
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6966
+ if (typeof message.updatedOn === "number")
6967
+ object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
6968
+ else
6969
+ object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
6970
+ if (message.email != null && message.hasOwnProperty("email"))
6971
+ object.email = message.email;
6726
6972
  return object;
6727
6973
  };
6728
6974
 
6729
6975
  /**
6730
- * Converts this UserDoubleOptInEmailRequested to JSON.
6976
+ * Converts this UserPasswordUpdated to JSON.
6731
6977
  * @function toJSON
6732
- * @memberof UserDoubleOptInEmailRequested
6978
+ * @memberof UserPasswordUpdated
6733
6979
  * @instance
6734
6980
  * @returns {Object.<string,*>} JSON object
6735
6981
  */
6736
- UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
6982
+ UserPasswordUpdated.prototype.toJSON = function toJSON() {
6737
6983
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6738
6984
  };
6739
6985
 
6740
- return UserDoubleOptInEmailRequested;
6986
+ return UserPasswordUpdated;
6741
6987
  })();
6742
6988
 
6743
6989
  module.exports = $root;