@headspace/protos-events 1.153.0 → 1.154.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 +121 -0
- package/lib/index.js +332 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -93,6 +93,25 @@ export namespace date {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
/** Namespace auth0. */
|
|
97
|
+
export namespace auth0 {
|
|
98
|
+
|
|
99
|
+
/** Namespace connections. */
|
|
100
|
+
namespace connections {
|
|
101
|
+
|
|
102
|
+
/** Connection enum. */
|
|
103
|
+
enum Connection {
|
|
104
|
+
UNKNOWN_CONNECTION = 0,
|
|
105
|
+
APPLE = 1,
|
|
106
|
+
FACEBOOK = 2,
|
|
107
|
+
ONELOGIN = 3,
|
|
108
|
+
SPOTIFY = 4,
|
|
109
|
+
USER_PASSWORD_HEADSPACE = 5,
|
|
110
|
+
VIRGINPULSE = 6
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
96
115
|
/** Namespace contentful. */
|
|
97
116
|
export namespace contentful {
|
|
98
117
|
|
|
@@ -4397,6 +4416,108 @@ export namespace userdomain {
|
|
|
4397
4416
|
}
|
|
4398
4417
|
}
|
|
4399
4418
|
|
|
4419
|
+
/** Properties of an UnlinkedConnection. */
|
|
4420
|
+
export interface IUnlinkedConnection {
|
|
4421
|
+
|
|
4422
|
+
/** UnlinkedConnection hsId */
|
|
4423
|
+
hsId?: (string|null);
|
|
4424
|
+
|
|
4425
|
+
/** UnlinkedConnection connection */
|
|
4426
|
+
connection?: (auth0.connections.Connection|null);
|
|
4427
|
+
|
|
4428
|
+
/** UnlinkedConnection unlinkedAt */
|
|
4429
|
+
unlinkedAt?: (number|Long|null);
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
/** Represents an UnlinkedConnection. */
|
|
4433
|
+
export class UnlinkedConnection implements IUnlinkedConnection {
|
|
4434
|
+
|
|
4435
|
+
/**
|
|
4436
|
+
* Constructs a new UnlinkedConnection.
|
|
4437
|
+
* @param [properties] Properties to set
|
|
4438
|
+
*/
|
|
4439
|
+
constructor(properties?: IUnlinkedConnection);
|
|
4440
|
+
|
|
4441
|
+
/** UnlinkedConnection hsId. */
|
|
4442
|
+
public hsId: string;
|
|
4443
|
+
|
|
4444
|
+
/** UnlinkedConnection connection. */
|
|
4445
|
+
public connection: auth0.connections.Connection;
|
|
4446
|
+
|
|
4447
|
+
/** UnlinkedConnection unlinkedAt. */
|
|
4448
|
+
public unlinkedAt: (number|Long);
|
|
4449
|
+
|
|
4450
|
+
/**
|
|
4451
|
+
* Creates a new UnlinkedConnection instance using the specified properties.
|
|
4452
|
+
* @param [properties] Properties to set
|
|
4453
|
+
* @returns UnlinkedConnection instance
|
|
4454
|
+
*/
|
|
4455
|
+
public static create(properties?: IUnlinkedConnection): UnlinkedConnection;
|
|
4456
|
+
|
|
4457
|
+
/**
|
|
4458
|
+
* Encodes the specified UnlinkedConnection message. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
4459
|
+
* @param message UnlinkedConnection message or plain object to encode
|
|
4460
|
+
* @param [writer] Writer to encode to
|
|
4461
|
+
* @returns Writer
|
|
4462
|
+
*/
|
|
4463
|
+
public static encode(message: IUnlinkedConnection, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4464
|
+
|
|
4465
|
+
/**
|
|
4466
|
+
* Encodes the specified UnlinkedConnection message, length delimited. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
4467
|
+
* @param message UnlinkedConnection message or plain object to encode
|
|
4468
|
+
* @param [writer] Writer to encode to
|
|
4469
|
+
* @returns Writer
|
|
4470
|
+
*/
|
|
4471
|
+
public static encodeDelimited(message: IUnlinkedConnection, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4472
|
+
|
|
4473
|
+
/**
|
|
4474
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer.
|
|
4475
|
+
* @param reader Reader or buffer to decode from
|
|
4476
|
+
* @param [length] Message length if known beforehand
|
|
4477
|
+
* @returns UnlinkedConnection
|
|
4478
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4479
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4480
|
+
*/
|
|
4481
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UnlinkedConnection;
|
|
4482
|
+
|
|
4483
|
+
/**
|
|
4484
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer, length delimited.
|
|
4485
|
+
* @param reader Reader or buffer to decode from
|
|
4486
|
+
* @returns UnlinkedConnection
|
|
4487
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4488
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4489
|
+
*/
|
|
4490
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UnlinkedConnection;
|
|
4491
|
+
|
|
4492
|
+
/**
|
|
4493
|
+
* Verifies an UnlinkedConnection message.
|
|
4494
|
+
* @param message Plain object to verify
|
|
4495
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4496
|
+
*/
|
|
4497
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
* Creates an UnlinkedConnection message from a plain object. Also converts values to their respective internal types.
|
|
4501
|
+
* @param object Plain object
|
|
4502
|
+
* @returns UnlinkedConnection
|
|
4503
|
+
*/
|
|
4504
|
+
public static fromObject(object: { [k: string]: any }): UnlinkedConnection;
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* Creates a plain object from an UnlinkedConnection message. Also converts values to other types if specified.
|
|
4508
|
+
* @param message UnlinkedConnection
|
|
4509
|
+
* @param [options] Conversion options
|
|
4510
|
+
* @returns Plain object
|
|
4511
|
+
*/
|
|
4512
|
+
public static toObject(message: UnlinkedConnection, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4513
|
+
|
|
4514
|
+
/**
|
|
4515
|
+
* Converts this UnlinkedConnection to JSON.
|
|
4516
|
+
* @returns JSON object
|
|
4517
|
+
*/
|
|
4518
|
+
public toJSON(): { [k: string]: any };
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4400
4521
|
/** Properties of an Auth0PasswordResetCompleted. */
|
|
4401
4522
|
export interface IAuth0PasswordResetCompleted {
|
|
4402
4523
|
|
package/lib/index.js
CHANGED
|
@@ -222,6 +222,54 @@ $root.date = (function() {
|
|
|
222
222
|
return date;
|
|
223
223
|
})();
|
|
224
224
|
|
|
225
|
+
$root.auth0 = (function() {
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Namespace auth0.
|
|
229
|
+
* @exports auth0
|
|
230
|
+
* @namespace
|
|
231
|
+
*/
|
|
232
|
+
var auth0 = {};
|
|
233
|
+
|
|
234
|
+
auth0.connections = (function() {
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Namespace connections.
|
|
238
|
+
* @memberof auth0
|
|
239
|
+
* @namespace
|
|
240
|
+
*/
|
|
241
|
+
var connections = {};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Connection enum.
|
|
245
|
+
* @name auth0.connections.Connection
|
|
246
|
+
* @enum {string}
|
|
247
|
+
* @property {number} UNKNOWN_CONNECTION=0 UNKNOWN_CONNECTION value
|
|
248
|
+
* @property {number} APPLE=1 APPLE value
|
|
249
|
+
* @property {number} FACEBOOK=2 FACEBOOK value
|
|
250
|
+
* @property {number} ONELOGIN=3 ONELOGIN value
|
|
251
|
+
* @property {number} SPOTIFY=4 SPOTIFY value
|
|
252
|
+
* @property {number} USER_PASSWORD_HEADSPACE=5 USER_PASSWORD_HEADSPACE value
|
|
253
|
+
* @property {number} VIRGINPULSE=6 VIRGINPULSE value
|
|
254
|
+
*/
|
|
255
|
+
connections.Connection = (function() {
|
|
256
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
257
|
+
values[valuesById[0] = "UNKNOWN_CONNECTION"] = 0;
|
|
258
|
+
values[valuesById[1] = "APPLE"] = 1;
|
|
259
|
+
values[valuesById[2] = "FACEBOOK"] = 2;
|
|
260
|
+
values[valuesById[3] = "ONELOGIN"] = 3;
|
|
261
|
+
values[valuesById[4] = "SPOTIFY"] = 4;
|
|
262
|
+
values[valuesById[5] = "USER_PASSWORD_HEADSPACE"] = 5;
|
|
263
|
+
values[valuesById[6] = "VIRGINPULSE"] = 6;
|
|
264
|
+
return values;
|
|
265
|
+
})();
|
|
266
|
+
|
|
267
|
+
return connections;
|
|
268
|
+
})();
|
|
269
|
+
|
|
270
|
+
return auth0;
|
|
271
|
+
})();
|
|
272
|
+
|
|
225
273
|
$root.contentful = (function() {
|
|
226
274
|
|
|
227
275
|
/**
|
|
@@ -10409,6 +10457,290 @@ $root.userdomain = (function() {
|
|
|
10409
10457
|
return userdomain;
|
|
10410
10458
|
})();
|
|
10411
10459
|
|
|
10460
|
+
$root.UnlinkedConnection = (function() {
|
|
10461
|
+
|
|
10462
|
+
/**
|
|
10463
|
+
* Properties of an UnlinkedConnection.
|
|
10464
|
+
* @exports IUnlinkedConnection
|
|
10465
|
+
* @interface IUnlinkedConnection
|
|
10466
|
+
* @property {string|null} [hsId] UnlinkedConnection hsId
|
|
10467
|
+
* @property {auth0.connections.Connection|null} [connection] UnlinkedConnection connection
|
|
10468
|
+
* @property {number|Long|null} [unlinkedAt] UnlinkedConnection unlinkedAt
|
|
10469
|
+
*/
|
|
10470
|
+
|
|
10471
|
+
/**
|
|
10472
|
+
* Constructs a new UnlinkedConnection.
|
|
10473
|
+
* @exports UnlinkedConnection
|
|
10474
|
+
* @classdesc Represents an UnlinkedConnection.
|
|
10475
|
+
* @implements IUnlinkedConnection
|
|
10476
|
+
* @constructor
|
|
10477
|
+
* @param {IUnlinkedConnection=} [properties] Properties to set
|
|
10478
|
+
*/
|
|
10479
|
+
function UnlinkedConnection(properties) {
|
|
10480
|
+
if (properties)
|
|
10481
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10482
|
+
if (properties[keys[i]] != null)
|
|
10483
|
+
this[keys[i]] = properties[keys[i]];
|
|
10484
|
+
}
|
|
10485
|
+
|
|
10486
|
+
/**
|
|
10487
|
+
* UnlinkedConnection hsId.
|
|
10488
|
+
* @member {string} hsId
|
|
10489
|
+
* @memberof UnlinkedConnection
|
|
10490
|
+
* @instance
|
|
10491
|
+
*/
|
|
10492
|
+
UnlinkedConnection.prototype.hsId = "";
|
|
10493
|
+
|
|
10494
|
+
/**
|
|
10495
|
+
* UnlinkedConnection connection.
|
|
10496
|
+
* @member {auth0.connections.Connection} connection
|
|
10497
|
+
* @memberof UnlinkedConnection
|
|
10498
|
+
* @instance
|
|
10499
|
+
*/
|
|
10500
|
+
UnlinkedConnection.prototype.connection = 0;
|
|
10501
|
+
|
|
10502
|
+
/**
|
|
10503
|
+
* UnlinkedConnection unlinkedAt.
|
|
10504
|
+
* @member {number|Long} unlinkedAt
|
|
10505
|
+
* @memberof UnlinkedConnection
|
|
10506
|
+
* @instance
|
|
10507
|
+
*/
|
|
10508
|
+
UnlinkedConnection.prototype.unlinkedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10509
|
+
|
|
10510
|
+
/**
|
|
10511
|
+
* Creates a new UnlinkedConnection instance using the specified properties.
|
|
10512
|
+
* @function create
|
|
10513
|
+
* @memberof UnlinkedConnection
|
|
10514
|
+
* @static
|
|
10515
|
+
* @param {IUnlinkedConnection=} [properties] Properties to set
|
|
10516
|
+
* @returns {UnlinkedConnection} UnlinkedConnection instance
|
|
10517
|
+
*/
|
|
10518
|
+
UnlinkedConnection.create = function create(properties) {
|
|
10519
|
+
return new UnlinkedConnection(properties);
|
|
10520
|
+
};
|
|
10521
|
+
|
|
10522
|
+
/**
|
|
10523
|
+
* Encodes the specified UnlinkedConnection message. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
10524
|
+
* @function encode
|
|
10525
|
+
* @memberof UnlinkedConnection
|
|
10526
|
+
* @static
|
|
10527
|
+
* @param {IUnlinkedConnection} message UnlinkedConnection message or plain object to encode
|
|
10528
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10529
|
+
* @returns {$protobuf.Writer} Writer
|
|
10530
|
+
*/
|
|
10531
|
+
UnlinkedConnection.encode = function encode(message, writer) {
|
|
10532
|
+
if (!writer)
|
|
10533
|
+
writer = $Writer.create();
|
|
10534
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10535
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
10536
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
10537
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.connection);
|
|
10538
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
10539
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.unlinkedAt);
|
|
10540
|
+
return writer;
|
|
10541
|
+
};
|
|
10542
|
+
|
|
10543
|
+
/**
|
|
10544
|
+
* Encodes the specified UnlinkedConnection message, length delimited. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
10545
|
+
* @function encodeDelimited
|
|
10546
|
+
* @memberof UnlinkedConnection
|
|
10547
|
+
* @static
|
|
10548
|
+
* @param {IUnlinkedConnection} message UnlinkedConnection message or plain object to encode
|
|
10549
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10550
|
+
* @returns {$protobuf.Writer} Writer
|
|
10551
|
+
*/
|
|
10552
|
+
UnlinkedConnection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10553
|
+
return this.encode(message, writer).ldelim();
|
|
10554
|
+
};
|
|
10555
|
+
|
|
10556
|
+
/**
|
|
10557
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer.
|
|
10558
|
+
* @function decode
|
|
10559
|
+
* @memberof UnlinkedConnection
|
|
10560
|
+
* @static
|
|
10561
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10562
|
+
* @param {number} [length] Message length if known beforehand
|
|
10563
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
10564
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10565
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10566
|
+
*/
|
|
10567
|
+
UnlinkedConnection.decode = function decode(reader, length) {
|
|
10568
|
+
if (!(reader instanceof $Reader))
|
|
10569
|
+
reader = $Reader.create(reader);
|
|
10570
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UnlinkedConnection();
|
|
10571
|
+
while (reader.pos < end) {
|
|
10572
|
+
var tag = reader.uint32();
|
|
10573
|
+
switch (tag >>> 3) {
|
|
10574
|
+
case 1:
|
|
10575
|
+
message.hsId = reader.string();
|
|
10576
|
+
break;
|
|
10577
|
+
case 2:
|
|
10578
|
+
message.connection = reader.int32();
|
|
10579
|
+
break;
|
|
10580
|
+
case 3:
|
|
10581
|
+
message.unlinkedAt = reader.uint64();
|
|
10582
|
+
break;
|
|
10583
|
+
default:
|
|
10584
|
+
reader.skipType(tag & 7);
|
|
10585
|
+
break;
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
return message;
|
|
10589
|
+
};
|
|
10590
|
+
|
|
10591
|
+
/**
|
|
10592
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer, length delimited.
|
|
10593
|
+
* @function decodeDelimited
|
|
10594
|
+
* @memberof UnlinkedConnection
|
|
10595
|
+
* @static
|
|
10596
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10597
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
10598
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10599
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10600
|
+
*/
|
|
10601
|
+
UnlinkedConnection.decodeDelimited = function decodeDelimited(reader) {
|
|
10602
|
+
if (!(reader instanceof $Reader))
|
|
10603
|
+
reader = new $Reader(reader);
|
|
10604
|
+
return this.decode(reader, reader.uint32());
|
|
10605
|
+
};
|
|
10606
|
+
|
|
10607
|
+
/**
|
|
10608
|
+
* Verifies an UnlinkedConnection message.
|
|
10609
|
+
* @function verify
|
|
10610
|
+
* @memberof UnlinkedConnection
|
|
10611
|
+
* @static
|
|
10612
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10613
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10614
|
+
*/
|
|
10615
|
+
UnlinkedConnection.verify = function verify(message) {
|
|
10616
|
+
if (typeof message !== "object" || message === null)
|
|
10617
|
+
return "object expected";
|
|
10618
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10619
|
+
if (!$util.isString(message.hsId))
|
|
10620
|
+
return "hsId: string expected";
|
|
10621
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
10622
|
+
switch (message.connection) {
|
|
10623
|
+
default:
|
|
10624
|
+
return "connection: enum value expected";
|
|
10625
|
+
case 0:
|
|
10626
|
+
case 1:
|
|
10627
|
+
case 2:
|
|
10628
|
+
case 3:
|
|
10629
|
+
case 4:
|
|
10630
|
+
case 5:
|
|
10631
|
+
case 6:
|
|
10632
|
+
break;
|
|
10633
|
+
}
|
|
10634
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
10635
|
+
if (!$util.isInteger(message.unlinkedAt) && !(message.unlinkedAt && $util.isInteger(message.unlinkedAt.low) && $util.isInteger(message.unlinkedAt.high)))
|
|
10636
|
+
return "unlinkedAt: integer|Long expected";
|
|
10637
|
+
return null;
|
|
10638
|
+
};
|
|
10639
|
+
|
|
10640
|
+
/**
|
|
10641
|
+
* Creates an UnlinkedConnection message from a plain object. Also converts values to their respective internal types.
|
|
10642
|
+
* @function fromObject
|
|
10643
|
+
* @memberof UnlinkedConnection
|
|
10644
|
+
* @static
|
|
10645
|
+
* @param {Object.<string,*>} object Plain object
|
|
10646
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
10647
|
+
*/
|
|
10648
|
+
UnlinkedConnection.fromObject = function fromObject(object) {
|
|
10649
|
+
if (object instanceof $root.UnlinkedConnection)
|
|
10650
|
+
return object;
|
|
10651
|
+
var message = new $root.UnlinkedConnection();
|
|
10652
|
+
if (object.hsId != null)
|
|
10653
|
+
message.hsId = String(object.hsId);
|
|
10654
|
+
switch (object.connection) {
|
|
10655
|
+
case "UNKNOWN_CONNECTION":
|
|
10656
|
+
case 0:
|
|
10657
|
+
message.connection = 0;
|
|
10658
|
+
break;
|
|
10659
|
+
case "APPLE":
|
|
10660
|
+
case 1:
|
|
10661
|
+
message.connection = 1;
|
|
10662
|
+
break;
|
|
10663
|
+
case "FACEBOOK":
|
|
10664
|
+
case 2:
|
|
10665
|
+
message.connection = 2;
|
|
10666
|
+
break;
|
|
10667
|
+
case "ONELOGIN":
|
|
10668
|
+
case 3:
|
|
10669
|
+
message.connection = 3;
|
|
10670
|
+
break;
|
|
10671
|
+
case "SPOTIFY":
|
|
10672
|
+
case 4:
|
|
10673
|
+
message.connection = 4;
|
|
10674
|
+
break;
|
|
10675
|
+
case "USER_PASSWORD_HEADSPACE":
|
|
10676
|
+
case 5:
|
|
10677
|
+
message.connection = 5;
|
|
10678
|
+
break;
|
|
10679
|
+
case "VIRGINPULSE":
|
|
10680
|
+
case 6:
|
|
10681
|
+
message.connection = 6;
|
|
10682
|
+
break;
|
|
10683
|
+
}
|
|
10684
|
+
if (object.unlinkedAt != null)
|
|
10685
|
+
if ($util.Long)
|
|
10686
|
+
(message.unlinkedAt = $util.Long.fromValue(object.unlinkedAt)).unsigned = true;
|
|
10687
|
+
else if (typeof object.unlinkedAt === "string")
|
|
10688
|
+
message.unlinkedAt = parseInt(object.unlinkedAt, 10);
|
|
10689
|
+
else if (typeof object.unlinkedAt === "number")
|
|
10690
|
+
message.unlinkedAt = object.unlinkedAt;
|
|
10691
|
+
else if (typeof object.unlinkedAt === "object")
|
|
10692
|
+
message.unlinkedAt = new $util.LongBits(object.unlinkedAt.low >>> 0, object.unlinkedAt.high >>> 0).toNumber(true);
|
|
10693
|
+
return message;
|
|
10694
|
+
};
|
|
10695
|
+
|
|
10696
|
+
/**
|
|
10697
|
+
* Creates a plain object from an UnlinkedConnection message. Also converts values to other types if specified.
|
|
10698
|
+
* @function toObject
|
|
10699
|
+
* @memberof UnlinkedConnection
|
|
10700
|
+
* @static
|
|
10701
|
+
* @param {UnlinkedConnection} message UnlinkedConnection
|
|
10702
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10703
|
+
* @returns {Object.<string,*>} Plain object
|
|
10704
|
+
*/
|
|
10705
|
+
UnlinkedConnection.toObject = function toObject(message, options) {
|
|
10706
|
+
if (!options)
|
|
10707
|
+
options = {};
|
|
10708
|
+
var object = {};
|
|
10709
|
+
if (options.defaults) {
|
|
10710
|
+
object.hsId = "";
|
|
10711
|
+
object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
|
|
10712
|
+
if ($util.Long) {
|
|
10713
|
+
var long = new $util.Long(0, 0, true);
|
|
10714
|
+
object.unlinkedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10715
|
+
} else
|
|
10716
|
+
object.unlinkedAt = options.longs === String ? "0" : 0;
|
|
10717
|
+
}
|
|
10718
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10719
|
+
object.hsId = message.hsId;
|
|
10720
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
10721
|
+
object.connection = options.enums === String ? $root.auth0.connections.Connection[message.connection] : message.connection;
|
|
10722
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
10723
|
+
if (typeof message.unlinkedAt === "number")
|
|
10724
|
+
object.unlinkedAt = options.longs === String ? String(message.unlinkedAt) : message.unlinkedAt;
|
|
10725
|
+
else
|
|
10726
|
+
object.unlinkedAt = options.longs === String ? $util.Long.prototype.toString.call(message.unlinkedAt) : options.longs === Number ? new $util.LongBits(message.unlinkedAt.low >>> 0, message.unlinkedAt.high >>> 0).toNumber(true) : message.unlinkedAt;
|
|
10727
|
+
return object;
|
|
10728
|
+
};
|
|
10729
|
+
|
|
10730
|
+
/**
|
|
10731
|
+
* Converts this UnlinkedConnection to JSON.
|
|
10732
|
+
* @function toJSON
|
|
10733
|
+
* @memberof UnlinkedConnection
|
|
10734
|
+
* @instance
|
|
10735
|
+
* @returns {Object.<string,*>} JSON object
|
|
10736
|
+
*/
|
|
10737
|
+
UnlinkedConnection.prototype.toJSON = function toJSON() {
|
|
10738
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10739
|
+
};
|
|
10740
|
+
|
|
10741
|
+
return UnlinkedConnection;
|
|
10742
|
+
})();
|
|
10743
|
+
|
|
10412
10744
|
$root.Auth0PasswordResetCompleted = (function() {
|
|
10413
10745
|
|
|
10414
10746
|
/**
|
package/package.json
CHANGED