@headspace/protos-events 1.42.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/lib/index.d.ts +89 -105
  2. package/lib/index.js +254 -302
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1984,131 +1984,115 @@ export namespace com {
1984
1984
  }
1985
1985
  }
1986
1986
  }
1987
+ }
1988
+ }
1987
1989
 
1988
- /** Namespace auth. */
1989
- namespace auth {
1990
-
1991
- /** Namespace grpc. */
1992
- namespace grpc {
1993
-
1994
- /** Namespace auth0. */
1995
- namespace auth0 {
1996
-
1997
- /** Namespace events. */
1998
- namespace events {
1999
-
2000
- /** Properties of a UserPasswordResetCreated. */
2001
- interface IUserPasswordResetCreated {
1990
+ /** Properties of a UserPasswordResetCreated. */
1991
+ export interface IUserPasswordResetCreated {
2002
1992
 
2003
- /** UserPasswordResetCreated email */
2004
- email?: (string|null);
1993
+ /** UserPasswordResetCreated hsId */
1994
+ hsId?: (string|null);
2005
1995
 
2006
- /** UserPasswordResetCreated ticket */
2007
- ticket?: (string|null);
1996
+ /** UserPasswordResetCreated email */
1997
+ email?: (string|null);
2008
1998
 
2009
- /** UserPasswordResetCreated hsUserId */
2010
- hsUserId?: (string|null);
1999
+ /** UserPasswordResetCreated timestampMillis */
2000
+ timestampMillis?: (number|Long|null);
2011
2001
 
2012
- /** UserPasswordResetCreated timestampMillis */
2013
- timestampMillis?: (number|Long|null);
2014
- }
2002
+ /** UserPasswordResetCreated auth0Ticket */
2003
+ auth0Ticket?: (string|null);
2004
+ }
2015
2005
 
2016
- /** Represents a UserPasswordResetCreated. */
2017
- class UserPasswordResetCreated implements IUserPasswordResetCreated {
2006
+ /** Represents a UserPasswordResetCreated. */
2007
+ export class UserPasswordResetCreated implements IUserPasswordResetCreated {
2018
2008
 
2019
- /**
2020
- * Constructs a new UserPasswordResetCreated.
2021
- * @param [properties] Properties to set
2022
- */
2023
- constructor(properties?: com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated);
2009
+ /**
2010
+ * Constructs a new UserPasswordResetCreated.
2011
+ * @param [properties] Properties to set
2012
+ */
2013
+ constructor(properties?: IUserPasswordResetCreated);
2024
2014
 
2025
- /** UserPasswordResetCreated email. */
2026
- public email: string;
2015
+ /** UserPasswordResetCreated hsId. */
2016
+ public hsId: string;
2027
2017
 
2028
- /** UserPasswordResetCreated ticket. */
2029
- public ticket: string;
2018
+ /** UserPasswordResetCreated email. */
2019
+ public email: string;
2030
2020
 
2031
- /** UserPasswordResetCreated hsUserId. */
2032
- public hsUserId: string;
2021
+ /** UserPasswordResetCreated timestampMillis. */
2022
+ public timestampMillis: (number|Long);
2033
2023
 
2034
- /** UserPasswordResetCreated timestampMillis. */
2035
- public timestampMillis: (number|Long);
2024
+ /** UserPasswordResetCreated auth0Ticket. */
2025
+ public auth0Ticket: string;
2036
2026
 
2037
- /**
2038
- * Creates a new UserPasswordResetCreated instance using the specified properties.
2039
- * @param [properties] Properties to set
2040
- * @returns UserPasswordResetCreated instance
2041
- */
2042
- public static create(properties?: com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated): com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated;
2027
+ /**
2028
+ * Creates a new UserPasswordResetCreated instance using the specified properties.
2029
+ * @param [properties] Properties to set
2030
+ * @returns UserPasswordResetCreated instance
2031
+ */
2032
+ public static create(properties?: IUserPasswordResetCreated): UserPasswordResetCreated;
2043
2033
 
2044
- /**
2045
- * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
2046
- * @param message UserPasswordResetCreated message or plain object to encode
2047
- * @param [writer] Writer to encode to
2048
- * @returns Writer
2049
- */
2050
- public static encode(message: com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
2034
+ /**
2035
+ * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
2036
+ * @param message UserPasswordResetCreated message or plain object to encode
2037
+ * @param [writer] Writer to encode to
2038
+ * @returns Writer
2039
+ */
2040
+ public static encode(message: IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
2051
2041
 
2052
- /**
2053
- * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
2054
- * @param message UserPasswordResetCreated message or plain object to encode
2055
- * @param [writer] Writer to encode to
2056
- * @returns Writer
2057
- */
2058
- public static encodeDelimited(message: com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
2042
+ /**
2043
+ * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
2044
+ * @param message UserPasswordResetCreated message or plain object to encode
2045
+ * @param [writer] Writer to encode to
2046
+ * @returns Writer
2047
+ */
2048
+ public static encodeDelimited(message: IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
2059
2049
 
2060
- /**
2061
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
2062
- * @param reader Reader or buffer to decode from
2063
- * @param [length] Message length if known beforehand
2064
- * @returns UserPasswordResetCreated
2065
- * @throws {Error} If the payload is not a reader or valid buffer
2066
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2067
- */
2068
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated;
2050
+ /**
2051
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
2052
+ * @param reader Reader or buffer to decode from
2053
+ * @param [length] Message length if known beforehand
2054
+ * @returns UserPasswordResetCreated
2055
+ * @throws {Error} If the payload is not a reader or valid buffer
2056
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2057
+ */
2058
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordResetCreated;
2069
2059
 
2070
- /**
2071
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
2072
- * @param reader Reader or buffer to decode from
2073
- * @returns UserPasswordResetCreated
2074
- * @throws {Error} If the payload is not a reader or valid buffer
2075
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2076
- */
2077
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated;
2060
+ /**
2061
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
2062
+ * @param reader Reader or buffer to decode from
2063
+ * @returns UserPasswordResetCreated
2064
+ * @throws {Error} If the payload is not a reader or valid buffer
2065
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2066
+ */
2067
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordResetCreated;
2078
2068
 
2079
- /**
2080
- * Verifies a UserPasswordResetCreated message.
2081
- * @param message Plain object to verify
2082
- * @returns `null` if valid, otherwise the reason why it is not
2083
- */
2084
- public static verify(message: { [k: string]: any }): (string|null);
2069
+ /**
2070
+ * Verifies a UserPasswordResetCreated message.
2071
+ * @param message Plain object to verify
2072
+ * @returns `null` if valid, otherwise the reason why it is not
2073
+ */
2074
+ public static verify(message: { [k: string]: any }): (string|null);
2085
2075
 
2086
- /**
2087
- * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
2088
- * @param object Plain object
2089
- * @returns UserPasswordResetCreated
2090
- */
2091
- public static fromObject(object: { [k: string]: any }): com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated;
2076
+ /**
2077
+ * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
2078
+ * @param object Plain object
2079
+ * @returns UserPasswordResetCreated
2080
+ */
2081
+ public static fromObject(object: { [k: string]: any }): UserPasswordResetCreated;
2092
2082
 
2093
- /**
2094
- * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
2095
- * @param message UserPasswordResetCreated
2096
- * @param [options] Conversion options
2097
- * @returns Plain object
2098
- */
2099
- public static toObject(message: com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
2083
+ /**
2084
+ * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
2085
+ * @param message UserPasswordResetCreated
2086
+ * @param [options] Conversion options
2087
+ * @returns Plain object
2088
+ */
2089
+ public static toObject(message: UserPasswordResetCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
2100
2090
 
2101
- /**
2102
- * Converts this UserPasswordResetCreated to JSON.
2103
- * @returns JSON object
2104
- */
2105
- public toJSON(): { [k: string]: any };
2106
- }
2107
- }
2108
- }
2109
- }
2110
- }
2111
- }
2091
+ /**
2092
+ * Converts this UserPasswordResetCreated to JSON.
2093
+ * @returns JSON object
2094
+ */
2095
+ public toJSON(): { [k: string]: any };
2112
2096
  }
2113
2097
 
2114
2098
  /** Properties of a CompletedActivity. */
package/lib/index.js CHANGED
@@ -4488,326 +4488,278 @@ $root.com = (function() {
4488
4488
  return userdomain;
4489
4489
  })();
4490
4490
 
4491
- headspace.auth = (function() {
4492
-
4493
- /**
4494
- * Namespace auth.
4495
- * @memberof com.headspace
4496
- * @namespace
4497
- */
4498
- var auth = {};
4499
-
4500
- auth.grpc = (function() {
4501
-
4502
- /**
4503
- * Namespace grpc.
4504
- * @memberof com.headspace.auth
4505
- * @namespace
4506
- */
4507
- var grpc = {};
4508
-
4509
- grpc.auth0 = (function() {
4510
-
4511
- /**
4512
- * Namespace auth0.
4513
- * @memberof com.headspace.auth.grpc
4514
- * @namespace
4515
- */
4516
- var auth0 = {};
4517
-
4518
- auth0.events = (function() {
4519
-
4520
- /**
4521
- * Namespace events.
4522
- * @memberof com.headspace.auth.grpc.auth0
4523
- * @namespace
4524
- */
4525
- var events = {};
4526
-
4527
- events.UserPasswordResetCreated = (function() {
4528
-
4529
- /**
4530
- * Properties of a UserPasswordResetCreated.
4531
- * @memberof com.headspace.auth.grpc.auth0.events
4532
- * @interface IUserPasswordResetCreated
4533
- * @property {string|null} [email] UserPasswordResetCreated email
4534
- * @property {string|null} [ticket] UserPasswordResetCreated ticket
4535
- * @property {string|null} [hsUserId] UserPasswordResetCreated hsUserId
4536
- * @property {number|Long|null} [timestampMillis] UserPasswordResetCreated timestampMillis
4537
- */
4538
-
4539
- /**
4540
- * Constructs a new UserPasswordResetCreated.
4541
- * @memberof com.headspace.auth.grpc.auth0.events
4542
- * @classdesc Represents a UserPasswordResetCreated.
4543
- * @implements IUserPasswordResetCreated
4544
- * @constructor
4545
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated=} [properties] Properties to set
4546
- */
4547
- function UserPasswordResetCreated(properties) {
4548
- if (properties)
4549
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4550
- if (properties[keys[i]] != null)
4551
- this[keys[i]] = properties[keys[i]];
4552
- }
4553
-
4554
- /**
4555
- * UserPasswordResetCreated email.
4556
- * @member {string} email
4557
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4558
- * @instance
4559
- */
4560
- UserPasswordResetCreated.prototype.email = "";
4561
-
4562
- /**
4563
- * UserPasswordResetCreated ticket.
4564
- * @member {string} ticket
4565
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4566
- * @instance
4567
- */
4568
- UserPasswordResetCreated.prototype.ticket = "";
4491
+ return headspace;
4492
+ })();
4569
4493
 
4570
- /**
4571
- * UserPasswordResetCreated hsUserId.
4572
- * @member {string} hsUserId
4573
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4574
- * @instance
4575
- */
4576
- UserPasswordResetCreated.prototype.hsUserId = "";
4494
+ return com;
4495
+ })();
4577
4496
 
4578
- /**
4579
- * UserPasswordResetCreated timestampMillis.
4580
- * @member {number|Long} timestampMillis
4581
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4582
- * @instance
4583
- */
4584
- UserPasswordResetCreated.prototype.timestampMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4497
+ $root.UserPasswordResetCreated = (function() {
4585
4498
 
4586
- /**
4587
- * Creates a new UserPasswordResetCreated instance using the specified properties.
4588
- * @function create
4589
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4590
- * @static
4591
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated=} [properties] Properties to set
4592
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated instance
4593
- */
4594
- UserPasswordResetCreated.create = function create(properties) {
4595
- return new UserPasswordResetCreated(properties);
4596
- };
4499
+ /**
4500
+ * Properties of a UserPasswordResetCreated.
4501
+ * @exports IUserPasswordResetCreated
4502
+ * @interface IUserPasswordResetCreated
4503
+ * @property {string|null} [hsId] UserPasswordResetCreated hsId
4504
+ * @property {string|null} [email] UserPasswordResetCreated email
4505
+ * @property {number|Long|null} [timestampMillis] UserPasswordResetCreated timestampMillis
4506
+ * @property {string|null} [auth0Ticket] UserPasswordResetCreated auth0Ticket
4507
+ */
4597
4508
 
4598
- /**
4599
- * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
4600
- * @function encode
4601
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4602
- * @static
4603
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4604
- * @param {$protobuf.Writer} [writer] Writer to encode to
4605
- * @returns {$protobuf.Writer} Writer
4606
- */
4607
- UserPasswordResetCreated.encode = function encode(message, writer) {
4608
- if (!writer)
4609
- writer = $Writer.create();
4610
- if (message.email != null && message.hasOwnProperty("email"))
4611
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
4612
- if (message.ticket != null && message.hasOwnProperty("ticket"))
4613
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.ticket);
4614
- if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
4615
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
4616
- if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
4617
- writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestampMillis);
4618
- return writer;
4619
- };
4509
+ /**
4510
+ * Constructs a new UserPasswordResetCreated.
4511
+ * @exports UserPasswordResetCreated
4512
+ * @classdesc Represents a UserPasswordResetCreated.
4513
+ * @implements IUserPasswordResetCreated
4514
+ * @constructor
4515
+ * @param {IUserPasswordResetCreated=} [properties] Properties to set
4516
+ */
4517
+ function UserPasswordResetCreated(properties) {
4518
+ if (properties)
4519
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4520
+ if (properties[keys[i]] != null)
4521
+ this[keys[i]] = properties[keys[i]];
4522
+ }
4620
4523
 
4621
- /**
4622
- * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
4623
- * @function encodeDelimited
4624
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4625
- * @static
4626
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4627
- * @param {$protobuf.Writer} [writer] Writer to encode to
4628
- * @returns {$protobuf.Writer} Writer
4629
- */
4630
- UserPasswordResetCreated.encodeDelimited = function encodeDelimited(message, writer) {
4631
- return this.encode(message, writer).ldelim();
4632
- };
4524
+ /**
4525
+ * UserPasswordResetCreated hsId.
4526
+ * @member {string} hsId
4527
+ * @memberof UserPasswordResetCreated
4528
+ * @instance
4529
+ */
4530
+ UserPasswordResetCreated.prototype.hsId = "";
4633
4531
 
4634
- /**
4635
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
4636
- * @function decode
4637
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4638
- * @static
4639
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4640
- * @param {number} [length] Message length if known beforehand
4641
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated
4642
- * @throws {Error} If the payload is not a reader or valid buffer
4643
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4644
- */
4645
- UserPasswordResetCreated.decode = function decode(reader, length) {
4646
- if (!(reader instanceof $Reader))
4647
- reader = $Reader.create(reader);
4648
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated();
4649
- while (reader.pos < end) {
4650
- var tag = reader.uint32();
4651
- switch (tag >>> 3) {
4652
- case 1:
4653
- message.email = reader.string();
4654
- break;
4655
- case 2:
4656
- message.ticket = reader.string();
4657
- break;
4658
- case 3:
4659
- message.hsUserId = reader.string();
4660
- break;
4661
- case 4:
4662
- message.timestampMillis = reader.uint64();
4663
- break;
4664
- default:
4665
- reader.skipType(tag & 7);
4666
- break;
4667
- }
4668
- }
4669
- return message;
4670
- };
4532
+ /**
4533
+ * UserPasswordResetCreated email.
4534
+ * @member {string} email
4535
+ * @memberof UserPasswordResetCreated
4536
+ * @instance
4537
+ */
4538
+ UserPasswordResetCreated.prototype.email = "";
4671
4539
 
4672
- /**
4673
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
4674
- * @function decodeDelimited
4675
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4676
- * @static
4677
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4678
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated
4679
- * @throws {Error} If the payload is not a reader or valid buffer
4680
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4681
- */
4682
- UserPasswordResetCreated.decodeDelimited = function decodeDelimited(reader) {
4683
- if (!(reader instanceof $Reader))
4684
- reader = new $Reader(reader);
4685
- return this.decode(reader, reader.uint32());
4686
- };
4540
+ /**
4541
+ * UserPasswordResetCreated timestampMillis.
4542
+ * @member {number|Long} timestampMillis
4543
+ * @memberof UserPasswordResetCreated
4544
+ * @instance
4545
+ */
4546
+ UserPasswordResetCreated.prototype.timestampMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4687
4547
 
4688
- /**
4689
- * Verifies a UserPasswordResetCreated message.
4690
- * @function verify
4691
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4692
- * @static
4693
- * @param {Object.<string,*>} message Plain object to verify
4694
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
4695
- */
4696
- UserPasswordResetCreated.verify = function verify(message) {
4697
- if (typeof message !== "object" || message === null)
4698
- return "object expected";
4699
- if (message.email != null && message.hasOwnProperty("email"))
4700
- if (!$util.isString(message.email))
4701
- return "email: string expected";
4702
- if (message.ticket != null && message.hasOwnProperty("ticket"))
4703
- if (!$util.isString(message.ticket))
4704
- return "ticket: string expected";
4705
- if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
4706
- if (!$util.isString(message.hsUserId))
4707
- return "hsUserId: string expected";
4708
- if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
4709
- if (!$util.isInteger(message.timestampMillis) && !(message.timestampMillis && $util.isInteger(message.timestampMillis.low) && $util.isInteger(message.timestampMillis.high)))
4710
- return "timestampMillis: integer|Long expected";
4711
- return null;
4712
- };
4548
+ /**
4549
+ * UserPasswordResetCreated auth0Ticket.
4550
+ * @member {string} auth0Ticket
4551
+ * @memberof UserPasswordResetCreated
4552
+ * @instance
4553
+ */
4554
+ UserPasswordResetCreated.prototype.auth0Ticket = "";
4713
4555
 
4714
- /**
4715
- * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
4716
- * @function fromObject
4717
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4718
- * @static
4719
- * @param {Object.<string,*>} object Plain object
4720
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated
4721
- */
4722
- UserPasswordResetCreated.fromObject = function fromObject(object) {
4723
- if (object instanceof $root.com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated)
4724
- return object;
4725
- var message = new $root.com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated();
4726
- if (object.email != null)
4727
- message.email = String(object.email);
4728
- if (object.ticket != null)
4729
- message.ticket = String(object.ticket);
4730
- if (object.hsUserId != null)
4731
- message.hsUserId = String(object.hsUserId);
4732
- if (object.timestampMillis != null)
4733
- if ($util.Long)
4734
- (message.timestampMillis = $util.Long.fromValue(object.timestampMillis)).unsigned = true;
4735
- else if (typeof object.timestampMillis === "string")
4736
- message.timestampMillis = parseInt(object.timestampMillis, 10);
4737
- else if (typeof object.timestampMillis === "number")
4738
- message.timestampMillis = object.timestampMillis;
4739
- else if (typeof object.timestampMillis === "object")
4740
- message.timestampMillis = new $util.LongBits(object.timestampMillis.low >>> 0, object.timestampMillis.high >>> 0).toNumber(true);
4741
- return message;
4742
- };
4556
+ /**
4557
+ * Creates a new UserPasswordResetCreated instance using the specified properties.
4558
+ * @function create
4559
+ * @memberof UserPasswordResetCreated
4560
+ * @static
4561
+ * @param {IUserPasswordResetCreated=} [properties] Properties to set
4562
+ * @returns {UserPasswordResetCreated} UserPasswordResetCreated instance
4563
+ */
4564
+ UserPasswordResetCreated.create = function create(properties) {
4565
+ return new UserPasswordResetCreated(properties);
4566
+ };
4743
4567
 
4744
- /**
4745
- * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
4746
- * @function toObject
4747
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4748
- * @static
4749
- * @param {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} message UserPasswordResetCreated
4750
- * @param {$protobuf.IConversionOptions} [options] Conversion options
4751
- * @returns {Object.<string,*>} Plain object
4752
- */
4753
- UserPasswordResetCreated.toObject = function toObject(message, options) {
4754
- if (!options)
4755
- options = {};
4756
- var object = {};
4757
- if (options.defaults) {
4758
- object.email = "";
4759
- object.ticket = "";
4760
- object.hsUserId = "";
4761
- if ($util.Long) {
4762
- var long = new $util.Long(0, 0, true);
4763
- object.timestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4764
- } else
4765
- object.timestampMillis = options.longs === String ? "0" : 0;
4766
- }
4767
- if (message.email != null && message.hasOwnProperty("email"))
4768
- object.email = message.email;
4769
- if (message.ticket != null && message.hasOwnProperty("ticket"))
4770
- object.ticket = message.ticket;
4771
- if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
4772
- object.hsUserId = message.hsUserId;
4773
- if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
4774
- if (typeof message.timestampMillis === "number")
4775
- object.timestampMillis = options.longs === String ? String(message.timestampMillis) : message.timestampMillis;
4776
- else
4777
- object.timestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMillis) : options.longs === Number ? new $util.LongBits(message.timestampMillis.low >>> 0, message.timestampMillis.high >>> 0).toNumber(true) : message.timestampMillis;
4778
- return object;
4779
- };
4568
+ /**
4569
+ * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
4570
+ * @function encode
4571
+ * @memberof UserPasswordResetCreated
4572
+ * @static
4573
+ * @param {IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4574
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4575
+ * @returns {$protobuf.Writer} Writer
4576
+ */
4577
+ UserPasswordResetCreated.encode = function encode(message, writer) {
4578
+ if (!writer)
4579
+ writer = $Writer.create();
4580
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4581
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
4582
+ if (message.email != null && message.hasOwnProperty("email"))
4583
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
4584
+ if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
4585
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestampMillis);
4586
+ if (message.auth0Ticket != null && message.hasOwnProperty("auth0Ticket"))
4587
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.auth0Ticket);
4588
+ return writer;
4589
+ };
4780
4590
 
4781
- /**
4782
- * Converts this UserPasswordResetCreated to JSON.
4783
- * @function toJSON
4784
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4785
- * @instance
4786
- * @returns {Object.<string,*>} JSON object
4787
- */
4788
- UserPasswordResetCreated.prototype.toJSON = function toJSON() {
4789
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4790
- };
4591
+ /**
4592
+ * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link UserPasswordResetCreated.verify|verify} messages.
4593
+ * @function encodeDelimited
4594
+ * @memberof UserPasswordResetCreated
4595
+ * @static
4596
+ * @param {IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4597
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4598
+ * @returns {$protobuf.Writer} Writer
4599
+ */
4600
+ UserPasswordResetCreated.encodeDelimited = function encodeDelimited(message, writer) {
4601
+ return this.encode(message, writer).ldelim();
4602
+ };
4791
4603
 
4792
- return UserPasswordResetCreated;
4793
- })();
4604
+ /**
4605
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
4606
+ * @function decode
4607
+ * @memberof UserPasswordResetCreated
4608
+ * @static
4609
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4610
+ * @param {number} [length] Message length if known beforehand
4611
+ * @returns {UserPasswordResetCreated} UserPasswordResetCreated
4612
+ * @throws {Error} If the payload is not a reader or valid buffer
4613
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4614
+ */
4615
+ UserPasswordResetCreated.decode = function decode(reader, length) {
4616
+ if (!(reader instanceof $Reader))
4617
+ reader = $Reader.create(reader);
4618
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordResetCreated();
4619
+ while (reader.pos < end) {
4620
+ var tag = reader.uint32();
4621
+ switch (tag >>> 3) {
4622
+ case 1:
4623
+ message.hsId = reader.string();
4624
+ break;
4625
+ case 2:
4626
+ message.email = reader.string();
4627
+ break;
4628
+ case 3:
4629
+ message.timestampMillis = reader.uint64();
4630
+ break;
4631
+ case 6:
4632
+ message.auth0Ticket = reader.string();
4633
+ break;
4634
+ default:
4635
+ reader.skipType(tag & 7);
4636
+ break;
4637
+ }
4638
+ }
4639
+ return message;
4640
+ };
4794
4641
 
4795
- return events;
4796
- })();
4642
+ /**
4643
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
4644
+ * @function decodeDelimited
4645
+ * @memberof UserPasswordResetCreated
4646
+ * @static
4647
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4648
+ * @returns {UserPasswordResetCreated} UserPasswordResetCreated
4649
+ * @throws {Error} If the payload is not a reader or valid buffer
4650
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4651
+ */
4652
+ UserPasswordResetCreated.decodeDelimited = function decodeDelimited(reader) {
4653
+ if (!(reader instanceof $Reader))
4654
+ reader = new $Reader(reader);
4655
+ return this.decode(reader, reader.uint32());
4656
+ };
4797
4657
 
4798
- return auth0;
4799
- })();
4658
+ /**
4659
+ * Verifies a UserPasswordResetCreated message.
4660
+ * @function verify
4661
+ * @memberof UserPasswordResetCreated
4662
+ * @static
4663
+ * @param {Object.<string,*>} message Plain object to verify
4664
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4665
+ */
4666
+ UserPasswordResetCreated.verify = function verify(message) {
4667
+ if (typeof message !== "object" || message === null)
4668
+ return "object expected";
4669
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4670
+ if (!$util.isString(message.hsId))
4671
+ return "hsId: string expected";
4672
+ if (message.email != null && message.hasOwnProperty("email"))
4673
+ if (!$util.isString(message.email))
4674
+ return "email: string expected";
4675
+ if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
4676
+ if (!$util.isInteger(message.timestampMillis) && !(message.timestampMillis && $util.isInteger(message.timestampMillis.low) && $util.isInteger(message.timestampMillis.high)))
4677
+ return "timestampMillis: integer|Long expected";
4678
+ if (message.auth0Ticket != null && message.hasOwnProperty("auth0Ticket"))
4679
+ if (!$util.isString(message.auth0Ticket))
4680
+ return "auth0Ticket: string expected";
4681
+ return null;
4682
+ };
4800
4683
 
4801
- return grpc;
4802
- })();
4684
+ /**
4685
+ * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
4686
+ * @function fromObject
4687
+ * @memberof UserPasswordResetCreated
4688
+ * @static
4689
+ * @param {Object.<string,*>} object Plain object
4690
+ * @returns {UserPasswordResetCreated} UserPasswordResetCreated
4691
+ */
4692
+ UserPasswordResetCreated.fromObject = function fromObject(object) {
4693
+ if (object instanceof $root.UserPasswordResetCreated)
4694
+ return object;
4695
+ var message = new $root.UserPasswordResetCreated();
4696
+ if (object.hsId != null)
4697
+ message.hsId = String(object.hsId);
4698
+ if (object.email != null)
4699
+ message.email = String(object.email);
4700
+ if (object.timestampMillis != null)
4701
+ if ($util.Long)
4702
+ (message.timestampMillis = $util.Long.fromValue(object.timestampMillis)).unsigned = true;
4703
+ else if (typeof object.timestampMillis === "string")
4704
+ message.timestampMillis = parseInt(object.timestampMillis, 10);
4705
+ else if (typeof object.timestampMillis === "number")
4706
+ message.timestampMillis = object.timestampMillis;
4707
+ else if (typeof object.timestampMillis === "object")
4708
+ message.timestampMillis = new $util.LongBits(object.timestampMillis.low >>> 0, object.timestampMillis.high >>> 0).toNumber(true);
4709
+ if (object.auth0Ticket != null)
4710
+ message.auth0Ticket = String(object.auth0Ticket);
4711
+ return message;
4712
+ };
4803
4713
 
4804
- return auth;
4805
- })();
4714
+ /**
4715
+ * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
4716
+ * @function toObject
4717
+ * @memberof UserPasswordResetCreated
4718
+ * @static
4719
+ * @param {UserPasswordResetCreated} message UserPasswordResetCreated
4720
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4721
+ * @returns {Object.<string,*>} Plain object
4722
+ */
4723
+ UserPasswordResetCreated.toObject = function toObject(message, options) {
4724
+ if (!options)
4725
+ options = {};
4726
+ var object = {};
4727
+ if (options.defaults) {
4728
+ object.hsId = "";
4729
+ object.email = "";
4730
+ if ($util.Long) {
4731
+ var long = new $util.Long(0, 0, true);
4732
+ object.timestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4733
+ } else
4734
+ object.timestampMillis = options.longs === String ? "0" : 0;
4735
+ object.auth0Ticket = "";
4736
+ }
4737
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
4738
+ object.hsId = message.hsId;
4739
+ if (message.email != null && message.hasOwnProperty("email"))
4740
+ object.email = message.email;
4741
+ if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
4742
+ if (typeof message.timestampMillis === "number")
4743
+ object.timestampMillis = options.longs === String ? String(message.timestampMillis) : message.timestampMillis;
4744
+ else
4745
+ object.timestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMillis) : options.longs === Number ? new $util.LongBits(message.timestampMillis.low >>> 0, message.timestampMillis.high >>> 0).toNumber(true) : message.timestampMillis;
4746
+ if (message.auth0Ticket != null && message.hasOwnProperty("auth0Ticket"))
4747
+ object.auth0Ticket = message.auth0Ticket;
4748
+ return object;
4749
+ };
4806
4750
 
4807
- return headspace;
4808
- })();
4751
+ /**
4752
+ * Converts this UserPasswordResetCreated to JSON.
4753
+ * @function toJSON
4754
+ * @memberof UserPasswordResetCreated
4755
+ * @instance
4756
+ * @returns {Object.<string,*>} JSON object
4757
+ */
4758
+ UserPasswordResetCreated.prototype.toJSON = function toJSON() {
4759
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4760
+ };
4809
4761
 
4810
- return com;
4762
+ return UserPasswordResetCreated;
4811
4763
  })();
4812
4764
 
4813
4765
  $root.CompletedActivity = (function() {
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.42.0"
19
+ "version": "1.43.0"
20
20
  }