@headspace/protos-events 1.206.0 → 1.207.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 +129 -0
- package/lib/index.js +422 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -96,6 +96,27 @@ export namespace date {
|
|
|
96
96
|
/** Namespace auth0. */
|
|
97
97
|
export namespace auth0 {
|
|
98
98
|
|
|
99
|
+
/** Namespace client. */
|
|
100
|
+
namespace client {
|
|
101
|
+
|
|
102
|
+
/** Client enum. */
|
|
103
|
+
enum Client {
|
|
104
|
+
UNKNOWN_CLIENT = 0,
|
|
105
|
+
ALEXA = 1,
|
|
106
|
+
ANDROID = 2,
|
|
107
|
+
GOOGLE_ASSISTANT = 3,
|
|
108
|
+
HS_HEALTH_IOS = 4,
|
|
109
|
+
HS_HEALTH_WEB = 5,
|
|
110
|
+
IOS = 6,
|
|
111
|
+
IOS_WATCH = 7,
|
|
112
|
+
WEB = 8,
|
|
113
|
+
HS_TELEHEALTH_WEB = 9,
|
|
114
|
+
API_EXPLORER_APPLICATION = 10,
|
|
115
|
+
AUTH0_DEPLOY_CLI_EXTENSION = 11,
|
|
116
|
+
HS_LOAD_TEST = 12
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
99
120
|
/** Namespace connections. */
|
|
100
121
|
namespace connections {
|
|
101
122
|
|
|
@@ -4612,6 +4633,114 @@ export namespace userdomain {
|
|
|
4612
4633
|
}
|
|
4613
4634
|
}
|
|
4614
4635
|
|
|
4636
|
+
/** Properties of a SuccessfulUserLogin. */
|
|
4637
|
+
export interface ISuccessfulUserLogin {
|
|
4638
|
+
|
|
4639
|
+
/** SuccessfulUserLogin hsId */
|
|
4640
|
+
hsId?: (string|null);
|
|
4641
|
+
|
|
4642
|
+
/** SuccessfulUserLogin loginAt */
|
|
4643
|
+
loginAt?: (number|Long|null);
|
|
4644
|
+
|
|
4645
|
+
/** SuccessfulUserLogin client */
|
|
4646
|
+
client?: (auth0.client.Client|null);
|
|
4647
|
+
|
|
4648
|
+
/** SuccessfulUserLogin connection */
|
|
4649
|
+
connection?: (auth0.connections.Connection|null);
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4652
|
+
/** Represents a SuccessfulUserLogin. */
|
|
4653
|
+
export class SuccessfulUserLogin implements ISuccessfulUserLogin {
|
|
4654
|
+
|
|
4655
|
+
/**
|
|
4656
|
+
* Constructs a new SuccessfulUserLogin.
|
|
4657
|
+
* @param [properties] Properties to set
|
|
4658
|
+
*/
|
|
4659
|
+
constructor(properties?: ISuccessfulUserLogin);
|
|
4660
|
+
|
|
4661
|
+
/** SuccessfulUserLogin hsId. */
|
|
4662
|
+
public hsId: string;
|
|
4663
|
+
|
|
4664
|
+
/** SuccessfulUserLogin loginAt. */
|
|
4665
|
+
public loginAt: (number|Long);
|
|
4666
|
+
|
|
4667
|
+
/** SuccessfulUserLogin client. */
|
|
4668
|
+
public client: auth0.client.Client;
|
|
4669
|
+
|
|
4670
|
+
/** SuccessfulUserLogin connection. */
|
|
4671
|
+
public connection: auth0.connections.Connection;
|
|
4672
|
+
|
|
4673
|
+
/**
|
|
4674
|
+
* Creates a new SuccessfulUserLogin instance using the specified properties.
|
|
4675
|
+
* @param [properties] Properties to set
|
|
4676
|
+
* @returns SuccessfulUserLogin instance
|
|
4677
|
+
*/
|
|
4678
|
+
public static create(properties?: ISuccessfulUserLogin): SuccessfulUserLogin;
|
|
4679
|
+
|
|
4680
|
+
/**
|
|
4681
|
+
* Encodes the specified SuccessfulUserLogin message. Does not implicitly {@link SuccessfulUserLogin.verify|verify} messages.
|
|
4682
|
+
* @param message SuccessfulUserLogin message or plain object to encode
|
|
4683
|
+
* @param [writer] Writer to encode to
|
|
4684
|
+
* @returns Writer
|
|
4685
|
+
*/
|
|
4686
|
+
public static encode(message: ISuccessfulUserLogin, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4687
|
+
|
|
4688
|
+
/**
|
|
4689
|
+
* Encodes the specified SuccessfulUserLogin message, length delimited. Does not implicitly {@link SuccessfulUserLogin.verify|verify} messages.
|
|
4690
|
+
* @param message SuccessfulUserLogin message or plain object to encode
|
|
4691
|
+
* @param [writer] Writer to encode to
|
|
4692
|
+
* @returns Writer
|
|
4693
|
+
*/
|
|
4694
|
+
public static encodeDelimited(message: ISuccessfulUserLogin, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4695
|
+
|
|
4696
|
+
/**
|
|
4697
|
+
* Decodes a SuccessfulUserLogin message from the specified reader or buffer.
|
|
4698
|
+
* @param reader Reader or buffer to decode from
|
|
4699
|
+
* @param [length] Message length if known beforehand
|
|
4700
|
+
* @returns SuccessfulUserLogin
|
|
4701
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4702
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4703
|
+
*/
|
|
4704
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SuccessfulUserLogin;
|
|
4705
|
+
|
|
4706
|
+
/**
|
|
4707
|
+
* Decodes a SuccessfulUserLogin message from the specified reader or buffer, length delimited.
|
|
4708
|
+
* @param reader Reader or buffer to decode from
|
|
4709
|
+
* @returns SuccessfulUserLogin
|
|
4710
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4711
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4712
|
+
*/
|
|
4713
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SuccessfulUserLogin;
|
|
4714
|
+
|
|
4715
|
+
/**
|
|
4716
|
+
* Verifies a SuccessfulUserLogin message.
|
|
4717
|
+
* @param message Plain object to verify
|
|
4718
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4719
|
+
*/
|
|
4720
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4721
|
+
|
|
4722
|
+
/**
|
|
4723
|
+
* Creates a SuccessfulUserLogin message from a plain object. Also converts values to their respective internal types.
|
|
4724
|
+
* @param object Plain object
|
|
4725
|
+
* @returns SuccessfulUserLogin
|
|
4726
|
+
*/
|
|
4727
|
+
public static fromObject(object: { [k: string]: any }): SuccessfulUserLogin;
|
|
4728
|
+
|
|
4729
|
+
/**
|
|
4730
|
+
* Creates a plain object from a SuccessfulUserLogin message. Also converts values to other types if specified.
|
|
4731
|
+
* @param message SuccessfulUserLogin
|
|
4732
|
+
* @param [options] Conversion options
|
|
4733
|
+
* @returns Plain object
|
|
4734
|
+
*/
|
|
4735
|
+
public static toObject(message: SuccessfulUserLogin, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4736
|
+
|
|
4737
|
+
/**
|
|
4738
|
+
* Converts this SuccessfulUserLogin to JSON.
|
|
4739
|
+
* @returns JSON object
|
|
4740
|
+
*/
|
|
4741
|
+
public toJSON(): { [k: string]: any };
|
|
4742
|
+
}
|
|
4743
|
+
|
|
4615
4744
|
/** Properties of an UnlinkedConnection. */
|
|
4616
4745
|
export interface IUnlinkedConnection {
|
|
4617
4746
|
|
package/lib/index.js
CHANGED
|
@@ -231,6 +231,54 @@ $root.auth0 = (function() {
|
|
|
231
231
|
*/
|
|
232
232
|
var auth0 = {};
|
|
233
233
|
|
|
234
|
+
auth0.client = (function() {
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Namespace client.
|
|
238
|
+
* @memberof auth0
|
|
239
|
+
* @namespace
|
|
240
|
+
*/
|
|
241
|
+
var client = {};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Client enum.
|
|
245
|
+
* @name auth0.client.Client
|
|
246
|
+
* @enum {string}
|
|
247
|
+
* @property {number} UNKNOWN_CLIENT=0 UNKNOWN_CLIENT value
|
|
248
|
+
* @property {number} ALEXA=1 ALEXA value
|
|
249
|
+
* @property {number} ANDROID=2 ANDROID value
|
|
250
|
+
* @property {number} GOOGLE_ASSISTANT=3 GOOGLE_ASSISTANT value
|
|
251
|
+
* @property {number} HS_HEALTH_IOS=4 HS_HEALTH_IOS value
|
|
252
|
+
* @property {number} HS_HEALTH_WEB=5 HS_HEALTH_WEB value
|
|
253
|
+
* @property {number} IOS=6 IOS value
|
|
254
|
+
* @property {number} IOS_WATCH=7 IOS_WATCH value
|
|
255
|
+
* @property {number} WEB=8 WEB value
|
|
256
|
+
* @property {number} HS_TELEHEALTH_WEB=9 HS_TELEHEALTH_WEB value
|
|
257
|
+
* @property {number} API_EXPLORER_APPLICATION=10 API_EXPLORER_APPLICATION value
|
|
258
|
+
* @property {number} AUTH0_DEPLOY_CLI_EXTENSION=11 AUTH0_DEPLOY_CLI_EXTENSION value
|
|
259
|
+
* @property {number} HS_LOAD_TEST=12 HS_LOAD_TEST value
|
|
260
|
+
*/
|
|
261
|
+
client.Client = (function() {
|
|
262
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
263
|
+
values[valuesById[0] = "UNKNOWN_CLIENT"] = 0;
|
|
264
|
+
values[valuesById[1] = "ALEXA"] = 1;
|
|
265
|
+
values[valuesById[2] = "ANDROID"] = 2;
|
|
266
|
+
values[valuesById[3] = "GOOGLE_ASSISTANT"] = 3;
|
|
267
|
+
values[valuesById[4] = "HS_HEALTH_IOS"] = 4;
|
|
268
|
+
values[valuesById[5] = "HS_HEALTH_WEB"] = 5;
|
|
269
|
+
values[valuesById[6] = "IOS"] = 6;
|
|
270
|
+
values[valuesById[7] = "IOS_WATCH"] = 7;
|
|
271
|
+
values[valuesById[8] = "WEB"] = 8;
|
|
272
|
+
values[valuesById[9] = "HS_TELEHEALTH_WEB"] = 9;
|
|
273
|
+
values[valuesById[10] = "API_EXPLORER_APPLICATION"] = 10;
|
|
274
|
+
values[valuesById[11] = "AUTH0_DEPLOY_CLI_EXTENSION"] = 11;
|
|
275
|
+
values[valuesById[12] = "HS_LOAD_TEST"] = 12;
|
|
276
|
+
return values;
|
|
277
|
+
})();
|
|
278
|
+
|
|
279
|
+
return client;
|
|
280
|
+
})();
|
|
281
|
+
|
|
234
282
|
auth0.connections = (function() {
|
|
235
283
|
|
|
236
284
|
/**
|
|
@@ -11071,6 +11119,380 @@ $root.userdomain = (function() {
|
|
|
11071
11119
|
return userdomain;
|
|
11072
11120
|
})();
|
|
11073
11121
|
|
|
11122
|
+
$root.SuccessfulUserLogin = (function() {
|
|
11123
|
+
|
|
11124
|
+
/**
|
|
11125
|
+
* Properties of a SuccessfulUserLogin.
|
|
11126
|
+
* @exports ISuccessfulUserLogin
|
|
11127
|
+
* @interface ISuccessfulUserLogin
|
|
11128
|
+
* @property {string|null} [hsId] SuccessfulUserLogin hsId
|
|
11129
|
+
* @property {number|Long|null} [loginAt] SuccessfulUserLogin loginAt
|
|
11130
|
+
* @property {auth0.client.Client|null} [client] SuccessfulUserLogin client
|
|
11131
|
+
* @property {auth0.connections.Connection|null} [connection] SuccessfulUserLogin connection
|
|
11132
|
+
*/
|
|
11133
|
+
|
|
11134
|
+
/**
|
|
11135
|
+
* Constructs a new SuccessfulUserLogin.
|
|
11136
|
+
* @exports SuccessfulUserLogin
|
|
11137
|
+
* @classdesc Represents a SuccessfulUserLogin.
|
|
11138
|
+
* @implements ISuccessfulUserLogin
|
|
11139
|
+
* @constructor
|
|
11140
|
+
* @param {ISuccessfulUserLogin=} [properties] Properties to set
|
|
11141
|
+
*/
|
|
11142
|
+
function SuccessfulUserLogin(properties) {
|
|
11143
|
+
if (properties)
|
|
11144
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11145
|
+
if (properties[keys[i]] != null)
|
|
11146
|
+
this[keys[i]] = properties[keys[i]];
|
|
11147
|
+
}
|
|
11148
|
+
|
|
11149
|
+
/**
|
|
11150
|
+
* SuccessfulUserLogin hsId.
|
|
11151
|
+
* @member {string} hsId
|
|
11152
|
+
* @memberof SuccessfulUserLogin
|
|
11153
|
+
* @instance
|
|
11154
|
+
*/
|
|
11155
|
+
SuccessfulUserLogin.prototype.hsId = "";
|
|
11156
|
+
|
|
11157
|
+
/**
|
|
11158
|
+
* SuccessfulUserLogin loginAt.
|
|
11159
|
+
* @member {number|Long} loginAt
|
|
11160
|
+
* @memberof SuccessfulUserLogin
|
|
11161
|
+
* @instance
|
|
11162
|
+
*/
|
|
11163
|
+
SuccessfulUserLogin.prototype.loginAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11164
|
+
|
|
11165
|
+
/**
|
|
11166
|
+
* SuccessfulUserLogin client.
|
|
11167
|
+
* @member {auth0.client.Client} client
|
|
11168
|
+
* @memberof SuccessfulUserLogin
|
|
11169
|
+
* @instance
|
|
11170
|
+
*/
|
|
11171
|
+
SuccessfulUserLogin.prototype.client = 0;
|
|
11172
|
+
|
|
11173
|
+
/**
|
|
11174
|
+
* SuccessfulUserLogin connection.
|
|
11175
|
+
* @member {auth0.connections.Connection} connection
|
|
11176
|
+
* @memberof SuccessfulUserLogin
|
|
11177
|
+
* @instance
|
|
11178
|
+
*/
|
|
11179
|
+
SuccessfulUserLogin.prototype.connection = 0;
|
|
11180
|
+
|
|
11181
|
+
/**
|
|
11182
|
+
* Creates a new SuccessfulUserLogin instance using the specified properties.
|
|
11183
|
+
* @function create
|
|
11184
|
+
* @memberof SuccessfulUserLogin
|
|
11185
|
+
* @static
|
|
11186
|
+
* @param {ISuccessfulUserLogin=} [properties] Properties to set
|
|
11187
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin instance
|
|
11188
|
+
*/
|
|
11189
|
+
SuccessfulUserLogin.create = function create(properties) {
|
|
11190
|
+
return new SuccessfulUserLogin(properties);
|
|
11191
|
+
};
|
|
11192
|
+
|
|
11193
|
+
/**
|
|
11194
|
+
* Encodes the specified SuccessfulUserLogin message. Does not implicitly {@link SuccessfulUserLogin.verify|verify} messages.
|
|
11195
|
+
* @function encode
|
|
11196
|
+
* @memberof SuccessfulUserLogin
|
|
11197
|
+
* @static
|
|
11198
|
+
* @param {ISuccessfulUserLogin} message SuccessfulUserLogin message or plain object to encode
|
|
11199
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11200
|
+
* @returns {$protobuf.Writer} Writer
|
|
11201
|
+
*/
|
|
11202
|
+
SuccessfulUserLogin.encode = function encode(message, writer) {
|
|
11203
|
+
if (!writer)
|
|
11204
|
+
writer = $Writer.create();
|
|
11205
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11206
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
11207
|
+
if (message.loginAt != null && message.hasOwnProperty("loginAt"))
|
|
11208
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.loginAt);
|
|
11209
|
+
if (message.client != null && message.hasOwnProperty("client"))
|
|
11210
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.client);
|
|
11211
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11212
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.connection);
|
|
11213
|
+
return writer;
|
|
11214
|
+
};
|
|
11215
|
+
|
|
11216
|
+
/**
|
|
11217
|
+
* Encodes the specified SuccessfulUserLogin message, length delimited. Does not implicitly {@link SuccessfulUserLogin.verify|verify} messages.
|
|
11218
|
+
* @function encodeDelimited
|
|
11219
|
+
* @memberof SuccessfulUserLogin
|
|
11220
|
+
* @static
|
|
11221
|
+
* @param {ISuccessfulUserLogin} message SuccessfulUserLogin message or plain object to encode
|
|
11222
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11223
|
+
* @returns {$protobuf.Writer} Writer
|
|
11224
|
+
*/
|
|
11225
|
+
SuccessfulUserLogin.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11226
|
+
return this.encode(message, writer).ldelim();
|
|
11227
|
+
};
|
|
11228
|
+
|
|
11229
|
+
/**
|
|
11230
|
+
* Decodes a SuccessfulUserLogin message from the specified reader or buffer.
|
|
11231
|
+
* @function decode
|
|
11232
|
+
* @memberof SuccessfulUserLogin
|
|
11233
|
+
* @static
|
|
11234
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11235
|
+
* @param {number} [length] Message length if known beforehand
|
|
11236
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin
|
|
11237
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11238
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11239
|
+
*/
|
|
11240
|
+
SuccessfulUserLogin.decode = function decode(reader, length) {
|
|
11241
|
+
if (!(reader instanceof $Reader))
|
|
11242
|
+
reader = $Reader.create(reader);
|
|
11243
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SuccessfulUserLogin();
|
|
11244
|
+
while (reader.pos < end) {
|
|
11245
|
+
var tag = reader.uint32();
|
|
11246
|
+
switch (tag >>> 3) {
|
|
11247
|
+
case 1:
|
|
11248
|
+
message.hsId = reader.string();
|
|
11249
|
+
break;
|
|
11250
|
+
case 2:
|
|
11251
|
+
message.loginAt = reader.uint64();
|
|
11252
|
+
break;
|
|
11253
|
+
case 3:
|
|
11254
|
+
message.client = reader.int32();
|
|
11255
|
+
break;
|
|
11256
|
+
case 4:
|
|
11257
|
+
message.connection = reader.int32();
|
|
11258
|
+
break;
|
|
11259
|
+
default:
|
|
11260
|
+
reader.skipType(tag & 7);
|
|
11261
|
+
break;
|
|
11262
|
+
}
|
|
11263
|
+
}
|
|
11264
|
+
return message;
|
|
11265
|
+
};
|
|
11266
|
+
|
|
11267
|
+
/**
|
|
11268
|
+
* Decodes a SuccessfulUserLogin message from the specified reader or buffer, length delimited.
|
|
11269
|
+
* @function decodeDelimited
|
|
11270
|
+
* @memberof SuccessfulUserLogin
|
|
11271
|
+
* @static
|
|
11272
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11273
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin
|
|
11274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11276
|
+
*/
|
|
11277
|
+
SuccessfulUserLogin.decodeDelimited = function decodeDelimited(reader) {
|
|
11278
|
+
if (!(reader instanceof $Reader))
|
|
11279
|
+
reader = new $Reader(reader);
|
|
11280
|
+
return this.decode(reader, reader.uint32());
|
|
11281
|
+
};
|
|
11282
|
+
|
|
11283
|
+
/**
|
|
11284
|
+
* Verifies a SuccessfulUserLogin message.
|
|
11285
|
+
* @function verify
|
|
11286
|
+
* @memberof SuccessfulUserLogin
|
|
11287
|
+
* @static
|
|
11288
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11289
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11290
|
+
*/
|
|
11291
|
+
SuccessfulUserLogin.verify = function verify(message) {
|
|
11292
|
+
if (typeof message !== "object" || message === null)
|
|
11293
|
+
return "object expected";
|
|
11294
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11295
|
+
if (!$util.isString(message.hsId))
|
|
11296
|
+
return "hsId: string expected";
|
|
11297
|
+
if (message.loginAt != null && message.hasOwnProperty("loginAt"))
|
|
11298
|
+
if (!$util.isInteger(message.loginAt) && !(message.loginAt && $util.isInteger(message.loginAt.low) && $util.isInteger(message.loginAt.high)))
|
|
11299
|
+
return "loginAt: integer|Long expected";
|
|
11300
|
+
if (message.client != null && message.hasOwnProperty("client"))
|
|
11301
|
+
switch (message.client) {
|
|
11302
|
+
default:
|
|
11303
|
+
return "client: enum value expected";
|
|
11304
|
+
case 0:
|
|
11305
|
+
case 1:
|
|
11306
|
+
case 2:
|
|
11307
|
+
case 3:
|
|
11308
|
+
case 4:
|
|
11309
|
+
case 5:
|
|
11310
|
+
case 6:
|
|
11311
|
+
case 7:
|
|
11312
|
+
case 8:
|
|
11313
|
+
case 9:
|
|
11314
|
+
case 10:
|
|
11315
|
+
case 11:
|
|
11316
|
+
case 12:
|
|
11317
|
+
break;
|
|
11318
|
+
}
|
|
11319
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11320
|
+
switch (message.connection) {
|
|
11321
|
+
default:
|
|
11322
|
+
return "connection: enum value expected";
|
|
11323
|
+
case 0:
|
|
11324
|
+
case 1:
|
|
11325
|
+
case 2:
|
|
11326
|
+
case 3:
|
|
11327
|
+
case 4:
|
|
11328
|
+
case 5:
|
|
11329
|
+
case 6:
|
|
11330
|
+
break;
|
|
11331
|
+
}
|
|
11332
|
+
return null;
|
|
11333
|
+
};
|
|
11334
|
+
|
|
11335
|
+
/**
|
|
11336
|
+
* Creates a SuccessfulUserLogin message from a plain object. Also converts values to their respective internal types.
|
|
11337
|
+
* @function fromObject
|
|
11338
|
+
* @memberof SuccessfulUserLogin
|
|
11339
|
+
* @static
|
|
11340
|
+
* @param {Object.<string,*>} object Plain object
|
|
11341
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin
|
|
11342
|
+
*/
|
|
11343
|
+
SuccessfulUserLogin.fromObject = function fromObject(object) {
|
|
11344
|
+
if (object instanceof $root.SuccessfulUserLogin)
|
|
11345
|
+
return object;
|
|
11346
|
+
var message = new $root.SuccessfulUserLogin();
|
|
11347
|
+
if (object.hsId != null)
|
|
11348
|
+
message.hsId = String(object.hsId);
|
|
11349
|
+
if (object.loginAt != null)
|
|
11350
|
+
if ($util.Long)
|
|
11351
|
+
(message.loginAt = $util.Long.fromValue(object.loginAt)).unsigned = true;
|
|
11352
|
+
else if (typeof object.loginAt === "string")
|
|
11353
|
+
message.loginAt = parseInt(object.loginAt, 10);
|
|
11354
|
+
else if (typeof object.loginAt === "number")
|
|
11355
|
+
message.loginAt = object.loginAt;
|
|
11356
|
+
else if (typeof object.loginAt === "object")
|
|
11357
|
+
message.loginAt = new $util.LongBits(object.loginAt.low >>> 0, object.loginAt.high >>> 0).toNumber(true);
|
|
11358
|
+
switch (object.client) {
|
|
11359
|
+
case "UNKNOWN_CLIENT":
|
|
11360
|
+
case 0:
|
|
11361
|
+
message.client = 0;
|
|
11362
|
+
break;
|
|
11363
|
+
case "ALEXA":
|
|
11364
|
+
case 1:
|
|
11365
|
+
message.client = 1;
|
|
11366
|
+
break;
|
|
11367
|
+
case "ANDROID":
|
|
11368
|
+
case 2:
|
|
11369
|
+
message.client = 2;
|
|
11370
|
+
break;
|
|
11371
|
+
case "GOOGLE_ASSISTANT":
|
|
11372
|
+
case 3:
|
|
11373
|
+
message.client = 3;
|
|
11374
|
+
break;
|
|
11375
|
+
case "HS_HEALTH_IOS":
|
|
11376
|
+
case 4:
|
|
11377
|
+
message.client = 4;
|
|
11378
|
+
break;
|
|
11379
|
+
case "HS_HEALTH_WEB":
|
|
11380
|
+
case 5:
|
|
11381
|
+
message.client = 5;
|
|
11382
|
+
break;
|
|
11383
|
+
case "IOS":
|
|
11384
|
+
case 6:
|
|
11385
|
+
message.client = 6;
|
|
11386
|
+
break;
|
|
11387
|
+
case "IOS_WATCH":
|
|
11388
|
+
case 7:
|
|
11389
|
+
message.client = 7;
|
|
11390
|
+
break;
|
|
11391
|
+
case "WEB":
|
|
11392
|
+
case 8:
|
|
11393
|
+
message.client = 8;
|
|
11394
|
+
break;
|
|
11395
|
+
case "HS_TELEHEALTH_WEB":
|
|
11396
|
+
case 9:
|
|
11397
|
+
message.client = 9;
|
|
11398
|
+
break;
|
|
11399
|
+
case "API_EXPLORER_APPLICATION":
|
|
11400
|
+
case 10:
|
|
11401
|
+
message.client = 10;
|
|
11402
|
+
break;
|
|
11403
|
+
case "AUTH0_DEPLOY_CLI_EXTENSION":
|
|
11404
|
+
case 11:
|
|
11405
|
+
message.client = 11;
|
|
11406
|
+
break;
|
|
11407
|
+
case "HS_LOAD_TEST":
|
|
11408
|
+
case 12:
|
|
11409
|
+
message.client = 12;
|
|
11410
|
+
break;
|
|
11411
|
+
}
|
|
11412
|
+
switch (object.connection) {
|
|
11413
|
+
case "UNKNOWN_CONNECTION":
|
|
11414
|
+
case 0:
|
|
11415
|
+
message.connection = 0;
|
|
11416
|
+
break;
|
|
11417
|
+
case "APPLE":
|
|
11418
|
+
case 1:
|
|
11419
|
+
message.connection = 1;
|
|
11420
|
+
break;
|
|
11421
|
+
case "FACEBOOK":
|
|
11422
|
+
case 2:
|
|
11423
|
+
message.connection = 2;
|
|
11424
|
+
break;
|
|
11425
|
+
case "ONELOGIN":
|
|
11426
|
+
case 3:
|
|
11427
|
+
message.connection = 3;
|
|
11428
|
+
break;
|
|
11429
|
+
case "SPOTIFY":
|
|
11430
|
+
case 4:
|
|
11431
|
+
message.connection = 4;
|
|
11432
|
+
break;
|
|
11433
|
+
case "USER_PASSWORD_HEADSPACE":
|
|
11434
|
+
case 5:
|
|
11435
|
+
message.connection = 5;
|
|
11436
|
+
break;
|
|
11437
|
+
case "VIRGINPULSE":
|
|
11438
|
+
case 6:
|
|
11439
|
+
message.connection = 6;
|
|
11440
|
+
break;
|
|
11441
|
+
}
|
|
11442
|
+
return message;
|
|
11443
|
+
};
|
|
11444
|
+
|
|
11445
|
+
/**
|
|
11446
|
+
* Creates a plain object from a SuccessfulUserLogin message. Also converts values to other types if specified.
|
|
11447
|
+
* @function toObject
|
|
11448
|
+
* @memberof SuccessfulUserLogin
|
|
11449
|
+
* @static
|
|
11450
|
+
* @param {SuccessfulUserLogin} message SuccessfulUserLogin
|
|
11451
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11452
|
+
* @returns {Object.<string,*>} Plain object
|
|
11453
|
+
*/
|
|
11454
|
+
SuccessfulUserLogin.toObject = function toObject(message, options) {
|
|
11455
|
+
if (!options)
|
|
11456
|
+
options = {};
|
|
11457
|
+
var object = {};
|
|
11458
|
+
if (options.defaults) {
|
|
11459
|
+
object.hsId = "";
|
|
11460
|
+
if ($util.Long) {
|
|
11461
|
+
var long = new $util.Long(0, 0, true);
|
|
11462
|
+
object.loginAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11463
|
+
} else
|
|
11464
|
+
object.loginAt = options.longs === String ? "0" : 0;
|
|
11465
|
+
object.client = options.enums === String ? "UNKNOWN_CLIENT" : 0;
|
|
11466
|
+
object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
|
|
11467
|
+
}
|
|
11468
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11469
|
+
object.hsId = message.hsId;
|
|
11470
|
+
if (message.loginAt != null && message.hasOwnProperty("loginAt"))
|
|
11471
|
+
if (typeof message.loginAt === "number")
|
|
11472
|
+
object.loginAt = options.longs === String ? String(message.loginAt) : message.loginAt;
|
|
11473
|
+
else
|
|
11474
|
+
object.loginAt = options.longs === String ? $util.Long.prototype.toString.call(message.loginAt) : options.longs === Number ? new $util.LongBits(message.loginAt.low >>> 0, message.loginAt.high >>> 0).toNumber(true) : message.loginAt;
|
|
11475
|
+
if (message.client != null && message.hasOwnProperty("client"))
|
|
11476
|
+
object.client = options.enums === String ? $root.auth0.client.Client[message.client] : message.client;
|
|
11477
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11478
|
+
object.connection = options.enums === String ? $root.auth0.connections.Connection[message.connection] : message.connection;
|
|
11479
|
+
return object;
|
|
11480
|
+
};
|
|
11481
|
+
|
|
11482
|
+
/**
|
|
11483
|
+
* Converts this SuccessfulUserLogin to JSON.
|
|
11484
|
+
* @function toJSON
|
|
11485
|
+
* @memberof SuccessfulUserLogin
|
|
11486
|
+
* @instance
|
|
11487
|
+
* @returns {Object.<string,*>} JSON object
|
|
11488
|
+
*/
|
|
11489
|
+
SuccessfulUserLogin.prototype.toJSON = function toJSON() {
|
|
11490
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11491
|
+
};
|
|
11492
|
+
|
|
11493
|
+
return SuccessfulUserLogin;
|
|
11494
|
+
})();
|
|
11495
|
+
|
|
11074
11496
|
$root.UnlinkedConnection = (function() {
|
|
11075
11497
|
|
|
11076
11498
|
/**
|
package/package.json
CHANGED