@headspace/protos-events 1.356.0 → 1.358.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 +43 -111
  2. package/lib/index.js +173 -249
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -140,7 +140,8 @@ export namespace auth0 {
140
140
  LUMINOUS_OKTA_SSO = 15,
141
141
  OKTA_OKTA_SSO = 16,
142
142
  JUSTWORKS_OKTA_SSO = 17,
143
- GENPACT_OKTA_SSO = 18
143
+ GENPACT_OKTA_SSO = 18,
144
+ THEHARRISCENTER_OKTA_SSO = 19
144
145
  }
145
146
  }
146
147
  }
@@ -8791,6 +8792,17 @@ export namespace productcatalog {
8791
8792
  }
8792
8793
  }
8793
8794
 
8795
+ /** Namespace gift. */
8796
+ export namespace gift {
8797
+
8798
+ /** GiftProductSkuTaxMode enum. */
8799
+ enum GiftProductSkuTaxMode {
8800
+ GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN = 0,
8801
+ GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE = 1,
8802
+ GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE = 2
8803
+ }
8804
+ }
8805
+
8794
8806
  /** Namespace b2b. */
8795
8807
  export namespace b2b {
8796
8808
 
@@ -9952,9 +9964,6 @@ export namespace b2b {
9952
9964
  /** Organization ssoEnabled */
9953
9965
  ssoEnabled?: (boolean|null);
9954
9966
 
9955
- /** Organization mfaEnabled */
9956
- mfaEnabled?: (boolean|null);
9957
-
9958
9967
  /** Organization promoEmailsDisabled */
9959
9968
  promoEmailsDisabled?: (boolean|null);
9960
9969
 
@@ -9998,9 +10007,6 @@ export namespace b2b {
9998
10007
  /** Organization ssoEnabled. */
9999
10008
  public ssoEnabled: boolean;
10000
10009
 
10001
- /** Organization mfaEnabled. */
10002
- public mfaEnabled: boolean;
10003
-
10004
10010
  /** Organization promoEmailsDisabled. */
10005
10011
  public promoEmailsDisabled: boolean;
10006
10012
 
@@ -32620,6 +32626,12 @@ export interface IGiftRedeemed {
32620
32626
 
32621
32627
  /** GiftRedeemed redeemedOn */
32622
32628
  redeemedOn?: (number|Long|null);
32629
+
32630
+ /** GiftRedeemed productSkuId */
32631
+ productSkuId?: (string|null);
32632
+
32633
+ /** GiftRedeemed productSkuSlug */
32634
+ productSkuSlug?: (string|null);
32623
32635
  }
32624
32636
 
32625
32637
  /** Represents a GiftRedeemed. */
@@ -32640,6 +32652,12 @@ export class GiftRedeemed implements IGiftRedeemed {
32640
32652
  /** GiftRedeemed redeemedOn. */
32641
32653
  public redeemedOn: (number|Long);
32642
32654
 
32655
+ /** GiftRedeemed productSkuId. */
32656
+ public productSkuId: string;
32657
+
32658
+ /** GiftRedeemed productSkuSlug. */
32659
+ public productSkuSlug: string;
32660
+
32643
32661
  /**
32644
32662
  * Creates a new GiftRedeemed instance using the specified properties.
32645
32663
  * @param [properties] Properties to set
@@ -32872,6 +32890,15 @@ export interface IGiftPurchased {
32872
32890
 
32873
32891
  /** GiftPurchased giftPurchaseId */
32874
32892
  giftPurchaseId?: (string|null);
32893
+
32894
+ /** GiftPurchased productSkuId */
32895
+ productSkuId?: (string|null);
32896
+
32897
+ /** GiftPurchased productSkuSlug */
32898
+ productSkuSlug?: (string|null);
32899
+
32900
+ /** GiftPurchased productSkuTaxMode */
32901
+ productSkuTaxMode?: (gift.GiftProductSkuTaxMode|null);
32875
32902
  }
32876
32903
 
32877
32904
  /** Represents a GiftPurchased. */
@@ -32904,6 +32931,15 @@ export class GiftPurchased implements IGiftPurchased {
32904
32931
  /** GiftPurchased giftPurchaseId. */
32905
32932
  public giftPurchaseId: string;
32906
32933
 
32934
+ /** GiftPurchased productSkuId. */
32935
+ public productSkuId: string;
32936
+
32937
+ /** GiftPurchased productSkuSlug. */
32938
+ public productSkuSlug: string;
32939
+
32940
+ /** GiftPurchased productSkuTaxMode. */
32941
+ public productSkuTaxMode: gift.GiftProductSkuTaxMode;
32942
+
32907
32943
  /**
32908
32944
  * Creates a new GiftPurchased instance using the specified properties.
32909
32945
  * @param [properties] Properties to set
@@ -40703,110 +40739,6 @@ export class SubscriptionMemberSubscribed implements ISubscriptionMemberSubscrib
40703
40739
  public toJSON(): { [k: string]: any };
40704
40740
  }
40705
40741
 
40706
-
40707
- /** Properties of a UserMFAEnrollmentInitiated. */
40708
- export interface IUserMFAEnrollmentInitiated {
40709
-
40710
- /** UserMFAEnrollmentInitiated userId */
40711
- userId?: (string|null);
40712
-
40713
- /** UserMFAEnrollmentInitiated enabled */
40714
- enabled?: (boolean|null);
40715
-
40716
- /** UserMFAEnrollmentInitiated timestamp */
40717
- timestamp?: (number|Long|null);
40718
- }
40719
-
40720
- /** Represents a UserMFAEnrollmentInitiated. */
40721
- export class UserMFAEnrollmentInitiated implements IUserMFAEnrollmentInitiated {
40722
-
40723
- /**
40724
- * Constructs a new UserMFAEnrollmentInitiated.
40725
- * @param [properties] Properties to set
40726
- */
40727
- constructor(properties?: IUserMFAEnrollmentInitiated);
40728
-
40729
- /** UserMFAEnrollmentInitiated userId. */
40730
- public userId: string;
40731
-
40732
- /** UserMFAEnrollmentInitiated enabled. */
40733
- public enabled: boolean;
40734
-
40735
- /** UserMFAEnrollmentInitiated timestamp. */
40736
- public timestamp: (number|Long);
40737
-
40738
- /**
40739
- * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
40740
- * @param [properties] Properties to set
40741
- * @returns UserMFAEnrollmentInitiated instance
40742
- */
40743
- public static create(properties?: IUserMFAEnrollmentInitiated): UserMFAEnrollmentInitiated;
40744
-
40745
- /**
40746
- * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
40747
- * @param message UserMFAEnrollmentInitiated message or plain object to encode
40748
- * @param [writer] Writer to encode to
40749
- * @returns Writer
40750
- */
40751
- public static encode(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
40752
-
40753
- /**
40754
- * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
40755
- * @param message UserMFAEnrollmentInitiated message or plain object to encode
40756
- * @param [writer] Writer to encode to
40757
- * @returns Writer
40758
- */
40759
- public static encodeDelimited(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
40760
-
40761
- /**
40762
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
40763
- * @param reader Reader or buffer to decode from
40764
- * @param [length] Message length if known beforehand
40765
- * @returns UserMFAEnrollmentInitiated
40766
- * @throws {Error} If the payload is not a reader or valid buffer
40767
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
40768
- */
40769
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMFAEnrollmentInitiated;
40770
-
40771
- /**
40772
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
40773
- * @param reader Reader or buffer to decode from
40774
- * @returns UserMFAEnrollmentInitiated
40775
- * @throws {Error} If the payload is not a reader or valid buffer
40776
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
40777
- */
40778
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMFAEnrollmentInitiated;
40779
-
40780
- /**
40781
- * Verifies a UserMFAEnrollmentInitiated message.
40782
- * @param message Plain object to verify
40783
- * @returns `null` if valid, otherwise the reason why it is not
40784
- */
40785
- public static verify(message: { [k: string]: any }): (string|null);
40786
-
40787
- /**
40788
- * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
40789
- * @param object Plain object
40790
- * @returns UserMFAEnrollmentInitiated
40791
- */
40792
- public static fromObject(object: { [k: string]: any }): UserMFAEnrollmentInitiated;
40793
-
40794
- /**
40795
- * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
40796
- * @param message UserMFAEnrollmentInitiated
40797
- * @param [options] Conversion options
40798
- * @returns Plain object
40799
- */
40800
- public static toObject(message: UserMFAEnrollmentInitiated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40801
-
40802
- /**
40803
- * Converts this UserMFAEnrollmentInitiated to JSON.
40804
- * @returns JSON object
40805
- */
40806
- public toJSON(): { [k: string]: any };
40807
- }
40808
-
40809
-
40810
40742
  /** Properties of a SubscriptionMemberRenewed. */
40811
40743
  export interface ISubscriptionMemberRenewed {
40812
40744
 
package/lib/index.js CHANGED
@@ -311,6 +311,7 @@ $root.auth0 = (function() {
311
311
  * @property {number} OKTA_OKTA_SSO=16 OKTA_OKTA_SSO value
312
312
  * @property {number} JUSTWORKS_OKTA_SSO=17 JUSTWORKS_OKTA_SSO value
313
313
  * @property {number} GENPACT_OKTA_SSO=18 GENPACT_OKTA_SSO value
314
+ * @property {number} THEHARRISCENTER_OKTA_SSO=19 THEHARRISCENTER_OKTA_SSO value
314
315
  */
315
316
  connections.Connection = (function() {
316
317
  var valuesById = {}, values = Object.create(valuesById);
@@ -333,6 +334,7 @@ $root.auth0 = (function() {
333
334
  values[valuesById[16] = "OKTA_OKTA_SSO"] = 16;
334
335
  values[valuesById[17] = "JUSTWORKS_OKTA_SSO"] = 17;
335
336
  values[valuesById[18] = "GENPACT_OKTA_SSO"] = 18;
337
+ values[valuesById[19] = "THEHARRISCENTER_OKTA_SSO"] = 19;
336
338
  return values;
337
339
  })();
338
340
 
@@ -21287,6 +21289,34 @@ $root.productcatalog = (function() {
21287
21289
  return productcatalog;
21288
21290
  })();
21289
21291
 
21292
+ $root.gift = (function() {
21293
+
21294
+ /**
21295
+ * Namespace gift.
21296
+ * @exports gift
21297
+ * @namespace
21298
+ */
21299
+ var gift = {};
21300
+
21301
+ /**
21302
+ * GiftProductSkuTaxMode enum.
21303
+ * @name gift.GiftProductSkuTaxMode
21304
+ * @enum {string}
21305
+ * @property {number} GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN=0 GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN value
21306
+ * @property {number} GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE=1 GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE value
21307
+ * @property {number} GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE=2 GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE value
21308
+ */
21309
+ gift.GiftProductSkuTaxMode = (function() {
21310
+ var valuesById = {}, values = Object.create(valuesById);
21311
+ values[valuesById[0] = "GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN"] = 0;
21312
+ values[valuesById[1] = "GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE"] = 1;
21313
+ values[valuesById[2] = "GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE"] = 2;
21314
+ return values;
21315
+ })();
21316
+
21317
+ return gift;
21318
+ })();
21319
+
21290
21320
  $root.b2b = (function() {
21291
21321
 
21292
21322
  /**
@@ -31972,6 +32002,7 @@ $root.SuccessfulUserLogin = (function() {
31972
32002
  case 16:
31973
32003
  case 17:
31974
32004
  case 18:
32005
+ case 19:
31975
32006
  break;
31976
32007
  }
31977
32008
  return null;
@@ -32131,6 +32162,10 @@ $root.SuccessfulUserLogin = (function() {
32131
32162
  case 18:
32132
32163
  message.connection = 18;
32133
32164
  break;
32165
+ case "THEHARRISCENTER_OKTA_SSO":
32166
+ case 19:
32167
+ message.connection = 19;
32168
+ break;
32134
32169
  }
32135
32170
  return message;
32136
32171
  };
@@ -32370,6 +32405,7 @@ $root.UnlinkedConnection = (function() {
32370
32405
  case 16:
32371
32406
  case 17:
32372
32407
  case 18:
32408
+ case 19:
32373
32409
  break;
32374
32410
  }
32375
32411
  if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
@@ -32469,6 +32505,10 @@ $root.UnlinkedConnection = (function() {
32469
32505
  case 18:
32470
32506
  message.connection = 18;
32471
32507
  break;
32508
+ case "THEHARRISCENTER_OKTA_SSO":
32509
+ case 19:
32510
+ message.connection = 19;
32511
+ break;
32472
32512
  }
32473
32513
  if (object.unlinkedAt != null)
32474
32514
  if ($util.Long)
@@ -32728,6 +32768,7 @@ $root.ConnectionLinked = (function() {
32728
32768
  case 16:
32729
32769
  case 17:
32730
32770
  case 18:
32771
+ case 19:
32731
32772
  break;
32732
32773
  }
32733
32774
  if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
@@ -32830,6 +32871,10 @@ $root.ConnectionLinked = (function() {
32830
32871
  case 18:
32831
32872
  message.connection = 18;
32832
32873
  break;
32874
+ case "THEHARRISCENTER_OKTA_SSO":
32875
+ case 19:
32876
+ message.connection = 19;
32877
+ break;
32833
32878
  }
32834
32879
  if (object.linkedAt != null)
32835
32880
  if ($util.Long)
@@ -90827,6 +90872,8 @@ $root.GiftRedeemed = (function() {
90827
90872
  * @property {string|null} [giftRecipientHsUserId] GiftRedeemed giftRecipientHsUserId
90828
90873
  * @property {string|null} [giftPurchaseId] GiftRedeemed giftPurchaseId
90829
90874
  * @property {number|Long|null} [redeemedOn] GiftRedeemed redeemedOn
90875
+ * @property {string|null} [productSkuId] GiftRedeemed productSkuId
90876
+ * @property {string|null} [productSkuSlug] GiftRedeemed productSkuSlug
90830
90877
  */
90831
90878
 
90832
90879
  /**
@@ -90868,6 +90915,22 @@ $root.GiftRedeemed = (function() {
90868
90915
  */
90869
90916
  GiftRedeemed.prototype.redeemedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
90870
90917
 
90918
+ /**
90919
+ * GiftRedeemed productSkuId.
90920
+ * @member {string} productSkuId
90921
+ * @memberof GiftRedeemed
90922
+ * @instance
90923
+ */
90924
+ GiftRedeemed.prototype.productSkuId = "";
90925
+
90926
+ /**
90927
+ * GiftRedeemed productSkuSlug.
90928
+ * @member {string} productSkuSlug
90929
+ * @memberof GiftRedeemed
90930
+ * @instance
90931
+ */
90932
+ GiftRedeemed.prototype.productSkuSlug = "";
90933
+
90871
90934
  /**
90872
90935
  * Creates a new GiftRedeemed instance using the specified properties.
90873
90936
  * @function create
@@ -90898,6 +90961,10 @@ $root.GiftRedeemed = (function() {
90898
90961
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.giftPurchaseId);
90899
90962
  if (message.redeemedOn != null && message.hasOwnProperty("redeemedOn"))
90900
90963
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.redeemedOn);
90964
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
90965
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.productSkuId);
90966
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
90967
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.productSkuSlug);
90901
90968
  return writer;
90902
90969
  };
90903
90970
 
@@ -90941,6 +91008,12 @@ $root.GiftRedeemed = (function() {
90941
91008
  case 3:
90942
91009
  message.redeemedOn = reader.uint64();
90943
91010
  break;
91011
+ case 4:
91012
+ message.productSkuId = reader.string();
91013
+ break;
91014
+ case 5:
91015
+ message.productSkuSlug = reader.string();
91016
+ break;
90944
91017
  default:
90945
91018
  reader.skipType(tag & 7);
90946
91019
  break;
@@ -90985,6 +91058,12 @@ $root.GiftRedeemed = (function() {
90985
91058
  if (message.redeemedOn != null && message.hasOwnProperty("redeemedOn"))
90986
91059
  if (!$util.isInteger(message.redeemedOn) && !(message.redeemedOn && $util.isInteger(message.redeemedOn.low) && $util.isInteger(message.redeemedOn.high)))
90987
91060
  return "redeemedOn: integer|Long expected";
91061
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91062
+ if (!$util.isString(message.productSkuId))
91063
+ return "productSkuId: string expected";
91064
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91065
+ if (!$util.isString(message.productSkuSlug))
91066
+ return "productSkuSlug: string expected";
90988
91067
  return null;
90989
91068
  };
90990
91069
 
@@ -91013,6 +91092,10 @@ $root.GiftRedeemed = (function() {
91013
91092
  message.redeemedOn = object.redeemedOn;
91014
91093
  else if (typeof object.redeemedOn === "object")
91015
91094
  message.redeemedOn = new $util.LongBits(object.redeemedOn.low >>> 0, object.redeemedOn.high >>> 0).toNumber(true);
91095
+ if (object.productSkuId != null)
91096
+ message.productSkuId = String(object.productSkuId);
91097
+ if (object.productSkuSlug != null)
91098
+ message.productSkuSlug = String(object.productSkuSlug);
91016
91099
  return message;
91017
91100
  };
91018
91101
 
@@ -91037,6 +91120,8 @@ $root.GiftRedeemed = (function() {
91037
91120
  object.redeemedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
91038
91121
  } else
91039
91122
  object.redeemedOn = options.longs === String ? "0" : 0;
91123
+ object.productSkuId = "";
91124
+ object.productSkuSlug = "";
91040
91125
  }
91041
91126
  if (message.giftRecipientHsUserId != null && message.hasOwnProperty("giftRecipientHsUserId"))
91042
91127
  object.giftRecipientHsUserId = message.giftRecipientHsUserId;
@@ -91047,6 +91132,10 @@ $root.GiftRedeemed = (function() {
91047
91132
  object.redeemedOn = options.longs === String ? String(message.redeemedOn) : message.redeemedOn;
91048
91133
  else
91049
91134
  object.redeemedOn = options.longs === String ? $util.Long.prototype.toString.call(message.redeemedOn) : options.longs === Number ? new $util.LongBits(message.redeemedOn.low >>> 0, message.redeemedOn.high >>> 0).toNumber(true) : message.redeemedOn;
91135
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91136
+ object.productSkuId = message.productSkuId;
91137
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91138
+ object.productSkuSlug = message.productSkuSlug;
91050
91139
  return object;
91051
91140
  };
91052
91141
 
@@ -91455,6 +91544,9 @@ $root.GiftPurchased = (function() {
91455
91544
  * @property {number|null} [giftNumMonths] GiftPurchased giftNumMonths
91456
91545
  * @property {number|Long|null} [purchasedOn] GiftPurchased purchasedOn
91457
91546
  * @property {string|null} [giftPurchaseId] GiftPurchased giftPurchaseId
91547
+ * @property {string|null} [productSkuId] GiftPurchased productSkuId
91548
+ * @property {string|null} [productSkuSlug] GiftPurchased productSkuSlug
91549
+ * @property {gift.GiftProductSkuTaxMode|null} [productSkuTaxMode] GiftPurchased productSkuTaxMode
91458
91550
  */
91459
91551
 
91460
91552
  /**
@@ -91528,6 +91620,30 @@ $root.GiftPurchased = (function() {
91528
91620
  */
91529
91621
  GiftPurchased.prototype.giftPurchaseId = "";
91530
91622
 
91623
+ /**
91624
+ * GiftPurchased productSkuId.
91625
+ * @member {string} productSkuId
91626
+ * @memberof GiftPurchased
91627
+ * @instance
91628
+ */
91629
+ GiftPurchased.prototype.productSkuId = "";
91630
+
91631
+ /**
91632
+ * GiftPurchased productSkuSlug.
91633
+ * @member {string} productSkuSlug
91634
+ * @memberof GiftPurchased
91635
+ * @instance
91636
+ */
91637
+ GiftPurchased.prototype.productSkuSlug = "";
91638
+
91639
+ /**
91640
+ * GiftPurchased productSkuTaxMode.
91641
+ * @member {gift.GiftProductSkuTaxMode} productSkuTaxMode
91642
+ * @memberof GiftPurchased
91643
+ * @instance
91644
+ */
91645
+ GiftPurchased.prototype.productSkuTaxMode = 0;
91646
+
91531
91647
  /**
91532
91648
  * Creates a new GiftPurchased instance using the specified properties.
91533
91649
  * @function create
@@ -91566,6 +91682,12 @@ $root.GiftPurchased = (function() {
91566
91682
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.purchasedOn);
91567
91683
  if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
91568
91684
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.giftPurchaseId);
91685
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91686
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.productSkuId);
91687
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91688
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.productSkuSlug);
91689
+ if (message.productSkuTaxMode != null && message.hasOwnProperty("productSkuTaxMode"))
91690
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.productSkuTaxMode);
91569
91691
  return writer;
91570
91692
  };
91571
91693
 
@@ -91621,6 +91743,15 @@ $root.GiftPurchased = (function() {
91621
91743
  case 7:
91622
91744
  message.giftPurchaseId = reader.string();
91623
91745
  break;
91746
+ case 8:
91747
+ message.productSkuId = reader.string();
91748
+ break;
91749
+ case 9:
91750
+ message.productSkuSlug = reader.string();
91751
+ break;
91752
+ case 10:
91753
+ message.productSkuTaxMode = reader.int32();
91754
+ break;
91624
91755
  default:
91625
91756
  reader.skipType(tag & 7);
91626
91757
  break;
@@ -91677,6 +91808,21 @@ $root.GiftPurchased = (function() {
91677
91808
  if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
91678
91809
  if (!$util.isString(message.giftPurchaseId))
91679
91810
  return "giftPurchaseId: string expected";
91811
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91812
+ if (!$util.isString(message.productSkuId))
91813
+ return "productSkuId: string expected";
91814
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91815
+ if (!$util.isString(message.productSkuSlug))
91816
+ return "productSkuSlug: string expected";
91817
+ if (message.productSkuTaxMode != null && message.hasOwnProperty("productSkuTaxMode"))
91818
+ switch (message.productSkuTaxMode) {
91819
+ default:
91820
+ return "productSkuTaxMode: enum value expected";
91821
+ case 0:
91822
+ case 1:
91823
+ case 2:
91824
+ break;
91825
+ }
91680
91826
  return null;
91681
91827
  };
91682
91828
 
@@ -91713,6 +91859,24 @@ $root.GiftPurchased = (function() {
91713
91859
  message.purchasedOn = new $util.LongBits(object.purchasedOn.low >>> 0, object.purchasedOn.high >>> 0).toNumber(true);
91714
91860
  if (object.giftPurchaseId != null)
91715
91861
  message.giftPurchaseId = String(object.giftPurchaseId);
91862
+ if (object.productSkuId != null)
91863
+ message.productSkuId = String(object.productSkuId);
91864
+ if (object.productSkuSlug != null)
91865
+ message.productSkuSlug = String(object.productSkuSlug);
91866
+ switch (object.productSkuTaxMode) {
91867
+ case "GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN":
91868
+ case 0:
91869
+ message.productSkuTaxMode = 0;
91870
+ break;
91871
+ case "GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE":
91872
+ case 1:
91873
+ message.productSkuTaxMode = 1;
91874
+ break;
91875
+ case "GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE":
91876
+ case 2:
91877
+ message.productSkuTaxMode = 2;
91878
+ break;
91879
+ }
91716
91880
  return message;
91717
91881
  };
91718
91882
 
@@ -91741,6 +91905,9 @@ $root.GiftPurchased = (function() {
91741
91905
  } else
91742
91906
  object.purchasedOn = options.longs === String ? "0" : 0;
91743
91907
  object.giftPurchaseId = "";
91908
+ object.productSkuId = "";
91909
+ object.productSkuSlug = "";
91910
+ object.productSkuTaxMode = options.enums === String ? "GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN" : 0;
91744
91911
  }
91745
91912
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
91746
91913
  object.hsUserId = message.hsUserId;
@@ -91759,6 +91926,12 @@ $root.GiftPurchased = (function() {
91759
91926
  object.purchasedOn = options.longs === String ? $util.Long.prototype.toString.call(message.purchasedOn) : options.longs === Number ? new $util.LongBits(message.purchasedOn.low >>> 0, message.purchasedOn.high >>> 0).toNumber(true) : message.purchasedOn;
91760
91927
  if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
91761
91928
  object.giftPurchaseId = message.giftPurchaseId;
91929
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91930
+ object.productSkuId = message.productSkuId;
91931
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91932
+ object.productSkuSlug = message.productSkuSlug;
91933
+ if (message.productSkuTaxMode != null && message.hasOwnProperty("productSkuTaxMode"))
91934
+ object.productSkuTaxMode = options.enums === String ? $root.gift.GiftProductSkuTaxMode[message.productSkuTaxMode] : message.productSkuTaxMode;
91762
91935
  return object;
91763
91936
  };
91764
91937
 
@@ -116330,255 +116503,6 @@ $root.UserDoubleOptInEmailRequested = (function() {
116330
116503
  return UserDoubleOptInEmailRequested;
116331
116504
  })();
116332
116505
 
116333
-
116334
-
116335
- $root.UserMFAEnrollmentInitiated = (function() {
116336
-
116337
- /**
116338
- * Properties of a UserMFAEnrollmentInitiated.
116339
- * @exports IUserMFAEnrollmentInitiated
116340
- * @interface IUserMFAEnrollmentInitiated
116341
- * @property {string|null} [userId] UserMFAEnrollmentInitiated userId
116342
- * @property {boolean|null} [enabled] UserMFAEnrollmentInitiated enabled
116343
- * @property {number|Long|null} [timestamp] UserMFAEnrollmentInitiated timestamp
116344
- */
116345
-
116346
- /**
116347
- * Constructs a new UserMFAEnrollmentInitiated.
116348
- * @exports UserMFAEnrollmentInitiated
116349
- * @classdesc Represents a UserMFAEnrollmentInitiated.
116350
- * @implements IUserMFAEnrollmentInitiated
116351
- * @constructor
116352
- * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
116353
- */
116354
- function UserMFAEnrollmentInitiated(properties) {
116355
- if (properties)
116356
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
116357
- if (properties[keys[i]] != null)
116358
- this[keys[i]] = properties[keys[i]];
116359
- }
116360
-
116361
- /**
116362
- * UserMFAEnrollmentInitiated userId.
116363
- * @member {string} userId
116364
- * @memberof UserMFAEnrollmentInitiated
116365
- * @instance
116366
- */
116367
- UserMFAEnrollmentInitiated.prototype.userId = "";
116368
-
116369
- /**
116370
- * UserMFAEnrollmentInitiated enabled.
116371
- * @member {boolean} enabled
116372
- * @memberof UserMFAEnrollmentInitiated
116373
- * @instance
116374
- */
116375
- UserMFAEnrollmentInitiated.prototype.enabled = false;
116376
-
116377
- /**
116378
- * UserMFAEnrollmentInitiated timestamp.
116379
- * @member {number|Long} timestamp
116380
- * @memberof UserMFAEnrollmentInitiated
116381
- * @instance
116382
- */
116383
- UserMFAEnrollmentInitiated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
116384
-
116385
- /**
116386
- * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
116387
- * @function create
116388
- * @memberof UserMFAEnrollmentInitiated
116389
- * @static
116390
- * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
116391
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
116392
- */
116393
- UserMFAEnrollmentInitiated.create = function create(properties) {
116394
- return new UserMFAEnrollmentInitiated(properties);
116395
- };
116396
-
116397
- /**
116398
- * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
116399
- * @function encode
116400
- * @memberof UserMFAEnrollmentInitiated
116401
- * @static
116402
- * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
116403
- * @param {$protobuf.Writer} [writer] Writer to encode to
116404
- * @returns {$protobuf.Writer} Writer
116405
- */
116406
- UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
116407
- if (!writer)
116408
- writer = $Writer.create();
116409
- if (message.userId != null && message.hasOwnProperty("userId"))
116410
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
116411
- if (message.enabled != null && message.hasOwnProperty("enabled"))
116412
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled);
116413
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116414
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
116415
- return writer;
116416
- };
116417
-
116418
- /**
116419
- * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
116420
- * @function encodeDelimited
116421
- * @memberof UserMFAEnrollmentInitiated
116422
- * @static
116423
- * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
116424
- * @param {$protobuf.Writer} [writer] Writer to encode to
116425
- * @returns {$protobuf.Writer} Writer
116426
- */
116427
- UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
116428
- return this.encode(message, writer).ldelim();
116429
- };
116430
-
116431
- /**
116432
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
116433
- * @function decode
116434
- * @memberof UserMFAEnrollmentInitiated
116435
- * @static
116436
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
116437
- * @param {number} [length] Message length if known beforehand
116438
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116439
- * @throws {Error} If the payload is not a reader or valid buffer
116440
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
116441
- */
116442
- UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
116443
- if (!(reader instanceof $Reader))
116444
- reader = $Reader.create(reader);
116445
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
116446
- while (reader.pos < end) {
116447
- var tag = reader.uint32();
116448
- switch (tag >>> 3) {
116449
- case 1:
116450
- message.userId = reader.string();
116451
- break;
116452
- case 2:
116453
- message.enabled = reader.bool();
116454
- break;
116455
- case 3:
116456
- message.timestamp = reader.uint64();
116457
- break;
116458
- default:
116459
- reader.skipType(tag & 7);
116460
- break;
116461
- }
116462
- }
116463
- return message;
116464
- };
116465
-
116466
- /**
116467
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
116468
- * @function decodeDelimited
116469
- * @memberof UserMFAEnrollmentInitiated
116470
- * @static
116471
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
116472
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116473
- * @throws {Error} If the payload is not a reader or valid buffer
116474
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
116475
- */
116476
- UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
116477
- if (!(reader instanceof $Reader))
116478
- reader = new $Reader(reader);
116479
- return this.decode(reader, reader.uint32());
116480
- };
116481
-
116482
- /**
116483
- * Verifies a UserMFAEnrollmentInitiated message.
116484
- * @function verify
116485
- * @memberof UserMFAEnrollmentInitiated
116486
- * @static
116487
- * @param {Object.<string,*>} message Plain object to verify
116488
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
116489
- */
116490
- UserMFAEnrollmentInitiated.verify = function verify(message) {
116491
- if (typeof message !== "object" || message === null)
116492
- return "object expected";
116493
- if (message.userId != null && message.hasOwnProperty("userId"))
116494
- if (!$util.isString(message.userId))
116495
- return "userId: string expected";
116496
- if (message.enabled != null && message.hasOwnProperty("enabled"))
116497
- if (typeof message.enabled !== "boolean")
116498
- return "enabled: boolean expected";
116499
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116500
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
116501
- return "timestamp: integer|Long expected";
116502
- return null;
116503
- };
116504
-
116505
- /**
116506
- * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
116507
- * @function fromObject
116508
- * @memberof UserMFAEnrollmentInitiated
116509
- * @static
116510
- * @param {Object.<string,*>} object Plain object
116511
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116512
- */
116513
- UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
116514
- if (object instanceof $root.UserMFAEnrollmentInitiated)
116515
- return object;
116516
- var message = new $root.UserMFAEnrollmentInitiated();
116517
- if (object.userId != null)
116518
- message.userId = String(object.userId);
116519
- if (object.enabled != null)
116520
- message.enabled = Boolean(object.enabled);
116521
- if (object.timestamp != null)
116522
- if ($util.Long)
116523
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
116524
- else if (typeof object.timestamp === "string")
116525
- message.timestamp = parseInt(object.timestamp, 10);
116526
- else if (typeof object.timestamp === "number")
116527
- message.timestamp = object.timestamp;
116528
- else if (typeof object.timestamp === "object")
116529
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
116530
- return message;
116531
- };
116532
-
116533
- /**
116534
- * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
116535
- * @function toObject
116536
- * @memberof UserMFAEnrollmentInitiated
116537
- * @static
116538
- * @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
116539
- * @param {$protobuf.IConversionOptions} [options] Conversion options
116540
- * @returns {Object.<string,*>} Plain object
116541
- */
116542
- UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
116543
- if (!options)
116544
- options = {};
116545
- var object = {};
116546
- if (options.defaults) {
116547
- object.userId = "";
116548
- object.enabled = false;
116549
- if ($util.Long) {
116550
- var long = new $util.Long(0, 0, true);
116551
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
116552
- } else
116553
- object.timestamp = options.longs === String ? "0" : 0;
116554
- }
116555
- if (message.userId != null && message.hasOwnProperty("userId"))
116556
- object.userId = message.userId;
116557
- if (message.enabled != null && message.hasOwnProperty("enabled"))
116558
- object.enabled = message.enabled;
116559
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116560
- if (typeof message.timestamp === "number")
116561
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
116562
- else
116563
- 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;
116564
- return object;
116565
- };
116566
-
116567
- /**
116568
- * Converts this UserMFAEnrollmentInitiated to JSON.
116569
- * @function toJSON
116570
- * @memberof UserMFAEnrollmentInitiated
116571
- * @instance
116572
- * @returns {Object.<string,*>} JSON object
116573
- */
116574
- UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
116575
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
116576
- };
116577
-
116578
- return UserMFAEnrollmentInitiated;
116579
- })();
116580
-
116581
-
116582
116506
  $root.UserEmailUpdated = (function() {
116583
116507
 
116584
116508
  /**
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.356.0"
19
+ "version": "1.358.0"
20
20
  }