@headspace/protos-events 1.41.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 -93
  2. package/lib/index.js +254 -244
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1984,119 +1984,115 @@ export namespace com {
1984
1984
  }
1985
1985
  }
1986
1986
  }
1987
+ }
1988
+ }
1987
1989
 
1988
- /** Namespace auth. */
1989
- namespace auth {
1990
+ /** Properties of a UserPasswordResetCreated. */
1991
+ export interface IUserPasswordResetCreated {
1990
1992
 
1991
- /** Namespace grpc. */
1992
- namespace grpc {
1993
+ /** UserPasswordResetCreated hsId */
1994
+ hsId?: (string|null);
1993
1995
 
1994
- /** Namespace auth0. */
1995
- namespace auth0 {
1996
+ /** UserPasswordResetCreated email */
1997
+ email?: (string|null);
1996
1998
 
1997
- /** Namespace events. */
1998
- namespace events {
1999
+ /** UserPasswordResetCreated timestampMillis */
2000
+ timestampMillis?: (number|Long|null);
1999
2001
 
2000
- /** Properties of a UserPasswordResetCreated. */
2001
- interface IUserPasswordResetCreated {
2002
+ /** UserPasswordResetCreated auth0Ticket */
2003
+ auth0Ticket?: (string|null);
2004
+ }
2002
2005
 
2003
- /** UserPasswordResetCreated email */
2004
- email?: (string|null);
2006
+ /** Represents a UserPasswordResetCreated. */
2007
+ export class UserPasswordResetCreated implements IUserPasswordResetCreated {
2005
2008
 
2006
- /** UserPasswordResetCreated ticket */
2007
- ticket?: (string|null);
2008
- }
2009
+ /**
2010
+ * Constructs a new UserPasswordResetCreated.
2011
+ * @param [properties] Properties to set
2012
+ */
2013
+ constructor(properties?: IUserPasswordResetCreated);
2009
2014
 
2010
- /** Represents a UserPasswordResetCreated. */
2011
- class UserPasswordResetCreated implements IUserPasswordResetCreated {
2015
+ /** UserPasswordResetCreated hsId. */
2016
+ public hsId: string;
2012
2017
 
2013
- /**
2014
- * Constructs a new UserPasswordResetCreated.
2015
- * @param [properties] Properties to set
2016
- */
2017
- constructor(properties?: com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated);
2018
+ /** UserPasswordResetCreated email. */
2019
+ public email: string;
2018
2020
 
2019
- /** UserPasswordResetCreated email. */
2020
- public email: string;
2021
+ /** UserPasswordResetCreated timestampMillis. */
2022
+ public timestampMillis: (number|Long);
2021
2023
 
2022
- /** UserPasswordResetCreated ticket. */
2023
- public ticket: string;
2024
+ /** UserPasswordResetCreated auth0Ticket. */
2025
+ public auth0Ticket: string;
2024
2026
 
2025
- /**
2026
- * Creates a new UserPasswordResetCreated instance using the specified properties.
2027
- * @param [properties] Properties to set
2028
- * @returns UserPasswordResetCreated instance
2029
- */
2030
- 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;
2031
2033
 
2032
- /**
2033
- * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
2034
- * @param message UserPasswordResetCreated message or plain object to encode
2035
- * @param [writer] Writer to encode to
2036
- * @returns Writer
2037
- */
2038
- 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;
2039
2041
 
2040
- /**
2041
- * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
2042
- * @param message UserPasswordResetCreated message or plain object to encode
2043
- * @param [writer] Writer to encode to
2044
- * @returns Writer
2045
- */
2046
- 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;
2047
2049
 
2048
- /**
2049
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
2050
- * @param reader Reader or buffer to decode from
2051
- * @param [length] Message length if known beforehand
2052
- * @returns UserPasswordResetCreated
2053
- * @throws {Error} If the payload is not a reader or valid buffer
2054
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2055
- */
2056
- 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;
2057
2059
 
2058
- /**
2059
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
2060
- * @param reader Reader or buffer to decode from
2061
- * @returns UserPasswordResetCreated
2062
- * @throws {Error} If the payload is not a reader or valid buffer
2063
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2064
- */
2065
- 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;
2066
2068
 
2067
- /**
2068
- * Verifies a UserPasswordResetCreated message.
2069
- * @param message Plain object to verify
2070
- * @returns `null` if valid, otherwise the reason why it is not
2071
- */
2072
- 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);
2073
2075
 
2074
- /**
2075
- * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
2076
- * @param object Plain object
2077
- * @returns UserPasswordResetCreated
2078
- */
2079
- 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;
2080
2082
 
2081
- /**
2082
- * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
2083
- * @param message UserPasswordResetCreated
2084
- * @param [options] Conversion options
2085
- * @returns Plain object
2086
- */
2087
- 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 };
2088
2090
 
2089
- /**
2090
- * Converts this UserPasswordResetCreated to JSON.
2091
- * @returns JSON object
2092
- */
2093
- public toJSON(): { [k: string]: any };
2094
- }
2095
- }
2096
- }
2097
- }
2098
- }
2099
- }
2091
+ /**
2092
+ * Converts this UserPasswordResetCreated to JSON.
2093
+ * @returns JSON object
2094
+ */
2095
+ public toJSON(): { [k: string]: any };
2100
2096
  }
2101
2097
 
2102
2098
  /** Properties of a CompletedActivity. */
package/lib/index.js CHANGED
@@ -4488,268 +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
- */
4536
-
4537
- /**
4538
- * Constructs a new UserPasswordResetCreated.
4539
- * @memberof com.headspace.auth.grpc.auth0.events
4540
- * @classdesc Represents a UserPasswordResetCreated.
4541
- * @implements IUserPasswordResetCreated
4542
- * @constructor
4543
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated=} [properties] Properties to set
4544
- */
4545
- function UserPasswordResetCreated(properties) {
4546
- if (properties)
4547
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4548
- if (properties[keys[i]] != null)
4549
- this[keys[i]] = properties[keys[i]];
4550
- }
4491
+ return headspace;
4492
+ })();
4551
4493
 
4552
- /**
4553
- * UserPasswordResetCreated email.
4554
- * @member {string} email
4555
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4556
- * @instance
4557
- */
4558
- UserPasswordResetCreated.prototype.email = "";
4494
+ return com;
4495
+ })();
4559
4496
 
4560
- /**
4561
- * UserPasswordResetCreated ticket.
4562
- * @member {string} ticket
4563
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4564
- * @instance
4565
- */
4566
- UserPasswordResetCreated.prototype.ticket = "";
4497
+ $root.UserPasswordResetCreated = (function() {
4567
4498
 
4568
- /**
4569
- * Creates a new UserPasswordResetCreated instance using the specified properties.
4570
- * @function create
4571
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4572
- * @static
4573
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated=} [properties] Properties to set
4574
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated instance
4575
- */
4576
- UserPasswordResetCreated.create = function create(properties) {
4577
- return new UserPasswordResetCreated(properties);
4578
- };
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
+ */
4579
4508
 
4580
- /**
4581
- * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
4582
- * @function encode
4583
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4584
- * @static
4585
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4586
- * @param {$protobuf.Writer} [writer] Writer to encode to
4587
- * @returns {$protobuf.Writer} Writer
4588
- */
4589
- UserPasswordResetCreated.encode = function encode(message, writer) {
4590
- if (!writer)
4591
- writer = $Writer.create();
4592
- if (message.email != null && message.hasOwnProperty("email"))
4593
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
4594
- if (message.ticket != null && message.hasOwnProperty("ticket"))
4595
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.ticket);
4596
- return writer;
4597
- };
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
+ }
4598
4523
 
4599
- /**
4600
- * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated.verify|verify} messages.
4601
- * @function encodeDelimited
4602
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4603
- * @static
4604
- * @param {com.headspace.auth.grpc.auth0.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4605
- * @param {$protobuf.Writer} [writer] Writer to encode to
4606
- * @returns {$protobuf.Writer} Writer
4607
- */
4608
- UserPasswordResetCreated.encodeDelimited = function encodeDelimited(message, writer) {
4609
- return this.encode(message, writer).ldelim();
4610
- };
4524
+ /**
4525
+ * UserPasswordResetCreated hsId.
4526
+ * @member {string} hsId
4527
+ * @memberof UserPasswordResetCreated
4528
+ * @instance
4529
+ */
4530
+ UserPasswordResetCreated.prototype.hsId = "";
4611
4531
 
4612
- /**
4613
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
4614
- * @function decode
4615
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4616
- * @static
4617
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4618
- * @param {number} [length] Message length if known beforehand
4619
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated
4620
- * @throws {Error} If the payload is not a reader or valid buffer
4621
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4622
- */
4623
- UserPasswordResetCreated.decode = function decode(reader, length) {
4624
- if (!(reader instanceof $Reader))
4625
- reader = $Reader.create(reader);
4626
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated();
4627
- while (reader.pos < end) {
4628
- var tag = reader.uint32();
4629
- switch (tag >>> 3) {
4630
- case 1:
4631
- message.email = reader.string();
4632
- break;
4633
- case 2:
4634
- message.ticket = reader.string();
4635
- break;
4636
- default:
4637
- reader.skipType(tag & 7);
4638
- break;
4639
- }
4640
- }
4641
- return message;
4642
- };
4532
+ /**
4533
+ * UserPasswordResetCreated email.
4534
+ * @member {string} email
4535
+ * @memberof UserPasswordResetCreated
4536
+ * @instance
4537
+ */
4538
+ UserPasswordResetCreated.prototype.email = "";
4643
4539
 
4644
- /**
4645
- * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
4646
- * @function decodeDelimited
4647
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4648
- * @static
4649
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4650
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated
4651
- * @throws {Error} If the payload is not a reader or valid buffer
4652
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4653
- */
4654
- UserPasswordResetCreated.decodeDelimited = function decodeDelimited(reader) {
4655
- if (!(reader instanceof $Reader))
4656
- reader = new $Reader(reader);
4657
- return this.decode(reader, reader.uint32());
4658
- };
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;
4659
4547
 
4660
- /**
4661
- * Verifies a UserPasswordResetCreated message.
4662
- * @function verify
4663
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4664
- * @static
4665
- * @param {Object.<string,*>} message Plain object to verify
4666
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
4667
- */
4668
- UserPasswordResetCreated.verify = function verify(message) {
4669
- if (typeof message !== "object" || message === null)
4670
- return "object expected";
4671
- if (message.email != null && message.hasOwnProperty("email"))
4672
- if (!$util.isString(message.email))
4673
- return "email: string expected";
4674
- if (message.ticket != null && message.hasOwnProperty("ticket"))
4675
- if (!$util.isString(message.ticket))
4676
- return "ticket: string expected";
4677
- return null;
4678
- };
4548
+ /**
4549
+ * UserPasswordResetCreated auth0Ticket.
4550
+ * @member {string} auth0Ticket
4551
+ * @memberof UserPasswordResetCreated
4552
+ * @instance
4553
+ */
4554
+ UserPasswordResetCreated.prototype.auth0Ticket = "";
4679
4555
 
4680
- /**
4681
- * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
4682
- * @function fromObject
4683
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4684
- * @static
4685
- * @param {Object.<string,*>} object Plain object
4686
- * @returns {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} UserPasswordResetCreated
4687
- */
4688
- UserPasswordResetCreated.fromObject = function fromObject(object) {
4689
- if (object instanceof $root.com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated)
4690
- return object;
4691
- var message = new $root.com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated();
4692
- if (object.email != null)
4693
- message.email = String(object.email);
4694
- if (object.ticket != null)
4695
- message.ticket = String(object.ticket);
4696
- return message;
4697
- };
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
+ };
4698
4567
 
4699
- /**
4700
- * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
4701
- * @function toObject
4702
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4703
- * @static
4704
- * @param {com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated} message UserPasswordResetCreated
4705
- * @param {$protobuf.IConversionOptions} [options] Conversion options
4706
- * @returns {Object.<string,*>} Plain object
4707
- */
4708
- UserPasswordResetCreated.toObject = function toObject(message, options) {
4709
- if (!options)
4710
- options = {};
4711
- var object = {};
4712
- if (options.defaults) {
4713
- object.email = "";
4714
- object.ticket = "";
4715
- }
4716
- if (message.email != null && message.hasOwnProperty("email"))
4717
- object.email = message.email;
4718
- if (message.ticket != null && message.hasOwnProperty("ticket"))
4719
- object.ticket = message.ticket;
4720
- return object;
4721
- };
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
+ };
4722
4590
 
4723
- /**
4724
- * Converts this UserPasswordResetCreated to JSON.
4725
- * @function toJSON
4726
- * @memberof com.headspace.auth.grpc.auth0.events.UserPasswordResetCreated
4727
- * @instance
4728
- * @returns {Object.<string,*>} JSON object
4729
- */
4730
- UserPasswordResetCreated.prototype.toJSON = function toJSON() {
4731
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4732
- };
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
+ };
4733
4603
 
4734
- return UserPasswordResetCreated;
4735
- })();
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
+ };
4736
4641
 
4737
- return events;
4738
- })();
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
+ };
4739
4657
 
4740
- return auth0;
4741
- })();
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
+ };
4742
4683
 
4743
- return grpc;
4744
- })();
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
+ };
4745
4713
 
4746
- return auth;
4747
- })();
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
+ };
4748
4750
 
4749
- return headspace;
4750
- })();
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
+ };
4751
4761
 
4752
- return com;
4762
+ return UserPasswordResetCreated;
4753
4763
  })();
4754
4764
 
4755
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.41.0"
19
+ "version": "1.43.0"
20
20
  }