@headspace/protos-events 1.339.0 → 1.341.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.
package/lib/index.js CHANGED
@@ -18298,6 +18298,272 @@ $root.subscription = (function() {
18298
18298
  return values;
18299
18299
  })();
18300
18300
 
18301
+ subscription.SubscriptionProductSku = (function() {
18302
+
18303
+ /**
18304
+ * Properties of a SubscriptionProductSku.
18305
+ * @memberof subscription
18306
+ * @interface ISubscriptionProductSku
18307
+ * @property {string|null} [id] SubscriptionProductSku id
18308
+ * @property {string|null} [slug] SubscriptionProductSku slug
18309
+ * @property {subscription.SubscriptionTaxMode|null} [taxMode] SubscriptionProductSku taxMode
18310
+ */
18311
+
18312
+ /**
18313
+ * Constructs a new SubscriptionProductSku.
18314
+ * @memberof subscription
18315
+ * @classdesc Represents a SubscriptionProductSku.
18316
+ * @implements ISubscriptionProductSku
18317
+ * @constructor
18318
+ * @param {subscription.ISubscriptionProductSku=} [properties] Properties to set
18319
+ */
18320
+ function SubscriptionProductSku(properties) {
18321
+ if (properties)
18322
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18323
+ if (properties[keys[i]] != null)
18324
+ this[keys[i]] = properties[keys[i]];
18325
+ }
18326
+
18327
+ /**
18328
+ * SubscriptionProductSku id.
18329
+ * @member {string} id
18330
+ * @memberof subscription.SubscriptionProductSku
18331
+ * @instance
18332
+ */
18333
+ SubscriptionProductSku.prototype.id = "";
18334
+
18335
+ /**
18336
+ * SubscriptionProductSku slug.
18337
+ * @member {string} slug
18338
+ * @memberof subscription.SubscriptionProductSku
18339
+ * @instance
18340
+ */
18341
+ SubscriptionProductSku.prototype.slug = "";
18342
+
18343
+ /**
18344
+ * SubscriptionProductSku taxMode.
18345
+ * @member {subscription.SubscriptionTaxMode} taxMode
18346
+ * @memberof subscription.SubscriptionProductSku
18347
+ * @instance
18348
+ */
18349
+ SubscriptionProductSku.prototype.taxMode = 0;
18350
+
18351
+ /**
18352
+ * Creates a new SubscriptionProductSku instance using the specified properties.
18353
+ * @function create
18354
+ * @memberof subscription.SubscriptionProductSku
18355
+ * @static
18356
+ * @param {subscription.ISubscriptionProductSku=} [properties] Properties to set
18357
+ * @returns {subscription.SubscriptionProductSku} SubscriptionProductSku instance
18358
+ */
18359
+ SubscriptionProductSku.create = function create(properties) {
18360
+ return new SubscriptionProductSku(properties);
18361
+ };
18362
+
18363
+ /**
18364
+ * Encodes the specified SubscriptionProductSku message. Does not implicitly {@link subscription.SubscriptionProductSku.verify|verify} messages.
18365
+ * @function encode
18366
+ * @memberof subscription.SubscriptionProductSku
18367
+ * @static
18368
+ * @param {subscription.ISubscriptionProductSku} message SubscriptionProductSku message or plain object to encode
18369
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18370
+ * @returns {$protobuf.Writer} Writer
18371
+ */
18372
+ SubscriptionProductSku.encode = function encode(message, writer) {
18373
+ if (!writer)
18374
+ writer = $Writer.create();
18375
+ if (message.id != null && message.hasOwnProperty("id"))
18376
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
18377
+ if (message.slug != null && message.hasOwnProperty("slug"))
18378
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
18379
+ if (message.taxMode != null && message.hasOwnProperty("taxMode"))
18380
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.taxMode);
18381
+ return writer;
18382
+ };
18383
+
18384
+ /**
18385
+ * Encodes the specified SubscriptionProductSku message, length delimited. Does not implicitly {@link subscription.SubscriptionProductSku.verify|verify} messages.
18386
+ * @function encodeDelimited
18387
+ * @memberof subscription.SubscriptionProductSku
18388
+ * @static
18389
+ * @param {subscription.ISubscriptionProductSku} message SubscriptionProductSku message or plain object to encode
18390
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18391
+ * @returns {$protobuf.Writer} Writer
18392
+ */
18393
+ SubscriptionProductSku.encodeDelimited = function encodeDelimited(message, writer) {
18394
+ return this.encode(message, writer).ldelim();
18395
+ };
18396
+
18397
+ /**
18398
+ * Decodes a SubscriptionProductSku message from the specified reader or buffer.
18399
+ * @function decode
18400
+ * @memberof subscription.SubscriptionProductSku
18401
+ * @static
18402
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18403
+ * @param {number} [length] Message length if known beforehand
18404
+ * @returns {subscription.SubscriptionProductSku} SubscriptionProductSku
18405
+ * @throws {Error} If the payload is not a reader or valid buffer
18406
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18407
+ */
18408
+ SubscriptionProductSku.decode = function decode(reader, length) {
18409
+ if (!(reader instanceof $Reader))
18410
+ reader = $Reader.create(reader);
18411
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.subscription.SubscriptionProductSku();
18412
+ while (reader.pos < end) {
18413
+ var tag = reader.uint32();
18414
+ switch (tag >>> 3) {
18415
+ case 1:
18416
+ message.id = reader.string();
18417
+ break;
18418
+ case 2:
18419
+ message.slug = reader.string();
18420
+ break;
18421
+ case 3:
18422
+ message.taxMode = reader.int32();
18423
+ break;
18424
+ default:
18425
+ reader.skipType(tag & 7);
18426
+ break;
18427
+ }
18428
+ }
18429
+ return message;
18430
+ };
18431
+
18432
+ /**
18433
+ * Decodes a SubscriptionProductSku message from the specified reader or buffer, length delimited.
18434
+ * @function decodeDelimited
18435
+ * @memberof subscription.SubscriptionProductSku
18436
+ * @static
18437
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18438
+ * @returns {subscription.SubscriptionProductSku} SubscriptionProductSku
18439
+ * @throws {Error} If the payload is not a reader or valid buffer
18440
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18441
+ */
18442
+ SubscriptionProductSku.decodeDelimited = function decodeDelimited(reader) {
18443
+ if (!(reader instanceof $Reader))
18444
+ reader = new $Reader(reader);
18445
+ return this.decode(reader, reader.uint32());
18446
+ };
18447
+
18448
+ /**
18449
+ * Verifies a SubscriptionProductSku message.
18450
+ * @function verify
18451
+ * @memberof subscription.SubscriptionProductSku
18452
+ * @static
18453
+ * @param {Object.<string,*>} message Plain object to verify
18454
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18455
+ */
18456
+ SubscriptionProductSku.verify = function verify(message) {
18457
+ if (typeof message !== "object" || message === null)
18458
+ return "object expected";
18459
+ if (message.id != null && message.hasOwnProperty("id"))
18460
+ if (!$util.isString(message.id))
18461
+ return "id: string expected";
18462
+ if (message.slug != null && message.hasOwnProperty("slug"))
18463
+ if (!$util.isString(message.slug))
18464
+ return "slug: string expected";
18465
+ if (message.taxMode != null && message.hasOwnProperty("taxMode"))
18466
+ switch (message.taxMode) {
18467
+ default:
18468
+ return "taxMode: enum value expected";
18469
+ case 0:
18470
+ case 1:
18471
+ case 2:
18472
+ break;
18473
+ }
18474
+ return null;
18475
+ };
18476
+
18477
+ /**
18478
+ * Creates a SubscriptionProductSku message from a plain object. Also converts values to their respective internal types.
18479
+ * @function fromObject
18480
+ * @memberof subscription.SubscriptionProductSku
18481
+ * @static
18482
+ * @param {Object.<string,*>} object Plain object
18483
+ * @returns {subscription.SubscriptionProductSku} SubscriptionProductSku
18484
+ */
18485
+ SubscriptionProductSku.fromObject = function fromObject(object) {
18486
+ if (object instanceof $root.subscription.SubscriptionProductSku)
18487
+ return object;
18488
+ var message = new $root.subscription.SubscriptionProductSku();
18489
+ if (object.id != null)
18490
+ message.id = String(object.id);
18491
+ if (object.slug != null)
18492
+ message.slug = String(object.slug);
18493
+ switch (object.taxMode) {
18494
+ case "SUBTAXMODE_UNKNOWN":
18495
+ case 0:
18496
+ message.taxMode = 0;
18497
+ break;
18498
+ case "SUBTAXMODE_EXCLUSIVE":
18499
+ case 1:
18500
+ message.taxMode = 1;
18501
+ break;
18502
+ case "SUBTAXMODE_INCLUSIVE":
18503
+ case 2:
18504
+ message.taxMode = 2;
18505
+ break;
18506
+ }
18507
+ return message;
18508
+ };
18509
+
18510
+ /**
18511
+ * Creates a plain object from a SubscriptionProductSku message. Also converts values to other types if specified.
18512
+ * @function toObject
18513
+ * @memberof subscription.SubscriptionProductSku
18514
+ * @static
18515
+ * @param {subscription.SubscriptionProductSku} message SubscriptionProductSku
18516
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18517
+ * @returns {Object.<string,*>} Plain object
18518
+ */
18519
+ SubscriptionProductSku.toObject = function toObject(message, options) {
18520
+ if (!options)
18521
+ options = {};
18522
+ var object = {};
18523
+ if (options.defaults) {
18524
+ object.id = "";
18525
+ object.slug = "";
18526
+ object.taxMode = options.enums === String ? "SUBTAXMODE_UNKNOWN" : 0;
18527
+ }
18528
+ if (message.id != null && message.hasOwnProperty("id"))
18529
+ object.id = message.id;
18530
+ if (message.slug != null && message.hasOwnProperty("slug"))
18531
+ object.slug = message.slug;
18532
+ if (message.taxMode != null && message.hasOwnProperty("taxMode"))
18533
+ object.taxMode = options.enums === String ? $root.subscription.SubscriptionTaxMode[message.taxMode] : message.taxMode;
18534
+ return object;
18535
+ };
18536
+
18537
+ /**
18538
+ * Converts this SubscriptionProductSku to JSON.
18539
+ * @function toJSON
18540
+ * @memberof subscription.SubscriptionProductSku
18541
+ * @instance
18542
+ * @returns {Object.<string,*>} JSON object
18543
+ */
18544
+ SubscriptionProductSku.prototype.toJSON = function toJSON() {
18545
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18546
+ };
18547
+
18548
+ return SubscriptionProductSku;
18549
+ })();
18550
+
18551
+ /**
18552
+ * SubscriptionTaxMode enum.
18553
+ * @name subscription.SubscriptionTaxMode
18554
+ * @enum {string}
18555
+ * @property {number} SUBTAXMODE_UNKNOWN=0 SUBTAXMODE_UNKNOWN value
18556
+ * @property {number} SUBTAXMODE_EXCLUSIVE=1 SUBTAXMODE_EXCLUSIVE value
18557
+ * @property {number} SUBTAXMODE_INCLUSIVE=2 SUBTAXMODE_INCLUSIVE value
18558
+ */
18559
+ subscription.SubscriptionTaxMode = (function() {
18560
+ var valuesById = {}, values = Object.create(valuesById);
18561
+ values[valuesById[0] = "SUBTAXMODE_UNKNOWN"] = 0;
18562
+ values[valuesById[1] = "SUBTAXMODE_EXCLUSIVE"] = 1;
18563
+ values[valuesById[2] = "SUBTAXMODE_INCLUSIVE"] = 2;
18564
+ return values;
18565
+ })();
18566
+
18301
18567
  return subscription;
18302
18568
  })();
18303
18569
 
@@ -32825,6 +33091,252 @@ $root.BlockedUnverifiedEmail = (function() {
32825
33091
  return BlockedUnverifiedEmail;
32826
33092
  })();
32827
33093
 
33094
+ $root.UserMFAEnrollmentInitiated = (function() {
33095
+
33096
+ /**
33097
+ * Properties of a UserMFAEnrollmentInitiated.
33098
+ * @exports IUserMFAEnrollmentInitiated
33099
+ * @interface IUserMFAEnrollmentInitiated
33100
+ * @property {string|null} [userId] UserMFAEnrollmentInitiated userId
33101
+ * @property {boolean|null} [enabled] UserMFAEnrollmentInitiated enabled
33102
+ * @property {number|Long|null} [timestamp] UserMFAEnrollmentInitiated timestamp
33103
+ */
33104
+
33105
+ /**
33106
+ * Constructs a new UserMFAEnrollmentInitiated.
33107
+ * @exports UserMFAEnrollmentInitiated
33108
+ * @classdesc Represents a UserMFAEnrollmentInitiated.
33109
+ * @implements IUserMFAEnrollmentInitiated
33110
+ * @constructor
33111
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
33112
+ */
33113
+ function UserMFAEnrollmentInitiated(properties) {
33114
+ if (properties)
33115
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
33116
+ if (properties[keys[i]] != null)
33117
+ this[keys[i]] = properties[keys[i]];
33118
+ }
33119
+
33120
+ /**
33121
+ * UserMFAEnrollmentInitiated userId.
33122
+ * @member {string} userId
33123
+ * @memberof UserMFAEnrollmentInitiated
33124
+ * @instance
33125
+ */
33126
+ UserMFAEnrollmentInitiated.prototype.userId = "";
33127
+
33128
+ /**
33129
+ * UserMFAEnrollmentInitiated enabled.
33130
+ * @member {boolean} enabled
33131
+ * @memberof UserMFAEnrollmentInitiated
33132
+ * @instance
33133
+ */
33134
+ UserMFAEnrollmentInitiated.prototype.enabled = false;
33135
+
33136
+ /**
33137
+ * UserMFAEnrollmentInitiated timestamp.
33138
+ * @member {number|Long} timestamp
33139
+ * @memberof UserMFAEnrollmentInitiated
33140
+ * @instance
33141
+ */
33142
+ UserMFAEnrollmentInitiated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
33143
+
33144
+ /**
33145
+ * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
33146
+ * @function create
33147
+ * @memberof UserMFAEnrollmentInitiated
33148
+ * @static
33149
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
33150
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
33151
+ */
33152
+ UserMFAEnrollmentInitiated.create = function create(properties) {
33153
+ return new UserMFAEnrollmentInitiated(properties);
33154
+ };
33155
+
33156
+ /**
33157
+ * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
33158
+ * @function encode
33159
+ * @memberof UserMFAEnrollmentInitiated
33160
+ * @static
33161
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
33162
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33163
+ * @returns {$protobuf.Writer} Writer
33164
+ */
33165
+ UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
33166
+ if (!writer)
33167
+ writer = $Writer.create();
33168
+ if (message.userId != null && message.hasOwnProperty("userId"))
33169
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
33170
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
33171
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled);
33172
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
33173
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
33174
+ return writer;
33175
+ };
33176
+
33177
+ /**
33178
+ * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
33179
+ * @function encodeDelimited
33180
+ * @memberof UserMFAEnrollmentInitiated
33181
+ * @static
33182
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
33183
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33184
+ * @returns {$protobuf.Writer} Writer
33185
+ */
33186
+ UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
33187
+ return this.encode(message, writer).ldelim();
33188
+ };
33189
+
33190
+ /**
33191
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
33192
+ * @function decode
33193
+ * @memberof UserMFAEnrollmentInitiated
33194
+ * @static
33195
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33196
+ * @param {number} [length] Message length if known beforehand
33197
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
33198
+ * @throws {Error} If the payload is not a reader or valid buffer
33199
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33200
+ */
33201
+ UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
33202
+ if (!(reader instanceof $Reader))
33203
+ reader = $Reader.create(reader);
33204
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
33205
+ while (reader.pos < end) {
33206
+ var tag = reader.uint32();
33207
+ switch (tag >>> 3) {
33208
+ case 1:
33209
+ message.userId = reader.string();
33210
+ break;
33211
+ case 2:
33212
+ message.enabled = reader.bool();
33213
+ break;
33214
+ case 3:
33215
+ message.timestamp = reader.uint64();
33216
+ break;
33217
+ default:
33218
+ reader.skipType(tag & 7);
33219
+ break;
33220
+ }
33221
+ }
33222
+ return message;
33223
+ };
33224
+
33225
+ /**
33226
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
33227
+ * @function decodeDelimited
33228
+ * @memberof UserMFAEnrollmentInitiated
33229
+ * @static
33230
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33231
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
33232
+ * @throws {Error} If the payload is not a reader or valid buffer
33233
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33234
+ */
33235
+ UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
33236
+ if (!(reader instanceof $Reader))
33237
+ reader = new $Reader(reader);
33238
+ return this.decode(reader, reader.uint32());
33239
+ };
33240
+
33241
+ /**
33242
+ * Verifies a UserMFAEnrollmentInitiated message.
33243
+ * @function verify
33244
+ * @memberof UserMFAEnrollmentInitiated
33245
+ * @static
33246
+ * @param {Object.<string,*>} message Plain object to verify
33247
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
33248
+ */
33249
+ UserMFAEnrollmentInitiated.verify = function verify(message) {
33250
+ if (typeof message !== "object" || message === null)
33251
+ return "object expected";
33252
+ if (message.userId != null && message.hasOwnProperty("userId"))
33253
+ if (!$util.isString(message.userId))
33254
+ return "userId: string expected";
33255
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
33256
+ if (typeof message.enabled !== "boolean")
33257
+ return "enabled: boolean expected";
33258
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
33259
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
33260
+ return "timestamp: integer|Long expected";
33261
+ return null;
33262
+ };
33263
+
33264
+ /**
33265
+ * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
33266
+ * @function fromObject
33267
+ * @memberof UserMFAEnrollmentInitiated
33268
+ * @static
33269
+ * @param {Object.<string,*>} object Plain object
33270
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
33271
+ */
33272
+ UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
33273
+ if (object instanceof $root.UserMFAEnrollmentInitiated)
33274
+ return object;
33275
+ var message = new $root.UserMFAEnrollmentInitiated();
33276
+ if (object.userId != null)
33277
+ message.userId = String(object.userId);
33278
+ if (object.enabled != null)
33279
+ message.enabled = Boolean(object.enabled);
33280
+ if (object.timestamp != null)
33281
+ if ($util.Long)
33282
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
33283
+ else if (typeof object.timestamp === "string")
33284
+ message.timestamp = parseInt(object.timestamp, 10);
33285
+ else if (typeof object.timestamp === "number")
33286
+ message.timestamp = object.timestamp;
33287
+ else if (typeof object.timestamp === "object")
33288
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
33289
+ return message;
33290
+ };
33291
+
33292
+ /**
33293
+ * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
33294
+ * @function toObject
33295
+ * @memberof UserMFAEnrollmentInitiated
33296
+ * @static
33297
+ * @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
33298
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
33299
+ * @returns {Object.<string,*>} Plain object
33300
+ */
33301
+ UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
33302
+ if (!options)
33303
+ options = {};
33304
+ var object = {};
33305
+ if (options.defaults) {
33306
+ object.userId = "";
33307
+ object.enabled = false;
33308
+ if ($util.Long) {
33309
+ var long = new $util.Long(0, 0, true);
33310
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
33311
+ } else
33312
+ object.timestamp = options.longs === String ? "0" : 0;
33313
+ }
33314
+ if (message.userId != null && message.hasOwnProperty("userId"))
33315
+ object.userId = message.userId;
33316
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
33317
+ object.enabled = message.enabled;
33318
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
33319
+ if (typeof message.timestamp === "number")
33320
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
33321
+ else
33322
+ 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;
33323
+ return object;
33324
+ };
33325
+
33326
+ /**
33327
+ * Converts this UserMFAEnrollmentInitiated to JSON.
33328
+ * @function toJSON
33329
+ * @memberof UserMFAEnrollmentInitiated
33330
+ * @instance
33331
+ * @returns {Object.<string,*>} JSON object
33332
+ */
33333
+ UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
33334
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
33335
+ };
33336
+
33337
+ return UserMFAEnrollmentInitiated;
33338
+ })();
33339
+
32828
33340
  $root.Auth0PasswordResetCompleted = (function() {
32829
33341
 
32830
33342
  /**
@@ -87306,7 +87818,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87306
87818
  * @property {number|Long|null} [orgSubscriptionEndDate] EnterpriseUserEnrollmentCreated orgSubscriptionEndDate
87307
87819
  * @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentCreated orgMemberSubscriptionId
87308
87820
  * @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentCreated orgMemberCustomFields
87309
- * @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentCreated isTelehealthEnabled
87310
87821
  * @property {b2b.SSOConnectionAction|null} [ssoConnectionAction] EnterpriseUserEnrollmentCreated ssoConnectionAction
87311
87822
  * @property {boolean|null} [isSsoEnabled] EnterpriseUserEnrollmentCreated isSsoEnabled
87312
87823
  * @property {string|null} [gingerId] EnterpriseUserEnrollmentCreated gingerId
@@ -87467,14 +87978,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87467
87978
  */
87468
87979
  EnterpriseUserEnrollmentCreated.prototype.orgMemberCustomFields = "";
87469
87980
 
87470
- /**
87471
- * EnterpriseUserEnrollmentCreated isTelehealthEnabled.
87472
- * @member {boolean} isTelehealthEnabled
87473
- * @memberof EnterpriseUserEnrollmentCreated
87474
- * @instance
87475
- */
87476
- EnterpriseUserEnrollmentCreated.prototype.isTelehealthEnabled = false;
87477
-
87478
87981
  /**
87479
87982
  * EnterpriseUserEnrollmentCreated ssoConnectionAction.
87480
87983
  * @member {b2b.SSOConnectionAction} ssoConnectionAction
@@ -87589,8 +88092,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87589
88092
  writer.uint32(/* id 18, wireType 0 =*/144).uint32(message.orgMemberSubscriptionId);
87590
88093
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
87591
88094
  writer.uint32(/* id 19, wireType 2 =*/154).string(message.orgMemberCustomFields);
87592
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
87593
- writer.uint32(/* id 20, wireType 0 =*/160).bool(message.isTelehealthEnabled);
87594
88095
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
87595
88096
  writer.uint32(/* id 22, wireType 0 =*/176).int32(message.ssoConnectionAction);
87596
88097
  if (message.isSsoEnabled != null && message.hasOwnProperty("isSsoEnabled"))
@@ -87690,9 +88191,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87690
88191
  case 19:
87691
88192
  message.orgMemberCustomFields = reader.string();
87692
88193
  break;
87693
- case 20:
87694
- message.isTelehealthEnabled = reader.bool();
87695
- break;
87696
88194
  case 22:
87697
88195
  message.ssoConnectionAction = reader.int32();
87698
88196
  break;
@@ -87816,9 +88314,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87816
88314
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
87817
88315
  if (!$util.isString(message.orgMemberCustomFields))
87818
88316
  return "orgMemberCustomFields: string expected";
87819
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
87820
- if (typeof message.isTelehealthEnabled !== "boolean")
87821
- return "isTelehealthEnabled: boolean expected";
87822
88317
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
87823
88318
  switch (message.ssoConnectionAction) {
87824
88319
  default:
@@ -87970,8 +88465,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87970
88465
  message.orgMemberSubscriptionId = object.orgMemberSubscriptionId >>> 0;
87971
88466
  if (object.orgMemberCustomFields != null)
87972
88467
  message.orgMemberCustomFields = String(object.orgMemberCustomFields);
87973
- if (object.isTelehealthEnabled != null)
87974
- message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
87975
88468
  switch (object.ssoConnectionAction) {
87976
88469
  case "CONNECTION_NO_UPDATE":
87977
88470
  case 0:
@@ -88052,7 +88545,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
88052
88545
  object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
88053
88546
  object.orgMemberSubscriptionId = 0;
88054
88547
  object.orgMemberCustomFields = "";
88055
- object.isTelehealthEnabled = false;
88056
88548
  object.ssoConnectionAction = options.enums === String ? "CONNECTION_NO_UPDATE" : 0;
88057
88549
  object.isSsoEnabled = false;
88058
88550
  object.gingerId = "";
@@ -88110,8 +88602,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
88110
88602
  object.orgMemberSubscriptionId = message.orgMemberSubscriptionId;
88111
88603
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
88112
88604
  object.orgMemberCustomFields = message.orgMemberCustomFields;
88113
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
88114
- object.isTelehealthEnabled = message.isTelehealthEnabled;
88115
88605
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
88116
88606
  object.ssoConnectionAction = options.enums === String ? $root.b2b.SSOConnectionAction[message.ssoConnectionAction] : message.ssoConnectionAction;
88117
88607
  if (message.isSsoEnabled != null && message.hasOwnProperty("isSsoEnabled"))
@@ -88167,7 +88657,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88167
88657
  * @property {number|Long|null} [orgSubscriptionEndDate] EnterpriseUserEnrollmentRemoved orgSubscriptionEndDate
88168
88658
  * @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentRemoved orgMemberSubscriptionId
88169
88659
  * @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentRemoved orgMemberCustomFields
88170
- * @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentRemoved isTelehealthEnabled
88171
88660
  * @property {b2b.SSOConnectionAction|null} [ssoConnectionAction] EnterpriseUserEnrollmentRemoved ssoConnectionAction
88172
88661
  * @property {boolean|null} [isSsoEnabled] EnterpriseUserEnrollmentRemoved isSsoEnabled
88173
88662
  * @property {string|null} [gingerId] EnterpriseUserEnrollmentRemoved gingerId
@@ -88336,14 +88825,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88336
88825
  */
88337
88826
  EnterpriseUserEnrollmentRemoved.prototype.orgMemberCustomFields = "";
88338
88827
 
88339
- /**
88340
- * EnterpriseUserEnrollmentRemoved isTelehealthEnabled.
88341
- * @member {boolean} isTelehealthEnabled
88342
- * @memberof EnterpriseUserEnrollmentRemoved
88343
- * @instance
88344
- */
88345
- EnterpriseUserEnrollmentRemoved.prototype.isTelehealthEnabled = false;
88346
-
88347
88828
  /**
88348
88829
  * EnterpriseUserEnrollmentRemoved ssoConnectionAction.
88349
88830
  * @member {b2b.SSOConnectionAction} ssoConnectionAction
@@ -88460,8 +88941,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88460
88941
  writer.uint32(/* id 19, wireType 0 =*/152).uint32(message.orgMemberSubscriptionId);
88461
88942
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
88462
88943
  writer.uint32(/* id 20, wireType 2 =*/162).string(message.orgMemberCustomFields);
88463
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
88464
- writer.uint32(/* id 21, wireType 0 =*/168).bool(message.isTelehealthEnabled);
88465
88944
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
88466
88945
  writer.uint32(/* id 23, wireType 0 =*/184).int32(message.ssoConnectionAction);
88467
88946
  if (message.isSsoEnabled != null && message.hasOwnProperty("isSsoEnabled"))
@@ -88564,9 +89043,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88564
89043
  case 20:
88565
89044
  message.orgMemberCustomFields = reader.string();
88566
89045
  break;
88567
- case 21:
88568
- message.isTelehealthEnabled = reader.bool();
88569
- break;
88570
89046
  case 23:
88571
89047
  message.ssoConnectionAction = reader.int32();
88572
89048
  break;
@@ -88707,9 +89183,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88707
89183
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
88708
89184
  if (!$util.isString(message.orgMemberCustomFields))
88709
89185
  return "orgMemberCustomFields: string expected";
88710
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
88711
- if (typeof message.isTelehealthEnabled !== "boolean")
88712
- return "isTelehealthEnabled: boolean expected";
88713
89186
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
88714
89187
  switch (message.ssoConnectionAction) {
88715
89188
  default:
@@ -88907,8 +89380,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88907
89380
  message.orgMemberSubscriptionId = object.orgMemberSubscriptionId >>> 0;
88908
89381
  if (object.orgMemberCustomFields != null)
88909
89382
  message.orgMemberCustomFields = String(object.orgMemberCustomFields);
88910
- if (object.isTelehealthEnabled != null)
88911
- message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
88912
89383
  switch (object.ssoConnectionAction) {
88913
89384
  case "CONNECTION_NO_UPDATE":
88914
89385
  case 0:
@@ -88990,7 +89461,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88990
89461
  object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
88991
89462
  object.orgMemberSubscriptionId = 0;
88992
89463
  object.orgMemberCustomFields = "";
88993
- object.isTelehealthEnabled = false;
88994
89464
  object.ssoConnectionAction = options.enums === String ? "CONNECTION_NO_UPDATE" : 0;
88995
89465
  object.isSsoEnabled = false;
88996
89466
  object.gingerId = "";
@@ -89050,8 +89520,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
89050
89520
  object.orgMemberSubscriptionId = message.orgMemberSubscriptionId;
89051
89521
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
89052
89522
  object.orgMemberCustomFields = message.orgMemberCustomFields;
89053
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
89054
- object.isTelehealthEnabled = message.isTelehealthEnabled;
89055
89523
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
89056
89524
  object.ssoConnectionAction = options.enums === String ? $root.b2b.SSOConnectionAction[message.ssoConnectionAction] : message.ssoConnectionAction;
89057
89525
  if (message.isSsoEnabled != null && message.hasOwnProperty("isSsoEnabled"))
@@ -89106,7 +89574,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89106
89574
  * @property {number|Long|null} [orgSubscriptionEndDate] EnterpriseUserEnrollmentAmended orgSubscriptionEndDate
89107
89575
  * @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentAmended orgMemberSubscriptionId
89108
89576
  * @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentAmended orgMemberCustomFields
89109
- * @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentAmended isTelehealthEnabled
89110
89577
  * @property {b2b.SSOConnectionAction|null} [ssoConnectionAction] EnterpriseUserEnrollmentAmended ssoConnectionAction
89111
89578
  * @property {boolean|null} [isSsoEnabled] EnterpriseUserEnrollmentAmended isSsoEnabled
89112
89579
  * @property {string|null} [gingerId] EnterpriseUserEnrollmentAmended gingerId
@@ -89267,14 +89734,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89267
89734
  */
89268
89735
  EnterpriseUserEnrollmentAmended.prototype.orgMemberCustomFields = "";
89269
89736
 
89270
- /**
89271
- * EnterpriseUserEnrollmentAmended isTelehealthEnabled.
89272
- * @member {boolean} isTelehealthEnabled
89273
- * @memberof EnterpriseUserEnrollmentAmended
89274
- * @instance
89275
- */
89276
- EnterpriseUserEnrollmentAmended.prototype.isTelehealthEnabled = false;
89277
-
89278
89737
  /**
89279
89738
  * EnterpriseUserEnrollmentAmended ssoConnectionAction.
89280
89739
  * @member {b2b.SSOConnectionAction} ssoConnectionAction
@@ -89389,8 +89848,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89389
89848
  writer.uint32(/* id 18, wireType 0 =*/144).uint32(message.orgMemberSubscriptionId);
89390
89849
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
89391
89850
  writer.uint32(/* id 19, wireType 2 =*/154).string(message.orgMemberCustomFields);
89392
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
89393
- writer.uint32(/* id 20, wireType 0 =*/160).bool(message.isTelehealthEnabled);
89394
89851
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
89395
89852
  writer.uint32(/* id 22, wireType 0 =*/176).int32(message.ssoConnectionAction);
89396
89853
  if (message.isSsoEnabled != null && message.hasOwnProperty("isSsoEnabled"))
@@ -89490,9 +89947,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89490
89947
  case 19:
89491
89948
  message.orgMemberCustomFields = reader.string();
89492
89949
  break;
89493
- case 20:
89494
- message.isTelehealthEnabled = reader.bool();
89495
- break;
89496
89950
  case 22:
89497
89951
  message.ssoConnectionAction = reader.int32();
89498
89952
  break;
@@ -89616,9 +90070,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89616
90070
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
89617
90071
  if (!$util.isString(message.orgMemberCustomFields))
89618
90072
  return "orgMemberCustomFields: string expected";
89619
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
89620
- if (typeof message.isTelehealthEnabled !== "boolean")
89621
- return "isTelehealthEnabled: boolean expected";
89622
90073
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
89623
90074
  switch (message.ssoConnectionAction) {
89624
90075
  default:
@@ -89770,8 +90221,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89770
90221
  message.orgMemberSubscriptionId = object.orgMemberSubscriptionId >>> 0;
89771
90222
  if (object.orgMemberCustomFields != null)
89772
90223
  message.orgMemberCustomFields = String(object.orgMemberCustomFields);
89773
- if (object.isTelehealthEnabled != null)
89774
- message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
89775
90224
  switch (object.ssoConnectionAction) {
89776
90225
  case "CONNECTION_NO_UPDATE":
89777
90226
  case 0:
@@ -89852,7 +90301,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89852
90301
  object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
89853
90302
  object.orgMemberSubscriptionId = 0;
89854
90303
  object.orgMemberCustomFields = "";
89855
- object.isTelehealthEnabled = false;
89856
90304
  object.ssoConnectionAction = options.enums === String ? "CONNECTION_NO_UPDATE" : 0;
89857
90305
  object.isSsoEnabled = false;
89858
90306
  object.gingerId = "";
@@ -89910,8 +90358,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89910
90358
  object.orgMemberSubscriptionId = message.orgMemberSubscriptionId;
89911
90359
  if (message.orgMemberCustomFields != null && message.hasOwnProperty("orgMemberCustomFields"))
89912
90360
  object.orgMemberCustomFields = message.orgMemberCustomFields;
89913
- if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
89914
- object.isTelehealthEnabled = message.isTelehealthEnabled;
89915
90361
  if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
89916
90362
  object.ssoConnectionAction = options.enums === String ? $root.b2b.SSOConnectionAction[message.ssoConnectionAction] : message.ssoConnectionAction;
89917
90363
  if (message.isSsoEnabled != null && message.hasOwnProperty("isSsoEnabled"))
@@ -107342,6 +107788,7 @@ $root.SubscriptionCreated = (function() {
107342
107788
  * @property {boolean|null} [isQueuedSubscription] SubscriptionCreated isQueuedSubscription
107343
107789
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCreated terms
107344
107790
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCreated membership
107791
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionCreated productSku
107345
107792
  */
107346
107793
 
107347
107794
  /**
@@ -107481,6 +107928,14 @@ $root.SubscriptionCreated = (function() {
107481
107928
  */
107482
107929
  SubscriptionCreated.prototype.membership = 0;
107483
107930
 
107931
+ /**
107932
+ * SubscriptionCreated productSku.
107933
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
107934
+ * @memberof SubscriptionCreated
107935
+ * @instance
107936
+ */
107937
+ SubscriptionCreated.prototype.productSku = null;
107938
+
107484
107939
  /**
107485
107940
  * Creates a new SubscriptionCreated instance using the specified properties.
107486
107941
  * @function create
@@ -107540,6 +107995,8 @@ $root.SubscriptionCreated = (function() {
107540
107995
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
107541
107996
  if (message.membership != null && message.hasOwnProperty("membership"))
107542
107997
  writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
107998
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
107999
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
107543
108000
  return writer;
107544
108001
  };
107545
108002
 
@@ -107628,6 +108085,9 @@ $root.SubscriptionCreated = (function() {
107628
108085
  case 15:
107629
108086
  message.membership = reader.int32();
107630
108087
  break;
108088
+ case 16:
108089
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
108090
+ break;
107631
108091
  default:
107632
108092
  reader.skipType(tag & 7);
107633
108093
  break;
@@ -107755,6 +108215,11 @@ $root.SubscriptionCreated = (function() {
107755
108215
  case 1:
107756
108216
  break;
107757
108217
  }
108218
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
108219
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
108220
+ if (error)
108221
+ return "productSku." + error;
108222
+ }
107758
108223
  return null;
107759
108224
  };
107760
108225
 
@@ -107926,6 +108391,11 @@ $root.SubscriptionCreated = (function() {
107926
108391
  message.membership = 1;
107927
108392
  break;
107928
108393
  }
108394
+ if (object.productSku != null) {
108395
+ if (typeof object.productSku !== "object")
108396
+ throw TypeError(".SubscriptionCreated.productSku: object expected");
108397
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
108398
+ }
107929
108399
  return message;
107930
108400
  };
107931
108401
 
@@ -107976,6 +108446,7 @@ $root.SubscriptionCreated = (function() {
107976
108446
  object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
107977
108447
  object.isQueuedSubscription = false;
107978
108448
  object.membership = options.enums === String ? "PRIMARY" : 0;
108449
+ object.productSku = null;
107979
108450
  }
107980
108451
  if (message.id != null && message.hasOwnProperty("id"))
107981
108452
  object.id = message.id;
@@ -108025,6 +108496,8 @@ $root.SubscriptionCreated = (function() {
108025
108496
  }
108026
108497
  if (message.membership != null && message.hasOwnProperty("membership"))
108027
108498
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
108499
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
108500
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
108028
108501
  return object;
108029
108502
  };
108030
108503
 
@@ -108065,6 +108538,7 @@ $root.SubscriptionCancelled = (function() {
108065
108538
  * @property {number|Long|null} [renewalCount] SubscriptionCancelled renewalCount
108066
108539
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCancelled terms
108067
108540
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCancelled membership
108541
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionCancelled productSku
108068
108542
  */
108069
108543
 
108070
108544
  /**
@@ -108220,6 +108694,14 @@ $root.SubscriptionCancelled = (function() {
108220
108694
  */
108221
108695
  SubscriptionCancelled.prototype.membership = 0;
108222
108696
 
108697
+ /**
108698
+ * SubscriptionCancelled productSku.
108699
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
108700
+ * @memberof SubscriptionCancelled
108701
+ * @instance
108702
+ */
108703
+ SubscriptionCancelled.prototype.productSku = null;
108704
+
108223
108705
  /**
108224
108706
  * Creates a new SubscriptionCancelled instance using the specified properties.
108225
108707
  * @function create
@@ -108283,6 +108765,8 @@ $root.SubscriptionCancelled = (function() {
108283
108765
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
108284
108766
  if (message.membership != null && message.hasOwnProperty("membership"))
108285
108767
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
108768
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
108769
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
108286
108770
  return writer;
108287
108771
  };
108288
108772
 
@@ -108377,6 +108861,9 @@ $root.SubscriptionCancelled = (function() {
108377
108861
  case 17:
108378
108862
  message.membership = reader.int32();
108379
108863
  break;
108864
+ case 18:
108865
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
108866
+ break;
108380
108867
  default:
108381
108868
  reader.skipType(tag & 7);
108382
108869
  break;
@@ -108518,6 +109005,11 @@ $root.SubscriptionCancelled = (function() {
108518
109005
  case 1:
108519
109006
  break;
108520
109007
  }
109008
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
109009
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
109010
+ if (error)
109011
+ return "productSku." + error;
109012
+ }
108521
109013
  return null;
108522
109014
  };
108523
109015
 
@@ -108715,6 +109207,11 @@ $root.SubscriptionCancelled = (function() {
108715
109207
  message.membership = 1;
108716
109208
  break;
108717
109209
  }
109210
+ if (object.productSku != null) {
109211
+ if (typeof object.productSku !== "object")
109212
+ throw TypeError(".SubscriptionCancelled.productSku: object expected");
109213
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
109214
+ }
108718
109215
  return message;
108719
109216
  };
108720
109217
 
@@ -108771,6 +109268,7 @@ $root.SubscriptionCancelled = (function() {
108771
109268
  } else
108772
109269
  object.renewalCount = options.longs === String ? "0" : 0;
108773
109270
  object.membership = options.enums === String ? "PRIMARY" : 0;
109271
+ object.productSku = null;
108774
109272
  }
108775
109273
  if (message.id != null && message.hasOwnProperty("id"))
108776
109274
  object.id = message.id;
@@ -108827,6 +109325,8 @@ $root.SubscriptionCancelled = (function() {
108827
109325
  }
108828
109326
  if (message.membership != null && message.hasOwnProperty("membership"))
108829
109327
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
109328
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
109329
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
108830
109330
  return object;
108831
109331
  };
108832
109332
 
@@ -108865,6 +109365,7 @@ $root.SubscriptionRenewed = (function() {
108865
109365
  * @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
108866
109366
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRenewed terms
108867
109367
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRenewed membership
109368
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionRenewed productSku
108868
109369
  */
108869
109370
 
108870
109371
  /**
@@ -109004,6 +109505,14 @@ $root.SubscriptionRenewed = (function() {
109004
109505
  */
109005
109506
  SubscriptionRenewed.prototype.membership = 0;
109006
109507
 
109508
+ /**
109509
+ * SubscriptionRenewed productSku.
109510
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
109511
+ * @memberof SubscriptionRenewed
109512
+ * @instance
109513
+ */
109514
+ SubscriptionRenewed.prototype.productSku = null;
109515
+
109007
109516
  /**
109008
109517
  * Creates a new SubscriptionRenewed instance using the specified properties.
109009
109518
  * @function create
@@ -109063,6 +109572,8 @@ $root.SubscriptionRenewed = (function() {
109063
109572
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
109064
109573
  if (message.membership != null && message.hasOwnProperty("membership"))
109065
109574
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
109575
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
109576
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
109066
109577
  return writer;
109067
109578
  };
109068
109579
 
@@ -109151,6 +109662,9 @@ $root.SubscriptionRenewed = (function() {
109151
109662
  case 17:
109152
109663
  message.membership = reader.int32();
109153
109664
  break;
109665
+ case 18:
109666
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
109667
+ break;
109154
109668
  default:
109155
109669
  reader.skipType(tag & 7);
109156
109670
  break;
@@ -109278,6 +109792,11 @@ $root.SubscriptionRenewed = (function() {
109278
109792
  case 1:
109279
109793
  break;
109280
109794
  }
109795
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
109796
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
109797
+ if (error)
109798
+ return "productSku." + error;
109799
+ }
109281
109800
  return null;
109282
109801
  };
109283
109802
 
@@ -109456,6 +109975,11 @@ $root.SubscriptionRenewed = (function() {
109456
109975
  message.membership = 1;
109457
109976
  break;
109458
109977
  }
109978
+ if (object.productSku != null) {
109979
+ if (typeof object.productSku !== "object")
109980
+ throw TypeError(".SubscriptionRenewed.productSku: object expected");
109981
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
109982
+ }
109459
109983
  return message;
109460
109984
  };
109461
109985
 
@@ -109510,6 +110034,7 @@ $root.SubscriptionRenewed = (function() {
109510
110034
  } else
109511
110035
  object.renewalCount = options.longs === String ? "0" : 0;
109512
110036
  object.membership = options.enums === String ? "PRIMARY" : 0;
110037
+ object.productSku = null;
109513
110038
  }
109514
110039
  if (message.id != null && message.hasOwnProperty("id"))
109515
110040
  object.id = message.id;
@@ -109562,6 +110087,8 @@ $root.SubscriptionRenewed = (function() {
109562
110087
  }
109563
110088
  if (message.membership != null && message.hasOwnProperty("membership"))
109564
110089
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
110090
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
110091
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
109565
110092
  return object;
109566
110093
  };
109567
110094
 
@@ -110622,6 +111149,7 @@ $root.SubscriptionGraced = (function() {
110622
111149
  * @property {number|Long|null} [renewalCount] SubscriptionGraced renewalCount
110623
111150
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionGraced terms
110624
111151
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionGraced membership
111152
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionGraced productSku
110625
111153
  */
110626
111154
 
110627
111155
  /**
@@ -110761,6 +111289,14 @@ $root.SubscriptionGraced = (function() {
110761
111289
  */
110762
111290
  SubscriptionGraced.prototype.membership = 0;
110763
111291
 
111292
+ /**
111293
+ * SubscriptionGraced productSku.
111294
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
111295
+ * @memberof SubscriptionGraced
111296
+ * @instance
111297
+ */
111298
+ SubscriptionGraced.prototype.productSku = null;
111299
+
110764
111300
  /**
110765
111301
  * Creates a new SubscriptionGraced instance using the specified properties.
110766
111302
  * @function create
@@ -110820,6 +111356,8 @@ $root.SubscriptionGraced = (function() {
110820
111356
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
110821
111357
  if (message.membership != null && message.hasOwnProperty("membership"))
110822
111358
  writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
111359
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
111360
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
110823
111361
  return writer;
110824
111362
  };
110825
111363
 
@@ -110908,6 +111446,9 @@ $root.SubscriptionGraced = (function() {
110908
111446
  case 15:
110909
111447
  message.membership = reader.int32();
110910
111448
  break;
111449
+ case 16:
111450
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
111451
+ break;
110911
111452
  default:
110912
111453
  reader.skipType(tag & 7);
110913
111454
  break;
@@ -111035,6 +111576,11 @@ $root.SubscriptionGraced = (function() {
111035
111576
  case 1:
111036
111577
  break;
111037
111578
  }
111579
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
111580
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
111581
+ if (error)
111582
+ return "productSku." + error;
111583
+ }
111038
111584
  return null;
111039
111585
  };
111040
111586
 
@@ -111213,6 +111759,11 @@ $root.SubscriptionGraced = (function() {
111213
111759
  message.membership = 1;
111214
111760
  break;
111215
111761
  }
111762
+ if (object.productSku != null) {
111763
+ if (typeof object.productSku !== "object")
111764
+ throw TypeError(".SubscriptionGraced.productSku: object expected");
111765
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
111766
+ }
111216
111767
  return message;
111217
111768
  };
111218
111769
 
@@ -111267,6 +111818,7 @@ $root.SubscriptionGraced = (function() {
111267
111818
  } else
111268
111819
  object.renewalCount = options.longs === String ? "0" : 0;
111269
111820
  object.membership = options.enums === String ? "PRIMARY" : 0;
111821
+ object.productSku = null;
111270
111822
  }
111271
111823
  if (message.id != null && message.hasOwnProperty("id"))
111272
111824
  object.id = message.id;
@@ -111319,6 +111871,8 @@ $root.SubscriptionGraced = (function() {
111319
111871
  }
111320
111872
  if (message.membership != null && message.hasOwnProperty("membership"))
111321
111873
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
111874
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
111875
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
111322
111876
  return object;
111323
111877
  };
111324
111878
 
@@ -111357,6 +111911,7 @@ $root.SubscriptionStarted = (function() {
111357
111911
  * @property {number|null} [id] SubscriptionStarted id
111358
111912
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionStarted terms
111359
111913
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionStarted membership
111914
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionStarted productSku
111360
111915
  */
111361
111916
 
111362
111917
  /**
@@ -111496,6 +112051,14 @@ $root.SubscriptionStarted = (function() {
111496
112051
  */
111497
112052
  SubscriptionStarted.prototype.membership = 0;
111498
112053
 
112054
+ /**
112055
+ * SubscriptionStarted productSku.
112056
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
112057
+ * @memberof SubscriptionStarted
112058
+ * @instance
112059
+ */
112060
+ SubscriptionStarted.prototype.productSku = null;
112061
+
111499
112062
  /**
111500
112063
  * Creates a new SubscriptionStarted instance using the specified properties.
111501
112064
  * @function create
@@ -111555,6 +112118,8 @@ $root.SubscriptionStarted = (function() {
111555
112118
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
111556
112119
  if (message.membership != null && message.hasOwnProperty("membership"))
111557
112120
  writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
112121
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
112122
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
111558
112123
  return writer;
111559
112124
  };
111560
112125
 
@@ -111643,6 +112208,9 @@ $root.SubscriptionStarted = (function() {
111643
112208
  case 16:
111644
112209
  message.membership = reader.int32();
111645
112210
  break;
112211
+ case 17:
112212
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
112213
+ break;
111646
112214
  default:
111647
112215
  reader.skipType(tag & 7);
111648
112216
  break;
@@ -111770,6 +112338,11 @@ $root.SubscriptionStarted = (function() {
111770
112338
  case 1:
111771
112339
  break;
111772
112340
  }
112341
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
112342
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
112343
+ if (error)
112344
+ return "productSku." + error;
112345
+ }
111773
112346
  return null;
111774
112347
  };
111775
112348
 
@@ -111948,6 +112521,11 @@ $root.SubscriptionStarted = (function() {
111948
112521
  message.membership = 1;
111949
112522
  break;
111950
112523
  }
112524
+ if (object.productSku != null) {
112525
+ if (typeof object.productSku !== "object")
112526
+ throw TypeError(".SubscriptionStarted.productSku: object expected");
112527
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
112528
+ }
111951
112529
  return message;
111952
112530
  };
111953
112531
 
@@ -112002,6 +112580,7 @@ $root.SubscriptionStarted = (function() {
112002
112580
  object.renewalCount = options.longs === String ? "0" : 0;
112003
112581
  object.id = 0;
112004
112582
  object.membership = options.enums === String ? "PRIMARY" : 0;
112583
+ object.productSku = null;
112005
112584
  }
112006
112585
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
112007
112586
  if (typeof message.updatedOn === "number")
@@ -112054,6 +112633,8 @@ $root.SubscriptionStarted = (function() {
112054
112633
  }
112055
112634
  if (message.membership != null && message.hasOwnProperty("membership"))
112056
112635
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
112636
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
112637
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
112057
112638
  return object;
112058
112639
  };
112059
112640
 
@@ -112093,6 +112674,7 @@ $root.SubscriptionEnded = (function() {
112093
112674
  * @property {number|null} [id] SubscriptionEnded id
112094
112675
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionEnded terms
112095
112676
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionEnded membership
112677
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionEnded productSku
112096
112678
  */
112097
112679
 
112098
112680
  /**
@@ -112240,6 +112822,14 @@ $root.SubscriptionEnded = (function() {
112240
112822
  */
112241
112823
  SubscriptionEnded.prototype.membership = 0;
112242
112824
 
112825
+ /**
112826
+ * SubscriptionEnded productSku.
112827
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
112828
+ * @memberof SubscriptionEnded
112829
+ * @instance
112830
+ */
112831
+ SubscriptionEnded.prototype.productSku = null;
112832
+
112243
112833
  /**
112244
112834
  * Creates a new SubscriptionEnded instance using the specified properties.
112245
112835
  * @function create
@@ -112301,6 +112891,8 @@ $root.SubscriptionEnded = (function() {
112301
112891
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
112302
112892
  if (message.membership != null && message.hasOwnProperty("membership"))
112303
112893
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
112894
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
112895
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
112304
112896
  return writer;
112305
112897
  };
112306
112898
 
@@ -112392,6 +112984,9 @@ $root.SubscriptionEnded = (function() {
112392
112984
  case 17:
112393
112985
  message.membership = reader.int32();
112394
112986
  break;
112987
+ case 18:
112988
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
112989
+ break;
112395
112990
  default:
112396
112991
  reader.skipType(tag & 7);
112397
112992
  break;
@@ -112528,6 +113123,11 @@ $root.SubscriptionEnded = (function() {
112528
113123
  case 1:
112529
113124
  break;
112530
113125
  }
113126
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
113127
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
113128
+ if (error)
113129
+ return "productSku." + error;
113130
+ }
112531
113131
  return null;
112532
113132
  };
112533
113133
 
@@ -112720,6 +113320,11 @@ $root.SubscriptionEnded = (function() {
112720
113320
  message.membership = 1;
112721
113321
  break;
112722
113322
  }
113323
+ if (object.productSku != null) {
113324
+ if (typeof object.productSku !== "object")
113325
+ throw TypeError(".SubscriptionEnded.productSku: object expected");
113326
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
113327
+ }
112723
113328
  return message;
112724
113329
  };
112725
113330
 
@@ -112775,6 +113380,7 @@ $root.SubscriptionEnded = (function() {
112775
113380
  object.renewalCount = options.longs === String ? "0" : 0;
112776
113381
  object.id = 0;
112777
113382
  object.membership = options.enums === String ? "PRIMARY" : 0;
113383
+ object.productSku = null;
112778
113384
  }
112779
113385
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
112780
113386
  if (typeof message.updatedOn === "number")
@@ -112829,6 +113435,8 @@ $root.SubscriptionEnded = (function() {
112829
113435
  }
112830
113436
  if (message.membership != null && message.hasOwnProperty("membership"))
112831
113437
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
113438
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
113439
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
112832
113440
  return object;
112833
113441
  };
112834
113442
 
@@ -112867,6 +113475,7 @@ $root.SubscriptionRecovered = (function() {
112867
113475
  * @property {number|null} [id] SubscriptionRecovered id
112868
113476
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRecovered terms
112869
113477
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRecovered membership
113478
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionRecovered productSku
112870
113479
  */
112871
113480
 
112872
113481
  /**
@@ -113006,6 +113615,14 @@ $root.SubscriptionRecovered = (function() {
113006
113615
  */
113007
113616
  SubscriptionRecovered.prototype.membership = 0;
113008
113617
 
113618
+ /**
113619
+ * SubscriptionRecovered productSku.
113620
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
113621
+ * @memberof SubscriptionRecovered
113622
+ * @instance
113623
+ */
113624
+ SubscriptionRecovered.prototype.productSku = null;
113625
+
113009
113626
  /**
113010
113627
  * Creates a new SubscriptionRecovered instance using the specified properties.
113011
113628
  * @function create
@@ -113065,6 +113682,8 @@ $root.SubscriptionRecovered = (function() {
113065
113682
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
113066
113683
  if (message.membership != null && message.hasOwnProperty("membership"))
113067
113684
  writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
113685
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
113686
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
113068
113687
  return writer;
113069
113688
  };
113070
113689
 
@@ -113153,6 +113772,9 @@ $root.SubscriptionRecovered = (function() {
113153
113772
  case 16:
113154
113773
  message.membership = reader.int32();
113155
113774
  break;
113775
+ case 17:
113776
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
113777
+ break;
113156
113778
  default:
113157
113779
  reader.skipType(tag & 7);
113158
113780
  break;
@@ -113280,6 +113902,11 @@ $root.SubscriptionRecovered = (function() {
113280
113902
  case 1:
113281
113903
  break;
113282
113904
  }
113905
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
113906
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
113907
+ if (error)
113908
+ return "productSku." + error;
113909
+ }
113283
113910
  return null;
113284
113911
  };
113285
113912
 
@@ -113458,6 +114085,11 @@ $root.SubscriptionRecovered = (function() {
113458
114085
  message.membership = 1;
113459
114086
  break;
113460
114087
  }
114088
+ if (object.productSku != null) {
114089
+ if (typeof object.productSku !== "object")
114090
+ throw TypeError(".SubscriptionRecovered.productSku: object expected");
114091
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
114092
+ }
113461
114093
  return message;
113462
114094
  };
113463
114095
 
@@ -113512,6 +114144,7 @@ $root.SubscriptionRecovered = (function() {
113512
114144
  object.renewalCount = options.longs === String ? "0" : 0;
113513
114145
  object.id = 0;
113514
114146
  object.membership = options.enums === String ? "PRIMARY" : 0;
114147
+ object.productSku = null;
113515
114148
  }
113516
114149
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
113517
114150
  if (typeof message.updatedOn === "number")
@@ -113564,6 +114197,8 @@ $root.SubscriptionRecovered = (function() {
113564
114197
  }
113565
114198
  if (message.membership != null && message.hasOwnProperty("membership"))
113566
114199
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
114200
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
114201
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
113567
114202
  return object;
113568
114203
  };
113569
114204
 
@@ -113602,6 +114237,7 @@ $root.SubscriptionAmended = (function() {
113602
114237
  * @property {number|null} [id] SubscriptionAmended id
113603
114238
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionAmended terms
113604
114239
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionAmended membership
114240
+ * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionAmended productSku
113605
114241
  */
113606
114242
 
113607
114243
  /**
@@ -113741,6 +114377,14 @@ $root.SubscriptionAmended = (function() {
113741
114377
  */
113742
114378
  SubscriptionAmended.prototype.membership = 0;
113743
114379
 
114380
+ /**
114381
+ * SubscriptionAmended productSku.
114382
+ * @member {subscription.ISubscriptionProductSku|null|undefined} productSku
114383
+ * @memberof SubscriptionAmended
114384
+ * @instance
114385
+ */
114386
+ SubscriptionAmended.prototype.productSku = null;
114387
+
113744
114388
  /**
113745
114389
  * Creates a new SubscriptionAmended instance using the specified properties.
113746
114390
  * @function create
@@ -113800,6 +114444,8 @@ $root.SubscriptionAmended = (function() {
113800
114444
  $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
113801
114445
  if (message.membership != null && message.hasOwnProperty("membership"))
113802
114446
  writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
114447
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
114448
+ $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
113803
114449
  return writer;
113804
114450
  };
113805
114451
 
@@ -113888,6 +114534,9 @@ $root.SubscriptionAmended = (function() {
113888
114534
  case 16:
113889
114535
  message.membership = reader.int32();
113890
114536
  break;
114537
+ case 17:
114538
+ message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
114539
+ break;
113891
114540
  default:
113892
114541
  reader.skipType(tag & 7);
113893
114542
  break;
@@ -114015,6 +114664,11 @@ $root.SubscriptionAmended = (function() {
114015
114664
  case 1:
114016
114665
  break;
114017
114666
  }
114667
+ if (message.productSku != null && message.hasOwnProperty("productSku")) {
114668
+ var error = $root.subscription.SubscriptionProductSku.verify(message.productSku);
114669
+ if (error)
114670
+ return "productSku." + error;
114671
+ }
114018
114672
  return null;
114019
114673
  };
114020
114674
 
@@ -114193,6 +114847,11 @@ $root.SubscriptionAmended = (function() {
114193
114847
  message.membership = 1;
114194
114848
  break;
114195
114849
  }
114850
+ if (object.productSku != null) {
114851
+ if (typeof object.productSku !== "object")
114852
+ throw TypeError(".SubscriptionAmended.productSku: object expected");
114853
+ message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
114854
+ }
114196
114855
  return message;
114197
114856
  };
114198
114857
 
@@ -114247,6 +114906,7 @@ $root.SubscriptionAmended = (function() {
114247
114906
  object.renewalCount = options.longs === String ? "0" : 0;
114248
114907
  object.id = 0;
114249
114908
  object.membership = options.enums === String ? "PRIMARY" : 0;
114909
+ object.productSku = null;
114250
114910
  }
114251
114911
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
114252
114912
  if (typeof message.updatedOn === "number")
@@ -114299,6 +114959,8 @@ $root.SubscriptionAmended = (function() {
114299
114959
  }
114300
114960
  if (message.membership != null && message.hasOwnProperty("membership"))
114301
114961
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
114962
+ if (message.productSku != null && message.hasOwnProperty("productSku"))
114963
+ object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
114302
114964
  return object;
114303
114965
  };
114304
114966
 
@@ -119200,237 +119862,4 @@ $root.VirginPulseAccountLinked = (function() {
119200
119862
  return VirginPulseAccountLinked;
119201
119863
  })();
119202
119864
 
119203
- $root.UserMFAEnrollmentInitiated = (function() {
119204
-
119205
- /**
119206
- * Properties of a UserMFAEnrollmentInitiated.
119207
- * @exports IUserMFAEnrollmentInitiated
119208
- * @interface IUserMFAEnrollmentInitiated
119209
- * @property {string|null} [enabled] UserMFAEnrollmentInitiated enabled
119210
- * @property {number|null} [timestamp] UserMFAEnrollmentInitiated timestamp
119211
- * @property {string|null} [userId] UserMFAEnrollmentInitiated userId
119212
- */
119213
-
119214
- /**
119215
- * Constructs a new UserMFAEnrollmentInitiated.
119216
- * @exports UserMFAEnrollmentInitiated
119217
- * @classdesc Represents a UserMFAEnrollmentInitiated.
119218
- * @implements IUserMFAEnrollmentInitiated
119219
- * @constructor
119220
- * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
119221
- */
119222
- function UserMFAEnrollmentInitiated(properties) {
119223
- if (properties)
119224
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
119225
- if (properties[keys[i]] != null)
119226
- this[keys[i]] = properties[keys[i]];
119227
- }
119228
-
119229
- /**
119230
- * UserMFAEnrollmentInitiated timestamp.
119231
- * @member {number} timestamp
119232
- * @memberof UserMFAEnrollmentInitiated
119233
- * @instance
119234
- */
119235
- UserMFAEnrollmentInitiated.prototype.timestamp = "";
119236
-
119237
- /**
119238
- * UserMFAEnrollmentInitiated enabled.
119239
- * @member {string} enabled
119240
- * @memberof UserMFAEnrollmentInitiated
119241
- * @instance
119242
- */
119243
- UserMFAEnrollmentInitiated.prototype.enabled = "";
119244
-
119245
- /**
119246
- * UserMFAEnrollmentInitiated userId.
119247
- * @member {string} userId
119248
- * @memberof UserMFAEnrollmentInitiated
119249
- * @instance
119250
- */
119251
- UserMFAEnrollmentInitiated.prototype.userId = "";
119252
-
119253
- /**
119254
- * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
119255
- * @function create
119256
- * @memberof UserMFAEnrollmentInitiated
119257
- * @static
119258
- * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
119259
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
119260
- */
119261
- UserMFAEnrollmentInitiated.create = function create(properties) {
119262
- return new UserMFAEnrollmentInitiated(properties);
119263
- };
119264
-
119265
- /**
119266
- * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
119267
- * @function encode
119268
- * @memberof UserMFAEnrollmentInitiated
119269
- * @static
119270
- * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
119271
- * @param {$protobuf.Writer} [writer] Writer to encode to
119272
- * @returns {$protobuf.Writer} Writer
119273
- */
119274
- UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
119275
- if (!writer)
119276
- writer = $Writer.create();
119277
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
119278
- writer.uint32(/* id 2, wireType 2 =*/18).number(message.timestamp);
119279
- if (message.enabled != null && message.hasOwnProperty("enabled"))
119280
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.enabled);
119281
- if (message.userId != null && message.hasOwnProperty("userId"))
119282
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
119283
- return writer;
119284
- };
119285
-
119286
- /**
119287
- * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
119288
- * @function encodeDelimited
119289
- * @memberof UserMFAEnrollmentInitiated
119290
- * @static
119291
- * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
119292
- * @param {$protobuf.Writer} [writer] Writer to encode to
119293
- * @returns {$protobuf.Writer} Writer
119294
- */
119295
- UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
119296
- return this.encode(message, writer).ldelim();
119297
- };
119298
-
119299
- /**
119300
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
119301
- * @function decode
119302
- * @memberof UserMFAEnrollmentInitiated
119303
- * @static
119304
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
119305
- * @param {string} [length] Message length if known beforehand
119306
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
119307
- * @throws {Error} If the payload is not a reader or valid buffer
119308
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
119309
- */
119310
- UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
119311
- if (!(reader instanceof $Reader))
119312
- reader = $Reader.create(reader);
119313
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
119314
- while (reader.pos < end) {
119315
- var tag = reader.uint32();
119316
- switch (tag >>> 3) {
119317
- case 1:
119318
- message.enabled = reader.string();
119319
- break;
119320
- case 2:
119321
- message.userId = reader.string();
119322
- break;
119323
- case 3:
119324
- message.timestamp = reader.number();
119325
- break;
119326
- default:
119327
- reader.skipType(tag & 7);
119328
- break;
119329
- }
119330
- }
119331
- return message;
119332
- };
119333
-
119334
- /**
119335
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
119336
- * @function decodeDelimited
119337
- * @memberof UserMFAEnrollmentInitiated
119338
- * @static
119339
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
119340
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
119341
- * @throws {Error} If the payload is not a reader or valid buffer
119342
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
119343
- */
119344
- UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
119345
- if (!(reader instanceof $Reader))
119346
- reader = new $Reader(reader);
119347
- return this.decode(reader, reader.uint32());
119348
- };
119349
-
119350
- /**
119351
- * Verifies a UserMFAEnrollmentInitiated message.
119352
- * @function verify
119353
- * @memberof UserMFAEnrollmentInitiated
119354
- * @static
119355
- * @param {Object.<string,*>} message Plain object to verify
119356
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
119357
- */
119358
- UserMFAEnrollmentInitiated.verify = function verify(message) {
119359
- if (typeof message !== "object" || message === null)
119360
- return "object expected";
119361
- if (message.enabled != null && message.hasOwnProperty("enabled"))
119362
- if (!$util.isString(message.enabled))
119363
- return "enabled: string expected";
119364
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
119365
- if (!$util.isString(message.timestamp))
119366
- return "timestamp: number expected";
119367
- if (message.userId != null && message.hasOwnProperty("userId"))
119368
- if (!$util.isString(message.userId))
119369
- return "userId: string expected";
119370
- return null;
119371
- };
119372
-
119373
- /**
119374
- * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
119375
- * @function fromObject
119376
- * @memberof UserMFAEnrollmentInitiated
119377
- * @static
119378
- * @param {Object.<string,*>} object Plain object
119379
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
119380
- */
119381
- UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
119382
- if (object instanceof $root.UserMFAEnrollmentInitiated)
119383
- return object;
119384
- var message = new $root.UserMFAEnrollmentInitiated();
119385
- if (object.enabled != null)
119386
- message.enabled = String(object.enabled);
119387
- if (object.timestamp != null)
119388
- message.timestamp = String(object.timestamp);
119389
- if (object.userId != null)
119390
- message.userId = String(object.userId);
119391
- return message;
119392
- };
119393
-
119394
- /**
119395
- * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
119396
- * @function toObject
119397
- * @memberof UserMFAEnrollmentInitiated
119398
- * @static
119399
- * @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
119400
- * @param {$protobuf.IConversionOptions} [options] Conversion options
119401
- * @returns {Object.<string,*>} Plain object
119402
- */
119403
- UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
119404
- if (!options)
119405
- options = {};
119406
- var object = {};
119407
- if (options.defaults) {
119408
- object.enabled = "";
119409
- object.userId = "";
119410
- object.timestamp = "";
119411
- }
119412
- if (message.enabled != null && message.hasOwnProperty("enabled"))
119413
- object.userId = message.enabled;
119414
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
119415
- object.userId = message.timestamp;
119416
- if (message.userId != null && message.hasOwnProperty("userId"))
119417
- object.userId = message.userId;
119418
- return object;
119419
- };
119420
-
119421
- /**
119422
- * Converts this UserMFAEnrollmentInitiated to JSON.
119423
- * @function toJSON
119424
- * @memberof UserMFAEnrollmentInitiated
119425
- * @instance
119426
- * @returns {Object.<string,*>} JSON object
119427
- */
119428
- UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
119429
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
119430
- };
119431
-
119432
- return UserMFAEnrollmentInitiated;
119433
- })();
119434
-
119435
-
119436
119865
  module.exports = $root;