@headspace/protos-events 1.178.0 → 1.179.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.d.ts CHANGED
@@ -11131,6 +11131,102 @@ export class UserDomainDeleted implements IUserDomainDeleted {
11131
11131
  public toJSON(): { [k: string]: any };
11132
11132
  }
11133
11133
 
11134
+ /** Properties of a UserDomainEnabledPhiProtection. */
11135
+ export interface IUserDomainEnabledPhiProtection {
11136
+
11137
+ /** UserDomainEnabledPhiProtection hsId */
11138
+ hsId?: (string|null);
11139
+
11140
+ /** UserDomainEnabledPhiProtection updatedAt */
11141
+ updatedAt?: (number|Long|null);
11142
+ }
11143
+
11144
+ /** Represents a UserDomainEnabledPhiProtection. */
11145
+ export class UserDomainEnabledPhiProtection implements IUserDomainEnabledPhiProtection {
11146
+
11147
+ /**
11148
+ * Constructs a new UserDomainEnabledPhiProtection.
11149
+ * @param [properties] Properties to set
11150
+ */
11151
+ constructor(properties?: IUserDomainEnabledPhiProtection);
11152
+
11153
+ /** UserDomainEnabledPhiProtection hsId. */
11154
+ public hsId: string;
11155
+
11156
+ /** UserDomainEnabledPhiProtection updatedAt. */
11157
+ public updatedAt: (number|Long);
11158
+
11159
+ /**
11160
+ * Creates a new UserDomainEnabledPhiProtection instance using the specified properties.
11161
+ * @param [properties] Properties to set
11162
+ * @returns UserDomainEnabledPhiProtection instance
11163
+ */
11164
+ public static create(properties?: IUserDomainEnabledPhiProtection): UserDomainEnabledPhiProtection;
11165
+
11166
+ /**
11167
+ * Encodes the specified UserDomainEnabledPhiProtection message. Does not implicitly {@link UserDomainEnabledPhiProtection.verify|verify} messages.
11168
+ * @param message UserDomainEnabledPhiProtection message or plain object to encode
11169
+ * @param [writer] Writer to encode to
11170
+ * @returns Writer
11171
+ */
11172
+ public static encode(message: IUserDomainEnabledPhiProtection, writer?: $protobuf.Writer): $protobuf.Writer;
11173
+
11174
+ /**
11175
+ * Encodes the specified UserDomainEnabledPhiProtection message, length delimited. Does not implicitly {@link UserDomainEnabledPhiProtection.verify|verify} messages.
11176
+ * @param message UserDomainEnabledPhiProtection message or plain object to encode
11177
+ * @param [writer] Writer to encode to
11178
+ * @returns Writer
11179
+ */
11180
+ public static encodeDelimited(message: IUserDomainEnabledPhiProtection, writer?: $protobuf.Writer): $protobuf.Writer;
11181
+
11182
+ /**
11183
+ * Decodes a UserDomainEnabledPhiProtection message from the specified reader or buffer.
11184
+ * @param reader Reader or buffer to decode from
11185
+ * @param [length] Message length if known beforehand
11186
+ * @returns UserDomainEnabledPhiProtection
11187
+ * @throws {Error} If the payload is not a reader or valid buffer
11188
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11189
+ */
11190
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDomainEnabledPhiProtection;
11191
+
11192
+ /**
11193
+ * Decodes a UserDomainEnabledPhiProtection message from the specified reader or buffer, length delimited.
11194
+ * @param reader Reader or buffer to decode from
11195
+ * @returns UserDomainEnabledPhiProtection
11196
+ * @throws {Error} If the payload is not a reader or valid buffer
11197
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11198
+ */
11199
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDomainEnabledPhiProtection;
11200
+
11201
+ /**
11202
+ * Verifies a UserDomainEnabledPhiProtection message.
11203
+ * @param message Plain object to verify
11204
+ * @returns `null` if valid, otherwise the reason why it is not
11205
+ */
11206
+ public static verify(message: { [k: string]: any }): (string|null);
11207
+
11208
+ /**
11209
+ * Creates a UserDomainEnabledPhiProtection message from a plain object. Also converts values to their respective internal types.
11210
+ * @param object Plain object
11211
+ * @returns UserDomainEnabledPhiProtection
11212
+ */
11213
+ public static fromObject(object: { [k: string]: any }): UserDomainEnabledPhiProtection;
11214
+
11215
+ /**
11216
+ * Creates a plain object from a UserDomainEnabledPhiProtection message. Also converts values to other types if specified.
11217
+ * @param message UserDomainEnabledPhiProtection
11218
+ * @param [options] Conversion options
11219
+ * @returns Plain object
11220
+ */
11221
+ public static toObject(message: UserDomainEnabledPhiProtection, options?: $protobuf.IConversionOptions): { [k: string]: any };
11222
+
11223
+ /**
11224
+ * Converts this UserDomainEnabledPhiProtection to JSON.
11225
+ * @returns JSON object
11226
+ */
11227
+ public toJSON(): { [k: string]: any };
11228
+ }
11229
+
11134
11230
  /** Properties of a UserDomainLoggedIn. */
11135
11231
  export interface IUserDomainLoggedIn {
11136
11232
 
package/lib/index.js CHANGED
@@ -30381,6 +30381,230 @@ $root.UserDomainDeleted = (function() {
30381
30381
  return UserDomainDeleted;
30382
30382
  })();
30383
30383
 
30384
+ $root.UserDomainEnabledPhiProtection = (function() {
30385
+
30386
+ /**
30387
+ * Properties of a UserDomainEnabledPhiProtection.
30388
+ * @exports IUserDomainEnabledPhiProtection
30389
+ * @interface IUserDomainEnabledPhiProtection
30390
+ * @property {string|null} [hsId] UserDomainEnabledPhiProtection hsId
30391
+ * @property {number|Long|null} [updatedAt] UserDomainEnabledPhiProtection updatedAt
30392
+ */
30393
+
30394
+ /**
30395
+ * Constructs a new UserDomainEnabledPhiProtection.
30396
+ * @exports UserDomainEnabledPhiProtection
30397
+ * @classdesc Represents a UserDomainEnabledPhiProtection.
30398
+ * @implements IUserDomainEnabledPhiProtection
30399
+ * @constructor
30400
+ * @param {IUserDomainEnabledPhiProtection=} [properties] Properties to set
30401
+ */
30402
+ function UserDomainEnabledPhiProtection(properties) {
30403
+ if (properties)
30404
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
30405
+ if (properties[keys[i]] != null)
30406
+ this[keys[i]] = properties[keys[i]];
30407
+ }
30408
+
30409
+ /**
30410
+ * UserDomainEnabledPhiProtection hsId.
30411
+ * @member {string} hsId
30412
+ * @memberof UserDomainEnabledPhiProtection
30413
+ * @instance
30414
+ */
30415
+ UserDomainEnabledPhiProtection.prototype.hsId = "";
30416
+
30417
+ /**
30418
+ * UserDomainEnabledPhiProtection updatedAt.
30419
+ * @member {number|Long} updatedAt
30420
+ * @memberof UserDomainEnabledPhiProtection
30421
+ * @instance
30422
+ */
30423
+ UserDomainEnabledPhiProtection.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
30424
+
30425
+ /**
30426
+ * Creates a new UserDomainEnabledPhiProtection instance using the specified properties.
30427
+ * @function create
30428
+ * @memberof UserDomainEnabledPhiProtection
30429
+ * @static
30430
+ * @param {IUserDomainEnabledPhiProtection=} [properties] Properties to set
30431
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection instance
30432
+ */
30433
+ UserDomainEnabledPhiProtection.create = function create(properties) {
30434
+ return new UserDomainEnabledPhiProtection(properties);
30435
+ };
30436
+
30437
+ /**
30438
+ * Encodes the specified UserDomainEnabledPhiProtection message. Does not implicitly {@link UserDomainEnabledPhiProtection.verify|verify} messages.
30439
+ * @function encode
30440
+ * @memberof UserDomainEnabledPhiProtection
30441
+ * @static
30442
+ * @param {IUserDomainEnabledPhiProtection} message UserDomainEnabledPhiProtection message or plain object to encode
30443
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30444
+ * @returns {$protobuf.Writer} Writer
30445
+ */
30446
+ UserDomainEnabledPhiProtection.encode = function encode(message, writer) {
30447
+ if (!writer)
30448
+ writer = $Writer.create();
30449
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
30450
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
30451
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
30452
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
30453
+ return writer;
30454
+ };
30455
+
30456
+ /**
30457
+ * Encodes the specified UserDomainEnabledPhiProtection message, length delimited. Does not implicitly {@link UserDomainEnabledPhiProtection.verify|verify} messages.
30458
+ * @function encodeDelimited
30459
+ * @memberof UserDomainEnabledPhiProtection
30460
+ * @static
30461
+ * @param {IUserDomainEnabledPhiProtection} message UserDomainEnabledPhiProtection message or plain object to encode
30462
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30463
+ * @returns {$protobuf.Writer} Writer
30464
+ */
30465
+ UserDomainEnabledPhiProtection.encodeDelimited = function encodeDelimited(message, writer) {
30466
+ return this.encode(message, writer).ldelim();
30467
+ };
30468
+
30469
+ /**
30470
+ * Decodes a UserDomainEnabledPhiProtection message from the specified reader or buffer.
30471
+ * @function decode
30472
+ * @memberof UserDomainEnabledPhiProtection
30473
+ * @static
30474
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30475
+ * @param {number} [length] Message length if known beforehand
30476
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection
30477
+ * @throws {Error} If the payload is not a reader or valid buffer
30478
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30479
+ */
30480
+ UserDomainEnabledPhiProtection.decode = function decode(reader, length) {
30481
+ if (!(reader instanceof $Reader))
30482
+ reader = $Reader.create(reader);
30483
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainEnabledPhiProtection();
30484
+ while (reader.pos < end) {
30485
+ var tag = reader.uint32();
30486
+ switch (tag >>> 3) {
30487
+ case 1:
30488
+ message.hsId = reader.string();
30489
+ break;
30490
+ case 2:
30491
+ message.updatedAt = reader.uint64();
30492
+ break;
30493
+ default:
30494
+ reader.skipType(tag & 7);
30495
+ break;
30496
+ }
30497
+ }
30498
+ return message;
30499
+ };
30500
+
30501
+ /**
30502
+ * Decodes a UserDomainEnabledPhiProtection message from the specified reader or buffer, length delimited.
30503
+ * @function decodeDelimited
30504
+ * @memberof UserDomainEnabledPhiProtection
30505
+ * @static
30506
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30507
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection
30508
+ * @throws {Error} If the payload is not a reader or valid buffer
30509
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30510
+ */
30511
+ UserDomainEnabledPhiProtection.decodeDelimited = function decodeDelimited(reader) {
30512
+ if (!(reader instanceof $Reader))
30513
+ reader = new $Reader(reader);
30514
+ return this.decode(reader, reader.uint32());
30515
+ };
30516
+
30517
+ /**
30518
+ * Verifies a UserDomainEnabledPhiProtection message.
30519
+ * @function verify
30520
+ * @memberof UserDomainEnabledPhiProtection
30521
+ * @static
30522
+ * @param {Object.<string,*>} message Plain object to verify
30523
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
30524
+ */
30525
+ UserDomainEnabledPhiProtection.verify = function verify(message) {
30526
+ if (typeof message !== "object" || message === null)
30527
+ return "object expected";
30528
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
30529
+ if (!$util.isString(message.hsId))
30530
+ return "hsId: string expected";
30531
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
30532
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
30533
+ return "updatedAt: integer|Long expected";
30534
+ return null;
30535
+ };
30536
+
30537
+ /**
30538
+ * Creates a UserDomainEnabledPhiProtection message from a plain object. Also converts values to their respective internal types.
30539
+ * @function fromObject
30540
+ * @memberof UserDomainEnabledPhiProtection
30541
+ * @static
30542
+ * @param {Object.<string,*>} object Plain object
30543
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection
30544
+ */
30545
+ UserDomainEnabledPhiProtection.fromObject = function fromObject(object) {
30546
+ if (object instanceof $root.UserDomainEnabledPhiProtection)
30547
+ return object;
30548
+ var message = new $root.UserDomainEnabledPhiProtection();
30549
+ if (object.hsId != null)
30550
+ message.hsId = String(object.hsId);
30551
+ if (object.updatedAt != null)
30552
+ if ($util.Long)
30553
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
30554
+ else if (typeof object.updatedAt === "string")
30555
+ message.updatedAt = parseInt(object.updatedAt, 10);
30556
+ else if (typeof object.updatedAt === "number")
30557
+ message.updatedAt = object.updatedAt;
30558
+ else if (typeof object.updatedAt === "object")
30559
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
30560
+ return message;
30561
+ };
30562
+
30563
+ /**
30564
+ * Creates a plain object from a UserDomainEnabledPhiProtection message. Also converts values to other types if specified.
30565
+ * @function toObject
30566
+ * @memberof UserDomainEnabledPhiProtection
30567
+ * @static
30568
+ * @param {UserDomainEnabledPhiProtection} message UserDomainEnabledPhiProtection
30569
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
30570
+ * @returns {Object.<string,*>} Plain object
30571
+ */
30572
+ UserDomainEnabledPhiProtection.toObject = function toObject(message, options) {
30573
+ if (!options)
30574
+ options = {};
30575
+ var object = {};
30576
+ if (options.defaults) {
30577
+ object.hsId = "";
30578
+ if ($util.Long) {
30579
+ var long = new $util.Long(0, 0, true);
30580
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
30581
+ } else
30582
+ object.updatedAt = options.longs === String ? "0" : 0;
30583
+ }
30584
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
30585
+ object.hsId = message.hsId;
30586
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
30587
+ if (typeof message.updatedAt === "number")
30588
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
30589
+ else
30590
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
30591
+ return object;
30592
+ };
30593
+
30594
+ /**
30595
+ * Converts this UserDomainEnabledPhiProtection to JSON.
30596
+ * @function toJSON
30597
+ * @memberof UserDomainEnabledPhiProtection
30598
+ * @instance
30599
+ * @returns {Object.<string,*>} JSON object
30600
+ */
30601
+ UserDomainEnabledPhiProtection.prototype.toJSON = function toJSON() {
30602
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30603
+ };
30604
+
30605
+ return UserDomainEnabledPhiProtection;
30606
+ })();
30607
+
30384
30608
  $root.UserDomainLoggedIn = (function() {
30385
30609
 
30386
30610
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.178.0"
19
+ "version": "1.179.0"
20
20
  }