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