@headspace/protos-events 1.362.0 → 1.364.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 +102 -192
- package/lib/index.js +251 -420
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -9981,6 +9981,9 @@ export namespace b2b {
|
|
|
9981
9981
|
|
|
9982
9982
|
/** Organization headspaceHealthId */
|
|
9983
9983
|
headspaceHealthId?: (string|null);
|
|
9984
|
+
|
|
9985
|
+
/** Organization mfaEnabled */
|
|
9986
|
+
mfaEnabled?: (boolean|null);
|
|
9984
9987
|
}
|
|
9985
9988
|
|
|
9986
9989
|
/** Represents an Organization. */
|
|
@@ -10025,6 +10028,9 @@ export namespace b2b {
|
|
|
10025
10028
|
/** Organization headspaceHealthId. */
|
|
10026
10029
|
public headspaceHealthId: string;
|
|
10027
10030
|
|
|
10031
|
+
/** Organization mfaEnabled. */
|
|
10032
|
+
public mfaEnabled: boolean;
|
|
10033
|
+
|
|
10028
10034
|
/**
|
|
10029
10035
|
* Creates a new Organization instance using the specified properties.
|
|
10030
10036
|
* @param [properties] Properties to set
|
|
@@ -30047,6 +30053,102 @@ export class OrganizationUpdated implements IOrganizationUpdated {
|
|
|
30047
30053
|
public toJSON(): { [k: string]: any };
|
|
30048
30054
|
}
|
|
30049
30055
|
|
|
30056
|
+
/** Properties of an OrganizationMFAUpdated. */
|
|
30057
|
+
export interface IOrganizationMFAUpdated {
|
|
30058
|
+
|
|
30059
|
+
/** OrganizationMFAUpdated timestamp */
|
|
30060
|
+
timestamp?: (number|Long|null);
|
|
30061
|
+
|
|
30062
|
+
/** OrganizationMFAUpdated organization */
|
|
30063
|
+
organization?: (b2b.IOrganization|null);
|
|
30064
|
+
}
|
|
30065
|
+
|
|
30066
|
+
/** Represents an OrganizationMFAUpdated. */
|
|
30067
|
+
export class OrganizationMFAUpdated implements IOrganizationMFAUpdated {
|
|
30068
|
+
|
|
30069
|
+
/**
|
|
30070
|
+
* Constructs a new OrganizationMFAUpdated.
|
|
30071
|
+
* @param [properties] Properties to set
|
|
30072
|
+
*/
|
|
30073
|
+
constructor(properties?: IOrganizationMFAUpdated);
|
|
30074
|
+
|
|
30075
|
+
/** OrganizationMFAUpdated timestamp. */
|
|
30076
|
+
public timestamp: (number|Long);
|
|
30077
|
+
|
|
30078
|
+
/** OrganizationMFAUpdated organization. */
|
|
30079
|
+
public organization?: (b2b.IOrganization|null);
|
|
30080
|
+
|
|
30081
|
+
/**
|
|
30082
|
+
* Creates a new OrganizationMFAUpdated instance using the specified properties.
|
|
30083
|
+
* @param [properties] Properties to set
|
|
30084
|
+
* @returns OrganizationMFAUpdated instance
|
|
30085
|
+
*/
|
|
30086
|
+
public static create(properties?: IOrganizationMFAUpdated): OrganizationMFAUpdated;
|
|
30087
|
+
|
|
30088
|
+
/**
|
|
30089
|
+
* Encodes the specified OrganizationMFAUpdated message. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
|
|
30090
|
+
* @param message OrganizationMFAUpdated message or plain object to encode
|
|
30091
|
+
* @param [writer] Writer to encode to
|
|
30092
|
+
* @returns Writer
|
|
30093
|
+
*/
|
|
30094
|
+
public static encode(message: IOrganizationMFAUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30095
|
+
|
|
30096
|
+
/**
|
|
30097
|
+
* Encodes the specified OrganizationMFAUpdated message, length delimited. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
|
|
30098
|
+
* @param message OrganizationMFAUpdated message or plain object to encode
|
|
30099
|
+
* @param [writer] Writer to encode to
|
|
30100
|
+
* @returns Writer
|
|
30101
|
+
*/
|
|
30102
|
+
public static encodeDelimited(message: IOrganizationMFAUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30103
|
+
|
|
30104
|
+
/**
|
|
30105
|
+
* Decodes an OrganizationMFAUpdated message from the specified reader or buffer.
|
|
30106
|
+
* @param reader Reader or buffer to decode from
|
|
30107
|
+
* @param [length] Message length if known beforehand
|
|
30108
|
+
* @returns OrganizationMFAUpdated
|
|
30109
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30110
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30111
|
+
*/
|
|
30112
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationMFAUpdated;
|
|
30113
|
+
|
|
30114
|
+
/**
|
|
30115
|
+
* Decodes an OrganizationMFAUpdated message from the specified reader or buffer, length delimited.
|
|
30116
|
+
* @param reader Reader or buffer to decode from
|
|
30117
|
+
* @returns OrganizationMFAUpdated
|
|
30118
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30119
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30120
|
+
*/
|
|
30121
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationMFAUpdated;
|
|
30122
|
+
|
|
30123
|
+
/**
|
|
30124
|
+
* Verifies an OrganizationMFAUpdated message.
|
|
30125
|
+
* @param message Plain object to verify
|
|
30126
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
30127
|
+
*/
|
|
30128
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
30129
|
+
|
|
30130
|
+
/**
|
|
30131
|
+
* Creates an OrganizationMFAUpdated message from a plain object. Also converts values to their respective internal types.
|
|
30132
|
+
* @param object Plain object
|
|
30133
|
+
* @returns OrganizationMFAUpdated
|
|
30134
|
+
*/
|
|
30135
|
+
public static fromObject(object: { [k: string]: any }): OrganizationMFAUpdated;
|
|
30136
|
+
|
|
30137
|
+
/**
|
|
30138
|
+
* Creates a plain object from an OrganizationMFAUpdated message. Also converts values to other types if specified.
|
|
30139
|
+
* @param message OrganizationMFAUpdated
|
|
30140
|
+
* @param [options] Conversion options
|
|
30141
|
+
* @returns Plain object
|
|
30142
|
+
*/
|
|
30143
|
+
public static toObject(message: OrganizationMFAUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
30144
|
+
|
|
30145
|
+
/**
|
|
30146
|
+
* Converts this OrganizationMFAUpdated to JSON.
|
|
30147
|
+
* @returns JSON object
|
|
30148
|
+
*/
|
|
30149
|
+
public toJSON(): { [k: string]: any };
|
|
30150
|
+
}
|
|
30151
|
+
|
|
30050
30152
|
/** Properties of an OrganizationSubscriptionCreated. */
|
|
30051
30153
|
export interface IOrganizationSubscriptionCreated {
|
|
30052
30154
|
|
|
@@ -42395,198 +42497,6 @@ export class UserConsentUpdated implements IUserConsentUpdated {
|
|
|
42395
42497
|
public toJSON(): { [k: string]: any };
|
|
42396
42498
|
}
|
|
42397
42499
|
|
|
42398
|
-
/** Properties of a UserBedtimeNotificationsSettingUpdated. */
|
|
42399
|
-
export interface IUserBedtimeNotificationsSettingUpdated {
|
|
42400
|
-
|
|
42401
|
-
/** UserBedtimeNotificationsSettingUpdated userId */
|
|
42402
|
-
userId?: (string|null);
|
|
42403
|
-
|
|
42404
|
-
/** UserBedtimeNotificationsSettingUpdated isEnabled */
|
|
42405
|
-
isEnabled?: (boolean|null);
|
|
42406
|
-
}
|
|
42407
|
-
|
|
42408
|
-
/** Represents a UserBedtimeNotificationsSettingUpdated. */
|
|
42409
|
-
export class UserBedtimeNotificationsSettingUpdated implements IUserBedtimeNotificationsSettingUpdated {
|
|
42410
|
-
|
|
42411
|
-
/**
|
|
42412
|
-
* Constructs a new UserBedtimeNotificationsSettingUpdated.
|
|
42413
|
-
* @param [properties] Properties to set
|
|
42414
|
-
*/
|
|
42415
|
-
constructor(properties?: IUserBedtimeNotificationsSettingUpdated);
|
|
42416
|
-
|
|
42417
|
-
/** UserBedtimeNotificationsSettingUpdated userId. */
|
|
42418
|
-
public userId: string;
|
|
42419
|
-
|
|
42420
|
-
/** UserBedtimeNotificationsSettingUpdated isEnabled. */
|
|
42421
|
-
public isEnabled: boolean;
|
|
42422
|
-
|
|
42423
|
-
/**
|
|
42424
|
-
* Creates a new UserBedtimeNotificationsSettingUpdated instance using the specified properties.
|
|
42425
|
-
* @param [properties] Properties to set
|
|
42426
|
-
* @returns UserBedtimeNotificationsSettingUpdated instance
|
|
42427
|
-
*/
|
|
42428
|
-
public static create(properties?: IUserBedtimeNotificationsSettingUpdated): UserBedtimeNotificationsSettingUpdated;
|
|
42429
|
-
|
|
42430
|
-
/**
|
|
42431
|
-
* Encodes the specified UserBedtimeNotificationsSettingUpdated message. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
|
|
42432
|
-
* @param message UserBedtimeNotificationsSettingUpdated message or plain object to encode
|
|
42433
|
-
* @param [writer] Writer to encode to
|
|
42434
|
-
* @returns Writer
|
|
42435
|
-
*/
|
|
42436
|
-
public static encode(message: IUserBedtimeNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42437
|
-
|
|
42438
|
-
/**
|
|
42439
|
-
* Encodes the specified UserBedtimeNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
|
|
42440
|
-
* @param message UserBedtimeNotificationsSettingUpdated message or plain object to encode
|
|
42441
|
-
* @param [writer] Writer to encode to
|
|
42442
|
-
* @returns Writer
|
|
42443
|
-
*/
|
|
42444
|
-
public static encodeDelimited(message: IUserBedtimeNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42445
|
-
|
|
42446
|
-
/**
|
|
42447
|
-
* Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer.
|
|
42448
|
-
* @param reader Reader or buffer to decode from
|
|
42449
|
-
* @param [length] Message length if known beforehand
|
|
42450
|
-
* @returns UserBedtimeNotificationsSettingUpdated
|
|
42451
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42452
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42453
|
-
*/
|
|
42454
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserBedtimeNotificationsSettingUpdated;
|
|
42455
|
-
|
|
42456
|
-
/**
|
|
42457
|
-
* Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
42458
|
-
* @param reader Reader or buffer to decode from
|
|
42459
|
-
* @returns UserBedtimeNotificationsSettingUpdated
|
|
42460
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42461
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42462
|
-
*/
|
|
42463
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserBedtimeNotificationsSettingUpdated;
|
|
42464
|
-
|
|
42465
|
-
/**
|
|
42466
|
-
* Verifies a UserBedtimeNotificationsSettingUpdated message.
|
|
42467
|
-
* @param message Plain object to verify
|
|
42468
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
42469
|
-
*/
|
|
42470
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
42471
|
-
|
|
42472
|
-
/**
|
|
42473
|
-
* Creates a UserBedtimeNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
42474
|
-
* @param object Plain object
|
|
42475
|
-
* @returns UserBedtimeNotificationsSettingUpdated
|
|
42476
|
-
*/
|
|
42477
|
-
public static fromObject(object: { [k: string]: any }): UserBedtimeNotificationsSettingUpdated;
|
|
42478
|
-
|
|
42479
|
-
/**
|
|
42480
|
-
* Creates a plain object from a UserBedtimeNotificationsSettingUpdated message. Also converts values to other types if specified.
|
|
42481
|
-
* @param message UserBedtimeNotificationsSettingUpdated
|
|
42482
|
-
* @param [options] Conversion options
|
|
42483
|
-
* @returns Plain object
|
|
42484
|
-
*/
|
|
42485
|
-
public static toObject(message: UserBedtimeNotificationsSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
42486
|
-
|
|
42487
|
-
/**
|
|
42488
|
-
* Converts this UserBedtimeNotificationsSettingUpdated to JSON.
|
|
42489
|
-
* @returns JSON object
|
|
42490
|
-
*/
|
|
42491
|
-
public toJSON(): { [k: string]: any };
|
|
42492
|
-
}
|
|
42493
|
-
|
|
42494
|
-
/** Properties of a UserWindDownNotificationsSettingUpdated. */
|
|
42495
|
-
export interface IUserWindDownNotificationsSettingUpdated {
|
|
42496
|
-
|
|
42497
|
-
/** UserWindDownNotificationsSettingUpdated userId */
|
|
42498
|
-
userId?: (string|null);
|
|
42499
|
-
|
|
42500
|
-
/** UserWindDownNotificationsSettingUpdated isEnabled */
|
|
42501
|
-
isEnabled?: (boolean|null);
|
|
42502
|
-
}
|
|
42503
|
-
|
|
42504
|
-
/** Represents a UserWindDownNotificationsSettingUpdated. */
|
|
42505
|
-
export class UserWindDownNotificationsSettingUpdated implements IUserWindDownNotificationsSettingUpdated {
|
|
42506
|
-
|
|
42507
|
-
/**
|
|
42508
|
-
* Constructs a new UserWindDownNotificationsSettingUpdated.
|
|
42509
|
-
* @param [properties] Properties to set
|
|
42510
|
-
*/
|
|
42511
|
-
constructor(properties?: IUserWindDownNotificationsSettingUpdated);
|
|
42512
|
-
|
|
42513
|
-
/** UserWindDownNotificationsSettingUpdated userId. */
|
|
42514
|
-
public userId: string;
|
|
42515
|
-
|
|
42516
|
-
/** UserWindDownNotificationsSettingUpdated isEnabled. */
|
|
42517
|
-
public isEnabled: boolean;
|
|
42518
|
-
|
|
42519
|
-
/**
|
|
42520
|
-
* Creates a new UserWindDownNotificationsSettingUpdated instance using the specified properties.
|
|
42521
|
-
* @param [properties] Properties to set
|
|
42522
|
-
* @returns UserWindDownNotificationsSettingUpdated instance
|
|
42523
|
-
*/
|
|
42524
|
-
public static create(properties?: IUserWindDownNotificationsSettingUpdated): UserWindDownNotificationsSettingUpdated;
|
|
42525
|
-
|
|
42526
|
-
/**
|
|
42527
|
-
* Encodes the specified UserWindDownNotificationsSettingUpdated message. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
|
|
42528
|
-
* @param message UserWindDownNotificationsSettingUpdated message or plain object to encode
|
|
42529
|
-
* @param [writer] Writer to encode to
|
|
42530
|
-
* @returns Writer
|
|
42531
|
-
*/
|
|
42532
|
-
public static encode(message: IUserWindDownNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42533
|
-
|
|
42534
|
-
/**
|
|
42535
|
-
* Encodes the specified UserWindDownNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
|
|
42536
|
-
* @param message UserWindDownNotificationsSettingUpdated message or plain object to encode
|
|
42537
|
-
* @param [writer] Writer to encode to
|
|
42538
|
-
* @returns Writer
|
|
42539
|
-
*/
|
|
42540
|
-
public static encodeDelimited(message: IUserWindDownNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42541
|
-
|
|
42542
|
-
/**
|
|
42543
|
-
* Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer.
|
|
42544
|
-
* @param reader Reader or buffer to decode from
|
|
42545
|
-
* @param [length] Message length if known beforehand
|
|
42546
|
-
* @returns UserWindDownNotificationsSettingUpdated
|
|
42547
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42548
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42549
|
-
*/
|
|
42550
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserWindDownNotificationsSettingUpdated;
|
|
42551
|
-
|
|
42552
|
-
/**
|
|
42553
|
-
* Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
42554
|
-
* @param reader Reader or buffer to decode from
|
|
42555
|
-
* @returns UserWindDownNotificationsSettingUpdated
|
|
42556
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42557
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42558
|
-
*/
|
|
42559
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserWindDownNotificationsSettingUpdated;
|
|
42560
|
-
|
|
42561
|
-
/**
|
|
42562
|
-
* Verifies a UserWindDownNotificationsSettingUpdated message.
|
|
42563
|
-
* @param message Plain object to verify
|
|
42564
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
42565
|
-
*/
|
|
42566
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
42567
|
-
|
|
42568
|
-
/**
|
|
42569
|
-
* Creates a UserWindDownNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
42570
|
-
* @param object Plain object
|
|
42571
|
-
* @returns UserWindDownNotificationsSettingUpdated
|
|
42572
|
-
*/
|
|
42573
|
-
public static fromObject(object: { [k: string]: any }): UserWindDownNotificationsSettingUpdated;
|
|
42574
|
-
|
|
42575
|
-
/**
|
|
42576
|
-
* Creates a plain object from a UserWindDownNotificationsSettingUpdated message. Also converts values to other types if specified.
|
|
42577
|
-
* @param message UserWindDownNotificationsSettingUpdated
|
|
42578
|
-
* @param [options] Conversion options
|
|
42579
|
-
* @returns Plain object
|
|
42580
|
-
*/
|
|
42581
|
-
public static toObject(message: UserWindDownNotificationsSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
42582
|
-
|
|
42583
|
-
/**
|
|
42584
|
-
* Converts this UserWindDownNotificationsSettingUpdated to JSON.
|
|
42585
|
-
* @returns JSON object
|
|
42586
|
-
*/
|
|
42587
|
-
public toJSON(): { [k: string]: any };
|
|
42588
|
-
}
|
|
42589
|
-
|
|
42590
42500
|
/** Properties of a VirginPulseAccountLinked. */
|
|
42591
42501
|
export interface IVirginPulseAccountLinked {
|
|
42592
42502
|
|
package/lib/index.js
CHANGED
|
@@ -23841,6 +23841,7 @@ $root.b2b = (function() {
|
|
|
23841
23841
|
* @property {b2b.OrgRestrictBy|null} [restrictBy] Organization restrictBy
|
|
23842
23842
|
* @property {string|null} [gingerId] Organization gingerId
|
|
23843
23843
|
* @property {string|null} [headspaceHealthId] Organization headspaceHealthId
|
|
23844
|
+
* @property {boolean|null} [mfaEnabled] Organization mfaEnabled
|
|
23844
23845
|
*/
|
|
23845
23846
|
|
|
23846
23847
|
/**
|
|
@@ -23946,6 +23947,14 @@ $root.b2b = (function() {
|
|
|
23946
23947
|
*/
|
|
23947
23948
|
Organization.prototype.headspaceHealthId = "";
|
|
23948
23949
|
|
|
23950
|
+
/**
|
|
23951
|
+
* Organization mfaEnabled.
|
|
23952
|
+
* @member {boolean} mfaEnabled
|
|
23953
|
+
* @memberof b2b.Organization
|
|
23954
|
+
* @instance
|
|
23955
|
+
*/
|
|
23956
|
+
Organization.prototype.mfaEnabled = false;
|
|
23957
|
+
|
|
23949
23958
|
/**
|
|
23950
23959
|
* Creates a new Organization instance using the specified properties.
|
|
23951
23960
|
* @function create
|
|
@@ -23992,6 +24001,8 @@ $root.b2b = (function() {
|
|
|
23992
24001
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.gingerId);
|
|
23993
24002
|
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
23994
24003
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.headspaceHealthId);
|
|
24004
|
+
if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
|
|
24005
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.mfaEnabled);
|
|
23995
24006
|
return writer;
|
|
23996
24007
|
};
|
|
23997
24008
|
|
|
@@ -24059,6 +24070,9 @@ $root.b2b = (function() {
|
|
|
24059
24070
|
case 11:
|
|
24060
24071
|
message.headspaceHealthId = reader.string();
|
|
24061
24072
|
break;
|
|
24073
|
+
case 12:
|
|
24074
|
+
message.mfaEnabled = reader.bool();
|
|
24075
|
+
break;
|
|
24062
24076
|
default:
|
|
24063
24077
|
reader.skipType(tag & 7);
|
|
24064
24078
|
break;
|
|
@@ -24150,6 +24164,9 @@ $root.b2b = (function() {
|
|
|
24150
24164
|
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
24151
24165
|
if (!$util.isString(message.headspaceHealthId))
|
|
24152
24166
|
return "headspaceHealthId: string expected";
|
|
24167
|
+
if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
|
|
24168
|
+
if (typeof message.mfaEnabled !== "boolean")
|
|
24169
|
+
return "mfaEnabled: boolean expected";
|
|
24153
24170
|
return null;
|
|
24154
24171
|
};
|
|
24155
24172
|
|
|
@@ -24255,6 +24272,8 @@ $root.b2b = (function() {
|
|
|
24255
24272
|
message.gingerId = String(object.gingerId);
|
|
24256
24273
|
if (object.headspaceHealthId != null)
|
|
24257
24274
|
message.headspaceHealthId = String(object.headspaceHealthId);
|
|
24275
|
+
if (object.mfaEnabled != null)
|
|
24276
|
+
message.mfaEnabled = Boolean(object.mfaEnabled);
|
|
24258
24277
|
return message;
|
|
24259
24278
|
};
|
|
24260
24279
|
|
|
@@ -24283,6 +24302,7 @@ $root.b2b = (function() {
|
|
|
24283
24302
|
object.restrictBy = options.enums === String ? "ORG_RESTRICT_BY_UNKNOWN" : 0;
|
|
24284
24303
|
object.gingerId = "";
|
|
24285
24304
|
object.headspaceHealthId = "";
|
|
24305
|
+
object.mfaEnabled = false;
|
|
24286
24306
|
}
|
|
24287
24307
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
24288
24308
|
object.orgId = message.orgId;
|
|
@@ -24306,6 +24326,8 @@ $root.b2b = (function() {
|
|
|
24306
24326
|
object.gingerId = message.gingerId;
|
|
24307
24327
|
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
24308
24328
|
object.headspaceHealthId = message.headspaceHealthId;
|
|
24329
|
+
if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
|
|
24330
|
+
object.mfaEnabled = message.mfaEnabled;
|
|
24309
24331
|
return object;
|
|
24310
24332
|
};
|
|
24311
24333
|
|
|
@@ -83465,6 +83487,235 @@ $root.OrganizationUpdated = (function() {
|
|
|
83465
83487
|
return OrganizationUpdated;
|
|
83466
83488
|
})();
|
|
83467
83489
|
|
|
83490
|
+
$root.OrganizationMFAUpdated = (function() {
|
|
83491
|
+
|
|
83492
|
+
/**
|
|
83493
|
+
* Properties of an OrganizationMFAUpdated.
|
|
83494
|
+
* @exports IOrganizationMFAUpdated
|
|
83495
|
+
* @interface IOrganizationMFAUpdated
|
|
83496
|
+
* @property {number|Long|null} [timestamp] OrganizationMFAUpdated timestamp
|
|
83497
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationMFAUpdated organization
|
|
83498
|
+
*/
|
|
83499
|
+
|
|
83500
|
+
/**
|
|
83501
|
+
* Constructs a new OrganizationMFAUpdated.
|
|
83502
|
+
* @exports OrganizationMFAUpdated
|
|
83503
|
+
* @classdesc Represents an OrganizationMFAUpdated.
|
|
83504
|
+
* @implements IOrganizationMFAUpdated
|
|
83505
|
+
* @constructor
|
|
83506
|
+
* @param {IOrganizationMFAUpdated=} [properties] Properties to set
|
|
83507
|
+
*/
|
|
83508
|
+
function OrganizationMFAUpdated(properties) {
|
|
83509
|
+
if (properties)
|
|
83510
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
83511
|
+
if (properties[keys[i]] != null)
|
|
83512
|
+
this[keys[i]] = properties[keys[i]];
|
|
83513
|
+
}
|
|
83514
|
+
|
|
83515
|
+
/**
|
|
83516
|
+
* OrganizationMFAUpdated timestamp.
|
|
83517
|
+
* @member {number|Long} timestamp
|
|
83518
|
+
* @memberof OrganizationMFAUpdated
|
|
83519
|
+
* @instance
|
|
83520
|
+
*/
|
|
83521
|
+
OrganizationMFAUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
83522
|
+
|
|
83523
|
+
/**
|
|
83524
|
+
* OrganizationMFAUpdated organization.
|
|
83525
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
83526
|
+
* @memberof OrganizationMFAUpdated
|
|
83527
|
+
* @instance
|
|
83528
|
+
*/
|
|
83529
|
+
OrganizationMFAUpdated.prototype.organization = null;
|
|
83530
|
+
|
|
83531
|
+
/**
|
|
83532
|
+
* Creates a new OrganizationMFAUpdated instance using the specified properties.
|
|
83533
|
+
* @function create
|
|
83534
|
+
* @memberof OrganizationMFAUpdated
|
|
83535
|
+
* @static
|
|
83536
|
+
* @param {IOrganizationMFAUpdated=} [properties] Properties to set
|
|
83537
|
+
* @returns {OrganizationMFAUpdated} OrganizationMFAUpdated instance
|
|
83538
|
+
*/
|
|
83539
|
+
OrganizationMFAUpdated.create = function create(properties) {
|
|
83540
|
+
return new OrganizationMFAUpdated(properties);
|
|
83541
|
+
};
|
|
83542
|
+
|
|
83543
|
+
/**
|
|
83544
|
+
* Encodes the specified OrganizationMFAUpdated message. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
|
|
83545
|
+
* @function encode
|
|
83546
|
+
* @memberof OrganizationMFAUpdated
|
|
83547
|
+
* @static
|
|
83548
|
+
* @param {IOrganizationMFAUpdated} message OrganizationMFAUpdated message or plain object to encode
|
|
83549
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
83550
|
+
* @returns {$protobuf.Writer} Writer
|
|
83551
|
+
*/
|
|
83552
|
+
OrganizationMFAUpdated.encode = function encode(message, writer) {
|
|
83553
|
+
if (!writer)
|
|
83554
|
+
writer = $Writer.create();
|
|
83555
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
83556
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
83557
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
83558
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
83559
|
+
return writer;
|
|
83560
|
+
};
|
|
83561
|
+
|
|
83562
|
+
/**
|
|
83563
|
+
* Encodes the specified OrganizationMFAUpdated message, length delimited. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
|
|
83564
|
+
* @function encodeDelimited
|
|
83565
|
+
* @memberof OrganizationMFAUpdated
|
|
83566
|
+
* @static
|
|
83567
|
+
* @param {IOrganizationMFAUpdated} message OrganizationMFAUpdated message or plain object to encode
|
|
83568
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
83569
|
+
* @returns {$protobuf.Writer} Writer
|
|
83570
|
+
*/
|
|
83571
|
+
OrganizationMFAUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
83572
|
+
return this.encode(message, writer).ldelim();
|
|
83573
|
+
};
|
|
83574
|
+
|
|
83575
|
+
/**
|
|
83576
|
+
* Decodes an OrganizationMFAUpdated message from the specified reader or buffer.
|
|
83577
|
+
* @function decode
|
|
83578
|
+
* @memberof OrganizationMFAUpdated
|
|
83579
|
+
* @static
|
|
83580
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
83581
|
+
* @param {number} [length] Message length if known beforehand
|
|
83582
|
+
* @returns {OrganizationMFAUpdated} OrganizationMFAUpdated
|
|
83583
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
83584
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
83585
|
+
*/
|
|
83586
|
+
OrganizationMFAUpdated.decode = function decode(reader, length) {
|
|
83587
|
+
if (!(reader instanceof $Reader))
|
|
83588
|
+
reader = $Reader.create(reader);
|
|
83589
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationMFAUpdated();
|
|
83590
|
+
while (reader.pos < end) {
|
|
83591
|
+
var tag = reader.uint32();
|
|
83592
|
+
switch (tag >>> 3) {
|
|
83593
|
+
case 1:
|
|
83594
|
+
message.timestamp = reader.uint64();
|
|
83595
|
+
break;
|
|
83596
|
+
case 2:
|
|
83597
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
83598
|
+
break;
|
|
83599
|
+
default:
|
|
83600
|
+
reader.skipType(tag & 7);
|
|
83601
|
+
break;
|
|
83602
|
+
}
|
|
83603
|
+
}
|
|
83604
|
+
return message;
|
|
83605
|
+
};
|
|
83606
|
+
|
|
83607
|
+
/**
|
|
83608
|
+
* Decodes an OrganizationMFAUpdated message from the specified reader or buffer, length delimited.
|
|
83609
|
+
* @function decodeDelimited
|
|
83610
|
+
* @memberof OrganizationMFAUpdated
|
|
83611
|
+
* @static
|
|
83612
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
83613
|
+
* @returns {OrganizationMFAUpdated} OrganizationMFAUpdated
|
|
83614
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
83615
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
83616
|
+
*/
|
|
83617
|
+
OrganizationMFAUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
83618
|
+
if (!(reader instanceof $Reader))
|
|
83619
|
+
reader = new $Reader(reader);
|
|
83620
|
+
return this.decode(reader, reader.uint32());
|
|
83621
|
+
};
|
|
83622
|
+
|
|
83623
|
+
/**
|
|
83624
|
+
* Verifies an OrganizationMFAUpdated message.
|
|
83625
|
+
* @function verify
|
|
83626
|
+
* @memberof OrganizationMFAUpdated
|
|
83627
|
+
* @static
|
|
83628
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
83629
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
83630
|
+
*/
|
|
83631
|
+
OrganizationMFAUpdated.verify = function verify(message) {
|
|
83632
|
+
if (typeof message !== "object" || message === null)
|
|
83633
|
+
return "object expected";
|
|
83634
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
83635
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
83636
|
+
return "timestamp: integer|Long expected";
|
|
83637
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
83638
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
83639
|
+
if (error)
|
|
83640
|
+
return "organization." + error;
|
|
83641
|
+
}
|
|
83642
|
+
return null;
|
|
83643
|
+
};
|
|
83644
|
+
|
|
83645
|
+
/**
|
|
83646
|
+
* Creates an OrganizationMFAUpdated message from a plain object. Also converts values to their respective internal types.
|
|
83647
|
+
* @function fromObject
|
|
83648
|
+
* @memberof OrganizationMFAUpdated
|
|
83649
|
+
* @static
|
|
83650
|
+
* @param {Object.<string,*>} object Plain object
|
|
83651
|
+
* @returns {OrganizationMFAUpdated} OrganizationMFAUpdated
|
|
83652
|
+
*/
|
|
83653
|
+
OrganizationMFAUpdated.fromObject = function fromObject(object) {
|
|
83654
|
+
if (object instanceof $root.OrganizationMFAUpdated)
|
|
83655
|
+
return object;
|
|
83656
|
+
var message = new $root.OrganizationMFAUpdated();
|
|
83657
|
+
if (object.timestamp != null)
|
|
83658
|
+
if ($util.Long)
|
|
83659
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
83660
|
+
else if (typeof object.timestamp === "string")
|
|
83661
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
83662
|
+
else if (typeof object.timestamp === "number")
|
|
83663
|
+
message.timestamp = object.timestamp;
|
|
83664
|
+
else if (typeof object.timestamp === "object")
|
|
83665
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
83666
|
+
if (object.organization != null) {
|
|
83667
|
+
if (typeof object.organization !== "object")
|
|
83668
|
+
throw TypeError(".OrganizationMFAUpdated.organization: object expected");
|
|
83669
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
83670
|
+
}
|
|
83671
|
+
return message;
|
|
83672
|
+
};
|
|
83673
|
+
|
|
83674
|
+
/**
|
|
83675
|
+
* Creates a plain object from an OrganizationMFAUpdated message. Also converts values to other types if specified.
|
|
83676
|
+
* @function toObject
|
|
83677
|
+
* @memberof OrganizationMFAUpdated
|
|
83678
|
+
* @static
|
|
83679
|
+
* @param {OrganizationMFAUpdated} message OrganizationMFAUpdated
|
|
83680
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
83681
|
+
* @returns {Object.<string,*>} Plain object
|
|
83682
|
+
*/
|
|
83683
|
+
OrganizationMFAUpdated.toObject = function toObject(message, options) {
|
|
83684
|
+
if (!options)
|
|
83685
|
+
options = {};
|
|
83686
|
+
var object = {};
|
|
83687
|
+
if (options.defaults) {
|
|
83688
|
+
if ($util.Long) {
|
|
83689
|
+
var long = new $util.Long(0, 0, true);
|
|
83690
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
83691
|
+
} else
|
|
83692
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
83693
|
+
object.organization = null;
|
|
83694
|
+
}
|
|
83695
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
83696
|
+
if (typeof message.timestamp === "number")
|
|
83697
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
83698
|
+
else
|
|
83699
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
83700
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
83701
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
83702
|
+
return object;
|
|
83703
|
+
};
|
|
83704
|
+
|
|
83705
|
+
/**
|
|
83706
|
+
* Converts this OrganizationMFAUpdated to JSON.
|
|
83707
|
+
* @function toJSON
|
|
83708
|
+
* @memberof OrganizationMFAUpdated
|
|
83709
|
+
* @instance
|
|
83710
|
+
* @returns {Object.<string,*>} JSON object
|
|
83711
|
+
*/
|
|
83712
|
+
OrganizationMFAUpdated.prototype.toJSON = function toJSON() {
|
|
83713
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
83714
|
+
};
|
|
83715
|
+
|
|
83716
|
+
return OrganizationMFAUpdated;
|
|
83717
|
+
})();
|
|
83718
|
+
|
|
83468
83719
|
$root.OrganizationSubscriptionCreated = (function() {
|
|
83469
83720
|
|
|
83470
83721
|
/**
|
|
@@ -119688,426 +119939,6 @@ $root.UserConsentUpdated = (function() {
|
|
|
119688
119939
|
return UserConsentUpdated;
|
|
119689
119940
|
})();
|
|
119690
119941
|
|
|
119691
|
-
$root.UserBedtimeNotificationsSettingUpdated = (function() {
|
|
119692
|
-
|
|
119693
|
-
/**
|
|
119694
|
-
* Properties of a UserBedtimeNotificationsSettingUpdated.
|
|
119695
|
-
* @exports IUserBedtimeNotificationsSettingUpdated
|
|
119696
|
-
* @interface IUserBedtimeNotificationsSettingUpdated
|
|
119697
|
-
* @property {string|null} [userId] UserBedtimeNotificationsSettingUpdated userId
|
|
119698
|
-
* @property {boolean|null} [isEnabled] UserBedtimeNotificationsSettingUpdated isEnabled
|
|
119699
|
-
*/
|
|
119700
|
-
|
|
119701
|
-
/**
|
|
119702
|
-
* Constructs a new UserBedtimeNotificationsSettingUpdated.
|
|
119703
|
-
* @exports UserBedtimeNotificationsSettingUpdated
|
|
119704
|
-
* @classdesc Represents a UserBedtimeNotificationsSettingUpdated.
|
|
119705
|
-
* @implements IUserBedtimeNotificationsSettingUpdated
|
|
119706
|
-
* @constructor
|
|
119707
|
-
* @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
|
|
119708
|
-
*/
|
|
119709
|
-
function UserBedtimeNotificationsSettingUpdated(properties) {
|
|
119710
|
-
if (properties)
|
|
119711
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
119712
|
-
if (properties[keys[i]] != null)
|
|
119713
|
-
this[keys[i]] = properties[keys[i]];
|
|
119714
|
-
}
|
|
119715
|
-
|
|
119716
|
-
/**
|
|
119717
|
-
* UserBedtimeNotificationsSettingUpdated userId.
|
|
119718
|
-
* @member {string} userId
|
|
119719
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119720
|
-
* @instance
|
|
119721
|
-
*/
|
|
119722
|
-
UserBedtimeNotificationsSettingUpdated.prototype.userId = "";
|
|
119723
|
-
|
|
119724
|
-
/**
|
|
119725
|
-
* UserBedtimeNotificationsSettingUpdated isEnabled.
|
|
119726
|
-
* @member {boolean} isEnabled
|
|
119727
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119728
|
-
* @instance
|
|
119729
|
-
*/
|
|
119730
|
-
UserBedtimeNotificationsSettingUpdated.prototype.isEnabled = false;
|
|
119731
|
-
|
|
119732
|
-
/**
|
|
119733
|
-
* Creates a new UserBedtimeNotificationsSettingUpdated instance using the specified properties.
|
|
119734
|
-
* @function create
|
|
119735
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119736
|
-
* @static
|
|
119737
|
-
* @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
|
|
119738
|
-
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated instance
|
|
119739
|
-
*/
|
|
119740
|
-
UserBedtimeNotificationsSettingUpdated.create = function create(properties) {
|
|
119741
|
-
return new UserBedtimeNotificationsSettingUpdated(properties);
|
|
119742
|
-
};
|
|
119743
|
-
|
|
119744
|
-
/**
|
|
119745
|
-
* Encodes the specified UserBedtimeNotificationsSettingUpdated message. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
|
|
119746
|
-
* @function encode
|
|
119747
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119748
|
-
* @static
|
|
119749
|
-
* @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
|
|
119750
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119751
|
-
* @returns {$protobuf.Writer} Writer
|
|
119752
|
-
*/
|
|
119753
|
-
UserBedtimeNotificationsSettingUpdated.encode = function encode(message, writer) {
|
|
119754
|
-
if (!writer)
|
|
119755
|
-
writer = $Writer.create();
|
|
119756
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
119757
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
119758
|
-
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
119759
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
|
|
119760
|
-
return writer;
|
|
119761
|
-
};
|
|
119762
|
-
|
|
119763
|
-
/**
|
|
119764
|
-
* Encodes the specified UserBedtimeNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
|
|
119765
|
-
* @function encodeDelimited
|
|
119766
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119767
|
-
* @static
|
|
119768
|
-
* @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
|
|
119769
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119770
|
-
* @returns {$protobuf.Writer} Writer
|
|
119771
|
-
*/
|
|
119772
|
-
UserBedtimeNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
119773
|
-
return this.encode(message, writer).ldelim();
|
|
119774
|
-
};
|
|
119775
|
-
|
|
119776
|
-
/**
|
|
119777
|
-
* Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer.
|
|
119778
|
-
* @function decode
|
|
119779
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119780
|
-
* @static
|
|
119781
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119782
|
-
* @param {number} [length] Message length if known beforehand
|
|
119783
|
-
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
|
|
119784
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119785
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119786
|
-
*/
|
|
119787
|
-
UserBedtimeNotificationsSettingUpdated.decode = function decode(reader, length) {
|
|
119788
|
-
if (!(reader instanceof $Reader))
|
|
119789
|
-
reader = $Reader.create(reader);
|
|
119790
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserBedtimeNotificationsSettingUpdated();
|
|
119791
|
-
while (reader.pos < end) {
|
|
119792
|
-
var tag = reader.uint32();
|
|
119793
|
-
switch (tag >>> 3) {
|
|
119794
|
-
case 1:
|
|
119795
|
-
message.userId = reader.string();
|
|
119796
|
-
break;
|
|
119797
|
-
case 2:
|
|
119798
|
-
message.isEnabled = reader.bool();
|
|
119799
|
-
break;
|
|
119800
|
-
default:
|
|
119801
|
-
reader.skipType(tag & 7);
|
|
119802
|
-
break;
|
|
119803
|
-
}
|
|
119804
|
-
}
|
|
119805
|
-
return message;
|
|
119806
|
-
};
|
|
119807
|
-
|
|
119808
|
-
/**
|
|
119809
|
-
* Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
119810
|
-
* @function decodeDelimited
|
|
119811
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119812
|
-
* @static
|
|
119813
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119814
|
-
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
|
|
119815
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119816
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119817
|
-
*/
|
|
119818
|
-
UserBedtimeNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
119819
|
-
if (!(reader instanceof $Reader))
|
|
119820
|
-
reader = new $Reader(reader);
|
|
119821
|
-
return this.decode(reader, reader.uint32());
|
|
119822
|
-
};
|
|
119823
|
-
|
|
119824
|
-
/**
|
|
119825
|
-
* Verifies a UserBedtimeNotificationsSettingUpdated message.
|
|
119826
|
-
* @function verify
|
|
119827
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119828
|
-
* @static
|
|
119829
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
119830
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
119831
|
-
*/
|
|
119832
|
-
UserBedtimeNotificationsSettingUpdated.verify = function verify(message) {
|
|
119833
|
-
if (typeof message !== "object" || message === null)
|
|
119834
|
-
return "object expected";
|
|
119835
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
119836
|
-
if (!$util.isString(message.userId))
|
|
119837
|
-
return "userId: string expected";
|
|
119838
|
-
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
119839
|
-
if (typeof message.isEnabled !== "boolean")
|
|
119840
|
-
return "isEnabled: boolean expected";
|
|
119841
|
-
return null;
|
|
119842
|
-
};
|
|
119843
|
-
|
|
119844
|
-
/**
|
|
119845
|
-
* Creates a UserBedtimeNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
119846
|
-
* @function fromObject
|
|
119847
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119848
|
-
* @static
|
|
119849
|
-
* @param {Object.<string,*>} object Plain object
|
|
119850
|
-
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
|
|
119851
|
-
*/
|
|
119852
|
-
UserBedtimeNotificationsSettingUpdated.fromObject = function fromObject(object) {
|
|
119853
|
-
if (object instanceof $root.UserBedtimeNotificationsSettingUpdated)
|
|
119854
|
-
return object;
|
|
119855
|
-
var message = new $root.UserBedtimeNotificationsSettingUpdated();
|
|
119856
|
-
if (object.userId != null)
|
|
119857
|
-
message.userId = String(object.userId);
|
|
119858
|
-
if (object.isEnabled != null)
|
|
119859
|
-
message.isEnabled = Boolean(object.isEnabled);
|
|
119860
|
-
return message;
|
|
119861
|
-
};
|
|
119862
|
-
|
|
119863
|
-
/**
|
|
119864
|
-
* Creates a plain object from a UserBedtimeNotificationsSettingUpdated message. Also converts values to other types if specified.
|
|
119865
|
-
* @function toObject
|
|
119866
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119867
|
-
* @static
|
|
119868
|
-
* @param {UserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated
|
|
119869
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
119870
|
-
* @returns {Object.<string,*>} Plain object
|
|
119871
|
-
*/
|
|
119872
|
-
UserBedtimeNotificationsSettingUpdated.toObject = function toObject(message, options) {
|
|
119873
|
-
if (!options)
|
|
119874
|
-
options = {};
|
|
119875
|
-
var object = {};
|
|
119876
|
-
if (options.defaults) {
|
|
119877
|
-
object.userId = "";
|
|
119878
|
-
object.isEnabled = false;
|
|
119879
|
-
}
|
|
119880
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
119881
|
-
object.userId = message.userId;
|
|
119882
|
-
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
119883
|
-
object.isEnabled = message.isEnabled;
|
|
119884
|
-
return object;
|
|
119885
|
-
};
|
|
119886
|
-
|
|
119887
|
-
/**
|
|
119888
|
-
* Converts this UserBedtimeNotificationsSettingUpdated to JSON.
|
|
119889
|
-
* @function toJSON
|
|
119890
|
-
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
119891
|
-
* @instance
|
|
119892
|
-
* @returns {Object.<string,*>} JSON object
|
|
119893
|
-
*/
|
|
119894
|
-
UserBedtimeNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
|
|
119895
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
119896
|
-
};
|
|
119897
|
-
|
|
119898
|
-
return UserBedtimeNotificationsSettingUpdated;
|
|
119899
|
-
})();
|
|
119900
|
-
|
|
119901
|
-
$root.UserWindDownNotificationsSettingUpdated = (function() {
|
|
119902
|
-
|
|
119903
|
-
/**
|
|
119904
|
-
* Properties of a UserWindDownNotificationsSettingUpdated.
|
|
119905
|
-
* @exports IUserWindDownNotificationsSettingUpdated
|
|
119906
|
-
* @interface IUserWindDownNotificationsSettingUpdated
|
|
119907
|
-
* @property {string|null} [userId] UserWindDownNotificationsSettingUpdated userId
|
|
119908
|
-
* @property {boolean|null} [isEnabled] UserWindDownNotificationsSettingUpdated isEnabled
|
|
119909
|
-
*/
|
|
119910
|
-
|
|
119911
|
-
/**
|
|
119912
|
-
* Constructs a new UserWindDownNotificationsSettingUpdated.
|
|
119913
|
-
* @exports UserWindDownNotificationsSettingUpdated
|
|
119914
|
-
* @classdesc Represents a UserWindDownNotificationsSettingUpdated.
|
|
119915
|
-
* @implements IUserWindDownNotificationsSettingUpdated
|
|
119916
|
-
* @constructor
|
|
119917
|
-
* @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
|
|
119918
|
-
*/
|
|
119919
|
-
function UserWindDownNotificationsSettingUpdated(properties) {
|
|
119920
|
-
if (properties)
|
|
119921
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
119922
|
-
if (properties[keys[i]] != null)
|
|
119923
|
-
this[keys[i]] = properties[keys[i]];
|
|
119924
|
-
}
|
|
119925
|
-
|
|
119926
|
-
/**
|
|
119927
|
-
* UserWindDownNotificationsSettingUpdated userId.
|
|
119928
|
-
* @member {string} userId
|
|
119929
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
119930
|
-
* @instance
|
|
119931
|
-
*/
|
|
119932
|
-
UserWindDownNotificationsSettingUpdated.prototype.userId = "";
|
|
119933
|
-
|
|
119934
|
-
/**
|
|
119935
|
-
* UserWindDownNotificationsSettingUpdated isEnabled.
|
|
119936
|
-
* @member {boolean} isEnabled
|
|
119937
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
119938
|
-
* @instance
|
|
119939
|
-
*/
|
|
119940
|
-
UserWindDownNotificationsSettingUpdated.prototype.isEnabled = false;
|
|
119941
|
-
|
|
119942
|
-
/**
|
|
119943
|
-
* Creates a new UserWindDownNotificationsSettingUpdated instance using the specified properties.
|
|
119944
|
-
* @function create
|
|
119945
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
119946
|
-
* @static
|
|
119947
|
-
* @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
|
|
119948
|
-
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated instance
|
|
119949
|
-
*/
|
|
119950
|
-
UserWindDownNotificationsSettingUpdated.create = function create(properties) {
|
|
119951
|
-
return new UserWindDownNotificationsSettingUpdated(properties);
|
|
119952
|
-
};
|
|
119953
|
-
|
|
119954
|
-
/**
|
|
119955
|
-
* Encodes the specified UserWindDownNotificationsSettingUpdated message. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
|
|
119956
|
-
* @function encode
|
|
119957
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
119958
|
-
* @static
|
|
119959
|
-
* @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
|
|
119960
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119961
|
-
* @returns {$protobuf.Writer} Writer
|
|
119962
|
-
*/
|
|
119963
|
-
UserWindDownNotificationsSettingUpdated.encode = function encode(message, writer) {
|
|
119964
|
-
if (!writer)
|
|
119965
|
-
writer = $Writer.create();
|
|
119966
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
119967
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
119968
|
-
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
119969
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
|
|
119970
|
-
return writer;
|
|
119971
|
-
};
|
|
119972
|
-
|
|
119973
|
-
/**
|
|
119974
|
-
* Encodes the specified UserWindDownNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
|
|
119975
|
-
* @function encodeDelimited
|
|
119976
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
119977
|
-
* @static
|
|
119978
|
-
* @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
|
|
119979
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119980
|
-
* @returns {$protobuf.Writer} Writer
|
|
119981
|
-
*/
|
|
119982
|
-
UserWindDownNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
119983
|
-
return this.encode(message, writer).ldelim();
|
|
119984
|
-
};
|
|
119985
|
-
|
|
119986
|
-
/**
|
|
119987
|
-
* Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer.
|
|
119988
|
-
* @function decode
|
|
119989
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
119990
|
-
* @static
|
|
119991
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119992
|
-
* @param {number} [length] Message length if known beforehand
|
|
119993
|
-
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
|
|
119994
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119995
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119996
|
-
*/
|
|
119997
|
-
UserWindDownNotificationsSettingUpdated.decode = function decode(reader, length) {
|
|
119998
|
-
if (!(reader instanceof $Reader))
|
|
119999
|
-
reader = $Reader.create(reader);
|
|
120000
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserWindDownNotificationsSettingUpdated();
|
|
120001
|
-
while (reader.pos < end) {
|
|
120002
|
-
var tag = reader.uint32();
|
|
120003
|
-
switch (tag >>> 3) {
|
|
120004
|
-
case 1:
|
|
120005
|
-
message.userId = reader.string();
|
|
120006
|
-
break;
|
|
120007
|
-
case 2:
|
|
120008
|
-
message.isEnabled = reader.bool();
|
|
120009
|
-
break;
|
|
120010
|
-
default:
|
|
120011
|
-
reader.skipType(tag & 7);
|
|
120012
|
-
break;
|
|
120013
|
-
}
|
|
120014
|
-
}
|
|
120015
|
-
return message;
|
|
120016
|
-
};
|
|
120017
|
-
|
|
120018
|
-
/**
|
|
120019
|
-
* Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
120020
|
-
* @function decodeDelimited
|
|
120021
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
120022
|
-
* @static
|
|
120023
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
120024
|
-
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
|
|
120025
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
120026
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
120027
|
-
*/
|
|
120028
|
-
UserWindDownNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
120029
|
-
if (!(reader instanceof $Reader))
|
|
120030
|
-
reader = new $Reader(reader);
|
|
120031
|
-
return this.decode(reader, reader.uint32());
|
|
120032
|
-
};
|
|
120033
|
-
|
|
120034
|
-
/**
|
|
120035
|
-
* Verifies a UserWindDownNotificationsSettingUpdated message.
|
|
120036
|
-
* @function verify
|
|
120037
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
120038
|
-
* @static
|
|
120039
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
120040
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
120041
|
-
*/
|
|
120042
|
-
UserWindDownNotificationsSettingUpdated.verify = function verify(message) {
|
|
120043
|
-
if (typeof message !== "object" || message === null)
|
|
120044
|
-
return "object expected";
|
|
120045
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
120046
|
-
if (!$util.isString(message.userId))
|
|
120047
|
-
return "userId: string expected";
|
|
120048
|
-
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
120049
|
-
if (typeof message.isEnabled !== "boolean")
|
|
120050
|
-
return "isEnabled: boolean expected";
|
|
120051
|
-
return null;
|
|
120052
|
-
};
|
|
120053
|
-
|
|
120054
|
-
/**
|
|
120055
|
-
* Creates a UserWindDownNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
120056
|
-
* @function fromObject
|
|
120057
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
120058
|
-
* @static
|
|
120059
|
-
* @param {Object.<string,*>} object Plain object
|
|
120060
|
-
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
|
|
120061
|
-
*/
|
|
120062
|
-
UserWindDownNotificationsSettingUpdated.fromObject = function fromObject(object) {
|
|
120063
|
-
if (object instanceof $root.UserWindDownNotificationsSettingUpdated)
|
|
120064
|
-
return object;
|
|
120065
|
-
var message = new $root.UserWindDownNotificationsSettingUpdated();
|
|
120066
|
-
if (object.userId != null)
|
|
120067
|
-
message.userId = String(object.userId);
|
|
120068
|
-
if (object.isEnabled != null)
|
|
120069
|
-
message.isEnabled = Boolean(object.isEnabled);
|
|
120070
|
-
return message;
|
|
120071
|
-
};
|
|
120072
|
-
|
|
120073
|
-
/**
|
|
120074
|
-
* Creates a plain object from a UserWindDownNotificationsSettingUpdated message. Also converts values to other types if specified.
|
|
120075
|
-
* @function toObject
|
|
120076
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
120077
|
-
* @static
|
|
120078
|
-
* @param {UserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated
|
|
120079
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
120080
|
-
* @returns {Object.<string,*>} Plain object
|
|
120081
|
-
*/
|
|
120082
|
-
UserWindDownNotificationsSettingUpdated.toObject = function toObject(message, options) {
|
|
120083
|
-
if (!options)
|
|
120084
|
-
options = {};
|
|
120085
|
-
var object = {};
|
|
120086
|
-
if (options.defaults) {
|
|
120087
|
-
object.userId = "";
|
|
120088
|
-
object.isEnabled = false;
|
|
120089
|
-
}
|
|
120090
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
120091
|
-
object.userId = message.userId;
|
|
120092
|
-
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
120093
|
-
object.isEnabled = message.isEnabled;
|
|
120094
|
-
return object;
|
|
120095
|
-
};
|
|
120096
|
-
|
|
120097
|
-
/**
|
|
120098
|
-
* Converts this UserWindDownNotificationsSettingUpdated to JSON.
|
|
120099
|
-
* @function toJSON
|
|
120100
|
-
* @memberof UserWindDownNotificationsSettingUpdated
|
|
120101
|
-
* @instance
|
|
120102
|
-
* @returns {Object.<string,*>} JSON object
|
|
120103
|
-
*/
|
|
120104
|
-
UserWindDownNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
|
|
120105
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
120106
|
-
};
|
|
120107
|
-
|
|
120108
|
-
return UserWindDownNotificationsSettingUpdated;
|
|
120109
|
-
})();
|
|
120110
|
-
|
|
120111
119942
|
$root.VirginPulseAccountLinked = (function() {
|
|
120112
119943
|
|
|
120113
119944
|
/**
|
package/package.json
CHANGED