@headspace/protos-events 1.31.0 → 1.32.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
@@ -1972,6 +1972,110 @@ export namespace com {
1972
1972
  }
1973
1973
  }
1974
1974
  }
1975
+
1976
+ /** Namespace auth. */
1977
+ namespace auth {
1978
+
1979
+ /** Namespace events. */
1980
+ namespace events {
1981
+
1982
+ /** Properties of a UserPasswordResetCreated. */
1983
+ interface IUserPasswordResetCreated {
1984
+
1985
+ /** UserPasswordResetCreated email */
1986
+ email?: (string|null);
1987
+
1988
+ /** UserPasswordResetCreated ticket */
1989
+ ticket?: (string|null);
1990
+ }
1991
+
1992
+ /** Represents a UserPasswordResetCreated. */
1993
+ class UserPasswordResetCreated implements IUserPasswordResetCreated {
1994
+
1995
+ /**
1996
+ * Constructs a new UserPasswordResetCreated.
1997
+ * @param [properties] Properties to set
1998
+ */
1999
+ constructor(properties?: com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated);
2000
+
2001
+ /** UserPasswordResetCreated email. */
2002
+ public email: string;
2003
+
2004
+ /** UserPasswordResetCreated ticket. */
2005
+ public ticket: string;
2006
+
2007
+ /**
2008
+ * Creates a new UserPasswordResetCreated instance using the specified properties.
2009
+ * @param [properties] Properties to set
2010
+ * @returns UserPasswordResetCreated instance
2011
+ */
2012
+ public static create(properties?: com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated): com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated;
2013
+
2014
+ /**
2015
+ * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated.verify|verify} messages.
2016
+ * @param message UserPasswordResetCreated message or plain object to encode
2017
+ * @param [writer] Writer to encode to
2018
+ * @returns Writer
2019
+ */
2020
+ public static encode(message: com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
2021
+
2022
+ /**
2023
+ * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated.verify|verify} messages.
2024
+ * @param message UserPasswordResetCreated message or plain object to encode
2025
+ * @param [writer] Writer to encode to
2026
+ * @returns Writer
2027
+ */
2028
+ public static encodeDelimited(message: com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated, writer?: $protobuf.Writer): $protobuf.Writer;
2029
+
2030
+ /**
2031
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
2032
+ * @param reader Reader or buffer to decode from
2033
+ * @param [length] Message length if known beforehand
2034
+ * @returns UserPasswordResetCreated
2035
+ * @throws {Error} If the payload is not a reader or valid buffer
2036
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2037
+ */
2038
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated;
2039
+
2040
+ /**
2041
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
2042
+ * @param reader Reader or buffer to decode from
2043
+ * @returns UserPasswordResetCreated
2044
+ * @throws {Error} If the payload is not a reader or valid buffer
2045
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2046
+ */
2047
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated;
2048
+
2049
+ /**
2050
+ * Verifies a UserPasswordResetCreated message.
2051
+ * @param message Plain object to verify
2052
+ * @returns `null` if valid, otherwise the reason why it is not
2053
+ */
2054
+ public static verify(message: { [k: string]: any }): (string|null);
2055
+
2056
+ /**
2057
+ * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
2058
+ * @param object Plain object
2059
+ * @returns UserPasswordResetCreated
2060
+ */
2061
+ public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated;
2062
+
2063
+ /**
2064
+ * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
2065
+ * @param message UserPasswordResetCreated
2066
+ * @param [options] Conversion options
2067
+ * @returns Plain object
2068
+ */
2069
+ public static toObject(message: com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
2070
+
2071
+ /**
2072
+ * Converts this UserPasswordResetCreated to JSON.
2073
+ * @returns JSON object
2074
+ */
2075
+ public toJSON(): { [k: string]: any };
2076
+ }
2077
+ }
2078
+ }
1975
2079
  }
1976
2080
  }
1977
2081
  }
package/lib/index.js CHANGED
@@ -4460,6 +4460,240 @@ $root.com = (function() {
4460
4460
  return user;
4461
4461
  })();
4462
4462
 
4463
+ grpc.auth = (function() {
4464
+
4465
+ /**
4466
+ * Namespace auth.
4467
+ * @memberof com.headspace.userdomain.grpc
4468
+ * @namespace
4469
+ */
4470
+ var auth = {};
4471
+
4472
+ auth.events = (function() {
4473
+
4474
+ /**
4475
+ * Namespace events.
4476
+ * @memberof com.headspace.userdomain.grpc.auth
4477
+ * @namespace
4478
+ */
4479
+ var events = {};
4480
+
4481
+ events.UserPasswordResetCreated = (function() {
4482
+
4483
+ /**
4484
+ * Properties of a UserPasswordResetCreated.
4485
+ * @memberof com.headspace.userdomain.grpc.auth.events
4486
+ * @interface IUserPasswordResetCreated
4487
+ * @property {string|null} [email] UserPasswordResetCreated email
4488
+ * @property {string|null} [ticket] UserPasswordResetCreated ticket
4489
+ */
4490
+
4491
+ /**
4492
+ * Constructs a new UserPasswordResetCreated.
4493
+ * @memberof com.headspace.userdomain.grpc.auth.events
4494
+ * @classdesc Represents a UserPasswordResetCreated.
4495
+ * @implements IUserPasswordResetCreated
4496
+ * @constructor
4497
+ * @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated=} [properties] Properties to set
4498
+ */
4499
+ function UserPasswordResetCreated(properties) {
4500
+ if (properties)
4501
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4502
+ if (properties[keys[i]] != null)
4503
+ this[keys[i]] = properties[keys[i]];
4504
+ }
4505
+
4506
+ /**
4507
+ * UserPasswordResetCreated email.
4508
+ * @member {string} email
4509
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4510
+ * @instance
4511
+ */
4512
+ UserPasswordResetCreated.prototype.email = "";
4513
+
4514
+ /**
4515
+ * UserPasswordResetCreated ticket.
4516
+ * @member {string} ticket
4517
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4518
+ * @instance
4519
+ */
4520
+ UserPasswordResetCreated.prototype.ticket = "";
4521
+
4522
+ /**
4523
+ * Creates a new UserPasswordResetCreated instance using the specified properties.
4524
+ * @function create
4525
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4526
+ * @static
4527
+ * @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated=} [properties] Properties to set
4528
+ * @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated instance
4529
+ */
4530
+ UserPasswordResetCreated.create = function create(properties) {
4531
+ return new UserPasswordResetCreated(properties);
4532
+ };
4533
+
4534
+ /**
4535
+ * Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated.verify|verify} messages.
4536
+ * @function encode
4537
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4538
+ * @static
4539
+ * @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4540
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4541
+ * @returns {$protobuf.Writer} Writer
4542
+ */
4543
+ UserPasswordResetCreated.encode = function encode(message, writer) {
4544
+ if (!writer)
4545
+ writer = $Writer.create();
4546
+ if (message.email != null && message.hasOwnProperty("email"))
4547
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
4548
+ if (message.ticket != null && message.hasOwnProperty("ticket"))
4549
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.ticket);
4550
+ return writer;
4551
+ };
4552
+
4553
+ /**
4554
+ * Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated.verify|verify} messages.
4555
+ * @function encodeDelimited
4556
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4557
+ * @static
4558
+ * @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
4559
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4560
+ * @returns {$protobuf.Writer} Writer
4561
+ */
4562
+ UserPasswordResetCreated.encodeDelimited = function encodeDelimited(message, writer) {
4563
+ return this.encode(message, writer).ldelim();
4564
+ };
4565
+
4566
+ /**
4567
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer.
4568
+ * @function decode
4569
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4570
+ * @static
4571
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4572
+ * @param {number} [length] Message length if known beforehand
4573
+ * @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated
4574
+ * @throws {Error} If the payload is not a reader or valid buffer
4575
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4576
+ */
4577
+ UserPasswordResetCreated.decode = function decode(reader, length) {
4578
+ if (!(reader instanceof $Reader))
4579
+ reader = $Reader.create(reader);
4580
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated();
4581
+ while (reader.pos < end) {
4582
+ var tag = reader.uint32();
4583
+ switch (tag >>> 3) {
4584
+ case 1:
4585
+ message.email = reader.string();
4586
+ break;
4587
+ case 2:
4588
+ message.ticket = reader.string();
4589
+ break;
4590
+ default:
4591
+ reader.skipType(tag & 7);
4592
+ break;
4593
+ }
4594
+ }
4595
+ return message;
4596
+ };
4597
+
4598
+ /**
4599
+ * Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
4600
+ * @function decodeDelimited
4601
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4602
+ * @static
4603
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4604
+ * @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated
4605
+ * @throws {Error} If the payload is not a reader or valid buffer
4606
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4607
+ */
4608
+ UserPasswordResetCreated.decodeDelimited = function decodeDelimited(reader) {
4609
+ if (!(reader instanceof $Reader))
4610
+ reader = new $Reader(reader);
4611
+ return this.decode(reader, reader.uint32());
4612
+ };
4613
+
4614
+ /**
4615
+ * Verifies a UserPasswordResetCreated message.
4616
+ * @function verify
4617
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4618
+ * @static
4619
+ * @param {Object.<string,*>} message Plain object to verify
4620
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4621
+ */
4622
+ UserPasswordResetCreated.verify = function verify(message) {
4623
+ if (typeof message !== "object" || message === null)
4624
+ return "object expected";
4625
+ if (message.email != null && message.hasOwnProperty("email"))
4626
+ if (!$util.isString(message.email))
4627
+ return "email: string expected";
4628
+ if (message.ticket != null && message.hasOwnProperty("ticket"))
4629
+ if (!$util.isString(message.ticket))
4630
+ return "ticket: string expected";
4631
+ return null;
4632
+ };
4633
+
4634
+ /**
4635
+ * Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
4636
+ * @function fromObject
4637
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4638
+ * @static
4639
+ * @param {Object.<string,*>} object Plain object
4640
+ * @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated
4641
+ */
4642
+ UserPasswordResetCreated.fromObject = function fromObject(object) {
4643
+ if (object instanceof $root.com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated)
4644
+ return object;
4645
+ var message = new $root.com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated();
4646
+ if (object.email != null)
4647
+ message.email = String(object.email);
4648
+ if (object.ticket != null)
4649
+ message.ticket = String(object.ticket);
4650
+ return message;
4651
+ };
4652
+
4653
+ /**
4654
+ * Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
4655
+ * @function toObject
4656
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4657
+ * @static
4658
+ * @param {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} message UserPasswordResetCreated
4659
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4660
+ * @returns {Object.<string,*>} Plain object
4661
+ */
4662
+ UserPasswordResetCreated.toObject = function toObject(message, options) {
4663
+ if (!options)
4664
+ options = {};
4665
+ var object = {};
4666
+ if (options.defaults) {
4667
+ object.email = "";
4668
+ object.ticket = "";
4669
+ }
4670
+ if (message.email != null && message.hasOwnProperty("email"))
4671
+ object.email = message.email;
4672
+ if (message.ticket != null && message.hasOwnProperty("ticket"))
4673
+ object.ticket = message.ticket;
4674
+ return object;
4675
+ };
4676
+
4677
+ /**
4678
+ * Converts this UserPasswordResetCreated to JSON.
4679
+ * @function toJSON
4680
+ * @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
4681
+ * @instance
4682
+ * @returns {Object.<string,*>} JSON object
4683
+ */
4684
+ UserPasswordResetCreated.prototype.toJSON = function toJSON() {
4685
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4686
+ };
4687
+
4688
+ return UserPasswordResetCreated;
4689
+ })();
4690
+
4691
+ return events;
4692
+ })();
4693
+
4694
+ return auth;
4695
+ })();
4696
+
4463
4697
  return grpc;
4464
4698
  })();
4465
4699
 
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.31.0"
19
+ "version": "1.32.0"
20
20
  }