@headspace/protos-events 1.49.0 → 1.50.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +122 -445
  2. package/lib/index.js +317 -0
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2233,26 +2233,134 @@ export class ContentPlayed implements IContentPlayed {
2233
2233
  public toJSON(): { [k: string]: any };
2234
2234
  }
2235
2235
 
2236
- /** Properties of a FamilyMemberAdded. */
2237
- export interface IFamilyMemberAdded {
2236
+ /** Properties of a BuddyAccepted. */
2237
+ export interface IBuddyAccepted {
2238
2238
 
2239
- /** FamilyMemberAdded timestamp */
2240
- timestamp?: (number|Long|null);
2241
-
2242
- /** FamilyMemberAdded userGroupEntryId */
2243
- userGroupEntryId?: (number|null);
2239
+ /** BuddyAccepted buddyName */
2240
+ buddyName?: (string|null);
2244
2241
 
2245
- /** FamilyMemberAdded userId */
2242
+ /** BuddyAccepted userId */
2246
2243
  userId?: (string|null);
2247
2244
 
2248
- /** FamilyMemberAdded userGroupId */
2249
- userGroupId?: (number|null);
2245
+ /** BuddyAccepted deepLink */
2246
+ deepLink?: (string|null);
2250
2247
 
2251
- /** FamilyMemberAdded email */
2252
- email?: (string|null);
2248
+ /** BuddyAccepted actionIdIos */
2249
+ actionIdIos?: (string|null);
2250
+
2251
+ /** BuddyAccepted actionIos */
2252
+ actionIos?: (Action|null);
2253
+ }
2254
+
2255
+ /** Represents a BuddyAccepted. */
2256
+ export class BuddyAccepted implements IBuddyAccepted {
2257
+
2258
+ /**
2259
+ * Constructs a new BuddyAccepted.
2260
+ * @param [properties] Properties to set
2261
+ */
2262
+ constructor(properties?: IBuddyAccepted);
2263
+
2264
+ /** BuddyAccepted buddyName. */
2265
+ public buddyName: string;
2266
+
2267
+ /** BuddyAccepted userId. */
2268
+ public userId: string;
2269
+
2270
+ /** BuddyAccepted deepLink. */
2271
+ public deepLink: string;
2272
+
2273
+ /** BuddyAccepted actionIdIos. */
2274
+ public actionIdIos: string;
2275
+
2276
+ /** BuddyAccepted actionIos. */
2277
+ public actionIos: Action;
2278
+
2279
+ /**
2280
+ * Creates a new BuddyAccepted instance using the specified properties.
2281
+ * @param [properties] Properties to set
2282
+ * @returns BuddyAccepted instance
2283
+ */
2284
+ public static create(properties?: IBuddyAccepted): BuddyAccepted;
2285
+
2286
+ /**
2287
+ * Encodes the specified BuddyAccepted message. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
2288
+ * @param message BuddyAccepted message or plain object to encode
2289
+ * @param [writer] Writer to encode to
2290
+ * @returns Writer
2291
+ */
2292
+ public static encode(message: IBuddyAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
2293
+
2294
+ /**
2295
+ * Encodes the specified BuddyAccepted message, length delimited. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
2296
+ * @param message BuddyAccepted message or plain object to encode
2297
+ * @param [writer] Writer to encode to
2298
+ * @returns Writer
2299
+ */
2300
+ public static encodeDelimited(message: IBuddyAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
2301
+
2302
+ /**
2303
+ * Decodes a BuddyAccepted message from the specified reader or buffer.
2304
+ * @param reader Reader or buffer to decode from
2305
+ * @param [length] Message length if known beforehand
2306
+ * @returns BuddyAccepted
2307
+ * @throws {Error} If the payload is not a reader or valid buffer
2308
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2309
+ */
2310
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BuddyAccepted;
2311
+
2312
+ /**
2313
+ * Decodes a BuddyAccepted message from the specified reader or buffer, length delimited.
2314
+ * @param reader Reader or buffer to decode from
2315
+ * @returns BuddyAccepted
2316
+ * @throws {Error} If the payload is not a reader or valid buffer
2317
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2318
+ */
2319
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BuddyAccepted;
2320
+
2321
+ /**
2322
+ * Verifies a BuddyAccepted message.
2323
+ * @param message Plain object to verify
2324
+ * @returns `null` if valid, otherwise the reason why it is not
2325
+ */
2326
+ public static verify(message: { [k: string]: any }): (string|null);
2327
+
2328
+ /**
2329
+ * Creates a BuddyAccepted message from a plain object. Also converts values to their respective internal types.
2330
+ * @param object Plain object
2331
+ * @returns BuddyAccepted
2332
+ */
2333
+ public static fromObject(object: { [k: string]: any }): BuddyAccepted;
2334
+
2335
+ /**
2336
+ * Creates a plain object from a BuddyAccepted message. Also converts values to other types if specified.
2337
+ * @param message BuddyAccepted
2338
+ * @param [options] Conversion options
2339
+ * @returns Plain object
2340
+ */
2341
+ public static toObject(message: BuddyAccepted, options?: $protobuf.IConversionOptions): { [k: string]: any };
2342
+
2343
+ /**
2344
+ * Converts this BuddyAccepted to JSON.
2345
+ * @returns JSON object
2346
+ */
2347
+ public toJSON(): { [k: string]: any };
2348
+ }
2349
+
2350
+ /** Action enum. */
2351
+ namespace Action {
2352
+
2353
+ /** OPEN_APP value */
2354
+ let OPEN_APP: number;
2355
+
2356
+ /** URI value */
2357
+ let URI: number;
2358
+
2359
+ /** DEEP_LINK value */
2360
+ let DEEP_LINK: number;
2253
2361
 
2254
- /** FamilyMemberAdded token */
2255
- token?: (string|null);
2362
+ /** CLOSE value */
2363
+ let CLOSE: number;
2256
2364
  }
2257
2365
 
2258
2366
  /** Represents a FamilyMemberAdded. */
@@ -2353,28 +2461,6 @@ export class FamilyMemberAdded implements IFamilyMemberAdded {
2353
2461
  public toJSON(): { [k: string]: any };
2354
2462
  }
2355
2463
 
2356
- /** Properties of a FamilyMemberInvited. */
2357
- export interface IFamilyMemberInvited {
2358
-
2359
- /** FamilyMemberInvited timestamp */
2360
- timestamp?: (number|Long|null);
2361
-
2362
- /** FamilyMemberInvited userGroupEntryId */
2363
- userGroupEntryId?: (number|null);
2364
-
2365
- /** FamilyMemberInvited userGroupId */
2366
- userGroupId?: (number|null);
2367
-
2368
- /** FamilyMemberInvited email */
2369
- email?: (string|null);
2370
-
2371
- /** FamilyMemberInvited token */
2372
- token?: (string|null);
2373
-
2374
- /** FamilyMemberInvited userId */
2375
- userId?: (string|null);
2376
- }
2377
-
2378
2464
  /** Represents a FamilyMemberInvited. */
2379
2465
  export class FamilyMemberInvited implements IFamilyMemberInvited {
2380
2466
 
@@ -2473,28 +2559,6 @@ export class FamilyMemberInvited implements IFamilyMemberInvited {
2473
2559
  public toJSON(): { [k: string]: any };
2474
2560
  }
2475
2561
 
2476
- /** Properties of a FamilyMemberRejected. */
2477
- export interface IFamilyMemberRejected {
2478
-
2479
- /** FamilyMemberRejected timestamp */
2480
- timestamp?: (number|Long|null);
2481
-
2482
- /** FamilyMemberRejected userGroupEntryId */
2483
- userGroupEntryId?: (number|null);
2484
-
2485
- /** FamilyMemberRejected userGroupId */
2486
- userGroupId?: (number|null);
2487
-
2488
- /** FamilyMemberRejected email */
2489
- email?: (string|null);
2490
-
2491
- /** FamilyMemberRejected token */
2492
- token?: (string|null);
2493
-
2494
- /** FamilyMemberRejected userId */
2495
- userId?: (string|null);
2496
- }
2497
-
2498
2562
  /** Represents a FamilyMemberRejected. */
2499
2563
  export class FamilyMemberRejected implements IFamilyMemberRejected {
2500
2564
 
@@ -2593,22 +2657,6 @@ export class FamilyMemberRejected implements IFamilyMemberRejected {
2593
2657
  public toJSON(): { [k: string]: any };
2594
2658
  }
2595
2659
 
2596
- /** Properties of a FamilyMemberRemoved. */
2597
- export interface IFamilyMemberRemoved {
2598
-
2599
- /** FamilyMemberRemoved timestamp */
2600
- timestamp?: (number|Long|null);
2601
-
2602
- /** FamilyMemberRemoved userGroupEntryId */
2603
- userGroupEntryId?: (number|null);
2604
-
2605
- /** FamilyMemberRemoved userId */
2606
- userId?: (string|null);
2607
-
2608
- /** FamilyMemberRemoved userGroupId */
2609
- userGroupId?: (number|null);
2610
- }
2611
-
2612
2660
  /** Represents a FamilyMemberRemoved. */
2613
2661
  export class FamilyMemberRemoved implements IFamilyMemberRemoved {
2614
2662
 
@@ -2701,19 +2749,6 @@ export class FamilyMemberRemoved implements IFamilyMemberRemoved {
2701
2749
  public toJSON(): { [k: string]: any };
2702
2750
  }
2703
2751
 
2704
- /** Properties of a VoiceDeviceConnected. */
2705
- export interface IVoiceDeviceConnected {
2706
-
2707
- /** VoiceDeviceConnected userId */
2708
- userId?: (string|null);
2709
-
2710
- /** VoiceDeviceConnected platform */
2711
- platform?: (string|null);
2712
-
2713
- /** VoiceDeviceConnected timestamp */
2714
- timestamp?: (number|Long|null);
2715
- }
2716
-
2717
2752
  /** Represents a VoiceDeviceConnected. */
2718
2753
  export class VoiceDeviceConnected implements IVoiceDeviceConnected {
2719
2754
 
@@ -2803,16 +2838,6 @@ export class VoiceDeviceConnected implements IVoiceDeviceConnected {
2803
2838
  public toJSON(): { [k: string]: any };
2804
2839
  }
2805
2840
 
2806
- /** Properties of a CheckInResponse. */
2807
- export interface ICheckInResponse {
2808
-
2809
- /** CheckInResponse questionId */
2810
- questionId?: (number|null);
2811
-
2812
- /** CheckInResponse response */
2813
- response?: (string|null);
2814
- }
2815
-
2816
2841
  /** Represents a CheckInResponse. */
2817
2842
  export class CheckInResponse implements ICheckInResponse {
2818
2843
 
@@ -2899,22 +2924,6 @@ export class CheckInResponse implements ICheckInResponse {
2899
2924
  public toJSON(): { [k: string]: any };
2900
2925
  }
2901
2926
 
2902
- /** Properties of a CheckInCompleted. */
2903
- export interface ICheckInCompleted {
2904
-
2905
- /** CheckInCompleted userId */
2906
- userId?: (string|null);
2907
-
2908
- /** CheckInCompleted timestamp */
2909
- timestamp?: (number|Long|null);
2910
-
2911
- /** CheckInCompleted checkInId */
2912
- checkInId?: (number|null);
2913
-
2914
- /** CheckInCompleted responses */
2915
- responses?: (ICheckInResponse[]|null);
2916
- }
2917
-
2918
2927
  /** Represents a CheckInCompleted. */
2919
2928
  export class CheckInCompleted implements ICheckInCompleted {
2920
2929
 
@@ -3007,16 +3016,6 @@ export class CheckInCompleted implements ICheckInCompleted {
3007
3016
  public toJSON(): { [k: string]: any };
3008
3017
  }
3009
3018
 
3010
- /** Properties of a ReferralSignedUp. */
3011
- export interface IReferralSignedUp {
3012
-
3013
- /** ReferralSignedUp refereeName */
3014
- refereeName?: (string|null);
3015
-
3016
- /** ReferralSignedUp referrerId */
3017
- referrerId?: (string|null);
3018
- }
3019
-
3020
3019
  /** Represents a ReferralSignedUp. */
3021
3020
  export class ReferralSignedUp implements IReferralSignedUp {
3022
3021
 
@@ -3103,19 +3102,6 @@ export class ReferralSignedUp implements IReferralSignedUp {
3103
3102
  public toJSON(): { [k: string]: any };
3104
3103
  }
3105
3104
 
3106
- /** Properties of a SleepcastEpisodeCompleted. */
3107
- export interface ISleepcastEpisodeCompleted {
3108
-
3109
- /** SleepcastEpisodeCompleted timestamp */
3110
- timestamp?: (number|Long|null);
3111
-
3112
- /** SleepcastEpisodeCompleted sleepcastId */
3113
- sleepcastId?: (number|null);
3114
-
3115
- /** SleepcastEpisodeCompleted userId */
3116
- userId?: (string|null);
3117
- }
3118
-
3119
3105
  /** Represents a SleepcastEpisodeCompleted. */
3120
3106
  export class SleepcastEpisodeCompleted implements ISleepcastEpisodeCompleted {
3121
3107
 
@@ -3205,19 +3191,6 @@ export class SleepcastEpisodeCompleted implements ISleepcastEpisodeCompleted {
3205
3191
  public toJSON(): { [k: string]: any };
3206
3192
  }
3207
3193
 
3208
- /** Properties of a FirstSleepcastPlayDateSet. */
3209
- export interface IFirstSleepcastPlayDateSet {
3210
-
3211
- /** FirstSleepcastPlayDateSet timestamp */
3212
- timestamp?: (number|Long|null);
3213
-
3214
- /** FirstSleepcastPlayDateSet userId */
3215
- userId?: (string|null);
3216
-
3217
- /** FirstSleepcastPlayDateSet firstPlayTimestamp */
3218
- firstPlayTimestamp?: (number|Long|null);
3219
- }
3220
-
3221
3194
  /** Represents a FirstSleepcastPlayDateSet. */
3222
3195
  export class FirstSleepcastPlayDateSet implements IFirstSleepcastPlayDateSet {
3223
3196
 
@@ -3307,19 +3280,6 @@ export class FirstSleepcastPlayDateSet implements IFirstSleepcastPlayDateSet {
3307
3280
  public toJSON(): { [k: string]: any };
3308
3281
  }
3309
3282
 
3310
- /** Properties of a NumSleepcastPlaysSet. */
3311
- export interface INumSleepcastPlaysSet {
3312
-
3313
- /** NumSleepcastPlaysSet timestamp */
3314
- timestamp?: (number|Long|null);
3315
-
3316
- /** NumSleepcastPlaysSet userId */
3317
- userId?: (string|null);
3318
-
3319
- /** NumSleepcastPlaysSet numPlays */
3320
- numPlays?: (number|null);
3321
- }
3322
-
3323
3283
  /** Represents a NumSleepcastPlaysSet. */
3324
3284
  export class NumSleepcastPlaysSet implements INumSleepcastPlaysSet {
3325
3285
 
@@ -3409,40 +3369,6 @@ export class NumSleepcastPlaysSet implements INumSleepcastPlaysSet {
3409
3369
  public toJSON(): { [k: string]: any };
3410
3370
  }
3411
3371
 
3412
- /** Properties of a SubscriptionCreated. */
3413
- export interface ISubscriptionCreated {
3414
-
3415
- /** SubscriptionCreated id */
3416
- id?: (number|null);
3417
-
3418
- /** SubscriptionCreated updatedOn */
3419
- updatedOn?: (number|Long|null);
3420
-
3421
- /** SubscriptionCreated userId */
3422
- userId?: (string|null);
3423
-
3424
- /** SubscriptionCreated createdAt */
3425
- createdAt?: (number|Long|null);
3426
-
3427
- /** SubscriptionCreated startsAt */
3428
- startsAt?: (number|Long|null);
3429
-
3430
- /** SubscriptionCreated endsAt */
3431
- endsAt?: (number|Long|null);
3432
-
3433
- /** SubscriptionCreated voucherCode */
3434
- voucherCode?: (string|null);
3435
-
3436
- /** SubscriptionCreated platform */
3437
- platform?: (subscription.SubscriptionPlatform|null);
3438
-
3439
- /** SubscriptionCreated autoRenewalStatus */
3440
- autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3441
-
3442
- /** SubscriptionCreated plan */
3443
- plan?: (subscription.IPlan|null);
3444
- }
3445
-
3446
3372
  /** Represents a SubscriptionCreated. */
3447
3373
  export class SubscriptionCreated implements ISubscriptionCreated {
3448
3374
 
@@ -3553,46 +3479,6 @@ export class SubscriptionCreated implements ISubscriptionCreated {
3553
3479
  public toJSON(): { [k: string]: any };
3554
3480
  }
3555
3481
 
3556
- /** Properties of a SubscriptionCancelled. */
3557
- export interface ISubscriptionCancelled {
3558
-
3559
- /** SubscriptionCancelled id */
3560
- id?: (number|null);
3561
-
3562
- /** SubscriptionCancelled updatedOn */
3563
- updatedOn?: (number|Long|null);
3564
-
3565
- /** SubscriptionCancelled userId */
3566
- userId?: (string|null);
3567
-
3568
- /** SubscriptionCancelled paymentMethod */
3569
- paymentMethod?: (subscription.IPaymentMethod|null);
3570
-
3571
- /** SubscriptionCancelled createdAt */
3572
- createdAt?: (number|Long|null);
3573
-
3574
- /** SubscriptionCancelled startsAt */
3575
- startsAt?: (number|Long|null);
3576
-
3577
- /** SubscriptionCancelled endsAt */
3578
- endsAt?: (number|Long|null);
3579
-
3580
- /** SubscriptionCancelled voucherCode */
3581
- voucherCode?: (string|null);
3582
-
3583
- /** SubscriptionCancelled platform */
3584
- platform?: (subscription.SubscriptionPlatform|null);
3585
-
3586
- /** SubscriptionCancelled autoRenewalStatus */
3587
- autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3588
-
3589
- /** SubscriptionCancelled plan */
3590
- plan?: (subscription.IPlan|null);
3591
-
3592
- /** SubscriptionCancelled cancellationType */
3593
- cancellationType?: (subscription.CancellationType|null);
3594
- }
3595
-
3596
3482
  /** Represents a SubscriptionCancelled. */
3597
3483
  export class SubscriptionCancelled implements ISubscriptionCancelled {
3598
3484
 
@@ -3709,40 +3595,6 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
3709
3595
  public toJSON(): { [k: string]: any };
3710
3596
  }
3711
3597
 
3712
- /** Properties of a SubscriptionRenewed. */
3713
- export interface ISubscriptionRenewed {
3714
-
3715
- /** SubscriptionRenewed id */
3716
- id?: (number|null);
3717
-
3718
- /** SubscriptionRenewed updatedOn */
3719
- updatedOn?: (number|Long|null);
3720
-
3721
- /** SubscriptionRenewed userId */
3722
- userId?: (string|null);
3723
-
3724
- /** SubscriptionRenewed createdAt */
3725
- createdAt?: (number|Long|null);
3726
-
3727
- /** SubscriptionRenewed startsAt */
3728
- startsAt?: (number|Long|null);
3729
-
3730
- /** SubscriptionRenewed endsAt */
3731
- endsAt?: (number|Long|null);
3732
-
3733
- /** SubscriptionRenewed voucherCode */
3734
- voucherCode?: (string|null);
3735
-
3736
- /** SubscriptionRenewed platform */
3737
- platform?: (subscription.SubscriptionPlatform|null);
3738
-
3739
- /** SubscriptionRenewed autoRenewalStatus */
3740
- autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3741
-
3742
- /** SubscriptionRenewed plan */
3743
- plan?: (subscription.IPlan|null);
3744
- }
3745
-
3746
3598
  /** Represents a SubscriptionRenewed. */
3747
3599
  export class SubscriptionRenewed implements ISubscriptionRenewed {
3748
3600
 
@@ -3853,37 +3705,6 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
3853
3705
  public toJSON(): { [k: string]: any };
3854
3706
  }
3855
3707
 
3856
- /** Properties of a SubscriptionUpcomingRenewal. */
3857
- export interface ISubscriptionUpcomingRenewal {
3858
-
3859
- /** SubscriptionUpcomingRenewal id */
3860
- id?: (number|null);
3861
-
3862
- /** SubscriptionUpcomingRenewal userId */
3863
- userId?: (string|null);
3864
-
3865
- /** SubscriptionUpcomingRenewal daysBefore */
3866
- daysBefore?: (number|null);
3867
-
3868
- /** SubscriptionUpcomingRenewal membership */
3869
- membership?: (subscription.SubscriptionMembership|null);
3870
-
3871
- /** SubscriptionUpcomingRenewal planAffiliation */
3872
- planAffiliation?: (subscription.PlanAffiliation|null);
3873
-
3874
- /** SubscriptionUpcomingRenewal renewalDate */
3875
- renewalDate?: (number|Long|null);
3876
-
3877
- /** SubscriptionUpcomingRenewal paymentMethod */
3878
- paymentMethod?: (subscription.IPaymentMethod|null);
3879
-
3880
- /** SubscriptionUpcomingRenewal renewalAmount */
3881
- renewalAmount?: (number|null);
3882
-
3883
- /** SubscriptionUpcomingRenewal currency */
3884
- currency?: (string|null);
3885
- }
3886
-
3887
3708
  /** Represents a SubscriptionUpcomingRenewal. */
3888
3709
  export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal {
3889
3710
 
@@ -3991,28 +3812,6 @@ export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal
3991
3812
  public toJSON(): { [k: string]: any };
3992
3813
  }
3993
3814
 
3994
- /** Properties of a SubscriptionPaymentProcessed. */
3995
- export interface ISubscriptionPaymentProcessed {
3996
-
3997
- /** SubscriptionPaymentProcessed userId */
3998
- userId?: (string|null);
3999
-
4000
- /** SubscriptionPaymentProcessed paymentDate */
4001
- paymentDate?: (number|Long|null);
4002
-
4003
- /** SubscriptionPaymentProcessed timestamp */
4004
- timestamp?: (number|Long|null);
4005
-
4006
- /** SubscriptionPaymentProcessed paymentAmount */
4007
- paymentAmount?: (number|null);
4008
-
4009
- /** SubscriptionPaymentProcessed renewalAmount */
4010
- renewalAmount?: (number|null);
4011
-
4012
- /** SubscriptionPaymentProcessed currency */
4013
- currency?: (string|null);
4014
- }
4015
-
4016
3815
  /** Represents a SubscriptionPaymentProcessed. */
4017
3816
  export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcessed {
4018
3817
 
@@ -4111,22 +3910,6 @@ export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcess
4111
3910
  public toJSON(): { [k: string]: any };
4112
3911
  }
4113
3912
 
4114
- /** Properties of a SubscriptionPaymentDeclined. */
4115
- export interface ISubscriptionPaymentDeclined {
4116
-
4117
- /** SubscriptionPaymentDeclined userId */
4118
- userId?: (string|null);
4119
-
4120
- /** SubscriptionPaymentDeclined paymentDate */
4121
- paymentDate?: (number|Long|null);
4122
-
4123
- /** SubscriptionPaymentDeclined timestamp */
4124
- timestamp?: (number|Long|null);
4125
-
4126
- /** SubscriptionPaymentDeclined attempt */
4127
- attempt?: (number|null);
4128
- }
4129
-
4130
3913
  /** Represents a SubscriptionPaymentDeclined. */
4131
3914
  export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined {
4132
3915
 
@@ -4219,40 +4002,6 @@ export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined
4219
4002
  public toJSON(): { [k: string]: any };
4220
4003
  }
4221
4004
 
4222
- /** Properties of a SubscriptionGraced. */
4223
- export interface ISubscriptionGraced {
4224
-
4225
- /** SubscriptionGraced id */
4226
- id?: (number|null);
4227
-
4228
- /** SubscriptionGraced updatedOn */
4229
- updatedOn?: (number|Long|null);
4230
-
4231
- /** SubscriptionGraced userId */
4232
- userId?: (string|null);
4233
-
4234
- /** SubscriptionGraced createdAt */
4235
- createdAt?: (number|Long|null);
4236
-
4237
- /** SubscriptionGraced startsAt */
4238
- startsAt?: (number|Long|null);
4239
-
4240
- /** SubscriptionGraced endsAt */
4241
- endsAt?: (number|Long|null);
4242
-
4243
- /** SubscriptionGraced voucherCode */
4244
- voucherCode?: (string|null);
4245
-
4246
- /** SubscriptionGraced platform */
4247
- platform?: (subscription.SubscriptionPlatform|null);
4248
-
4249
- /** SubscriptionGraced autoRenewalStatus */
4250
- autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
4251
-
4252
- /** SubscriptionGraced plan */
4253
- plan?: (subscription.IPlan|null);
4254
- }
4255
-
4256
4005
  /** Represents a SubscriptionGraced. */
4257
4006
  export class SubscriptionGraced implements ISubscriptionGraced {
4258
4007
 
@@ -4363,13 +4112,6 @@ export class SubscriptionGraced implements ISubscriptionGraced {
4363
4112
  public toJSON(): { [k: string]: any };
4364
4113
  }
4365
4114
 
4366
- /** Properties of a UserDoubleOptInEmailRequested. */
4367
- export interface IUserDoubleOptInEmailRequested {
4368
-
4369
- /** UserDoubleOptInEmailRequested userId */
4370
- userId?: (string|null);
4371
- }
4372
-
4373
4115
  /** Represents a UserDoubleOptInEmailRequested. */
4374
4116
  export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
4375
4117
 
@@ -4453,19 +4195,6 @@ export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailReque
4453
4195
  public toJSON(): { [k: string]: any };
4454
4196
  }
4455
4197
 
4456
- /** Properties of a UserEmailUpdated. */
4457
- export interface IUserEmailUpdated {
4458
-
4459
- /** UserEmailUpdated userId */
4460
- userId?: (string|null);
4461
-
4462
- /** UserEmailUpdated oldEmail */
4463
- oldEmail?: (string|null);
4464
-
4465
- /** UserEmailUpdated timestamp */
4466
- timestamp?: (number|Long|null);
4467
- }
4468
-
4469
4198
  /** Represents a UserEmailUpdated. */
4470
4199
  export class UserEmailUpdated implements IUserEmailUpdated {
4471
4200
 
@@ -4555,22 +4284,6 @@ export class UserEmailUpdated implements IUserEmailUpdated {
4555
4284
  public toJSON(): { [k: string]: any };
4556
4285
  }
4557
4286
 
4558
- /** Properties of a UserEmailVerificationRequested. */
4559
- export interface IUserEmailVerificationRequested {
4560
-
4561
- /** UserEmailVerificationRequested userId */
4562
- userId?: (string|null);
4563
-
4564
- /** UserEmailVerificationRequested verificationCode */
4565
- verificationCode?: (string|null);
4566
-
4567
- /** UserEmailVerificationRequested timestamp */
4568
- timestamp?: (number|Long|null);
4569
-
4570
- /** UserEmailVerificationRequested optIn */
4571
- optIn?: (boolean|null);
4572
- }
4573
-
4574
4287
  /** Represents a UserEmailVerificationRequested. */
4575
4288
  export class UserEmailVerificationRequested implements IUserEmailVerificationRequested {
4576
4289
 
@@ -4663,22 +4376,6 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
4663
4376
  public toJSON(): { [k: string]: any };
4664
4377
  }
4665
4378
 
4666
- /** Properties of a UserPasswordResetRequested. */
4667
- export interface IUserPasswordResetRequested {
4668
-
4669
- /** UserPasswordResetRequested userId */
4670
- userId?: (string|null);
4671
-
4672
- /** UserPasswordResetRequested resetCode */
4673
- resetCode?: (string|null);
4674
-
4675
- /** UserPasswordResetRequested timestamp */
4676
- timestamp?: (number|Long|null);
4677
-
4678
- /** UserPasswordResetRequested email */
4679
- email?: (string|null);
4680
- }
4681
-
4682
4379
  /** Represents a UserPasswordResetRequested. */
4683
4380
  export class UserPasswordResetRequested implements IUserPasswordResetRequested {
4684
4381
 
@@ -4771,19 +4468,6 @@ export class UserPasswordResetRequested implements IUserPasswordResetRequested {
4771
4468
  public toJSON(): { [k: string]: any };
4772
4469
  }
4773
4470
 
4774
- /** Properties of a UserPasswordUpdated. */
4775
- export interface IUserPasswordUpdated {
4776
-
4777
- /** UserPasswordUpdated userId */
4778
- userId?: (string|null);
4779
-
4780
- /** UserPasswordUpdated updatedOn */
4781
- updatedOn?: (number|Long|null);
4782
-
4783
- /** UserPasswordUpdated email */
4784
- email?: (string|null);
4785
- }
4786
-
4787
4471
  /** Represents a UserPasswordUpdated. */
4788
4472
  export class UserPasswordUpdated implements IUserPasswordUpdated {
4789
4473
 
@@ -4873,13 +4557,6 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
4873
4557
  public toJSON(): { [k: string]: any };
4874
4558
  }
4875
4559
 
4876
- /** Properties of a UserEmailMarketingOptedIn. */
4877
- export interface IUserEmailMarketingOptedIn {
4878
-
4879
- /** UserEmailMarketingOptedIn userId */
4880
- userId?: (string|null);
4881
- }
4882
-
4883
4560
  /** Represents a UserEmailMarketingOptedIn. */
4884
4561
  export class UserEmailMarketingOptedIn implements IUserEmailMarketingOptedIn {
4885
4562
 
package/lib/index.js CHANGED
@@ -5304,6 +5304,323 @@ $root.ContentPlayed = (function() {
5304
5304
  return ContentPlayed;
5305
5305
  })();
5306
5306
 
5307
+ $root.BuddyAccepted = (function() {
5308
+
5309
+ /**
5310
+ * Properties of a BuddyAccepted.
5311
+ * @exports IBuddyAccepted
5312
+ * @interface IBuddyAccepted
5313
+ * @property {string|null} [buddyName] BuddyAccepted buddyName
5314
+ * @property {string|null} [userId] BuddyAccepted userId
5315
+ * @property {string|null} [deepLink] BuddyAccepted deepLink
5316
+ * @property {string|null} [actionIdIos] BuddyAccepted actionIdIos
5317
+ * @property {Action|null} [actionIos] BuddyAccepted actionIos
5318
+ */
5319
+
5320
+ /**
5321
+ * Constructs a new BuddyAccepted.
5322
+ * @exports BuddyAccepted
5323
+ * @classdesc Represents a BuddyAccepted.
5324
+ * @implements IBuddyAccepted
5325
+ * @constructor
5326
+ * @param {IBuddyAccepted=} [properties] Properties to set
5327
+ */
5328
+ function BuddyAccepted(properties) {
5329
+ if (properties)
5330
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5331
+ if (properties[keys[i]] != null)
5332
+ this[keys[i]] = properties[keys[i]];
5333
+ }
5334
+
5335
+ /**
5336
+ * BuddyAccepted buddyName.
5337
+ * @member {string} buddyName
5338
+ * @memberof BuddyAccepted
5339
+ * @instance
5340
+ */
5341
+ BuddyAccepted.prototype.buddyName = "";
5342
+
5343
+ /**
5344
+ * BuddyAccepted userId.
5345
+ * @member {string} userId
5346
+ * @memberof BuddyAccepted
5347
+ * @instance
5348
+ */
5349
+ BuddyAccepted.prototype.userId = "";
5350
+
5351
+ /**
5352
+ * BuddyAccepted deepLink.
5353
+ * @member {string} deepLink
5354
+ * @memberof BuddyAccepted
5355
+ * @instance
5356
+ */
5357
+ BuddyAccepted.prototype.deepLink = "";
5358
+
5359
+ /**
5360
+ * BuddyAccepted actionIdIos.
5361
+ * @member {string} actionIdIos
5362
+ * @memberof BuddyAccepted
5363
+ * @instance
5364
+ */
5365
+ BuddyAccepted.prototype.actionIdIos = "";
5366
+
5367
+ /**
5368
+ * BuddyAccepted actionIos.
5369
+ * @member {Action} actionIos
5370
+ * @memberof BuddyAccepted
5371
+ * @instance
5372
+ */
5373
+ BuddyAccepted.prototype.actionIos = 0;
5374
+
5375
+ /**
5376
+ * Creates a new BuddyAccepted instance using the specified properties.
5377
+ * @function create
5378
+ * @memberof BuddyAccepted
5379
+ * @static
5380
+ * @param {IBuddyAccepted=} [properties] Properties to set
5381
+ * @returns {BuddyAccepted} BuddyAccepted instance
5382
+ */
5383
+ BuddyAccepted.create = function create(properties) {
5384
+ return new BuddyAccepted(properties);
5385
+ };
5386
+
5387
+ /**
5388
+ * Encodes the specified BuddyAccepted message. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
5389
+ * @function encode
5390
+ * @memberof BuddyAccepted
5391
+ * @static
5392
+ * @param {IBuddyAccepted} message BuddyAccepted message or plain object to encode
5393
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5394
+ * @returns {$protobuf.Writer} Writer
5395
+ */
5396
+ BuddyAccepted.encode = function encode(message, writer) {
5397
+ if (!writer)
5398
+ writer = $Writer.create();
5399
+ if (message.buddyName != null && message.hasOwnProperty("buddyName"))
5400
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.buddyName);
5401
+ if (message.userId != null && message.hasOwnProperty("userId"))
5402
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
5403
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5404
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.deepLink);
5405
+ if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
5406
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionIdIos);
5407
+ if (message.actionIos != null && message.hasOwnProperty("actionIos"))
5408
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.actionIos);
5409
+ return writer;
5410
+ };
5411
+
5412
+ /**
5413
+ * Encodes the specified BuddyAccepted message, length delimited. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
5414
+ * @function encodeDelimited
5415
+ * @memberof BuddyAccepted
5416
+ * @static
5417
+ * @param {IBuddyAccepted} message BuddyAccepted message or plain object to encode
5418
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5419
+ * @returns {$protobuf.Writer} Writer
5420
+ */
5421
+ BuddyAccepted.encodeDelimited = function encodeDelimited(message, writer) {
5422
+ return this.encode(message, writer).ldelim();
5423
+ };
5424
+
5425
+ /**
5426
+ * Decodes a BuddyAccepted message from the specified reader or buffer.
5427
+ * @function decode
5428
+ * @memberof BuddyAccepted
5429
+ * @static
5430
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5431
+ * @param {number} [length] Message length if known beforehand
5432
+ * @returns {BuddyAccepted} BuddyAccepted
5433
+ * @throws {Error} If the payload is not a reader or valid buffer
5434
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5435
+ */
5436
+ BuddyAccepted.decode = function decode(reader, length) {
5437
+ if (!(reader instanceof $Reader))
5438
+ reader = $Reader.create(reader);
5439
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BuddyAccepted();
5440
+ while (reader.pos < end) {
5441
+ var tag = reader.uint32();
5442
+ switch (tag >>> 3) {
5443
+ case 1:
5444
+ message.buddyName = reader.string();
5445
+ break;
5446
+ case 2:
5447
+ message.userId = reader.string();
5448
+ break;
5449
+ case 3:
5450
+ message.deepLink = reader.string();
5451
+ break;
5452
+ case 4:
5453
+ message.actionIdIos = reader.string();
5454
+ break;
5455
+ case 5:
5456
+ message.actionIos = reader.int32();
5457
+ break;
5458
+ default:
5459
+ reader.skipType(tag & 7);
5460
+ break;
5461
+ }
5462
+ }
5463
+ return message;
5464
+ };
5465
+
5466
+ /**
5467
+ * Decodes a BuddyAccepted message from the specified reader or buffer, length delimited.
5468
+ * @function decodeDelimited
5469
+ * @memberof BuddyAccepted
5470
+ * @static
5471
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5472
+ * @returns {BuddyAccepted} BuddyAccepted
5473
+ * @throws {Error} If the payload is not a reader or valid buffer
5474
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5475
+ */
5476
+ BuddyAccepted.decodeDelimited = function decodeDelimited(reader) {
5477
+ if (!(reader instanceof $Reader))
5478
+ reader = new $Reader(reader);
5479
+ return this.decode(reader, reader.uint32());
5480
+ };
5481
+
5482
+ /**
5483
+ * Verifies a BuddyAccepted message.
5484
+ * @function verify
5485
+ * @memberof BuddyAccepted
5486
+ * @static
5487
+ * @param {Object.<string,*>} message Plain object to verify
5488
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
5489
+ */
5490
+ BuddyAccepted.verify = function verify(message) {
5491
+ if (typeof message !== "object" || message === null)
5492
+ return "object expected";
5493
+ if (message.buddyName != null && message.hasOwnProperty("buddyName"))
5494
+ if (!$util.isString(message.buddyName))
5495
+ return "buddyName: string expected";
5496
+ if (message.userId != null && message.hasOwnProperty("userId"))
5497
+ if (!$util.isString(message.userId))
5498
+ return "userId: string expected";
5499
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5500
+ if (!$util.isString(message.deepLink))
5501
+ return "deepLink: string expected";
5502
+ if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
5503
+ if (!$util.isString(message.actionIdIos))
5504
+ return "actionIdIos: string expected";
5505
+ if (message.actionIos != null && message.hasOwnProperty("actionIos"))
5506
+ switch (message.actionIos) {
5507
+ default:
5508
+ return "actionIos: enum value expected";
5509
+ case 0:
5510
+ case 1:
5511
+ case 2:
5512
+ case 3:
5513
+ break;
5514
+ }
5515
+ return null;
5516
+ };
5517
+
5518
+ /**
5519
+ * Creates a BuddyAccepted message from a plain object. Also converts values to their respective internal types.
5520
+ * @function fromObject
5521
+ * @memberof BuddyAccepted
5522
+ * @static
5523
+ * @param {Object.<string,*>} object Plain object
5524
+ * @returns {BuddyAccepted} BuddyAccepted
5525
+ */
5526
+ BuddyAccepted.fromObject = function fromObject(object) {
5527
+ if (object instanceof $root.BuddyAccepted)
5528
+ return object;
5529
+ var message = new $root.BuddyAccepted();
5530
+ if (object.buddyName != null)
5531
+ message.buddyName = String(object.buddyName);
5532
+ if (object.userId != null)
5533
+ message.userId = String(object.userId);
5534
+ if (object.deepLink != null)
5535
+ message.deepLink = String(object.deepLink);
5536
+ if (object.actionIdIos != null)
5537
+ message.actionIdIos = String(object.actionIdIos);
5538
+ switch (object.actionIos) {
5539
+ case "OPEN_APP":
5540
+ case 0:
5541
+ message.actionIos = 0;
5542
+ break;
5543
+ case "URI":
5544
+ case 1:
5545
+ message.actionIos = 1;
5546
+ break;
5547
+ case "DEEP_LINK":
5548
+ case 2:
5549
+ message.actionIos = 2;
5550
+ break;
5551
+ case "CLOSE":
5552
+ case 3:
5553
+ message.actionIos = 3;
5554
+ break;
5555
+ }
5556
+ return message;
5557
+ };
5558
+
5559
+ /**
5560
+ * Creates a plain object from a BuddyAccepted message. Also converts values to other types if specified.
5561
+ * @function toObject
5562
+ * @memberof BuddyAccepted
5563
+ * @static
5564
+ * @param {BuddyAccepted} message BuddyAccepted
5565
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
5566
+ * @returns {Object.<string,*>} Plain object
5567
+ */
5568
+ BuddyAccepted.toObject = function toObject(message, options) {
5569
+ if (!options)
5570
+ options = {};
5571
+ var object = {};
5572
+ if (options.defaults) {
5573
+ object.buddyName = "";
5574
+ object.userId = "";
5575
+ object.deepLink = "";
5576
+ object.actionIdIos = "";
5577
+ object.actionIos = options.enums === String ? "OPEN_APP" : 0;
5578
+ }
5579
+ if (message.buddyName != null && message.hasOwnProperty("buddyName"))
5580
+ object.buddyName = message.buddyName;
5581
+ if (message.userId != null && message.hasOwnProperty("userId"))
5582
+ object.userId = message.userId;
5583
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5584
+ object.deepLink = message.deepLink;
5585
+ if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
5586
+ object.actionIdIos = message.actionIdIos;
5587
+ if (message.actionIos != null && message.hasOwnProperty("actionIos"))
5588
+ object.actionIos = options.enums === String ? $root.Action[message.actionIos] : message.actionIos;
5589
+ return object;
5590
+ };
5591
+
5592
+ /**
5593
+ * Converts this BuddyAccepted to JSON.
5594
+ * @function toJSON
5595
+ * @memberof BuddyAccepted
5596
+ * @instance
5597
+ * @returns {Object.<string,*>} JSON object
5598
+ */
5599
+ BuddyAccepted.prototype.toJSON = function toJSON() {
5600
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5601
+ };
5602
+
5603
+ return BuddyAccepted;
5604
+ })();
5605
+
5606
+ /**
5607
+ * Action enum.
5608
+ * @exports Action
5609
+ * @enum {string}
5610
+ * @property {number} OPEN_APP=0 OPEN_APP value
5611
+ * @property {number} URI=1 URI value
5612
+ * @property {number} DEEP_LINK=2 DEEP_LINK value
5613
+ * @property {number} CLOSE=3 CLOSE value
5614
+ */
5615
+ $root.Action = (function() {
5616
+ var valuesById = {}, values = Object.create(valuesById);
5617
+ values[valuesById[0] = "OPEN_APP"] = 0;
5618
+ values[valuesById[1] = "URI"] = 1;
5619
+ values[valuesById[2] = "DEEP_LINK"] = 2;
5620
+ values[valuesById[3] = "CLOSE"] = 3;
5621
+ return values;
5622
+ })();
5623
+
5307
5624
  $root.FamilyMemberAdded = (function() {
5308
5625
 
5309
5626
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.49.0"
19
+ "version": "1.50.0"
20
20
  }