@headspace/protos-events 1.329.0 → 1.331.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 +107 -1
- package/lib/index.js +210 -0
- package/package.json +5 -5
package/lib/index.d.ts
CHANGED
|
@@ -41839,7 +41839,7 @@ export class UserLanguagePreferenceUpdated implements IUserLanguagePreferenceUpd
|
|
|
41839
41839
|
* @param [properties] Properties to set
|
|
41840
41840
|
* @returns UserLanguagePreferenceUpdated instance
|
|
41841
41841
|
*/
|
|
41842
|
-
public static create(properties?:
|
|
41842
|
+
public static create(properties?: IUserLanguagePreferencleUpdated): UserLanguagePreferenceUpdated;
|
|
41843
41843
|
|
|
41844
41844
|
/**
|
|
41845
41845
|
* Encodes the specified UserLanguagePreferenceUpdated message. Does not implicitly {@link UserLanguagePreferenceUpdated.verify|verify} messages.
|
|
@@ -42294,3 +42294,109 @@ export class VirginPulseAccountLinked implements IVirginPulseAccountLinked {
|
|
|
42294
42294
|
*/
|
|
42295
42295
|
public toJSON(): { [k: string]: any };
|
|
42296
42296
|
}
|
|
42297
|
+
|
|
42298
|
+
/** Properties of a UserMFAEnrollmentInitiated. */
|
|
42299
|
+
export interface IUserMFAEnrollmentInitiated {
|
|
42300
|
+
|
|
42301
|
+
/** UserMFAEnrollmentInitiated mfaEnabled */
|
|
42302
|
+
mfaEnabled?: (string|null);
|
|
42303
|
+
|
|
42304
|
+
/** UserMFAEnrollmentInitiated userId */
|
|
42305
|
+
userId?: (string|null);
|
|
42306
|
+
}
|
|
42307
|
+
|
|
42308
|
+
/** Properties of a UserMFAEnrollmentInitiated. */
|
|
42309
|
+
export interface IUserMFAEnrollmentInitiated {
|
|
42310
|
+
|
|
42311
|
+
/** UserMFAEnrollmentInitiated mfaEnabled */
|
|
42312
|
+
mfaEnabled?: (string|null);
|
|
42313
|
+
|
|
42314
|
+
/** UserMFAEnrollmentInitiated userId */
|
|
42315
|
+
userId?: (string|null);
|
|
42316
|
+
}
|
|
42317
|
+
|
|
42318
|
+
/** Represents a UserMFAEnrollmentInitiated. */
|
|
42319
|
+
export class UserMFAEnrollmentInitiated implements IUserMFAEnrollmentInitiated {
|
|
42320
|
+
|
|
42321
|
+
/**
|
|
42322
|
+
* Constructs a new UserMFAEnrollmentInitiated.
|
|
42323
|
+
* @param [properties] Properties to set
|
|
42324
|
+
*/
|
|
42325
|
+
constructor(properties?: IUserMFAEnrollmentInitiated);
|
|
42326
|
+
|
|
42327
|
+
/** UserMFAEnrollmentInitiated mfaEnabled. */
|
|
42328
|
+
public mfaEnabled: string;
|
|
42329
|
+
|
|
42330
|
+
/** UserMFAEnrollmentInitiated userId. */
|
|
42331
|
+
public userId: string;
|
|
42332
|
+
|
|
42333
|
+
/**
|
|
42334
|
+
* Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
|
|
42335
|
+
* @param [properties] Properties to set
|
|
42336
|
+
* @returns UserMFAEnrollmentInitiated instance
|
|
42337
|
+
*/
|
|
42338
|
+
public static create(properties?: IUserMFAEnrollmentInitiated): UserMFAEnrollmentInitiated;
|
|
42339
|
+
|
|
42340
|
+
/**
|
|
42341
|
+
* Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
|
|
42342
|
+
* @param message UserMFAEnrollmentInitiated message or plain object to encode
|
|
42343
|
+
* @param [writer] Writer to encode to
|
|
42344
|
+
* @returns Writer
|
|
42345
|
+
*/
|
|
42346
|
+
public static encode(message: IVUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42347
|
+
|
|
42348
|
+
/**
|
|
42349
|
+
* Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
|
|
42350
|
+
* @param message UserMFAEnrollmentInitiated message or plain object to encode
|
|
42351
|
+
* @param [writer] Writer to encode to
|
|
42352
|
+
* @returns Writer
|
|
42353
|
+
*/
|
|
42354
|
+
public static encodeDelimited(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42355
|
+
|
|
42356
|
+
/**
|
|
42357
|
+
* Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
|
|
42358
|
+
* @param reader Reader or buffer to decode from
|
|
42359
|
+
* @param [length] Message length if known beforehand
|
|
42360
|
+
* @returns UserMFAEnrollmentInitiated
|
|
42361
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42362
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42363
|
+
*/
|
|
42364
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMFAEnrollmentInitiated;
|
|
42365
|
+
|
|
42366
|
+
/**
|
|
42367
|
+
* Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
|
|
42368
|
+
* @param reader Reader or buffer to decode from
|
|
42369
|
+
* @returns UserMFAEnrollmentInitiated
|
|
42370
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42371
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42372
|
+
*/
|
|
42373
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMFAEnrollmentInitiated;
|
|
42374
|
+
|
|
42375
|
+
/**
|
|
42376
|
+
* Verifies a UserMFAEnrollmentInitiated message.
|
|
42377
|
+
* @param message Plain object to verify
|
|
42378
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
42379
|
+
*/
|
|
42380
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
42381
|
+
|
|
42382
|
+
/**
|
|
42383
|
+
* Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
|
|
42384
|
+
* @param object Plain object
|
|
42385
|
+
* @returns UserMFAEnrollmentInitiated
|
|
42386
|
+
*/
|
|
42387
|
+
public static fromObject(object: { [k: string]: any }): UserMFAEnrollmentInitiated;
|
|
42388
|
+
|
|
42389
|
+
/**
|
|
42390
|
+
* Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
|
|
42391
|
+
* @param message UserMFAEnrollmentInitiated
|
|
42392
|
+
* @param [options] Conversion options
|
|
42393
|
+
* @returns Plain object
|
|
42394
|
+
*/
|
|
42395
|
+
public static toObject(message: UserMFAEnrollmentInitiated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
42396
|
+
|
|
42397
|
+
/**
|
|
42398
|
+
* Converts this UserMFAEnrollmentInitiated to JSON.
|
|
42399
|
+
* @returns JSON object
|
|
42400
|
+
*/
|
|
42401
|
+
public toJSON(): { [k: string]: any };
|
|
42402
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -119200,4 +119200,214 @@ $root.VirginPulseAccountLinked = (function() {
|
|
|
119200
119200
|
return VirginPulseAccountLinked;
|
|
119201
119201
|
})();
|
|
119202
119202
|
|
|
119203
|
+
$root.UserMFAEnrollmentInitiated = (function() {
|
|
119204
|
+
|
|
119205
|
+
/**
|
|
119206
|
+
* Properties of a UserMFAEnrollmentInitiated.
|
|
119207
|
+
* @exports IUserMFAEnrollmentInitiated
|
|
119208
|
+
* @interface IUserMFAEnrollmentInitiated
|
|
119209
|
+
* @property {string|null} [mfa_enabled] UserMFAEnrollmentInitiated mfa_enabled
|
|
119210
|
+
* @property {string|null} [userId] UserMFAEnrollmentInitiated userId
|
|
119211
|
+
*/
|
|
119212
|
+
|
|
119213
|
+
/**
|
|
119214
|
+
* Constructs a new UserMFAEnrollmentInitiated.
|
|
119215
|
+
* @exports UserMFAEnrollmentInitiated
|
|
119216
|
+
* @classdesc Represents a UserMFAEnrollmentInitiated.
|
|
119217
|
+
* @implements IUserMFAEnrollmentInitiated
|
|
119218
|
+
* @constructor
|
|
119219
|
+
* @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
|
|
119220
|
+
*/
|
|
119221
|
+
function UserMFAEnrollmentInitiated(properties) {
|
|
119222
|
+
if (properties)
|
|
119223
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
119224
|
+
if (properties[keys[i]] != null)
|
|
119225
|
+
this[keys[i]] = properties[keys[i]];
|
|
119226
|
+
}
|
|
119227
|
+
|
|
119228
|
+
/**
|
|
119229
|
+
* UserMFAEnrollmentInitiated timestamp.
|
|
119230
|
+
* @member {string} mfa_enabled
|
|
119231
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119232
|
+
* @instance
|
|
119233
|
+
*/
|
|
119234
|
+
UserMFAEnrollmentInitiated.prototype.mfa_enabled = "";
|
|
119235
|
+
|
|
119236
|
+
/**
|
|
119237
|
+
* UserMFAEnrollmentInitiated userId.
|
|
119238
|
+
* @member {string} userId
|
|
119239
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119240
|
+
* @instance
|
|
119241
|
+
*/
|
|
119242
|
+
UserMFAEnrollmentInitiated.prototype.userId = "";
|
|
119243
|
+
|
|
119244
|
+
/**
|
|
119245
|
+
* Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
|
|
119246
|
+
* @function create
|
|
119247
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119248
|
+
* @static
|
|
119249
|
+
* @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
|
|
119250
|
+
* @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
|
|
119251
|
+
*/
|
|
119252
|
+
UserMFAEnrollmentInitiated.create = function create(properties) {
|
|
119253
|
+
return new UserMFAEnrollmentInitiated(properties);
|
|
119254
|
+
};
|
|
119255
|
+
|
|
119256
|
+
/**
|
|
119257
|
+
* Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
|
|
119258
|
+
* @function encode
|
|
119259
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119260
|
+
* @static
|
|
119261
|
+
* @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
|
|
119262
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119263
|
+
* @returns {$protobuf.Writer} Writer
|
|
119264
|
+
*/
|
|
119265
|
+
UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
|
|
119266
|
+
if (!writer)
|
|
119267
|
+
writer = $Writer.create();
|
|
119268
|
+
if (message.mfa_enabled != null && message.hasOwnProperty("mfa_enabled"))
|
|
119269
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.mfa_enabled);
|
|
119270
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
119271
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
119272
|
+
return writer;
|
|
119273
|
+
};
|
|
119274
|
+
|
|
119275
|
+
/**
|
|
119276
|
+
* Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
|
|
119277
|
+
* @function encodeDelimited
|
|
119278
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119279
|
+
* @static
|
|
119280
|
+
* @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
|
|
119281
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119282
|
+
* @returns {$protobuf.Writer} Writer
|
|
119283
|
+
*/
|
|
119284
|
+
UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
119285
|
+
return this.encode(message, writer).ldelim();
|
|
119286
|
+
};
|
|
119287
|
+
|
|
119288
|
+
/**
|
|
119289
|
+
* Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
|
|
119290
|
+
* @function decode
|
|
119291
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119292
|
+
* @static
|
|
119293
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119294
|
+
* @param {string} [length] Message length if known beforehand
|
|
119295
|
+
* @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
|
|
119296
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119297
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119298
|
+
*/
|
|
119299
|
+
UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
|
|
119300
|
+
if (!(reader instanceof $Reader))
|
|
119301
|
+
reader = $Reader.create(reader);
|
|
119302
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
|
|
119303
|
+
while (reader.pos < end) {
|
|
119304
|
+
var tag = reader.uint32();
|
|
119305
|
+
switch (tag >>> 3) {
|
|
119306
|
+
case 1:
|
|
119307
|
+
message.mfa_enabled = reader.string();
|
|
119308
|
+
break;
|
|
119309
|
+
case 2:
|
|
119310
|
+
message.userId = reader.string();
|
|
119311
|
+
break;
|
|
119312
|
+
default:
|
|
119313
|
+
reader.skipType(tag & 7);
|
|
119314
|
+
break;
|
|
119315
|
+
}
|
|
119316
|
+
}
|
|
119317
|
+
return message;
|
|
119318
|
+
};
|
|
119319
|
+
|
|
119320
|
+
/**
|
|
119321
|
+
* Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
|
|
119322
|
+
* @function decodeDelimited
|
|
119323
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119324
|
+
* @static
|
|
119325
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119326
|
+
* @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
|
|
119327
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119328
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119329
|
+
*/
|
|
119330
|
+
UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
|
|
119331
|
+
if (!(reader instanceof $Reader))
|
|
119332
|
+
reader = new $Reader(reader);
|
|
119333
|
+
return this.decode(reader, reader.uint32());
|
|
119334
|
+
};
|
|
119335
|
+
|
|
119336
|
+
/**
|
|
119337
|
+
* Verifies a UserMFAEnrollmentInitiated message.
|
|
119338
|
+
* @function verify
|
|
119339
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119340
|
+
* @static
|
|
119341
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
119342
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
119343
|
+
*/
|
|
119344
|
+
UserMFAEnrollmentInitiated.verify = function verify(message) {
|
|
119345
|
+
if (typeof message !== "object" || message === null)
|
|
119346
|
+
return "object expected";
|
|
119347
|
+
if (message.mfa_enabled != null && message.hasOwnProperty("mfa_enabled"))
|
|
119348
|
+
if (!$util.isString(message.mfa_enabled))
|
|
119349
|
+
return "mfa_enabled: string expected";
|
|
119350
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
119351
|
+
if (!$util.isString(message.userId))
|
|
119352
|
+
return "userId: string expected";
|
|
119353
|
+
return null;
|
|
119354
|
+
};
|
|
119355
|
+
|
|
119356
|
+
/**
|
|
119357
|
+
* Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
|
|
119358
|
+
* @function fromObject
|
|
119359
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119360
|
+
* @static
|
|
119361
|
+
* @param {Object.<string,*>} object Plain object
|
|
119362
|
+
* @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
|
|
119363
|
+
*/
|
|
119364
|
+
UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
|
|
119365
|
+
if (object instanceof $root.UserMFAEnrollmentInitiated)
|
|
119366
|
+
return object;
|
|
119367
|
+
var message = new $root.UserMFAEnrollmentInitiated();
|
|
119368
|
+
if (object.mfa_enabled != null)
|
|
119369
|
+
message.mfa_enabled = String(object.mfa_enabled);
|
|
119370
|
+
if (object.userId != null)
|
|
119371
|
+
message.userId = String(object.userId);
|
|
119372
|
+
return message;
|
|
119373
|
+
};
|
|
119374
|
+
|
|
119375
|
+
/**
|
|
119376
|
+
* Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
|
|
119377
|
+
* @function toObject
|
|
119378
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119379
|
+
* @static
|
|
119380
|
+
* @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
|
|
119381
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
119382
|
+
* @returns {Object.<string,*>} Plain object
|
|
119383
|
+
*/
|
|
119384
|
+
UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
|
|
119385
|
+
if (!options)
|
|
119386
|
+
options = {};
|
|
119387
|
+
var object = {};
|
|
119388
|
+
if (options.defaults) {
|
|
119389
|
+
object.mfa_enabled = "";
|
|
119390
|
+
object.userId = "";
|
|
119391
|
+
}
|
|
119392
|
+
if (message.mfa_enabled != null && message.hasOwnProperty("mfa_enabled"))
|
|
119393
|
+
object.userId = message.mfa_enabled;
|
|
119394
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
119395
|
+
object.userId = message.userId;
|
|
119396
|
+
return object;
|
|
119397
|
+
};
|
|
119398
|
+
|
|
119399
|
+
/**
|
|
119400
|
+
* Converts this UserMFAEnrollmentInitiated to JSON.
|
|
119401
|
+
* @function toJSON
|
|
119402
|
+
* @memberof UserMFAEnrollmentInitiated
|
|
119403
|
+
* @instance
|
|
119404
|
+
* @returns {Object.<string,*>} JSON object
|
|
119405
|
+
*/
|
|
119406
|
+
UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
|
|
119407
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
119408
|
+
};
|
|
119409
|
+
|
|
119410
|
+
return UserMFAEnrollmentInitiated;
|
|
119411
|
+
})();
|
|
119412
|
+
|
|
119203
119413
|
module.exports = $root;
|
package/package.json
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"babel-core": "^6.26.3",
|
|
9
|
-
"babel-jest": "^
|
|
10
|
-
"jest": "^
|
|
11
|
-
"jest-junit": "^
|
|
12
|
-
"ts-jest": "^
|
|
9
|
+
"babel-jest": "^27.5.1",
|
|
10
|
+
"jest": "^27.5.1",
|
|
11
|
+
"jest-junit": "^13.0.0",
|
|
12
|
+
"ts-jest": "^27.1.3",
|
|
13
13
|
"tslint": "^5.11.0",
|
|
14
14
|
"typescript": "^3.0.1"
|
|
15
15
|
},
|
|
16
16
|
"main": "lib/index.js",
|
|
17
17
|
"name": "@headspace/protos-events",
|
|
18
18
|
"typings": "lib/index.d.ts",
|
|
19
|
-
"version": "1.
|
|
19
|
+
"version": "1.331.0"
|
|
20
20
|
}
|