@headspace/protos-events 1.251.0 → 1.252.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
@@ -11217,6 +11217,108 @@ export class UnlinkedConnection implements IUnlinkedConnection {
11217
11217
  public toJSON(): { [k: string]: any };
11218
11218
  }
11219
11219
 
11220
+ /** Properties of a ConnectionLinked. */
11221
+ export interface IConnectionLinked {
11222
+
11223
+ /** ConnectionLinked hsId */
11224
+ hsId?: (string|null);
11225
+
11226
+ /** ConnectionLinked connection */
11227
+ connection?: (auth0.connections.Connection|null);
11228
+
11229
+ /** ConnectionLinked linkedAt */
11230
+ linkedAt?: (number|Long|null);
11231
+ }
11232
+
11233
+ /** Represents a ConnectionLinked. */
11234
+ export class ConnectionLinked implements IConnectionLinked {
11235
+
11236
+ /**
11237
+ * Constructs a new ConnectionLinked.
11238
+ * @param [properties] Properties to set
11239
+ */
11240
+ constructor(properties?: IConnectionLinked);
11241
+
11242
+ /** ConnectionLinked hsId. */
11243
+ public hsId: string;
11244
+
11245
+ /** ConnectionLinked connection. */
11246
+ public connection: auth0.connections.Connection;
11247
+
11248
+ /** ConnectionLinked linkedAt. */
11249
+ public linkedAt: (number|Long);
11250
+
11251
+ /**
11252
+ * Creates a new ConnectionLinked instance using the specified properties.
11253
+ * @param [properties] Properties to set
11254
+ * @returns ConnectionLinked instance
11255
+ */
11256
+ public static create(properties?: IConnectionLinked): ConnectionLinked;
11257
+
11258
+ /**
11259
+ * Encodes the specified ConnectionLinked message. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
11260
+ * @param message ConnectionLinked message or plain object to encode
11261
+ * @param [writer] Writer to encode to
11262
+ * @returns Writer
11263
+ */
11264
+ public static encode(message: IConnectionLinked, writer?: $protobuf.Writer): $protobuf.Writer;
11265
+
11266
+ /**
11267
+ * Encodes the specified ConnectionLinked message, length delimited. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
11268
+ * @param message ConnectionLinked message or plain object to encode
11269
+ * @param [writer] Writer to encode to
11270
+ * @returns Writer
11271
+ */
11272
+ public static encodeDelimited(message: IConnectionLinked, writer?: $protobuf.Writer): $protobuf.Writer;
11273
+
11274
+ /**
11275
+ * Decodes a ConnectionLinked message from the specified reader or buffer.
11276
+ * @param reader Reader or buffer to decode from
11277
+ * @param [length] Message length if known beforehand
11278
+ * @returns ConnectionLinked
11279
+ * @throws {Error} If the payload is not a reader or valid buffer
11280
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11281
+ */
11282
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ConnectionLinked;
11283
+
11284
+ /**
11285
+ * Decodes a ConnectionLinked message from the specified reader or buffer, length delimited.
11286
+ * @param reader Reader or buffer to decode from
11287
+ * @returns ConnectionLinked
11288
+ * @throws {Error} If the payload is not a reader or valid buffer
11289
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11290
+ */
11291
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ConnectionLinked;
11292
+
11293
+ /**
11294
+ * Verifies a ConnectionLinked message.
11295
+ * @param message Plain object to verify
11296
+ * @returns `null` if valid, otherwise the reason why it is not
11297
+ */
11298
+ public static verify(message: { [k: string]: any }): (string|null);
11299
+
11300
+ /**
11301
+ * Creates a ConnectionLinked message from a plain object. Also converts values to their respective internal types.
11302
+ * @param object Plain object
11303
+ * @returns ConnectionLinked
11304
+ */
11305
+ public static fromObject(object: { [k: string]: any }): ConnectionLinked;
11306
+
11307
+ /**
11308
+ * Creates a plain object from a ConnectionLinked message. Also converts values to other types if specified.
11309
+ * @param message ConnectionLinked
11310
+ * @param [options] Conversion options
11311
+ * @returns Plain object
11312
+ */
11313
+ public static toObject(message: ConnectionLinked, options?: $protobuf.IConversionOptions): { [k: string]: any };
11314
+
11315
+ /**
11316
+ * Converts this ConnectionLinked to JSON.
11317
+ * @returns JSON object
11318
+ */
11319
+ public toJSON(): { [k: string]: any };
11320
+ }
11321
+
11220
11322
  /** Properties of a BlockedUnverifiedEmail. */
11221
11323
  export interface IBlockedUnverifiedEmail {
11222
11324
 
package/lib/index.js CHANGED
@@ -27532,6 +27532,300 @@ $root.UnlinkedConnection = (function() {
27532
27532
  return UnlinkedConnection;
27533
27533
  })();
27534
27534
 
27535
+ $root.ConnectionLinked = (function() {
27536
+
27537
+ /**
27538
+ * Properties of a ConnectionLinked.
27539
+ * @exports IConnectionLinked
27540
+ * @interface IConnectionLinked
27541
+ * @property {string|null} [hsId] ConnectionLinked hsId
27542
+ * @property {auth0.connections.Connection|null} [connection] ConnectionLinked connection
27543
+ * @property {number|Long|null} [linkedAt] ConnectionLinked linkedAt
27544
+ */
27545
+
27546
+ /**
27547
+ * Constructs a new ConnectionLinked.
27548
+ * @exports ConnectionLinked
27549
+ * @classdesc Represents a ConnectionLinked.
27550
+ * @implements IConnectionLinked
27551
+ * @constructor
27552
+ * @param {IConnectionLinked=} [properties] Properties to set
27553
+ */
27554
+ function ConnectionLinked(properties) {
27555
+ if (properties)
27556
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27557
+ if (properties[keys[i]] != null)
27558
+ this[keys[i]] = properties[keys[i]];
27559
+ }
27560
+
27561
+ /**
27562
+ * ConnectionLinked hsId.
27563
+ * @member {string} hsId
27564
+ * @memberof ConnectionLinked
27565
+ * @instance
27566
+ */
27567
+ ConnectionLinked.prototype.hsId = "";
27568
+
27569
+ /**
27570
+ * ConnectionLinked connection.
27571
+ * @member {auth0.connections.Connection} connection
27572
+ * @memberof ConnectionLinked
27573
+ * @instance
27574
+ */
27575
+ ConnectionLinked.prototype.connection = 0;
27576
+
27577
+ /**
27578
+ * ConnectionLinked linkedAt.
27579
+ * @member {number|Long} linkedAt
27580
+ * @memberof ConnectionLinked
27581
+ * @instance
27582
+ */
27583
+ ConnectionLinked.prototype.linkedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27584
+
27585
+ /**
27586
+ * Creates a new ConnectionLinked instance using the specified properties.
27587
+ * @function create
27588
+ * @memberof ConnectionLinked
27589
+ * @static
27590
+ * @param {IConnectionLinked=} [properties] Properties to set
27591
+ * @returns {ConnectionLinked} ConnectionLinked instance
27592
+ */
27593
+ ConnectionLinked.create = function create(properties) {
27594
+ return new ConnectionLinked(properties);
27595
+ };
27596
+
27597
+ /**
27598
+ * Encodes the specified ConnectionLinked message. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
27599
+ * @function encode
27600
+ * @memberof ConnectionLinked
27601
+ * @static
27602
+ * @param {IConnectionLinked} message ConnectionLinked message or plain object to encode
27603
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27604
+ * @returns {$protobuf.Writer} Writer
27605
+ */
27606
+ ConnectionLinked.encode = function encode(message, writer) {
27607
+ if (!writer)
27608
+ writer = $Writer.create();
27609
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
27610
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
27611
+ if (message.connection != null && message.hasOwnProperty("connection"))
27612
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.connection);
27613
+ if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
27614
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.linkedAt);
27615
+ return writer;
27616
+ };
27617
+
27618
+ /**
27619
+ * Encodes the specified ConnectionLinked message, length delimited. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
27620
+ * @function encodeDelimited
27621
+ * @memberof ConnectionLinked
27622
+ * @static
27623
+ * @param {IConnectionLinked} message ConnectionLinked message or plain object to encode
27624
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27625
+ * @returns {$protobuf.Writer} Writer
27626
+ */
27627
+ ConnectionLinked.encodeDelimited = function encodeDelimited(message, writer) {
27628
+ return this.encode(message, writer).ldelim();
27629
+ };
27630
+
27631
+ /**
27632
+ * Decodes a ConnectionLinked message from the specified reader or buffer.
27633
+ * @function decode
27634
+ * @memberof ConnectionLinked
27635
+ * @static
27636
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27637
+ * @param {number} [length] Message length if known beforehand
27638
+ * @returns {ConnectionLinked} ConnectionLinked
27639
+ * @throws {Error} If the payload is not a reader or valid buffer
27640
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27641
+ */
27642
+ ConnectionLinked.decode = function decode(reader, length) {
27643
+ if (!(reader instanceof $Reader))
27644
+ reader = $Reader.create(reader);
27645
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConnectionLinked();
27646
+ while (reader.pos < end) {
27647
+ var tag = reader.uint32();
27648
+ switch (tag >>> 3) {
27649
+ case 1:
27650
+ message.hsId = reader.string();
27651
+ break;
27652
+ case 2:
27653
+ message.connection = reader.int32();
27654
+ break;
27655
+ case 3:
27656
+ message.linkedAt = reader.uint64();
27657
+ break;
27658
+ default:
27659
+ reader.skipType(tag & 7);
27660
+ break;
27661
+ }
27662
+ }
27663
+ return message;
27664
+ };
27665
+
27666
+ /**
27667
+ * Decodes a ConnectionLinked message from the specified reader or buffer, length delimited.
27668
+ * @function decodeDelimited
27669
+ * @memberof ConnectionLinked
27670
+ * @static
27671
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27672
+ * @returns {ConnectionLinked} ConnectionLinked
27673
+ * @throws {Error} If the payload is not a reader or valid buffer
27674
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27675
+ */
27676
+ ConnectionLinked.decodeDelimited = function decodeDelimited(reader) {
27677
+ if (!(reader instanceof $Reader))
27678
+ reader = new $Reader(reader);
27679
+ return this.decode(reader, reader.uint32());
27680
+ };
27681
+
27682
+ /**
27683
+ * Verifies a ConnectionLinked message.
27684
+ * @function verify
27685
+ * @memberof ConnectionLinked
27686
+ * @static
27687
+ * @param {Object.<string,*>} message Plain object to verify
27688
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27689
+ */
27690
+ ConnectionLinked.verify = function verify(message) {
27691
+ if (typeof message !== "object" || message === null)
27692
+ return "object expected";
27693
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
27694
+ if (!$util.isString(message.hsId))
27695
+ return "hsId: string expected";
27696
+ if (message.connection != null && message.hasOwnProperty("connection"))
27697
+ switch (message.connection) {
27698
+ default:
27699
+ return "connection: enum value expected";
27700
+ case 0:
27701
+ case 1:
27702
+ case 2:
27703
+ case 3:
27704
+ case 4:
27705
+ case 5:
27706
+ case 6:
27707
+ case 7:
27708
+ case 8:
27709
+ break;
27710
+ }
27711
+ if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
27712
+ if (!$util.isInteger(message.linkedAt) && !(message.linkedAt && $util.isInteger(message.linkedAt.low) && $util.isInteger(message.linkedAt.high)))
27713
+ return "linkedAt: integer|Long expected";
27714
+ return null;
27715
+ };
27716
+
27717
+ /**
27718
+ * Creates a ConnectionLinked message from a plain object. Also converts values to their respective internal types.
27719
+ * @function fromObject
27720
+ * @memberof ConnectionLinked
27721
+ * @static
27722
+ * @param {Object.<string,*>} object Plain object
27723
+ * @returns {ConnectionLinked} ConnectionLinked
27724
+ */
27725
+ ConnectionLinked.fromObject = function fromObject(object) {
27726
+ if (object instanceof $root.ConnectionLinked)
27727
+ return object;
27728
+ var message = new $root.ConnectionLinked();
27729
+ if (object.hsId != null)
27730
+ message.hsId = String(object.hsId);
27731
+ switch (object.connection) {
27732
+ case "UNKNOWN_CONNECTION":
27733
+ case 0:
27734
+ message.connection = 0;
27735
+ break;
27736
+ case "APPLE":
27737
+ case 1:
27738
+ message.connection = 1;
27739
+ break;
27740
+ case "FACEBOOK":
27741
+ case 2:
27742
+ message.connection = 2;
27743
+ break;
27744
+ case "ONELOGIN":
27745
+ case 3:
27746
+ message.connection = 3;
27747
+ break;
27748
+ case "SPOTIFY":
27749
+ case 4:
27750
+ message.connection = 4;
27751
+ break;
27752
+ case "USER_PASSWORD_HEADSPACE":
27753
+ case 5:
27754
+ message.connection = 5;
27755
+ break;
27756
+ case "VIRGINPULSE":
27757
+ case 6:
27758
+ message.connection = 6;
27759
+ break;
27760
+ case "GOOGLE":
27761
+ case 7:
27762
+ message.connection = 7;
27763
+ break;
27764
+ case "TEST_OKTA_SSO":
27765
+ case 8:
27766
+ message.connection = 8;
27767
+ break;
27768
+ }
27769
+ if (object.linkedAt != null)
27770
+ if ($util.Long)
27771
+ (message.linkedAt = $util.Long.fromValue(object.linkedAt)).unsigned = true;
27772
+ else if (typeof object.linkedAt === "string")
27773
+ message.linkedAt = parseInt(object.linkedAt, 10);
27774
+ else if (typeof object.linkedAt === "number")
27775
+ message.linkedAt = object.linkedAt;
27776
+ else if (typeof object.linkedAt === "object")
27777
+ message.linkedAt = new $util.LongBits(object.linkedAt.low >>> 0, object.linkedAt.high >>> 0).toNumber(true);
27778
+ return message;
27779
+ };
27780
+
27781
+ /**
27782
+ * Creates a plain object from a ConnectionLinked message. Also converts values to other types if specified.
27783
+ * @function toObject
27784
+ * @memberof ConnectionLinked
27785
+ * @static
27786
+ * @param {ConnectionLinked} message ConnectionLinked
27787
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
27788
+ * @returns {Object.<string,*>} Plain object
27789
+ */
27790
+ ConnectionLinked.toObject = function toObject(message, options) {
27791
+ if (!options)
27792
+ options = {};
27793
+ var object = {};
27794
+ if (options.defaults) {
27795
+ object.hsId = "";
27796
+ object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
27797
+ if ($util.Long) {
27798
+ var long = new $util.Long(0, 0, true);
27799
+ object.linkedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27800
+ } else
27801
+ object.linkedAt = options.longs === String ? "0" : 0;
27802
+ }
27803
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
27804
+ object.hsId = message.hsId;
27805
+ if (message.connection != null && message.hasOwnProperty("connection"))
27806
+ object.connection = options.enums === String ? $root.auth0.connections.Connection[message.connection] : message.connection;
27807
+ if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
27808
+ if (typeof message.linkedAt === "number")
27809
+ object.linkedAt = options.longs === String ? String(message.linkedAt) : message.linkedAt;
27810
+ else
27811
+ object.linkedAt = options.longs === String ? $util.Long.prototype.toString.call(message.linkedAt) : options.longs === Number ? new $util.LongBits(message.linkedAt.low >>> 0, message.linkedAt.high >>> 0).toNumber(true) : message.linkedAt;
27812
+ return object;
27813
+ };
27814
+
27815
+ /**
27816
+ * Converts this ConnectionLinked to JSON.
27817
+ * @function toJSON
27818
+ * @memberof ConnectionLinked
27819
+ * @instance
27820
+ * @returns {Object.<string,*>} JSON object
27821
+ */
27822
+ ConnectionLinked.prototype.toJSON = function toJSON() {
27823
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27824
+ };
27825
+
27826
+ return ConnectionLinked;
27827
+ })();
27828
+
27535
27829
  $root.BlockedUnverifiedEmail = (function() {
27536
27830
 
27537
27831
  /**
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.251.0"
19
+ "version": "1.252.0"
20
20
  }