@headspace/protos-events 1.11.0 → 1.12.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 +171 -69
  2. package/lib/index.js +389 -143
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2492,103 +2492,193 @@ export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined
2492
2492
  public toJSON(): { [k: string]: any };
2493
2493
  }
2494
2494
 
2495
- /** Properties of a UserPasswordUpdated. */
2496
- export interface IUserPasswordUpdated {
2495
+ /** Properties of a UserDoubleOptInEmailRequested. */
2496
+ export interface IUserDoubleOptInEmailRequested {
2497
2497
 
2498
- /** UserPasswordUpdated userId */
2498
+ /** UserDoubleOptInEmailRequested userId */
2499
2499
  userId?: (string|null);
2500
+ }
2500
2501
 
2501
- /** UserPasswordUpdated updatedOn */
2502
- updatedOn?: (number|Long|null);
2502
+ /** Represents a UserDoubleOptInEmailRequested. */
2503
+ export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
2503
2504
 
2504
- /** UserPasswordUpdated email */
2505
+ /**
2506
+ * Constructs a new UserDoubleOptInEmailRequested.
2507
+ * @param [properties] Properties to set
2508
+ */
2509
+ constructor(properties?: IUserDoubleOptInEmailRequested);
2510
+
2511
+ /** UserDoubleOptInEmailRequested userId. */
2512
+ public userId: string;
2513
+
2514
+ /**
2515
+ * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
2516
+ * @param [properties] Properties to set
2517
+ * @returns UserDoubleOptInEmailRequested instance
2518
+ */
2519
+ public static create(properties?: IUserDoubleOptInEmailRequested): UserDoubleOptInEmailRequested;
2520
+
2521
+ /**
2522
+ * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
2523
+ * @param message UserDoubleOptInEmailRequested message or plain object to encode
2524
+ * @param [writer] Writer to encode to
2525
+ * @returns Writer
2526
+ */
2527
+ public static encode(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
2528
+
2529
+ /**
2530
+ * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
2531
+ * @param message UserDoubleOptInEmailRequested message or plain object to encode
2532
+ * @param [writer] Writer to encode to
2533
+ * @returns Writer
2534
+ */
2535
+ public static encodeDelimited(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
2536
+
2537
+ /**
2538
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
2539
+ * @param reader Reader or buffer to decode from
2540
+ * @param [length] Message length if known beforehand
2541
+ * @returns UserDoubleOptInEmailRequested
2542
+ * @throws {Error} If the payload is not a reader or valid buffer
2543
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2544
+ */
2545
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDoubleOptInEmailRequested;
2546
+
2547
+ /**
2548
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
2549
+ * @param reader Reader or buffer to decode from
2550
+ * @returns UserDoubleOptInEmailRequested
2551
+ * @throws {Error} If the payload is not a reader or valid buffer
2552
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2553
+ */
2554
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDoubleOptInEmailRequested;
2555
+
2556
+ /**
2557
+ * Verifies a UserDoubleOptInEmailRequested message.
2558
+ * @param message Plain object to verify
2559
+ * @returns `null` if valid, otherwise the reason why it is not
2560
+ */
2561
+ public static verify(message: { [k: string]: any }): (string|null);
2562
+
2563
+ /**
2564
+ * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
2565
+ * @param object Plain object
2566
+ * @returns UserDoubleOptInEmailRequested
2567
+ */
2568
+ public static fromObject(object: { [k: string]: any }): UserDoubleOptInEmailRequested;
2569
+
2570
+ /**
2571
+ * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
2572
+ * @param message UserDoubleOptInEmailRequested
2573
+ * @param [options] Conversion options
2574
+ * @returns Plain object
2575
+ */
2576
+ public static toObject(message: UserDoubleOptInEmailRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
2577
+
2578
+ /**
2579
+ * Converts this UserDoubleOptInEmailRequested to JSON.
2580
+ * @returns JSON object
2581
+ */
2582
+ public toJSON(): { [k: string]: any };
2583
+ }
2584
+
2585
+ /** Properties of a UserEmailUpdated. */
2586
+ export interface IUserEmailUpdated {
2587
+
2588
+ /** UserEmailUpdated userId */
2589
+ userId?: (string|null);
2590
+
2591
+ /** UserEmailUpdated email */
2505
2592
  email?: (string|null);
2593
+
2594
+ /** UserEmailUpdated timestamp */
2595
+ timestamp?: (number|Long|null);
2506
2596
  }
2507
2597
 
2508
- /** Represents a UserPasswordUpdated. */
2509
- export class UserPasswordUpdated implements IUserPasswordUpdated {
2598
+ /** Represents a UserEmailUpdated. */
2599
+ export class UserEmailUpdated implements IUserEmailUpdated {
2510
2600
 
2511
2601
  /**
2512
- * Constructs a new UserPasswordUpdated.
2602
+ * Constructs a new UserEmailUpdated.
2513
2603
  * @param [properties] Properties to set
2514
2604
  */
2515
- constructor(properties?: IUserPasswordUpdated);
2605
+ constructor(properties?: IUserEmailUpdated);
2516
2606
 
2517
- /** UserPasswordUpdated userId. */
2607
+ /** UserEmailUpdated userId. */
2518
2608
  public userId: string;
2519
2609
 
2520
- /** UserPasswordUpdated updatedOn. */
2521
- public updatedOn: (number|Long);
2522
-
2523
- /** UserPasswordUpdated email. */
2610
+ /** UserEmailUpdated email. */
2524
2611
  public email: string;
2525
2612
 
2613
+ /** UserEmailUpdated timestamp. */
2614
+ public timestamp: (number|Long);
2615
+
2526
2616
  /**
2527
- * Creates a new UserPasswordUpdated instance using the specified properties.
2617
+ * Creates a new UserEmailUpdated instance using the specified properties.
2528
2618
  * @param [properties] Properties to set
2529
- * @returns UserPasswordUpdated instance
2619
+ * @returns UserEmailUpdated instance
2530
2620
  */
2531
- public static create(properties?: IUserPasswordUpdated): UserPasswordUpdated;
2621
+ public static create(properties?: IUserEmailUpdated): UserEmailUpdated;
2532
2622
 
2533
2623
  /**
2534
- * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2535
- * @param message UserPasswordUpdated message or plain object to encode
2624
+ * Encodes the specified UserEmailUpdated message. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
2625
+ * @param message UserEmailUpdated message or plain object to encode
2536
2626
  * @param [writer] Writer to encode to
2537
2627
  * @returns Writer
2538
2628
  */
2539
- public static encode(message: IUserPasswordUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
2629
+ public static encode(message: IUserEmailUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
2540
2630
 
2541
2631
  /**
2542
- * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2543
- * @param message UserPasswordUpdated message or plain object to encode
2632
+ * Encodes the specified UserEmailUpdated message, length delimited. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
2633
+ * @param message UserEmailUpdated message or plain object to encode
2544
2634
  * @param [writer] Writer to encode to
2545
2635
  * @returns Writer
2546
2636
  */
2547
- public static encodeDelimited(message: IUserPasswordUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
2637
+ public static encodeDelimited(message: IUserEmailUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
2548
2638
 
2549
2639
  /**
2550
- * Decodes a UserPasswordUpdated message from the specified reader or buffer.
2640
+ * Decodes a UserEmailUpdated message from the specified reader or buffer.
2551
2641
  * @param reader Reader or buffer to decode from
2552
2642
  * @param [length] Message length if known beforehand
2553
- * @returns UserPasswordUpdated
2643
+ * @returns UserEmailUpdated
2554
2644
  * @throws {Error} If the payload is not a reader or valid buffer
2555
2645
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2556
2646
  */
2557
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordUpdated;
2647
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailUpdated;
2558
2648
 
2559
2649
  /**
2560
- * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
2650
+ * Decodes a UserEmailUpdated message from the specified reader or buffer, length delimited.
2561
2651
  * @param reader Reader or buffer to decode from
2562
- * @returns UserPasswordUpdated
2652
+ * @returns UserEmailUpdated
2563
2653
  * @throws {Error} If the payload is not a reader or valid buffer
2564
2654
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2565
2655
  */
2566
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordUpdated;
2656
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailUpdated;
2567
2657
 
2568
2658
  /**
2569
- * Verifies a UserPasswordUpdated message.
2659
+ * Verifies a UserEmailUpdated message.
2570
2660
  * @param message Plain object to verify
2571
2661
  * @returns `null` if valid, otherwise the reason why it is not
2572
2662
  */
2573
2663
  public static verify(message: { [k: string]: any }): (string|null);
2574
2664
 
2575
2665
  /**
2576
- * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
2666
+ * Creates a UserEmailUpdated message from a plain object. Also converts values to their respective internal types.
2577
2667
  * @param object Plain object
2578
- * @returns UserPasswordUpdated
2668
+ * @returns UserEmailUpdated
2579
2669
  */
2580
- public static fromObject(object: { [k: string]: any }): UserPasswordUpdated;
2670
+ public static fromObject(object: { [k: string]: any }): UserEmailUpdated;
2581
2671
 
2582
2672
  /**
2583
- * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
2584
- * @param message UserPasswordUpdated
2673
+ * Creates a plain object from a UserEmailUpdated message. Also converts values to other types if specified.
2674
+ * @param message UserEmailUpdated
2585
2675
  * @param [options] Conversion options
2586
2676
  * @returns Plain object
2587
2677
  */
2588
- public static toObject(message: UserPasswordUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
2678
+ public static toObject(message: UserEmailUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
2589
2679
 
2590
2680
  /**
2591
- * Converts this UserPasswordUpdated to JSON.
2681
+ * Converts this UserEmailUpdated to JSON.
2592
2682
  * @returns JSON object
2593
2683
  */
2594
2684
  public toJSON(): { [k: string]: any };
@@ -2696,91 +2786,103 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
2696
2786
  public toJSON(): { [k: string]: any };
2697
2787
  }
2698
2788
 
2699
- /** Properties of a UserDoubleOptInEmailRequested. */
2700
- export interface IUserDoubleOptInEmailRequested {
2789
+ /** Properties of a UserPasswordUpdated. */
2790
+ export interface IUserPasswordUpdated {
2701
2791
 
2702
- /** UserDoubleOptInEmailRequested userId */
2792
+ /** UserPasswordUpdated userId */
2703
2793
  userId?: (string|null);
2794
+
2795
+ /** UserPasswordUpdated updatedOn */
2796
+ updatedOn?: (number|Long|null);
2797
+
2798
+ /** UserPasswordUpdated email */
2799
+ email?: (string|null);
2704
2800
  }
2705
2801
 
2706
- /** Represents a UserDoubleOptInEmailRequested. */
2707
- export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
2802
+ /** Represents a UserPasswordUpdated. */
2803
+ export class UserPasswordUpdated implements IUserPasswordUpdated {
2708
2804
 
2709
2805
  /**
2710
- * Constructs a new UserDoubleOptInEmailRequested.
2806
+ * Constructs a new UserPasswordUpdated.
2711
2807
  * @param [properties] Properties to set
2712
2808
  */
2713
- constructor(properties?: IUserDoubleOptInEmailRequested);
2809
+ constructor(properties?: IUserPasswordUpdated);
2714
2810
 
2715
- /** UserDoubleOptInEmailRequested userId. */
2811
+ /** UserPasswordUpdated userId. */
2716
2812
  public userId: string;
2717
2813
 
2814
+ /** UserPasswordUpdated updatedOn. */
2815
+ public updatedOn: (number|Long);
2816
+
2817
+ /** UserPasswordUpdated email. */
2818
+ public email: string;
2819
+
2718
2820
  /**
2719
- * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
2821
+ * Creates a new UserPasswordUpdated instance using the specified properties.
2720
2822
  * @param [properties] Properties to set
2721
- * @returns UserDoubleOptInEmailRequested instance
2823
+ * @returns UserPasswordUpdated instance
2722
2824
  */
2723
- public static create(properties?: IUserDoubleOptInEmailRequested): UserDoubleOptInEmailRequested;
2825
+ public static create(properties?: IUserPasswordUpdated): UserPasswordUpdated;
2724
2826
 
2725
2827
  /**
2726
- * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
2727
- * @param message UserDoubleOptInEmailRequested message or plain object to encode
2828
+ * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2829
+ * @param message UserPasswordUpdated message or plain object to encode
2728
2830
  * @param [writer] Writer to encode to
2729
2831
  * @returns Writer
2730
2832
  */
2731
- public static encode(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
2833
+ public static encode(message: IUserPasswordUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
2732
2834
 
2733
2835
  /**
2734
- * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
2735
- * @param message UserDoubleOptInEmailRequested message or plain object to encode
2836
+ * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2837
+ * @param message UserPasswordUpdated message or plain object to encode
2736
2838
  * @param [writer] Writer to encode to
2737
2839
  * @returns Writer
2738
2840
  */
2739
- public static encodeDelimited(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
2841
+ public static encodeDelimited(message: IUserPasswordUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
2740
2842
 
2741
2843
  /**
2742
- * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
2844
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer.
2743
2845
  * @param reader Reader or buffer to decode from
2744
2846
  * @param [length] Message length if known beforehand
2745
- * @returns UserDoubleOptInEmailRequested
2847
+ * @returns UserPasswordUpdated
2746
2848
  * @throws {Error} If the payload is not a reader or valid buffer
2747
2849
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2748
2850
  */
2749
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDoubleOptInEmailRequested;
2851
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordUpdated;
2750
2852
 
2751
2853
  /**
2752
- * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
2854
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
2753
2855
  * @param reader Reader or buffer to decode from
2754
- * @returns UserDoubleOptInEmailRequested
2856
+ * @returns UserPasswordUpdated
2755
2857
  * @throws {Error} If the payload is not a reader or valid buffer
2756
2858
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2757
2859
  */
2758
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDoubleOptInEmailRequested;
2860
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordUpdated;
2759
2861
 
2760
2862
  /**
2761
- * Verifies a UserDoubleOptInEmailRequested message.
2863
+ * Verifies a UserPasswordUpdated message.
2762
2864
  * @param message Plain object to verify
2763
2865
  * @returns `null` if valid, otherwise the reason why it is not
2764
2866
  */
2765
2867
  public static verify(message: { [k: string]: any }): (string|null);
2766
2868
 
2767
2869
  /**
2768
- * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
2870
+ * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
2769
2871
  * @param object Plain object
2770
- * @returns UserDoubleOptInEmailRequested
2872
+ * @returns UserPasswordUpdated
2771
2873
  */
2772
- public static fromObject(object: { [k: string]: any }): UserDoubleOptInEmailRequested;
2874
+ public static fromObject(object: { [k: string]: any }): UserPasswordUpdated;
2773
2875
 
2774
2876
  /**
2775
- * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
2776
- * @param message UserDoubleOptInEmailRequested
2877
+ * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
2878
+ * @param message UserPasswordUpdated
2777
2879
  * @param [options] Conversion options
2778
2880
  * @returns Plain object
2779
2881
  */
2780
- public static toObject(message: UserDoubleOptInEmailRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
2882
+ public static toObject(message: UserPasswordUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
2781
2883
 
2782
2884
  /**
2783
- * Converts this UserDoubleOptInEmailRequested to JSON.
2885
+ * Converts this UserPasswordUpdated to JSON.
2784
2886
  * @returns JSON object
2785
2887
  */
2786
2888
  public toJSON(): { [k: string]: any };
package/lib/index.js CHANGED
@@ -6061,26 +6061,24 @@ $root.SubscriptionPaymentDeclined = (function() {
6061
6061
  return SubscriptionPaymentDeclined;
6062
6062
  })();
6063
6063
 
6064
- $root.UserPasswordUpdated = (function() {
6064
+ $root.UserDoubleOptInEmailRequested = (function() {
6065
6065
 
6066
6066
  /**
6067
- * Properties of a UserPasswordUpdated.
6068
- * @exports IUserPasswordUpdated
6069
- * @interface IUserPasswordUpdated
6070
- * @property {string|null} [userId] UserPasswordUpdated userId
6071
- * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
6072
- * @property {string|null} [email] UserPasswordUpdated email
6067
+ * Properties of a UserDoubleOptInEmailRequested.
6068
+ * @exports IUserDoubleOptInEmailRequested
6069
+ * @interface IUserDoubleOptInEmailRequested
6070
+ * @property {string|null} [userId] UserDoubleOptInEmailRequested userId
6073
6071
  */
6074
6072
 
6075
6073
  /**
6076
- * Constructs a new UserPasswordUpdated.
6077
- * @exports UserPasswordUpdated
6078
- * @classdesc Represents a UserPasswordUpdated.
6079
- * @implements IUserPasswordUpdated
6074
+ * Constructs a new UserDoubleOptInEmailRequested.
6075
+ * @exports UserDoubleOptInEmailRequested
6076
+ * @classdesc Represents a UserDoubleOptInEmailRequested.
6077
+ * @implements IUserDoubleOptInEmailRequested
6080
6078
  * @constructor
6081
- * @param {IUserPasswordUpdated=} [properties] Properties to set
6079
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6082
6080
  */
6083
- function UserPasswordUpdated(properties) {
6081
+ function UserDoubleOptInEmailRequested(properties) {
6084
6082
  if (properties)
6085
6083
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6086
6084
  if (properties[keys[i]] != null)
@@ -6088,90 +6086,279 @@ $root.UserPasswordUpdated = (function() {
6088
6086
  }
6089
6087
 
6090
6088
  /**
6091
- * UserPasswordUpdated userId.
6089
+ * UserDoubleOptInEmailRequested userId.
6092
6090
  * @member {string} userId
6093
- * @memberof UserPasswordUpdated
6091
+ * @memberof UserDoubleOptInEmailRequested
6094
6092
  * @instance
6095
6093
  */
6096
- UserPasswordUpdated.prototype.userId = "";
6094
+ UserDoubleOptInEmailRequested.prototype.userId = "";
6097
6095
 
6098
6096
  /**
6099
- * UserPasswordUpdated updatedOn.
6100
- * @member {number|Long} updatedOn
6101
- * @memberof UserPasswordUpdated
6097
+ * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
6098
+ * @function create
6099
+ * @memberof UserDoubleOptInEmailRequested
6100
+ * @static
6101
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6102
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
6103
+ */
6104
+ UserDoubleOptInEmailRequested.create = function create(properties) {
6105
+ return new UserDoubleOptInEmailRequested(properties);
6106
+ };
6107
+
6108
+ /**
6109
+ * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6110
+ * @function encode
6111
+ * @memberof UserDoubleOptInEmailRequested
6112
+ * @static
6113
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6114
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6115
+ * @returns {$protobuf.Writer} Writer
6116
+ */
6117
+ UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
6118
+ if (!writer)
6119
+ writer = $Writer.create();
6120
+ if (message.userId != null && message.hasOwnProperty("userId"))
6121
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
6122
+ return writer;
6123
+ };
6124
+
6125
+ /**
6126
+ * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6127
+ * @function encodeDelimited
6128
+ * @memberof UserDoubleOptInEmailRequested
6129
+ * @static
6130
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6131
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6132
+ * @returns {$protobuf.Writer} Writer
6133
+ */
6134
+ UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
6135
+ return this.encode(message, writer).ldelim();
6136
+ };
6137
+
6138
+ /**
6139
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
6140
+ * @function decode
6141
+ * @memberof UserDoubleOptInEmailRequested
6142
+ * @static
6143
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6144
+ * @param {number} [length] Message length if known beforehand
6145
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6146
+ * @throws {Error} If the payload is not a reader or valid buffer
6147
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6148
+ */
6149
+ UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
6150
+ if (!(reader instanceof $Reader))
6151
+ reader = $Reader.create(reader);
6152
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
6153
+ while (reader.pos < end) {
6154
+ var tag = reader.uint32();
6155
+ switch (tag >>> 3) {
6156
+ case 1:
6157
+ message.userId = reader.string();
6158
+ break;
6159
+ default:
6160
+ reader.skipType(tag & 7);
6161
+ break;
6162
+ }
6163
+ }
6164
+ return message;
6165
+ };
6166
+
6167
+ /**
6168
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
6169
+ * @function decodeDelimited
6170
+ * @memberof UserDoubleOptInEmailRequested
6171
+ * @static
6172
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6173
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6174
+ * @throws {Error} If the payload is not a reader or valid buffer
6175
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6176
+ */
6177
+ UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
6178
+ if (!(reader instanceof $Reader))
6179
+ reader = new $Reader(reader);
6180
+ return this.decode(reader, reader.uint32());
6181
+ };
6182
+
6183
+ /**
6184
+ * Verifies a UserDoubleOptInEmailRequested message.
6185
+ * @function verify
6186
+ * @memberof UserDoubleOptInEmailRequested
6187
+ * @static
6188
+ * @param {Object.<string,*>} message Plain object to verify
6189
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
6190
+ */
6191
+ UserDoubleOptInEmailRequested.verify = function verify(message) {
6192
+ if (typeof message !== "object" || message === null)
6193
+ return "object expected";
6194
+ if (message.userId != null && message.hasOwnProperty("userId"))
6195
+ if (!$util.isString(message.userId))
6196
+ return "userId: string expected";
6197
+ return null;
6198
+ };
6199
+
6200
+ /**
6201
+ * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
6202
+ * @function fromObject
6203
+ * @memberof UserDoubleOptInEmailRequested
6204
+ * @static
6205
+ * @param {Object.<string,*>} object Plain object
6206
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6207
+ */
6208
+ UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
6209
+ if (object instanceof $root.UserDoubleOptInEmailRequested)
6210
+ return object;
6211
+ var message = new $root.UserDoubleOptInEmailRequested();
6212
+ if (object.userId != null)
6213
+ message.userId = String(object.userId);
6214
+ return message;
6215
+ };
6216
+
6217
+ /**
6218
+ * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
6219
+ * @function toObject
6220
+ * @memberof UserDoubleOptInEmailRequested
6221
+ * @static
6222
+ * @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
6223
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
6224
+ * @returns {Object.<string,*>} Plain object
6225
+ */
6226
+ UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
6227
+ if (!options)
6228
+ options = {};
6229
+ var object = {};
6230
+ if (options.defaults)
6231
+ object.userId = "";
6232
+ if (message.userId != null && message.hasOwnProperty("userId"))
6233
+ object.userId = message.userId;
6234
+ return object;
6235
+ };
6236
+
6237
+ /**
6238
+ * Converts this UserDoubleOptInEmailRequested to JSON.
6239
+ * @function toJSON
6240
+ * @memberof UserDoubleOptInEmailRequested
6102
6241
  * @instance
6242
+ * @returns {Object.<string,*>} JSON object
6103
6243
  */
6104
- UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6244
+ UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
6245
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6246
+ };
6247
+
6248
+ return UserDoubleOptInEmailRequested;
6249
+ })();
6250
+
6251
+ $root.UserEmailUpdated = (function() {
6105
6252
 
6106
6253
  /**
6107
- * UserPasswordUpdated email.
6254
+ * Properties of a UserEmailUpdated.
6255
+ * @exports IUserEmailUpdated
6256
+ * @interface IUserEmailUpdated
6257
+ * @property {string|null} [userId] UserEmailUpdated userId
6258
+ * @property {string|null} [email] UserEmailUpdated email
6259
+ * @property {number|Long|null} [timestamp] UserEmailUpdated timestamp
6260
+ */
6261
+
6262
+ /**
6263
+ * Constructs a new UserEmailUpdated.
6264
+ * @exports UserEmailUpdated
6265
+ * @classdesc Represents a UserEmailUpdated.
6266
+ * @implements IUserEmailUpdated
6267
+ * @constructor
6268
+ * @param {IUserEmailUpdated=} [properties] Properties to set
6269
+ */
6270
+ function UserEmailUpdated(properties) {
6271
+ if (properties)
6272
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6273
+ if (properties[keys[i]] != null)
6274
+ this[keys[i]] = properties[keys[i]];
6275
+ }
6276
+
6277
+ /**
6278
+ * UserEmailUpdated userId.
6279
+ * @member {string} userId
6280
+ * @memberof UserEmailUpdated
6281
+ * @instance
6282
+ */
6283
+ UserEmailUpdated.prototype.userId = "";
6284
+
6285
+ /**
6286
+ * UserEmailUpdated email.
6108
6287
  * @member {string} email
6109
- * @memberof UserPasswordUpdated
6288
+ * @memberof UserEmailUpdated
6110
6289
  * @instance
6111
6290
  */
6112
- UserPasswordUpdated.prototype.email = "";
6291
+ UserEmailUpdated.prototype.email = "";
6113
6292
 
6114
6293
  /**
6115
- * Creates a new UserPasswordUpdated instance using the specified properties.
6294
+ * UserEmailUpdated timestamp.
6295
+ * @member {number|Long} timestamp
6296
+ * @memberof UserEmailUpdated
6297
+ * @instance
6298
+ */
6299
+ UserEmailUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6300
+
6301
+ /**
6302
+ * Creates a new UserEmailUpdated instance using the specified properties.
6116
6303
  * @function create
6117
- * @memberof UserPasswordUpdated
6304
+ * @memberof UserEmailUpdated
6118
6305
  * @static
6119
- * @param {IUserPasswordUpdated=} [properties] Properties to set
6120
- * @returns {UserPasswordUpdated} UserPasswordUpdated instance
6306
+ * @param {IUserEmailUpdated=} [properties] Properties to set
6307
+ * @returns {UserEmailUpdated} UserEmailUpdated instance
6121
6308
  */
6122
- UserPasswordUpdated.create = function create(properties) {
6123
- return new UserPasswordUpdated(properties);
6309
+ UserEmailUpdated.create = function create(properties) {
6310
+ return new UserEmailUpdated(properties);
6124
6311
  };
6125
6312
 
6126
6313
  /**
6127
- * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6314
+ * Encodes the specified UserEmailUpdated message. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
6128
6315
  * @function encode
6129
- * @memberof UserPasswordUpdated
6316
+ * @memberof UserEmailUpdated
6130
6317
  * @static
6131
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6318
+ * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
6132
6319
  * @param {$protobuf.Writer} [writer] Writer to encode to
6133
6320
  * @returns {$protobuf.Writer} Writer
6134
6321
  */
6135
- UserPasswordUpdated.encode = function encode(message, writer) {
6322
+ UserEmailUpdated.encode = function encode(message, writer) {
6136
6323
  if (!writer)
6137
6324
  writer = $Writer.create();
6138
6325
  if (message.userId != null && message.hasOwnProperty("userId"))
6139
6326
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
6140
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6141
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
6142
6327
  if (message.email != null && message.hasOwnProperty("email"))
6143
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
6328
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
6329
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6330
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
6144
6331
  return writer;
6145
6332
  };
6146
6333
 
6147
6334
  /**
6148
- * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6335
+ * Encodes the specified UserEmailUpdated message, length delimited. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
6149
6336
  * @function encodeDelimited
6150
- * @memberof UserPasswordUpdated
6337
+ * @memberof UserEmailUpdated
6151
6338
  * @static
6152
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6339
+ * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
6153
6340
  * @param {$protobuf.Writer} [writer] Writer to encode to
6154
6341
  * @returns {$protobuf.Writer} Writer
6155
6342
  */
6156
- UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
6343
+ UserEmailUpdated.encodeDelimited = function encodeDelimited(message, writer) {
6157
6344
  return this.encode(message, writer).ldelim();
6158
6345
  };
6159
6346
 
6160
6347
  /**
6161
- * Decodes a UserPasswordUpdated message from the specified reader or buffer.
6348
+ * Decodes a UserEmailUpdated message from the specified reader or buffer.
6162
6349
  * @function decode
6163
- * @memberof UserPasswordUpdated
6350
+ * @memberof UserEmailUpdated
6164
6351
  * @static
6165
6352
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6166
6353
  * @param {number} [length] Message length if known beforehand
6167
- * @returns {UserPasswordUpdated} UserPasswordUpdated
6354
+ * @returns {UserEmailUpdated} UserEmailUpdated
6168
6355
  * @throws {Error} If the payload is not a reader or valid buffer
6169
6356
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6170
6357
  */
6171
- UserPasswordUpdated.decode = function decode(reader, length) {
6358
+ UserEmailUpdated.decode = function decode(reader, length) {
6172
6359
  if (!(reader instanceof $Reader))
6173
6360
  reader = $Reader.create(reader);
6174
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
6361
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailUpdated();
6175
6362
  while (reader.pos < end) {
6176
6363
  var tag = reader.uint32();
6177
6364
  switch (tag >>> 3) {
@@ -6179,10 +6366,10 @@ $root.UserPasswordUpdated = (function() {
6179
6366
  message.userId = reader.string();
6180
6367
  break;
6181
6368
  case 2:
6182
- message.updatedOn = reader.uint64();
6369
+ message.email = reader.string();
6183
6370
  break;
6184
6371
  case 3:
6185
- message.email = reader.string();
6372
+ message.timestamp = reader.uint64();
6186
6373
  break;
6187
6374
  default:
6188
6375
  reader.skipType(tag & 7);
@@ -6193,118 +6380,118 @@ $root.UserPasswordUpdated = (function() {
6193
6380
  };
6194
6381
 
6195
6382
  /**
6196
- * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
6383
+ * Decodes a UserEmailUpdated message from the specified reader or buffer, length delimited.
6197
6384
  * @function decodeDelimited
6198
- * @memberof UserPasswordUpdated
6385
+ * @memberof UserEmailUpdated
6199
6386
  * @static
6200
6387
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6201
- * @returns {UserPasswordUpdated} UserPasswordUpdated
6388
+ * @returns {UserEmailUpdated} UserEmailUpdated
6202
6389
  * @throws {Error} If the payload is not a reader or valid buffer
6203
6390
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6204
6391
  */
6205
- UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
6392
+ UserEmailUpdated.decodeDelimited = function decodeDelimited(reader) {
6206
6393
  if (!(reader instanceof $Reader))
6207
6394
  reader = new $Reader(reader);
6208
6395
  return this.decode(reader, reader.uint32());
6209
6396
  };
6210
6397
 
6211
6398
  /**
6212
- * Verifies a UserPasswordUpdated message.
6399
+ * Verifies a UserEmailUpdated message.
6213
6400
  * @function verify
6214
- * @memberof UserPasswordUpdated
6401
+ * @memberof UserEmailUpdated
6215
6402
  * @static
6216
6403
  * @param {Object.<string,*>} message Plain object to verify
6217
6404
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
6218
6405
  */
6219
- UserPasswordUpdated.verify = function verify(message) {
6406
+ UserEmailUpdated.verify = function verify(message) {
6220
6407
  if (typeof message !== "object" || message === null)
6221
6408
  return "object expected";
6222
6409
  if (message.userId != null && message.hasOwnProperty("userId"))
6223
6410
  if (!$util.isString(message.userId))
6224
6411
  return "userId: string expected";
6225
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6226
- if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
6227
- return "updatedOn: integer|Long expected";
6228
6412
  if (message.email != null && message.hasOwnProperty("email"))
6229
6413
  if (!$util.isString(message.email))
6230
6414
  return "email: string expected";
6415
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6416
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
6417
+ return "timestamp: integer|Long expected";
6231
6418
  return null;
6232
6419
  };
6233
6420
 
6234
6421
  /**
6235
- * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
6422
+ * Creates a UserEmailUpdated message from a plain object. Also converts values to their respective internal types.
6236
6423
  * @function fromObject
6237
- * @memberof UserPasswordUpdated
6424
+ * @memberof UserEmailUpdated
6238
6425
  * @static
6239
6426
  * @param {Object.<string,*>} object Plain object
6240
- * @returns {UserPasswordUpdated} UserPasswordUpdated
6427
+ * @returns {UserEmailUpdated} UserEmailUpdated
6241
6428
  */
6242
- UserPasswordUpdated.fromObject = function fromObject(object) {
6243
- if (object instanceof $root.UserPasswordUpdated)
6429
+ UserEmailUpdated.fromObject = function fromObject(object) {
6430
+ if (object instanceof $root.UserEmailUpdated)
6244
6431
  return object;
6245
- var message = new $root.UserPasswordUpdated();
6432
+ var message = new $root.UserEmailUpdated();
6246
6433
  if (object.userId != null)
6247
6434
  message.userId = String(object.userId);
6248
- if (object.updatedOn != null)
6249
- if ($util.Long)
6250
- (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
6251
- else if (typeof object.updatedOn === "string")
6252
- message.updatedOn = parseInt(object.updatedOn, 10);
6253
- else if (typeof object.updatedOn === "number")
6254
- message.updatedOn = object.updatedOn;
6255
- else if (typeof object.updatedOn === "object")
6256
- message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
6257
6435
  if (object.email != null)
6258
6436
  message.email = String(object.email);
6437
+ if (object.timestamp != null)
6438
+ if ($util.Long)
6439
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
6440
+ else if (typeof object.timestamp === "string")
6441
+ message.timestamp = parseInt(object.timestamp, 10);
6442
+ else if (typeof object.timestamp === "number")
6443
+ message.timestamp = object.timestamp;
6444
+ else if (typeof object.timestamp === "object")
6445
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
6259
6446
  return message;
6260
6447
  };
6261
6448
 
6262
6449
  /**
6263
- * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
6450
+ * Creates a plain object from a UserEmailUpdated message. Also converts values to other types if specified.
6264
6451
  * @function toObject
6265
- * @memberof UserPasswordUpdated
6452
+ * @memberof UserEmailUpdated
6266
6453
  * @static
6267
- * @param {UserPasswordUpdated} message UserPasswordUpdated
6454
+ * @param {UserEmailUpdated} message UserEmailUpdated
6268
6455
  * @param {$protobuf.IConversionOptions} [options] Conversion options
6269
6456
  * @returns {Object.<string,*>} Plain object
6270
6457
  */
6271
- UserPasswordUpdated.toObject = function toObject(message, options) {
6458
+ UserEmailUpdated.toObject = function toObject(message, options) {
6272
6459
  if (!options)
6273
6460
  options = {};
6274
6461
  var object = {};
6275
6462
  if (options.defaults) {
6276
6463
  object.userId = "";
6464
+ object.email = "";
6277
6465
  if ($util.Long) {
6278
6466
  var long = new $util.Long(0, 0, true);
6279
- object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6467
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6280
6468
  } else
6281
- object.updatedOn = options.longs === String ? "0" : 0;
6282
- object.email = "";
6469
+ object.timestamp = options.longs === String ? "0" : 0;
6283
6470
  }
6284
6471
  if (message.userId != null && message.hasOwnProperty("userId"))
6285
6472
  object.userId = message.userId;
6286
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6287
- if (typeof message.updatedOn === "number")
6288
- object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
6289
- else
6290
- object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
6291
6473
  if (message.email != null && message.hasOwnProperty("email"))
6292
6474
  object.email = message.email;
6475
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6476
+ if (typeof message.timestamp === "number")
6477
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
6478
+ else
6479
+ 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;
6293
6480
  return object;
6294
6481
  };
6295
6482
 
6296
6483
  /**
6297
- * Converts this UserPasswordUpdated to JSON.
6484
+ * Converts this UserEmailUpdated to JSON.
6298
6485
  * @function toJSON
6299
- * @memberof UserPasswordUpdated
6486
+ * @memberof UserEmailUpdated
6300
6487
  * @instance
6301
6488
  * @returns {Object.<string,*>} JSON object
6302
6489
  */
6303
- UserPasswordUpdated.prototype.toJSON = function toJSON() {
6490
+ UserEmailUpdated.prototype.toJSON = function toJSON() {
6304
6491
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6305
6492
  };
6306
6493
 
6307
- return UserPasswordUpdated;
6494
+ return UserEmailUpdated;
6308
6495
  })();
6309
6496
 
6310
6497
  $root.UserEmailVerificationRequested = (function() {
@@ -6553,24 +6740,26 @@ $root.UserEmailVerificationRequested = (function() {
6553
6740
  return UserEmailVerificationRequested;
6554
6741
  })();
6555
6742
 
6556
- $root.UserDoubleOptInEmailRequested = (function() {
6743
+ $root.UserPasswordUpdated = (function() {
6557
6744
 
6558
6745
  /**
6559
- * Properties of a UserDoubleOptInEmailRequested.
6560
- * @exports IUserDoubleOptInEmailRequested
6561
- * @interface IUserDoubleOptInEmailRequested
6562
- * @property {string|null} [userId] UserDoubleOptInEmailRequested userId
6746
+ * Properties of a UserPasswordUpdated.
6747
+ * @exports IUserPasswordUpdated
6748
+ * @interface IUserPasswordUpdated
6749
+ * @property {string|null} [userId] UserPasswordUpdated userId
6750
+ * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
6751
+ * @property {string|null} [email] UserPasswordUpdated email
6563
6752
  */
6564
6753
 
6565
6754
  /**
6566
- * Constructs a new UserDoubleOptInEmailRequested.
6567
- * @exports UserDoubleOptInEmailRequested
6568
- * @classdesc Represents a UserDoubleOptInEmailRequested.
6569
- * @implements IUserDoubleOptInEmailRequested
6755
+ * Constructs a new UserPasswordUpdated.
6756
+ * @exports UserPasswordUpdated
6757
+ * @classdesc Represents a UserPasswordUpdated.
6758
+ * @implements IUserPasswordUpdated
6570
6759
  * @constructor
6571
- * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6760
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
6572
6761
  */
6573
- function UserDoubleOptInEmailRequested(properties) {
6762
+ function UserPasswordUpdated(properties) {
6574
6763
  if (properties)
6575
6764
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6576
6765
  if (properties[keys[i]] != null)
@@ -6578,76 +6767,102 @@ $root.UserDoubleOptInEmailRequested = (function() {
6578
6767
  }
6579
6768
 
6580
6769
  /**
6581
- * UserDoubleOptInEmailRequested userId.
6770
+ * UserPasswordUpdated userId.
6582
6771
  * @member {string} userId
6583
- * @memberof UserDoubleOptInEmailRequested
6772
+ * @memberof UserPasswordUpdated
6584
6773
  * @instance
6585
6774
  */
6586
- UserDoubleOptInEmailRequested.prototype.userId = "";
6775
+ UserPasswordUpdated.prototype.userId = "";
6587
6776
 
6588
6777
  /**
6589
- * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
6778
+ * UserPasswordUpdated updatedOn.
6779
+ * @member {number|Long} updatedOn
6780
+ * @memberof UserPasswordUpdated
6781
+ * @instance
6782
+ */
6783
+ UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6784
+
6785
+ /**
6786
+ * UserPasswordUpdated email.
6787
+ * @member {string} email
6788
+ * @memberof UserPasswordUpdated
6789
+ * @instance
6790
+ */
6791
+ UserPasswordUpdated.prototype.email = "";
6792
+
6793
+ /**
6794
+ * Creates a new UserPasswordUpdated instance using the specified properties.
6590
6795
  * @function create
6591
- * @memberof UserDoubleOptInEmailRequested
6796
+ * @memberof UserPasswordUpdated
6592
6797
  * @static
6593
- * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6594
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
6798
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
6799
+ * @returns {UserPasswordUpdated} UserPasswordUpdated instance
6595
6800
  */
6596
- UserDoubleOptInEmailRequested.create = function create(properties) {
6597
- return new UserDoubleOptInEmailRequested(properties);
6801
+ UserPasswordUpdated.create = function create(properties) {
6802
+ return new UserPasswordUpdated(properties);
6598
6803
  };
6599
6804
 
6600
6805
  /**
6601
- * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6806
+ * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6602
6807
  * @function encode
6603
- * @memberof UserDoubleOptInEmailRequested
6808
+ * @memberof UserPasswordUpdated
6604
6809
  * @static
6605
- * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6810
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6606
6811
  * @param {$protobuf.Writer} [writer] Writer to encode to
6607
6812
  * @returns {$protobuf.Writer} Writer
6608
6813
  */
6609
- UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
6814
+ UserPasswordUpdated.encode = function encode(message, writer) {
6610
6815
  if (!writer)
6611
6816
  writer = $Writer.create();
6612
6817
  if (message.userId != null && message.hasOwnProperty("userId"))
6613
6818
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
6819
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6820
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
6821
+ if (message.email != null && message.hasOwnProperty("email"))
6822
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
6614
6823
  return writer;
6615
6824
  };
6616
6825
 
6617
6826
  /**
6618
- * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6827
+ * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
6619
6828
  * @function encodeDelimited
6620
- * @memberof UserDoubleOptInEmailRequested
6829
+ * @memberof UserPasswordUpdated
6621
6830
  * @static
6622
- * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6831
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
6623
6832
  * @param {$protobuf.Writer} [writer] Writer to encode to
6624
6833
  * @returns {$protobuf.Writer} Writer
6625
6834
  */
6626
- UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
6835
+ UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
6627
6836
  return this.encode(message, writer).ldelim();
6628
6837
  };
6629
6838
 
6630
6839
  /**
6631
- * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
6840
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer.
6632
6841
  * @function decode
6633
- * @memberof UserDoubleOptInEmailRequested
6842
+ * @memberof UserPasswordUpdated
6634
6843
  * @static
6635
6844
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6636
6845
  * @param {number} [length] Message length if known beforehand
6637
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6846
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
6638
6847
  * @throws {Error} If the payload is not a reader or valid buffer
6639
6848
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6640
6849
  */
6641
- UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
6850
+ UserPasswordUpdated.decode = function decode(reader, length) {
6642
6851
  if (!(reader instanceof $Reader))
6643
6852
  reader = $Reader.create(reader);
6644
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
6853
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
6645
6854
  while (reader.pos < end) {
6646
6855
  var tag = reader.uint32();
6647
6856
  switch (tag >>> 3) {
6648
6857
  case 1:
6649
6858
  message.userId = reader.string();
6650
6859
  break;
6860
+ case 2:
6861
+ message.updatedOn = reader.uint64();
6862
+ break;
6863
+ case 3:
6864
+ message.email = reader.string();
6865
+ break;
6651
6866
  default:
6652
6867
  reader.skipType(tag & 7);
6653
6868
  break;
@@ -6657,87 +6872,118 @@ $root.UserDoubleOptInEmailRequested = (function() {
6657
6872
  };
6658
6873
 
6659
6874
  /**
6660
- * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
6875
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
6661
6876
  * @function decodeDelimited
6662
- * @memberof UserDoubleOptInEmailRequested
6877
+ * @memberof UserPasswordUpdated
6663
6878
  * @static
6664
6879
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6665
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6880
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
6666
6881
  * @throws {Error} If the payload is not a reader or valid buffer
6667
6882
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
6668
6883
  */
6669
- UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
6884
+ UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
6670
6885
  if (!(reader instanceof $Reader))
6671
6886
  reader = new $Reader(reader);
6672
6887
  return this.decode(reader, reader.uint32());
6673
6888
  };
6674
6889
 
6675
6890
  /**
6676
- * Verifies a UserDoubleOptInEmailRequested message.
6891
+ * Verifies a UserPasswordUpdated message.
6677
6892
  * @function verify
6678
- * @memberof UserDoubleOptInEmailRequested
6893
+ * @memberof UserPasswordUpdated
6679
6894
  * @static
6680
6895
  * @param {Object.<string,*>} message Plain object to verify
6681
6896
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
6682
6897
  */
6683
- UserDoubleOptInEmailRequested.verify = function verify(message) {
6898
+ UserPasswordUpdated.verify = function verify(message) {
6684
6899
  if (typeof message !== "object" || message === null)
6685
6900
  return "object expected";
6686
6901
  if (message.userId != null && message.hasOwnProperty("userId"))
6687
6902
  if (!$util.isString(message.userId))
6688
6903
  return "userId: string expected";
6904
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6905
+ if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
6906
+ return "updatedOn: integer|Long expected";
6907
+ if (message.email != null && message.hasOwnProperty("email"))
6908
+ if (!$util.isString(message.email))
6909
+ return "email: string expected";
6689
6910
  return null;
6690
6911
  };
6691
6912
 
6692
6913
  /**
6693
- * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
6914
+ * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
6694
6915
  * @function fromObject
6695
- * @memberof UserDoubleOptInEmailRequested
6916
+ * @memberof UserPasswordUpdated
6696
6917
  * @static
6697
6918
  * @param {Object.<string,*>} object Plain object
6698
- * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6919
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
6699
6920
  */
6700
- UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
6701
- if (object instanceof $root.UserDoubleOptInEmailRequested)
6921
+ UserPasswordUpdated.fromObject = function fromObject(object) {
6922
+ if (object instanceof $root.UserPasswordUpdated)
6702
6923
  return object;
6703
- var message = new $root.UserDoubleOptInEmailRequested();
6924
+ var message = new $root.UserPasswordUpdated();
6704
6925
  if (object.userId != null)
6705
6926
  message.userId = String(object.userId);
6927
+ if (object.updatedOn != null)
6928
+ if ($util.Long)
6929
+ (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
6930
+ else if (typeof object.updatedOn === "string")
6931
+ message.updatedOn = parseInt(object.updatedOn, 10);
6932
+ else if (typeof object.updatedOn === "number")
6933
+ message.updatedOn = object.updatedOn;
6934
+ else if (typeof object.updatedOn === "object")
6935
+ message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
6936
+ if (object.email != null)
6937
+ message.email = String(object.email);
6706
6938
  return message;
6707
6939
  };
6708
6940
 
6709
6941
  /**
6710
- * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
6942
+ * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
6711
6943
  * @function toObject
6712
- * @memberof UserDoubleOptInEmailRequested
6944
+ * @memberof UserPasswordUpdated
6713
6945
  * @static
6714
- * @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
6946
+ * @param {UserPasswordUpdated} message UserPasswordUpdated
6715
6947
  * @param {$protobuf.IConversionOptions} [options] Conversion options
6716
6948
  * @returns {Object.<string,*>} Plain object
6717
6949
  */
6718
- UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
6950
+ UserPasswordUpdated.toObject = function toObject(message, options) {
6719
6951
  if (!options)
6720
6952
  options = {};
6721
6953
  var object = {};
6722
- if (options.defaults)
6954
+ if (options.defaults) {
6723
6955
  object.userId = "";
6956
+ if ($util.Long) {
6957
+ var long = new $util.Long(0, 0, true);
6958
+ object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6959
+ } else
6960
+ object.updatedOn = options.longs === String ? "0" : 0;
6961
+ object.email = "";
6962
+ }
6724
6963
  if (message.userId != null && message.hasOwnProperty("userId"))
6725
6964
  object.userId = message.userId;
6965
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
6966
+ if (typeof message.updatedOn === "number")
6967
+ object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
6968
+ else
6969
+ object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
6970
+ if (message.email != null && message.hasOwnProperty("email"))
6971
+ object.email = message.email;
6726
6972
  return object;
6727
6973
  };
6728
6974
 
6729
6975
  /**
6730
- * Converts this UserDoubleOptInEmailRequested to JSON.
6976
+ * Converts this UserPasswordUpdated to JSON.
6731
6977
  * @function toJSON
6732
- * @memberof UserDoubleOptInEmailRequested
6978
+ * @memberof UserPasswordUpdated
6733
6979
  * @instance
6734
6980
  * @returns {Object.<string,*>} JSON object
6735
6981
  */
6736
- UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
6982
+ UserPasswordUpdated.prototype.toJSON = function toJSON() {
6737
6983
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6738
6984
  };
6739
6985
 
6740
- return UserDoubleOptInEmailRequested;
6986
+ return UserPasswordUpdated;
6741
6987
  })();
6742
6988
 
6743
6989
  module.exports = $root;
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.11.0"
19
+ "version": "1.12.0"
20
20
  }