@headspace/protos-events 1.251.0 → 1.253.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
@@ -130,7 +130,9 @@ export namespace auth0 {
130
130
  USER_PASSWORD_HEADSPACE = 5,
131
131
  VIRGINPULSE = 6,
132
132
  GOOGLE = 7,
133
- TEST_OKTA_SSO = 8
133
+ TEST_OKTA_SSO = 8,
134
+ HEADSPACE_OKTA_SSO = 9,
135
+ EXTERNAL_OKTA_QA = 10
134
136
  }
135
137
  }
136
138
  }
@@ -11217,6 +11219,108 @@ export class UnlinkedConnection implements IUnlinkedConnection {
11217
11219
  public toJSON(): { [k: string]: any };
11218
11220
  }
11219
11221
 
11222
+ /** Properties of a ConnectionLinked. */
11223
+ export interface IConnectionLinked {
11224
+
11225
+ /** ConnectionLinked hsId */
11226
+ hsId?: (string|null);
11227
+
11228
+ /** ConnectionLinked connection */
11229
+ connection?: (auth0.connections.Connection|null);
11230
+
11231
+ /** ConnectionLinked linkedAt */
11232
+ linkedAt?: (number|Long|null);
11233
+ }
11234
+
11235
+ /** Represents a ConnectionLinked. */
11236
+ export class ConnectionLinked implements IConnectionLinked {
11237
+
11238
+ /**
11239
+ * Constructs a new ConnectionLinked.
11240
+ * @param [properties] Properties to set
11241
+ */
11242
+ constructor(properties?: IConnectionLinked);
11243
+
11244
+ /** ConnectionLinked hsId. */
11245
+ public hsId: string;
11246
+
11247
+ /** ConnectionLinked connection. */
11248
+ public connection: auth0.connections.Connection;
11249
+
11250
+ /** ConnectionLinked linkedAt. */
11251
+ public linkedAt: (number|Long);
11252
+
11253
+ /**
11254
+ * Creates a new ConnectionLinked instance using the specified properties.
11255
+ * @param [properties] Properties to set
11256
+ * @returns ConnectionLinked instance
11257
+ */
11258
+ public static create(properties?: IConnectionLinked): ConnectionLinked;
11259
+
11260
+ /**
11261
+ * Encodes the specified ConnectionLinked message. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
11262
+ * @param message ConnectionLinked message or plain object to encode
11263
+ * @param [writer] Writer to encode to
11264
+ * @returns Writer
11265
+ */
11266
+ public static encode(message: IConnectionLinked, writer?: $protobuf.Writer): $protobuf.Writer;
11267
+
11268
+ /**
11269
+ * Encodes the specified ConnectionLinked message, length delimited. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
11270
+ * @param message ConnectionLinked message or plain object to encode
11271
+ * @param [writer] Writer to encode to
11272
+ * @returns Writer
11273
+ */
11274
+ public static encodeDelimited(message: IConnectionLinked, writer?: $protobuf.Writer): $protobuf.Writer;
11275
+
11276
+ /**
11277
+ * Decodes a ConnectionLinked message from the specified reader or buffer.
11278
+ * @param reader Reader or buffer to decode from
11279
+ * @param [length] Message length if known beforehand
11280
+ * @returns ConnectionLinked
11281
+ * @throws {Error} If the payload is not a reader or valid buffer
11282
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11283
+ */
11284
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ConnectionLinked;
11285
+
11286
+ /**
11287
+ * Decodes a ConnectionLinked message from the specified reader or buffer, length delimited.
11288
+ * @param reader Reader or buffer to decode from
11289
+ * @returns ConnectionLinked
11290
+ * @throws {Error} If the payload is not a reader or valid buffer
11291
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11292
+ */
11293
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ConnectionLinked;
11294
+
11295
+ /**
11296
+ * Verifies a ConnectionLinked message.
11297
+ * @param message Plain object to verify
11298
+ * @returns `null` if valid, otherwise the reason why it is not
11299
+ */
11300
+ public static verify(message: { [k: string]: any }): (string|null);
11301
+
11302
+ /**
11303
+ * Creates a ConnectionLinked message from a plain object. Also converts values to their respective internal types.
11304
+ * @param object Plain object
11305
+ * @returns ConnectionLinked
11306
+ */
11307
+ public static fromObject(object: { [k: string]: any }): ConnectionLinked;
11308
+
11309
+ /**
11310
+ * Creates a plain object from a ConnectionLinked message. Also converts values to other types if specified.
11311
+ * @param message ConnectionLinked
11312
+ * @param [options] Conversion options
11313
+ * @returns Plain object
11314
+ */
11315
+ public static toObject(message: ConnectionLinked, options?: $protobuf.IConversionOptions): { [k: string]: any };
11316
+
11317
+ /**
11318
+ * Converts this ConnectionLinked to JSON.
11319
+ * @returns JSON object
11320
+ */
11321
+ public toJSON(): { [k: string]: any };
11322
+ }
11323
+
11220
11324
  /** Properties of a BlockedUnverifiedEmail. */
11221
11325
  export interface IBlockedUnverifiedEmail {
11222
11326
 
package/lib/index.js CHANGED
@@ -301,6 +301,8 @@ $root.auth0 = (function() {
301
301
  * @property {number} VIRGINPULSE=6 VIRGINPULSE value
302
302
  * @property {number} GOOGLE=7 GOOGLE value
303
303
  * @property {number} TEST_OKTA_SSO=8 TEST_OKTA_SSO value
304
+ * @property {number} HEADSPACE_OKTA_SSO=9 HEADSPACE_OKTA_SSO value
305
+ * @property {number} EXTERNAL_OKTA_QA=10 EXTERNAL_OKTA_QA value
304
306
  */
305
307
  connections.Connection = (function() {
306
308
  var valuesById = {}, values = Object.create(valuesById);
@@ -313,6 +315,8 @@ $root.auth0 = (function() {
313
315
  values[valuesById[6] = "VIRGINPULSE"] = 6;
314
316
  values[valuesById[7] = "GOOGLE"] = 7;
315
317
  values[valuesById[8] = "TEST_OKTA_SSO"] = 8;
318
+ values[valuesById[9] = "HEADSPACE_OKTA_SSO"] = 9;
319
+ values[valuesById[10] = "EXTERNAL_OKTA_QA"] = 10;
316
320
  return values;
317
321
  })();
318
322
 
@@ -27064,6 +27068,8 @@ $root.SuccessfulUserLogin = (function() {
27064
27068
  case 6:
27065
27069
  case 7:
27066
27070
  case 8:
27071
+ case 9:
27072
+ case 10:
27067
27073
  break;
27068
27074
  }
27069
27075
  return null;
@@ -27183,6 +27189,14 @@ $root.SuccessfulUserLogin = (function() {
27183
27189
  case 8:
27184
27190
  message.connection = 8;
27185
27191
  break;
27192
+ case "HEADSPACE_OKTA_SSO":
27193
+ case 9:
27194
+ message.connection = 9;
27195
+ break;
27196
+ case "EXTERNAL_OKTA_QA":
27197
+ case 10:
27198
+ message.connection = 10;
27199
+ break;
27186
27200
  }
27187
27201
  return message;
27188
27202
  };
@@ -27412,6 +27426,8 @@ $root.UnlinkedConnection = (function() {
27412
27426
  case 6:
27413
27427
  case 7:
27414
27428
  case 8:
27429
+ case 9:
27430
+ case 10:
27415
27431
  break;
27416
27432
  }
27417
27433
  if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
@@ -27471,6 +27487,14 @@ $root.UnlinkedConnection = (function() {
27471
27487
  case 8:
27472
27488
  message.connection = 8;
27473
27489
  break;
27490
+ case "HEADSPACE_OKTA_SSO":
27491
+ case 9:
27492
+ message.connection = 9;
27493
+ break;
27494
+ case "EXTERNAL_OKTA_QA":
27495
+ case 10:
27496
+ message.connection = 10;
27497
+ break;
27474
27498
  }
27475
27499
  if (object.unlinkedAt != null)
27476
27500
  if ($util.Long)
@@ -27532,6 +27556,310 @@ $root.UnlinkedConnection = (function() {
27532
27556
  return UnlinkedConnection;
27533
27557
  })();
27534
27558
 
27559
+ $root.ConnectionLinked = (function() {
27560
+
27561
+ /**
27562
+ * Properties of a ConnectionLinked.
27563
+ * @exports IConnectionLinked
27564
+ * @interface IConnectionLinked
27565
+ * @property {string|null} [hsId] ConnectionLinked hsId
27566
+ * @property {auth0.connections.Connection|null} [connection] ConnectionLinked connection
27567
+ * @property {number|Long|null} [linkedAt] ConnectionLinked linkedAt
27568
+ */
27569
+
27570
+ /**
27571
+ * Constructs a new ConnectionLinked.
27572
+ * @exports ConnectionLinked
27573
+ * @classdesc Represents a ConnectionLinked.
27574
+ * @implements IConnectionLinked
27575
+ * @constructor
27576
+ * @param {IConnectionLinked=} [properties] Properties to set
27577
+ */
27578
+ function ConnectionLinked(properties) {
27579
+ if (properties)
27580
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27581
+ if (properties[keys[i]] != null)
27582
+ this[keys[i]] = properties[keys[i]];
27583
+ }
27584
+
27585
+ /**
27586
+ * ConnectionLinked hsId.
27587
+ * @member {string} hsId
27588
+ * @memberof ConnectionLinked
27589
+ * @instance
27590
+ */
27591
+ ConnectionLinked.prototype.hsId = "";
27592
+
27593
+ /**
27594
+ * ConnectionLinked connection.
27595
+ * @member {auth0.connections.Connection} connection
27596
+ * @memberof ConnectionLinked
27597
+ * @instance
27598
+ */
27599
+ ConnectionLinked.prototype.connection = 0;
27600
+
27601
+ /**
27602
+ * ConnectionLinked linkedAt.
27603
+ * @member {number|Long} linkedAt
27604
+ * @memberof ConnectionLinked
27605
+ * @instance
27606
+ */
27607
+ ConnectionLinked.prototype.linkedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27608
+
27609
+ /**
27610
+ * Creates a new ConnectionLinked instance using the specified properties.
27611
+ * @function create
27612
+ * @memberof ConnectionLinked
27613
+ * @static
27614
+ * @param {IConnectionLinked=} [properties] Properties to set
27615
+ * @returns {ConnectionLinked} ConnectionLinked instance
27616
+ */
27617
+ ConnectionLinked.create = function create(properties) {
27618
+ return new ConnectionLinked(properties);
27619
+ };
27620
+
27621
+ /**
27622
+ * Encodes the specified ConnectionLinked message. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
27623
+ * @function encode
27624
+ * @memberof ConnectionLinked
27625
+ * @static
27626
+ * @param {IConnectionLinked} message ConnectionLinked message or plain object to encode
27627
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27628
+ * @returns {$protobuf.Writer} Writer
27629
+ */
27630
+ ConnectionLinked.encode = function encode(message, writer) {
27631
+ if (!writer)
27632
+ writer = $Writer.create();
27633
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
27634
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
27635
+ if (message.connection != null && message.hasOwnProperty("connection"))
27636
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.connection);
27637
+ if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
27638
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.linkedAt);
27639
+ return writer;
27640
+ };
27641
+
27642
+ /**
27643
+ * Encodes the specified ConnectionLinked message, length delimited. Does not implicitly {@link ConnectionLinked.verify|verify} messages.
27644
+ * @function encodeDelimited
27645
+ * @memberof ConnectionLinked
27646
+ * @static
27647
+ * @param {IConnectionLinked} message ConnectionLinked message or plain object to encode
27648
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27649
+ * @returns {$protobuf.Writer} Writer
27650
+ */
27651
+ ConnectionLinked.encodeDelimited = function encodeDelimited(message, writer) {
27652
+ return this.encode(message, writer).ldelim();
27653
+ };
27654
+
27655
+ /**
27656
+ * Decodes a ConnectionLinked message from the specified reader or buffer.
27657
+ * @function decode
27658
+ * @memberof ConnectionLinked
27659
+ * @static
27660
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27661
+ * @param {number} [length] Message length if known beforehand
27662
+ * @returns {ConnectionLinked} ConnectionLinked
27663
+ * @throws {Error} If the payload is not a reader or valid buffer
27664
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27665
+ */
27666
+ ConnectionLinked.decode = function decode(reader, length) {
27667
+ if (!(reader instanceof $Reader))
27668
+ reader = $Reader.create(reader);
27669
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConnectionLinked();
27670
+ while (reader.pos < end) {
27671
+ var tag = reader.uint32();
27672
+ switch (tag >>> 3) {
27673
+ case 1:
27674
+ message.hsId = reader.string();
27675
+ break;
27676
+ case 2:
27677
+ message.connection = reader.int32();
27678
+ break;
27679
+ case 3:
27680
+ message.linkedAt = reader.uint64();
27681
+ break;
27682
+ default:
27683
+ reader.skipType(tag & 7);
27684
+ break;
27685
+ }
27686
+ }
27687
+ return message;
27688
+ };
27689
+
27690
+ /**
27691
+ * Decodes a ConnectionLinked message from the specified reader or buffer, length delimited.
27692
+ * @function decodeDelimited
27693
+ * @memberof ConnectionLinked
27694
+ * @static
27695
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27696
+ * @returns {ConnectionLinked} ConnectionLinked
27697
+ * @throws {Error} If the payload is not a reader or valid buffer
27698
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27699
+ */
27700
+ ConnectionLinked.decodeDelimited = function decodeDelimited(reader) {
27701
+ if (!(reader instanceof $Reader))
27702
+ reader = new $Reader(reader);
27703
+ return this.decode(reader, reader.uint32());
27704
+ };
27705
+
27706
+ /**
27707
+ * Verifies a ConnectionLinked message.
27708
+ * @function verify
27709
+ * @memberof ConnectionLinked
27710
+ * @static
27711
+ * @param {Object.<string,*>} message Plain object to verify
27712
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27713
+ */
27714
+ ConnectionLinked.verify = function verify(message) {
27715
+ if (typeof message !== "object" || message === null)
27716
+ return "object expected";
27717
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
27718
+ if (!$util.isString(message.hsId))
27719
+ return "hsId: string expected";
27720
+ if (message.connection != null && message.hasOwnProperty("connection"))
27721
+ switch (message.connection) {
27722
+ default:
27723
+ return "connection: enum value expected";
27724
+ case 0:
27725
+ case 1:
27726
+ case 2:
27727
+ case 3:
27728
+ case 4:
27729
+ case 5:
27730
+ case 6:
27731
+ case 7:
27732
+ case 8:
27733
+ case 9:
27734
+ case 10:
27735
+ break;
27736
+ }
27737
+ if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
27738
+ if (!$util.isInteger(message.linkedAt) && !(message.linkedAt && $util.isInteger(message.linkedAt.low) && $util.isInteger(message.linkedAt.high)))
27739
+ return "linkedAt: integer|Long expected";
27740
+ return null;
27741
+ };
27742
+
27743
+ /**
27744
+ * Creates a ConnectionLinked message from a plain object. Also converts values to their respective internal types.
27745
+ * @function fromObject
27746
+ * @memberof ConnectionLinked
27747
+ * @static
27748
+ * @param {Object.<string,*>} object Plain object
27749
+ * @returns {ConnectionLinked} ConnectionLinked
27750
+ */
27751
+ ConnectionLinked.fromObject = function fromObject(object) {
27752
+ if (object instanceof $root.ConnectionLinked)
27753
+ return object;
27754
+ var message = new $root.ConnectionLinked();
27755
+ if (object.hsId != null)
27756
+ message.hsId = String(object.hsId);
27757
+ switch (object.connection) {
27758
+ case "UNKNOWN_CONNECTION":
27759
+ case 0:
27760
+ message.connection = 0;
27761
+ break;
27762
+ case "APPLE":
27763
+ case 1:
27764
+ message.connection = 1;
27765
+ break;
27766
+ case "FACEBOOK":
27767
+ case 2:
27768
+ message.connection = 2;
27769
+ break;
27770
+ case "ONELOGIN":
27771
+ case 3:
27772
+ message.connection = 3;
27773
+ break;
27774
+ case "SPOTIFY":
27775
+ case 4:
27776
+ message.connection = 4;
27777
+ break;
27778
+ case "USER_PASSWORD_HEADSPACE":
27779
+ case 5:
27780
+ message.connection = 5;
27781
+ break;
27782
+ case "VIRGINPULSE":
27783
+ case 6:
27784
+ message.connection = 6;
27785
+ break;
27786
+ case "GOOGLE":
27787
+ case 7:
27788
+ message.connection = 7;
27789
+ break;
27790
+ case "TEST_OKTA_SSO":
27791
+ case 8:
27792
+ message.connection = 8;
27793
+ break;
27794
+ case "HEADSPACE_OKTA_SSO":
27795
+ case 9:
27796
+ message.connection = 9;
27797
+ break;
27798
+ case "EXTERNAL_OKTA_QA":
27799
+ case 10:
27800
+ message.connection = 10;
27801
+ break;
27802
+ }
27803
+ if (object.linkedAt != null)
27804
+ if ($util.Long)
27805
+ (message.linkedAt = $util.Long.fromValue(object.linkedAt)).unsigned = true;
27806
+ else if (typeof object.linkedAt === "string")
27807
+ message.linkedAt = parseInt(object.linkedAt, 10);
27808
+ else if (typeof object.linkedAt === "number")
27809
+ message.linkedAt = object.linkedAt;
27810
+ else if (typeof object.linkedAt === "object")
27811
+ message.linkedAt = new $util.LongBits(object.linkedAt.low >>> 0, object.linkedAt.high >>> 0).toNumber(true);
27812
+ return message;
27813
+ };
27814
+
27815
+ /**
27816
+ * Creates a plain object from a ConnectionLinked message. Also converts values to other types if specified.
27817
+ * @function toObject
27818
+ * @memberof ConnectionLinked
27819
+ * @static
27820
+ * @param {ConnectionLinked} message ConnectionLinked
27821
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
27822
+ * @returns {Object.<string,*>} Plain object
27823
+ */
27824
+ ConnectionLinked.toObject = function toObject(message, options) {
27825
+ if (!options)
27826
+ options = {};
27827
+ var object = {};
27828
+ if (options.defaults) {
27829
+ object.hsId = "";
27830
+ object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
27831
+ if ($util.Long) {
27832
+ var long = new $util.Long(0, 0, true);
27833
+ object.linkedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27834
+ } else
27835
+ object.linkedAt = options.longs === String ? "0" : 0;
27836
+ }
27837
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
27838
+ object.hsId = message.hsId;
27839
+ if (message.connection != null && message.hasOwnProperty("connection"))
27840
+ object.connection = options.enums === String ? $root.auth0.connections.Connection[message.connection] : message.connection;
27841
+ if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
27842
+ if (typeof message.linkedAt === "number")
27843
+ object.linkedAt = options.longs === String ? String(message.linkedAt) : message.linkedAt;
27844
+ else
27845
+ 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;
27846
+ return object;
27847
+ };
27848
+
27849
+ /**
27850
+ * Converts this ConnectionLinked to JSON.
27851
+ * @function toJSON
27852
+ * @memberof ConnectionLinked
27853
+ * @instance
27854
+ * @returns {Object.<string,*>} JSON object
27855
+ */
27856
+ ConnectionLinked.prototype.toJSON = function toJSON() {
27857
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27858
+ };
27859
+
27860
+ return ConnectionLinked;
27861
+ })();
27862
+
27535
27863
  $root.BlockedUnverifiedEmail = (function() {
27536
27864
 
27537
27865
  /**
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.253.0"
20
20
  }