@headspace/protos-events 1.103.0 → 1.105.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 +271 -0
  2. package/lib/index.js +913 -55
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -3026,6 +3026,22 @@ $root.appleReceipt = (function() {
3026
3026
  return values;
3027
3027
  })();
3028
3028
 
3029
+ /**
3030
+ * IosSubscriptionAutoRenewalStatus enum.
3031
+ * @name appleReceipt.IosSubscriptionAutoRenewalStatus
3032
+ * @enum {string}
3033
+ * @property {number} UNKNOWN=0 UNKNOWN value
3034
+ * @property {number} ACTIVE=1 ACTIVE value
3035
+ * @property {number} CANCELLED=2 CANCELLED value
3036
+ */
3037
+ appleReceipt.IosSubscriptionAutoRenewalStatus = (function() {
3038
+ var valuesById = {}, values = Object.create(valuesById);
3039
+ values[valuesById[0] = "UNKNOWN"] = 0;
3040
+ values[valuesById[1] = "ACTIVE"] = 1;
3041
+ values[valuesById[2] = "CANCELLED"] = 2;
3042
+ return values;
3043
+ })();
3044
+
3029
3045
  return appleReceipt;
3030
3046
  })();
3031
3047
 
@@ -11796,6 +11812,7 @@ $root.IosSubscriptionCreated = (function() {
11796
11812
  * @property {number|Long|null} [startsAt] IosSubscriptionCreated startsAt
11797
11813
  * @property {string|null} [userId] IosSubscriptionCreated userId
11798
11814
  * @property {string|null} [productId] IosSubscriptionCreated productId
11815
+ * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionCreated autoRenewalStatus
11799
11816
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionCreated tags
11800
11817
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionCreated terms
11801
11818
  */
@@ -11857,6 +11874,14 @@ $root.IosSubscriptionCreated = (function() {
11857
11874
  */
11858
11875
  IosSubscriptionCreated.prototype.productId = "";
11859
11876
 
11877
+ /**
11878
+ * IosSubscriptionCreated autoRenewalStatus.
11879
+ * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
11880
+ * @memberof IosSubscriptionCreated
11881
+ * @instance
11882
+ */
11883
+ IosSubscriptionCreated.prototype.autoRenewalStatus = 0;
11884
+
11860
11885
  /**
11861
11886
  * IosSubscriptionCreated tags.
11862
11887
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -11916,6 +11941,8 @@ $root.IosSubscriptionCreated = (function() {
11916
11941
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
11917
11942
  if (message.productId != null && message.hasOwnProperty("productId"))
11918
11943
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
11944
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
11945
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
11919
11946
  return writer;
11920
11947
  };
11921
11948
 
@@ -11965,6 +11992,9 @@ $root.IosSubscriptionCreated = (function() {
11965
11992
  case 7:
11966
11993
  message.productId = reader.string();
11967
11994
  break;
11995
+ case 8:
11996
+ message.autoRenewalStatus = reader.int32();
11997
+ break;
11968
11998
  case 5:
11969
11999
  if (!(message.tags && message.tags.length))
11970
12000
  message.tags = [];
@@ -12030,6 +12060,15 @@ $root.IosSubscriptionCreated = (function() {
12030
12060
  if (message.productId != null && message.hasOwnProperty("productId"))
12031
12061
  if (!$util.isString(message.productId))
12032
12062
  return "productId: string expected";
12063
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12064
+ switch (message.autoRenewalStatus) {
12065
+ default:
12066
+ return "autoRenewalStatus: enum value expected";
12067
+ case 0:
12068
+ case 1:
12069
+ case 2:
12070
+ break;
12071
+ }
12033
12072
  if (message.tags != null && message.hasOwnProperty("tags")) {
12034
12073
  if (!Array.isArray(message.tags))
12035
12074
  return "tags: array expected";
@@ -12090,6 +12129,20 @@ $root.IosSubscriptionCreated = (function() {
12090
12129
  message.userId = String(object.userId);
12091
12130
  if (object.productId != null)
12092
12131
  message.productId = String(object.productId);
12132
+ switch (object.autoRenewalStatus) {
12133
+ case "UNKNOWN":
12134
+ case 0:
12135
+ message.autoRenewalStatus = 0;
12136
+ break;
12137
+ case "ACTIVE":
12138
+ case 1:
12139
+ message.autoRenewalStatus = 1;
12140
+ break;
12141
+ case "CANCELLED":
12142
+ case 2:
12143
+ message.autoRenewalStatus = 2;
12144
+ break;
12145
+ }
12093
12146
  if (object.tags) {
12094
12147
  if (!Array.isArray(object.tags))
12095
12148
  throw TypeError(".IosSubscriptionCreated.tags: array expected");
@@ -12151,6 +12204,7 @@ $root.IosSubscriptionCreated = (function() {
12151
12204
  object.startsAt = options.longs === String ? "0" : 0;
12152
12205
  object.userId = "";
12153
12206
  object.productId = "";
12207
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
12154
12208
  }
12155
12209
  if (message.id != null && message.hasOwnProperty("id"))
12156
12210
  object.id = message.id;
@@ -12178,6 +12232,8 @@ $root.IosSubscriptionCreated = (function() {
12178
12232
  }
12179
12233
  if (message.productId != null && message.hasOwnProperty("productId"))
12180
12234
  object.productId = message.productId;
12235
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12236
+ object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
12181
12237
  return object;
12182
12238
  };
12183
12239
 
@@ -12206,6 +12262,7 @@ $root.IosSubscriptionRenewed = (function() {
12206
12262
  * @property {number|Long|null} [startsAt] IosSubscriptionRenewed startsAt
12207
12263
  * @property {string|null} [userId] IosSubscriptionRenewed userId
12208
12264
  * @property {string|null} [productId] IosSubscriptionRenewed productId
12265
+ * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionRenewed autoRenewalStatus
12209
12266
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionRenewed tags
12210
12267
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionRenewed terms
12211
12268
  */
@@ -12267,6 +12324,14 @@ $root.IosSubscriptionRenewed = (function() {
12267
12324
  */
12268
12325
  IosSubscriptionRenewed.prototype.productId = "";
12269
12326
 
12327
+ /**
12328
+ * IosSubscriptionRenewed autoRenewalStatus.
12329
+ * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
12330
+ * @memberof IosSubscriptionRenewed
12331
+ * @instance
12332
+ */
12333
+ IosSubscriptionRenewed.prototype.autoRenewalStatus = 0;
12334
+
12270
12335
  /**
12271
12336
  * IosSubscriptionRenewed tags.
12272
12337
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -12326,6 +12391,8 @@ $root.IosSubscriptionRenewed = (function() {
12326
12391
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12327
12392
  if (message.productId != null && message.hasOwnProperty("productId"))
12328
12393
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12394
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12395
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
12329
12396
  return writer;
12330
12397
  };
12331
12398
 
@@ -12375,6 +12442,9 @@ $root.IosSubscriptionRenewed = (function() {
12375
12442
  case 7:
12376
12443
  message.productId = reader.string();
12377
12444
  break;
12445
+ case 8:
12446
+ message.autoRenewalStatus = reader.int32();
12447
+ break;
12378
12448
  case 5:
12379
12449
  if (!(message.tags && message.tags.length))
12380
12450
  message.tags = [];
@@ -12440,6 +12510,15 @@ $root.IosSubscriptionRenewed = (function() {
12440
12510
  if (message.productId != null && message.hasOwnProperty("productId"))
12441
12511
  if (!$util.isString(message.productId))
12442
12512
  return "productId: string expected";
12513
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12514
+ switch (message.autoRenewalStatus) {
12515
+ default:
12516
+ return "autoRenewalStatus: enum value expected";
12517
+ case 0:
12518
+ case 1:
12519
+ case 2:
12520
+ break;
12521
+ }
12443
12522
  if (message.tags != null && message.hasOwnProperty("tags")) {
12444
12523
  if (!Array.isArray(message.tags))
12445
12524
  return "tags: array expected";
@@ -12500,6 +12579,20 @@ $root.IosSubscriptionRenewed = (function() {
12500
12579
  message.userId = String(object.userId);
12501
12580
  if (object.productId != null)
12502
12581
  message.productId = String(object.productId);
12582
+ switch (object.autoRenewalStatus) {
12583
+ case "UNKNOWN":
12584
+ case 0:
12585
+ message.autoRenewalStatus = 0;
12586
+ break;
12587
+ case "ACTIVE":
12588
+ case 1:
12589
+ message.autoRenewalStatus = 1;
12590
+ break;
12591
+ case "CANCELLED":
12592
+ case 2:
12593
+ message.autoRenewalStatus = 2;
12594
+ break;
12595
+ }
12503
12596
  if (object.tags) {
12504
12597
  if (!Array.isArray(object.tags))
12505
12598
  throw TypeError(".IosSubscriptionRenewed.tags: array expected");
@@ -12561,6 +12654,7 @@ $root.IosSubscriptionRenewed = (function() {
12561
12654
  object.startsAt = options.longs === String ? "0" : 0;
12562
12655
  object.userId = "";
12563
12656
  object.productId = "";
12657
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
12564
12658
  }
12565
12659
  if (message.id != null && message.hasOwnProperty("id"))
12566
12660
  object.id = message.id;
@@ -12588,6 +12682,8 @@ $root.IosSubscriptionRenewed = (function() {
12588
12682
  }
12589
12683
  if (message.productId != null && message.hasOwnProperty("productId"))
12590
12684
  object.productId = message.productId;
12685
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12686
+ object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
12591
12687
  return object;
12592
12688
  };
12593
12689
 
@@ -12605,24 +12701,33 @@ $root.IosSubscriptionRenewed = (function() {
12605
12701
  return IosSubscriptionRenewed;
12606
12702
  })();
12607
12703
 
12608
- $root.AssetCreated = (function() {
12704
+ $root.IosSubscriptionAutoRenewalUpdated = (function() {
12609
12705
 
12610
12706
  /**
12611
- * Properties of an AssetCreated.
12612
- * @exports IAssetCreated
12613
- * @interface IAssetCreated
12614
- * @property {asset.IAsset|null} [asset] AssetCreated asset
12707
+ * Properties of an IosSubscriptionAutoRenewalUpdated.
12708
+ * @exports IIosSubscriptionAutoRenewalUpdated
12709
+ * @interface IIosSubscriptionAutoRenewalUpdated
12710
+ * @property {string|null} [id] IosSubscriptionAutoRenewalUpdated id
12711
+ * @property {number|Long|null} [endsAt] IosSubscriptionAutoRenewalUpdated endsAt
12712
+ * @property {number|Long|null} [startsAt] IosSubscriptionAutoRenewalUpdated startsAt
12713
+ * @property {string|null} [userId] IosSubscriptionAutoRenewalUpdated userId
12714
+ * @property {string|null} [productId] IosSubscriptionAutoRenewalUpdated productId
12715
+ * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionAutoRenewalUpdated autoRenewalStatus
12716
+ * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionAutoRenewalUpdated tags
12717
+ * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionAutoRenewalUpdated terms
12615
12718
  */
12616
12719
 
12617
12720
  /**
12618
- * Constructs a new AssetCreated.
12619
- * @exports AssetCreated
12620
- * @classdesc Represents an AssetCreated.
12621
- * @implements IAssetCreated
12721
+ * Constructs a new IosSubscriptionAutoRenewalUpdated.
12722
+ * @exports IosSubscriptionAutoRenewalUpdated
12723
+ * @classdesc Represents an IosSubscriptionAutoRenewalUpdated.
12724
+ * @implements IIosSubscriptionAutoRenewalUpdated
12622
12725
  * @constructor
12623
- * @param {IAssetCreated=} [properties] Properties to set
12726
+ * @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
12624
12727
  */
12625
- function AssetCreated(properties) {
12728
+ function IosSubscriptionAutoRenewalUpdated(properties) {
12729
+ this.tags = [];
12730
+ this.terms = [];
12626
12731
  if (properties)
12627
12732
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12628
12733
  if (properties[keys[i]] != null)
@@ -12630,75 +12735,180 @@ $root.AssetCreated = (function() {
12630
12735
  }
12631
12736
 
12632
12737
  /**
12633
- * AssetCreated asset.
12634
- * @member {asset.IAsset|null|undefined} asset
12635
- * @memberof AssetCreated
12738
+ * IosSubscriptionAutoRenewalUpdated id.
12739
+ * @member {string} id
12740
+ * @memberof IosSubscriptionAutoRenewalUpdated
12636
12741
  * @instance
12637
12742
  */
12638
- AssetCreated.prototype.asset = null;
12743
+ IosSubscriptionAutoRenewalUpdated.prototype.id = "";
12639
12744
 
12640
12745
  /**
12641
- * Creates a new AssetCreated instance using the specified properties.
12746
+ * IosSubscriptionAutoRenewalUpdated endsAt.
12747
+ * @member {number|Long} endsAt
12748
+ * @memberof IosSubscriptionAutoRenewalUpdated
12749
+ * @instance
12750
+ */
12751
+ IosSubscriptionAutoRenewalUpdated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12752
+
12753
+ /**
12754
+ * IosSubscriptionAutoRenewalUpdated startsAt.
12755
+ * @member {number|Long} startsAt
12756
+ * @memberof IosSubscriptionAutoRenewalUpdated
12757
+ * @instance
12758
+ */
12759
+ IosSubscriptionAutoRenewalUpdated.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12760
+
12761
+ /**
12762
+ * IosSubscriptionAutoRenewalUpdated userId.
12763
+ * @member {string} userId
12764
+ * @memberof IosSubscriptionAutoRenewalUpdated
12765
+ * @instance
12766
+ */
12767
+ IosSubscriptionAutoRenewalUpdated.prototype.userId = "";
12768
+
12769
+ /**
12770
+ * IosSubscriptionAutoRenewalUpdated productId.
12771
+ * @member {string} productId
12772
+ * @memberof IosSubscriptionAutoRenewalUpdated
12773
+ * @instance
12774
+ */
12775
+ IosSubscriptionAutoRenewalUpdated.prototype.productId = "";
12776
+
12777
+ /**
12778
+ * IosSubscriptionAutoRenewalUpdated autoRenewalStatus.
12779
+ * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
12780
+ * @memberof IosSubscriptionAutoRenewalUpdated
12781
+ * @instance
12782
+ */
12783
+ IosSubscriptionAutoRenewalUpdated.prototype.autoRenewalStatus = 0;
12784
+
12785
+ /**
12786
+ * IosSubscriptionAutoRenewalUpdated tags.
12787
+ * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
12788
+ * @memberof IosSubscriptionAutoRenewalUpdated
12789
+ * @instance
12790
+ */
12791
+ IosSubscriptionAutoRenewalUpdated.prototype.tags = $util.emptyArray;
12792
+
12793
+ /**
12794
+ * IosSubscriptionAutoRenewalUpdated terms.
12795
+ * @member {Array.<appleReceipt.IIosSubscriptionTerm>} terms
12796
+ * @memberof IosSubscriptionAutoRenewalUpdated
12797
+ * @instance
12798
+ */
12799
+ IosSubscriptionAutoRenewalUpdated.prototype.terms = $util.emptyArray;
12800
+
12801
+ /**
12802
+ * Creates a new IosSubscriptionAutoRenewalUpdated instance using the specified properties.
12642
12803
  * @function create
12643
- * @memberof AssetCreated
12804
+ * @memberof IosSubscriptionAutoRenewalUpdated
12644
12805
  * @static
12645
- * @param {IAssetCreated=} [properties] Properties to set
12646
- * @returns {AssetCreated} AssetCreated instance
12806
+ * @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
12807
+ * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated instance
12647
12808
  */
12648
- AssetCreated.create = function create(properties) {
12649
- return new AssetCreated(properties);
12809
+ IosSubscriptionAutoRenewalUpdated.create = function create(properties) {
12810
+ return new IosSubscriptionAutoRenewalUpdated(properties);
12650
12811
  };
12651
12812
 
12652
12813
  /**
12653
- * Encodes the specified AssetCreated message. Does not implicitly {@link AssetCreated.verify|verify} messages.
12814
+ * Encodes the specified IosSubscriptionAutoRenewalUpdated message. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
12654
12815
  * @function encode
12655
- * @memberof AssetCreated
12816
+ * @memberof IosSubscriptionAutoRenewalUpdated
12656
12817
  * @static
12657
- * @param {IAssetCreated} message AssetCreated message or plain object to encode
12818
+ * @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
12658
12819
  * @param {$protobuf.Writer} [writer] Writer to encode to
12659
12820
  * @returns {$protobuf.Writer} Writer
12660
12821
  */
12661
- AssetCreated.encode = function encode(message, writer) {
12822
+ IosSubscriptionAutoRenewalUpdated.encode = function encode(message, writer) {
12662
12823
  if (!writer)
12663
12824
  writer = $Writer.create();
12664
- if (message.asset != null && message.hasOwnProperty("asset"))
12665
- $root.asset.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
12825
+ if (message.id != null && message.hasOwnProperty("id"))
12826
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
12827
+ if (message.endsAt != null && message.hasOwnProperty("endsAt"))
12828
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
12829
+ if (message.startsAt != null && message.hasOwnProperty("startsAt"))
12830
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.startsAt);
12831
+ if (message.userId != null && message.hasOwnProperty("userId"))
12832
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.userId);
12833
+ if (message.tags != null && message.tags.length) {
12834
+ writer.uint32(/* id 5, wireType 2 =*/42).fork();
12835
+ for (var i = 0; i < message.tags.length; ++i)
12836
+ writer.int32(message.tags[i]);
12837
+ writer.ldelim();
12838
+ }
12839
+ if (message.terms != null && message.terms.length)
12840
+ for (var i = 0; i < message.terms.length; ++i)
12841
+ $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12842
+ if (message.productId != null && message.hasOwnProperty("productId"))
12843
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12844
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12845
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
12666
12846
  return writer;
12667
12847
  };
12668
12848
 
12669
12849
  /**
12670
- * Encodes the specified AssetCreated message, length delimited. Does not implicitly {@link AssetCreated.verify|verify} messages.
12850
+ * Encodes the specified IosSubscriptionAutoRenewalUpdated message, length delimited. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
12671
12851
  * @function encodeDelimited
12672
- * @memberof AssetCreated
12852
+ * @memberof IosSubscriptionAutoRenewalUpdated
12673
12853
  * @static
12674
- * @param {IAssetCreated} message AssetCreated message or plain object to encode
12854
+ * @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
12675
12855
  * @param {$protobuf.Writer} [writer] Writer to encode to
12676
12856
  * @returns {$protobuf.Writer} Writer
12677
12857
  */
12678
- AssetCreated.encodeDelimited = function encodeDelimited(message, writer) {
12858
+ IosSubscriptionAutoRenewalUpdated.encodeDelimited = function encodeDelimited(message, writer) {
12679
12859
  return this.encode(message, writer).ldelim();
12680
12860
  };
12681
12861
 
12682
12862
  /**
12683
- * Decodes an AssetCreated message from the specified reader or buffer.
12863
+ * Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer.
12684
12864
  * @function decode
12685
- * @memberof AssetCreated
12865
+ * @memberof IosSubscriptionAutoRenewalUpdated
12686
12866
  * @static
12687
12867
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12688
12868
  * @param {number} [length] Message length if known beforehand
12689
- * @returns {AssetCreated} AssetCreated
12869
+ * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
12690
12870
  * @throws {Error} If the payload is not a reader or valid buffer
12691
12871
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12692
12872
  */
12693
- AssetCreated.decode = function decode(reader, length) {
12873
+ IosSubscriptionAutoRenewalUpdated.decode = function decode(reader, length) {
12694
12874
  if (!(reader instanceof $Reader))
12695
12875
  reader = $Reader.create(reader);
12696
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AssetCreated();
12876
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IosSubscriptionAutoRenewalUpdated();
12697
12877
  while (reader.pos < end) {
12698
12878
  var tag = reader.uint32();
12699
12879
  switch (tag >>> 3) {
12700
12880
  case 1:
12701
- message.asset = $root.asset.Asset.decode(reader, reader.uint32());
12881
+ message.id = reader.string();
12882
+ break;
12883
+ case 2:
12884
+ message.endsAt = reader.uint64();
12885
+ break;
12886
+ case 3:
12887
+ message.startsAt = reader.uint64();
12888
+ break;
12889
+ case 4:
12890
+ message.userId = reader.string();
12891
+ break;
12892
+ case 7:
12893
+ message.productId = reader.string();
12894
+ break;
12895
+ case 8:
12896
+ message.autoRenewalStatus = reader.int32();
12897
+ break;
12898
+ case 5:
12899
+ if (!(message.tags && message.tags.length))
12900
+ message.tags = [];
12901
+ if ((tag & 7) === 2) {
12902
+ var end2 = reader.uint32() + reader.pos;
12903
+ while (reader.pos < end2)
12904
+ message.tags.push(reader.int32());
12905
+ } else
12906
+ message.tags.push(reader.int32());
12907
+ break;
12908
+ case 6:
12909
+ if (!(message.terms && message.terms.length))
12910
+ message.terms = [];
12911
+ message.terms.push($root.appleReceipt.IosSubscriptionTerm.decode(reader, reader.uint32()));
12702
12912
  break;
12703
12913
  default:
12704
12914
  reader.skipType(tag & 7);
@@ -12709,53 +12919,389 @@ $root.AssetCreated = (function() {
12709
12919
  };
12710
12920
 
12711
12921
  /**
12712
- * Decodes an AssetCreated message from the specified reader or buffer, length delimited.
12922
+ * Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer, length delimited.
12713
12923
  * @function decodeDelimited
12714
- * @memberof AssetCreated
12924
+ * @memberof IosSubscriptionAutoRenewalUpdated
12715
12925
  * @static
12716
12926
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12717
- * @returns {AssetCreated} AssetCreated
12927
+ * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
12718
12928
  * @throws {Error} If the payload is not a reader or valid buffer
12719
12929
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12720
12930
  */
12721
- AssetCreated.decodeDelimited = function decodeDelimited(reader) {
12931
+ IosSubscriptionAutoRenewalUpdated.decodeDelimited = function decodeDelimited(reader) {
12722
12932
  if (!(reader instanceof $Reader))
12723
12933
  reader = new $Reader(reader);
12724
12934
  return this.decode(reader, reader.uint32());
12725
12935
  };
12726
12936
 
12727
12937
  /**
12728
- * Verifies an AssetCreated message.
12938
+ * Verifies an IosSubscriptionAutoRenewalUpdated message.
12729
12939
  * @function verify
12730
- * @memberof AssetCreated
12940
+ * @memberof IosSubscriptionAutoRenewalUpdated
12731
12941
  * @static
12732
12942
  * @param {Object.<string,*>} message Plain object to verify
12733
12943
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
12734
12944
  */
12735
- AssetCreated.verify = function verify(message) {
12945
+ IosSubscriptionAutoRenewalUpdated.verify = function verify(message) {
12736
12946
  if (typeof message !== "object" || message === null)
12737
12947
  return "object expected";
12738
- if (message.asset != null && message.hasOwnProperty("asset")) {
12739
- var error = $root.asset.Asset.verify(message.asset);
12740
- if (error)
12741
- return "asset." + error;
12948
+ if (message.id != null && message.hasOwnProperty("id"))
12949
+ if (!$util.isString(message.id))
12950
+ return "id: string expected";
12951
+ if (message.endsAt != null && message.hasOwnProperty("endsAt"))
12952
+ if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
12953
+ return "endsAt: integer|Long expected";
12954
+ if (message.startsAt != null && message.hasOwnProperty("startsAt"))
12955
+ if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
12956
+ return "startsAt: integer|Long expected";
12957
+ if (message.userId != null && message.hasOwnProperty("userId"))
12958
+ if (!$util.isString(message.userId))
12959
+ return "userId: string expected";
12960
+ if (message.productId != null && message.hasOwnProperty("productId"))
12961
+ if (!$util.isString(message.productId))
12962
+ return "productId: string expected";
12963
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12964
+ switch (message.autoRenewalStatus) {
12965
+ default:
12966
+ return "autoRenewalStatus: enum value expected";
12967
+ case 0:
12968
+ case 1:
12969
+ case 2:
12970
+ break;
12971
+ }
12972
+ if (message.tags != null && message.hasOwnProperty("tags")) {
12973
+ if (!Array.isArray(message.tags))
12974
+ return "tags: array expected";
12975
+ for (var i = 0; i < message.tags.length; ++i)
12976
+ switch (message.tags[i]) {
12977
+ default:
12978
+ return "tags: enum value[] expected";
12979
+ case 0:
12980
+ case 1:
12981
+ break;
12982
+ }
12983
+ }
12984
+ if (message.terms != null && message.hasOwnProperty("terms")) {
12985
+ if (!Array.isArray(message.terms))
12986
+ return "terms: array expected";
12987
+ for (var i = 0; i < message.terms.length; ++i) {
12988
+ var error = $root.appleReceipt.IosSubscriptionTerm.verify(message.terms[i]);
12989
+ if (error)
12990
+ return "terms." + error;
12991
+ }
12742
12992
  }
12743
12993
  return null;
12744
12994
  };
12745
12995
 
12746
12996
  /**
12747
- * Creates an AssetCreated message from a plain object. Also converts values to their respective internal types.
12997
+ * Creates an IosSubscriptionAutoRenewalUpdated message from a plain object. Also converts values to their respective internal types.
12748
12998
  * @function fromObject
12749
- * @memberof AssetCreated
12999
+ * @memberof IosSubscriptionAutoRenewalUpdated
12750
13000
  * @static
12751
13001
  * @param {Object.<string,*>} object Plain object
12752
- * @returns {AssetCreated} AssetCreated
13002
+ * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
12753
13003
  */
12754
- AssetCreated.fromObject = function fromObject(object) {
12755
- if (object instanceof $root.AssetCreated)
13004
+ IosSubscriptionAutoRenewalUpdated.fromObject = function fromObject(object) {
13005
+ if (object instanceof $root.IosSubscriptionAutoRenewalUpdated)
12756
13006
  return object;
12757
- var message = new $root.AssetCreated();
12758
- if (object.asset != null) {
13007
+ var message = new $root.IosSubscriptionAutoRenewalUpdated();
13008
+ if (object.id != null)
13009
+ message.id = String(object.id);
13010
+ if (object.endsAt != null)
13011
+ if ($util.Long)
13012
+ (message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
13013
+ else if (typeof object.endsAt === "string")
13014
+ message.endsAt = parseInt(object.endsAt, 10);
13015
+ else if (typeof object.endsAt === "number")
13016
+ message.endsAt = object.endsAt;
13017
+ else if (typeof object.endsAt === "object")
13018
+ message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
13019
+ if (object.startsAt != null)
13020
+ if ($util.Long)
13021
+ (message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
13022
+ else if (typeof object.startsAt === "string")
13023
+ message.startsAt = parseInt(object.startsAt, 10);
13024
+ else if (typeof object.startsAt === "number")
13025
+ message.startsAt = object.startsAt;
13026
+ else if (typeof object.startsAt === "object")
13027
+ message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
13028
+ if (object.userId != null)
13029
+ message.userId = String(object.userId);
13030
+ if (object.productId != null)
13031
+ message.productId = String(object.productId);
13032
+ switch (object.autoRenewalStatus) {
13033
+ case "UNKNOWN":
13034
+ case 0:
13035
+ message.autoRenewalStatus = 0;
13036
+ break;
13037
+ case "ACTIVE":
13038
+ case 1:
13039
+ message.autoRenewalStatus = 1;
13040
+ break;
13041
+ case "CANCELLED":
13042
+ case 2:
13043
+ message.autoRenewalStatus = 2;
13044
+ break;
13045
+ }
13046
+ if (object.tags) {
13047
+ if (!Array.isArray(object.tags))
13048
+ throw TypeError(".IosSubscriptionAutoRenewalUpdated.tags: array expected");
13049
+ message.tags = [];
13050
+ for (var i = 0; i < object.tags.length; ++i)
13051
+ switch (object.tags[i]) {
13052
+ default:
13053
+ case "IOSTAG_UNKNOWN":
13054
+ case 0:
13055
+ message.tags[i] = 0;
13056
+ break;
13057
+ case "IOSTAG_FREE_TRIAL":
13058
+ case 1:
13059
+ message.tags[i] = 1;
13060
+ break;
13061
+ }
13062
+ }
13063
+ if (object.terms) {
13064
+ if (!Array.isArray(object.terms))
13065
+ throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: array expected");
13066
+ message.terms = [];
13067
+ for (var i = 0; i < object.terms.length; ++i) {
13068
+ if (typeof object.terms[i] !== "object")
13069
+ throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: object expected");
13070
+ message.terms[i] = $root.appleReceipt.IosSubscriptionTerm.fromObject(object.terms[i]);
13071
+ }
13072
+ }
13073
+ return message;
13074
+ };
13075
+
13076
+ /**
13077
+ * Creates a plain object from an IosSubscriptionAutoRenewalUpdated message. Also converts values to other types if specified.
13078
+ * @function toObject
13079
+ * @memberof IosSubscriptionAutoRenewalUpdated
13080
+ * @static
13081
+ * @param {IosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated
13082
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13083
+ * @returns {Object.<string,*>} Plain object
13084
+ */
13085
+ IosSubscriptionAutoRenewalUpdated.toObject = function toObject(message, options) {
13086
+ if (!options)
13087
+ options = {};
13088
+ var object = {};
13089
+ if (options.arrays || options.defaults) {
13090
+ object.tags = [];
13091
+ object.terms = [];
13092
+ }
13093
+ if (options.defaults) {
13094
+ object.id = "";
13095
+ if ($util.Long) {
13096
+ var long = new $util.Long(0, 0, true);
13097
+ object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13098
+ } else
13099
+ object.endsAt = options.longs === String ? "0" : 0;
13100
+ if ($util.Long) {
13101
+ var long = new $util.Long(0, 0, true);
13102
+ object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13103
+ } else
13104
+ object.startsAt = options.longs === String ? "0" : 0;
13105
+ object.userId = "";
13106
+ object.productId = "";
13107
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
13108
+ }
13109
+ if (message.id != null && message.hasOwnProperty("id"))
13110
+ object.id = message.id;
13111
+ if (message.endsAt != null && message.hasOwnProperty("endsAt"))
13112
+ if (typeof message.endsAt === "number")
13113
+ object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
13114
+ else
13115
+ object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
13116
+ if (message.startsAt != null && message.hasOwnProperty("startsAt"))
13117
+ if (typeof message.startsAt === "number")
13118
+ object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
13119
+ else
13120
+ object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
13121
+ if (message.userId != null && message.hasOwnProperty("userId"))
13122
+ object.userId = message.userId;
13123
+ if (message.tags && message.tags.length) {
13124
+ object.tags = [];
13125
+ for (var j = 0; j < message.tags.length; ++j)
13126
+ object.tags[j] = options.enums === String ? $root.appleReceipt.IosSubscriptionTag[message.tags[j]] : message.tags[j];
13127
+ }
13128
+ if (message.terms && message.terms.length) {
13129
+ object.terms = [];
13130
+ for (var j = 0; j < message.terms.length; ++j)
13131
+ object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
13132
+ }
13133
+ if (message.productId != null && message.hasOwnProperty("productId"))
13134
+ object.productId = message.productId;
13135
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
13136
+ object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
13137
+ return object;
13138
+ };
13139
+
13140
+ /**
13141
+ * Converts this IosSubscriptionAutoRenewalUpdated to JSON.
13142
+ * @function toJSON
13143
+ * @memberof IosSubscriptionAutoRenewalUpdated
13144
+ * @instance
13145
+ * @returns {Object.<string,*>} JSON object
13146
+ */
13147
+ IosSubscriptionAutoRenewalUpdated.prototype.toJSON = function toJSON() {
13148
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13149
+ };
13150
+
13151
+ return IosSubscriptionAutoRenewalUpdated;
13152
+ })();
13153
+
13154
+ $root.AssetCreated = (function() {
13155
+
13156
+ /**
13157
+ * Properties of an AssetCreated.
13158
+ * @exports IAssetCreated
13159
+ * @interface IAssetCreated
13160
+ * @property {asset.IAsset|null} [asset] AssetCreated asset
13161
+ */
13162
+
13163
+ /**
13164
+ * Constructs a new AssetCreated.
13165
+ * @exports AssetCreated
13166
+ * @classdesc Represents an AssetCreated.
13167
+ * @implements IAssetCreated
13168
+ * @constructor
13169
+ * @param {IAssetCreated=} [properties] Properties to set
13170
+ */
13171
+ function AssetCreated(properties) {
13172
+ if (properties)
13173
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13174
+ if (properties[keys[i]] != null)
13175
+ this[keys[i]] = properties[keys[i]];
13176
+ }
13177
+
13178
+ /**
13179
+ * AssetCreated asset.
13180
+ * @member {asset.IAsset|null|undefined} asset
13181
+ * @memberof AssetCreated
13182
+ * @instance
13183
+ */
13184
+ AssetCreated.prototype.asset = null;
13185
+
13186
+ /**
13187
+ * Creates a new AssetCreated instance using the specified properties.
13188
+ * @function create
13189
+ * @memberof AssetCreated
13190
+ * @static
13191
+ * @param {IAssetCreated=} [properties] Properties to set
13192
+ * @returns {AssetCreated} AssetCreated instance
13193
+ */
13194
+ AssetCreated.create = function create(properties) {
13195
+ return new AssetCreated(properties);
13196
+ };
13197
+
13198
+ /**
13199
+ * Encodes the specified AssetCreated message. Does not implicitly {@link AssetCreated.verify|verify} messages.
13200
+ * @function encode
13201
+ * @memberof AssetCreated
13202
+ * @static
13203
+ * @param {IAssetCreated} message AssetCreated message or plain object to encode
13204
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13205
+ * @returns {$protobuf.Writer} Writer
13206
+ */
13207
+ AssetCreated.encode = function encode(message, writer) {
13208
+ if (!writer)
13209
+ writer = $Writer.create();
13210
+ if (message.asset != null && message.hasOwnProperty("asset"))
13211
+ $root.asset.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13212
+ return writer;
13213
+ };
13214
+
13215
+ /**
13216
+ * Encodes the specified AssetCreated message, length delimited. Does not implicitly {@link AssetCreated.verify|verify} messages.
13217
+ * @function encodeDelimited
13218
+ * @memberof AssetCreated
13219
+ * @static
13220
+ * @param {IAssetCreated} message AssetCreated message or plain object to encode
13221
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13222
+ * @returns {$protobuf.Writer} Writer
13223
+ */
13224
+ AssetCreated.encodeDelimited = function encodeDelimited(message, writer) {
13225
+ return this.encode(message, writer).ldelim();
13226
+ };
13227
+
13228
+ /**
13229
+ * Decodes an AssetCreated message from the specified reader or buffer.
13230
+ * @function decode
13231
+ * @memberof AssetCreated
13232
+ * @static
13233
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13234
+ * @param {number} [length] Message length if known beforehand
13235
+ * @returns {AssetCreated} AssetCreated
13236
+ * @throws {Error} If the payload is not a reader or valid buffer
13237
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13238
+ */
13239
+ AssetCreated.decode = function decode(reader, length) {
13240
+ if (!(reader instanceof $Reader))
13241
+ reader = $Reader.create(reader);
13242
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AssetCreated();
13243
+ while (reader.pos < end) {
13244
+ var tag = reader.uint32();
13245
+ switch (tag >>> 3) {
13246
+ case 1:
13247
+ message.asset = $root.asset.Asset.decode(reader, reader.uint32());
13248
+ break;
13249
+ default:
13250
+ reader.skipType(tag & 7);
13251
+ break;
13252
+ }
13253
+ }
13254
+ return message;
13255
+ };
13256
+
13257
+ /**
13258
+ * Decodes an AssetCreated message from the specified reader or buffer, length delimited.
13259
+ * @function decodeDelimited
13260
+ * @memberof AssetCreated
13261
+ * @static
13262
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13263
+ * @returns {AssetCreated} AssetCreated
13264
+ * @throws {Error} If the payload is not a reader or valid buffer
13265
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13266
+ */
13267
+ AssetCreated.decodeDelimited = function decodeDelimited(reader) {
13268
+ if (!(reader instanceof $Reader))
13269
+ reader = new $Reader(reader);
13270
+ return this.decode(reader, reader.uint32());
13271
+ };
13272
+
13273
+ /**
13274
+ * Verifies an AssetCreated message.
13275
+ * @function verify
13276
+ * @memberof AssetCreated
13277
+ * @static
13278
+ * @param {Object.<string,*>} message Plain object to verify
13279
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13280
+ */
13281
+ AssetCreated.verify = function verify(message) {
13282
+ if (typeof message !== "object" || message === null)
13283
+ return "object expected";
13284
+ if (message.asset != null && message.hasOwnProperty("asset")) {
13285
+ var error = $root.asset.Asset.verify(message.asset);
13286
+ if (error)
13287
+ return "asset." + error;
13288
+ }
13289
+ return null;
13290
+ };
13291
+
13292
+ /**
13293
+ * Creates an AssetCreated message from a plain object. Also converts values to their respective internal types.
13294
+ * @function fromObject
13295
+ * @memberof AssetCreated
13296
+ * @static
13297
+ * @param {Object.<string,*>} object Plain object
13298
+ * @returns {AssetCreated} AssetCreated
13299
+ */
13300
+ AssetCreated.fromObject = function fromObject(object) {
13301
+ if (object instanceof $root.AssetCreated)
13302
+ return object;
13303
+ var message = new $root.AssetCreated();
13304
+ if (object.asset != null) {
12759
13305
  if (typeof object.asset !== "object")
12760
13306
  throw TypeError(".AssetCreated.asset: object expected");
12761
13307
  message.asset = $root.asset.Asset.fromObject(object.asset);
@@ -16188,6 +16734,7 @@ $root.AccessGroupCreated = (function() {
16188
16734
  * @property {string|null} [accessGroupName] AccessGroupCreated accessGroupName
16189
16735
  * @property {string|null} [description] AccessGroupCreated description
16190
16736
  * @property {number|Long|null} [createdAt] AccessGroupCreated createdAt
16737
+ * @property {string|null} [slug] AccessGroupCreated slug
16191
16738
  */
16192
16739
 
16193
16740
  /**
@@ -16229,6 +16776,14 @@ $root.AccessGroupCreated = (function() {
16229
16776
  */
16230
16777
  AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16231
16778
 
16779
+ /**
16780
+ * AccessGroupCreated slug.
16781
+ * @member {string} slug
16782
+ * @memberof AccessGroupCreated
16783
+ * @instance
16784
+ */
16785
+ AccessGroupCreated.prototype.slug = "";
16786
+
16232
16787
  /**
16233
16788
  * Creates a new AccessGroupCreated instance using the specified properties.
16234
16789
  * @function create
@@ -16259,6 +16814,8 @@ $root.AccessGroupCreated = (function() {
16259
16814
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
16260
16815
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16261
16816
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
16817
+ if (message.slug != null && message.hasOwnProperty("slug"))
16818
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.slug);
16262
16819
  return writer;
16263
16820
  };
16264
16821
 
@@ -16302,6 +16859,9 @@ $root.AccessGroupCreated = (function() {
16302
16859
  case 3:
16303
16860
  message.createdAt = reader.uint64();
16304
16861
  break;
16862
+ case 4:
16863
+ message.slug = reader.string();
16864
+ break;
16305
16865
  default:
16306
16866
  reader.skipType(tag & 7);
16307
16867
  break;
@@ -16346,6 +16906,9 @@ $root.AccessGroupCreated = (function() {
16346
16906
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16347
16907
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
16348
16908
  return "createdAt: integer|Long expected";
16909
+ if (message.slug != null && message.hasOwnProperty("slug"))
16910
+ if (!$util.isString(message.slug))
16911
+ return "slug: string expected";
16349
16912
  return null;
16350
16913
  };
16351
16914
 
@@ -16374,6 +16937,8 @@ $root.AccessGroupCreated = (function() {
16374
16937
  message.createdAt = object.createdAt;
16375
16938
  else if (typeof object.createdAt === "object")
16376
16939
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
16940
+ if (object.slug != null)
16941
+ message.slug = String(object.slug);
16377
16942
  return message;
16378
16943
  };
16379
16944
 
@@ -16398,6 +16963,7 @@ $root.AccessGroupCreated = (function() {
16398
16963
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16399
16964
  } else
16400
16965
  object.createdAt = options.longs === String ? "0" : 0;
16966
+ object.slug = "";
16401
16967
  }
16402
16968
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16403
16969
  object.accessGroupName = message.accessGroupName;
@@ -16408,6 +16974,8 @@ $root.AccessGroupCreated = (function() {
16408
16974
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
16409
16975
  else
16410
16976
  object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
16977
+ if (message.slug != null && message.hasOwnProperty("slug"))
16978
+ object.slug = message.slug;
16411
16979
  return object;
16412
16980
  };
16413
16981
 
@@ -16425,6 +16993,274 @@ $root.AccessGroupCreated = (function() {
16425
16993
  return AccessGroupCreated;
16426
16994
  })();
16427
16995
 
16996
+ $root.AccessGroupUpdated = (function() {
16997
+
16998
+ /**
16999
+ * Properties of an AccessGroupUpdated.
17000
+ * @exports IAccessGroupUpdated
17001
+ * @interface IAccessGroupUpdated
17002
+ * @property {string|null} [accessGroupName] AccessGroupUpdated accessGroupName
17003
+ * @property {string|null} [description] AccessGroupUpdated description
17004
+ * @property {number|Long|null} [updatedAt] AccessGroupUpdated updatedAt
17005
+ * @property {string|null} [slug] AccessGroupUpdated slug
17006
+ */
17007
+
17008
+ /**
17009
+ * Constructs a new AccessGroupUpdated.
17010
+ * @exports AccessGroupUpdated
17011
+ * @classdesc Represents an AccessGroupUpdated.
17012
+ * @implements IAccessGroupUpdated
17013
+ * @constructor
17014
+ * @param {IAccessGroupUpdated=} [properties] Properties to set
17015
+ */
17016
+ function AccessGroupUpdated(properties) {
17017
+ if (properties)
17018
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17019
+ if (properties[keys[i]] != null)
17020
+ this[keys[i]] = properties[keys[i]];
17021
+ }
17022
+
17023
+ /**
17024
+ * AccessGroupUpdated accessGroupName.
17025
+ * @member {string} accessGroupName
17026
+ * @memberof AccessGroupUpdated
17027
+ * @instance
17028
+ */
17029
+ AccessGroupUpdated.prototype.accessGroupName = "";
17030
+
17031
+ /**
17032
+ * AccessGroupUpdated description.
17033
+ * @member {string} description
17034
+ * @memberof AccessGroupUpdated
17035
+ * @instance
17036
+ */
17037
+ AccessGroupUpdated.prototype.description = "";
17038
+
17039
+ /**
17040
+ * AccessGroupUpdated updatedAt.
17041
+ * @member {number|Long} updatedAt
17042
+ * @memberof AccessGroupUpdated
17043
+ * @instance
17044
+ */
17045
+ AccessGroupUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17046
+
17047
+ /**
17048
+ * AccessGroupUpdated slug.
17049
+ * @member {string} slug
17050
+ * @memberof AccessGroupUpdated
17051
+ * @instance
17052
+ */
17053
+ AccessGroupUpdated.prototype.slug = "";
17054
+
17055
+ /**
17056
+ * Creates a new AccessGroupUpdated instance using the specified properties.
17057
+ * @function create
17058
+ * @memberof AccessGroupUpdated
17059
+ * @static
17060
+ * @param {IAccessGroupUpdated=} [properties] Properties to set
17061
+ * @returns {AccessGroupUpdated} AccessGroupUpdated instance
17062
+ */
17063
+ AccessGroupUpdated.create = function create(properties) {
17064
+ return new AccessGroupUpdated(properties);
17065
+ };
17066
+
17067
+ /**
17068
+ * Encodes the specified AccessGroupUpdated message. Does not implicitly {@link AccessGroupUpdated.verify|verify} messages.
17069
+ * @function encode
17070
+ * @memberof AccessGroupUpdated
17071
+ * @static
17072
+ * @param {IAccessGroupUpdated} message AccessGroupUpdated message or plain object to encode
17073
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17074
+ * @returns {$protobuf.Writer} Writer
17075
+ */
17076
+ AccessGroupUpdated.encode = function encode(message, writer) {
17077
+ if (!writer)
17078
+ writer = $Writer.create();
17079
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17080
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
17081
+ if (message.description != null && message.hasOwnProperty("description"))
17082
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
17083
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17084
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
17085
+ if (message.slug != null && message.hasOwnProperty("slug"))
17086
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.slug);
17087
+ return writer;
17088
+ };
17089
+
17090
+ /**
17091
+ * Encodes the specified AccessGroupUpdated message, length delimited. Does not implicitly {@link AccessGroupUpdated.verify|verify} messages.
17092
+ * @function encodeDelimited
17093
+ * @memberof AccessGroupUpdated
17094
+ * @static
17095
+ * @param {IAccessGroupUpdated} message AccessGroupUpdated message or plain object to encode
17096
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17097
+ * @returns {$protobuf.Writer} Writer
17098
+ */
17099
+ AccessGroupUpdated.encodeDelimited = function encodeDelimited(message, writer) {
17100
+ return this.encode(message, writer).ldelim();
17101
+ };
17102
+
17103
+ /**
17104
+ * Decodes an AccessGroupUpdated message from the specified reader or buffer.
17105
+ * @function decode
17106
+ * @memberof AccessGroupUpdated
17107
+ * @static
17108
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17109
+ * @param {number} [length] Message length if known beforehand
17110
+ * @returns {AccessGroupUpdated} AccessGroupUpdated
17111
+ * @throws {Error} If the payload is not a reader or valid buffer
17112
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17113
+ */
17114
+ AccessGroupUpdated.decode = function decode(reader, length) {
17115
+ if (!(reader instanceof $Reader))
17116
+ reader = $Reader.create(reader);
17117
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupUpdated();
17118
+ while (reader.pos < end) {
17119
+ var tag = reader.uint32();
17120
+ switch (tag >>> 3) {
17121
+ case 1:
17122
+ message.accessGroupName = reader.string();
17123
+ break;
17124
+ case 2:
17125
+ message.description = reader.string();
17126
+ break;
17127
+ case 3:
17128
+ message.updatedAt = reader.uint64();
17129
+ break;
17130
+ case 4:
17131
+ message.slug = reader.string();
17132
+ break;
17133
+ default:
17134
+ reader.skipType(tag & 7);
17135
+ break;
17136
+ }
17137
+ }
17138
+ return message;
17139
+ };
17140
+
17141
+ /**
17142
+ * Decodes an AccessGroupUpdated message from the specified reader or buffer, length delimited.
17143
+ * @function decodeDelimited
17144
+ * @memberof AccessGroupUpdated
17145
+ * @static
17146
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17147
+ * @returns {AccessGroupUpdated} AccessGroupUpdated
17148
+ * @throws {Error} If the payload is not a reader or valid buffer
17149
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17150
+ */
17151
+ AccessGroupUpdated.decodeDelimited = function decodeDelimited(reader) {
17152
+ if (!(reader instanceof $Reader))
17153
+ reader = new $Reader(reader);
17154
+ return this.decode(reader, reader.uint32());
17155
+ };
17156
+
17157
+ /**
17158
+ * Verifies an AccessGroupUpdated message.
17159
+ * @function verify
17160
+ * @memberof AccessGroupUpdated
17161
+ * @static
17162
+ * @param {Object.<string,*>} message Plain object to verify
17163
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17164
+ */
17165
+ AccessGroupUpdated.verify = function verify(message) {
17166
+ if (typeof message !== "object" || message === null)
17167
+ return "object expected";
17168
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17169
+ if (!$util.isString(message.accessGroupName))
17170
+ return "accessGroupName: string expected";
17171
+ if (message.description != null && message.hasOwnProperty("description"))
17172
+ if (!$util.isString(message.description))
17173
+ return "description: string expected";
17174
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17175
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
17176
+ return "updatedAt: integer|Long expected";
17177
+ if (message.slug != null && message.hasOwnProperty("slug"))
17178
+ if (!$util.isString(message.slug))
17179
+ return "slug: string expected";
17180
+ return null;
17181
+ };
17182
+
17183
+ /**
17184
+ * Creates an AccessGroupUpdated message from a plain object. Also converts values to their respective internal types.
17185
+ * @function fromObject
17186
+ * @memberof AccessGroupUpdated
17187
+ * @static
17188
+ * @param {Object.<string,*>} object Plain object
17189
+ * @returns {AccessGroupUpdated} AccessGroupUpdated
17190
+ */
17191
+ AccessGroupUpdated.fromObject = function fromObject(object) {
17192
+ if (object instanceof $root.AccessGroupUpdated)
17193
+ return object;
17194
+ var message = new $root.AccessGroupUpdated();
17195
+ if (object.accessGroupName != null)
17196
+ message.accessGroupName = String(object.accessGroupName);
17197
+ if (object.description != null)
17198
+ message.description = String(object.description);
17199
+ if (object.updatedAt != null)
17200
+ if ($util.Long)
17201
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
17202
+ else if (typeof object.updatedAt === "string")
17203
+ message.updatedAt = parseInt(object.updatedAt, 10);
17204
+ else if (typeof object.updatedAt === "number")
17205
+ message.updatedAt = object.updatedAt;
17206
+ else if (typeof object.updatedAt === "object")
17207
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
17208
+ if (object.slug != null)
17209
+ message.slug = String(object.slug);
17210
+ return message;
17211
+ };
17212
+
17213
+ /**
17214
+ * Creates a plain object from an AccessGroupUpdated message. Also converts values to other types if specified.
17215
+ * @function toObject
17216
+ * @memberof AccessGroupUpdated
17217
+ * @static
17218
+ * @param {AccessGroupUpdated} message AccessGroupUpdated
17219
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17220
+ * @returns {Object.<string,*>} Plain object
17221
+ */
17222
+ AccessGroupUpdated.toObject = function toObject(message, options) {
17223
+ if (!options)
17224
+ options = {};
17225
+ var object = {};
17226
+ if (options.defaults) {
17227
+ object.accessGroupName = "";
17228
+ object.description = "";
17229
+ if ($util.Long) {
17230
+ var long = new $util.Long(0, 0, true);
17231
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17232
+ } else
17233
+ object.updatedAt = options.longs === String ? "0" : 0;
17234
+ object.slug = "";
17235
+ }
17236
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17237
+ object.accessGroupName = message.accessGroupName;
17238
+ if (message.description != null && message.hasOwnProperty("description"))
17239
+ object.description = message.description;
17240
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17241
+ if (typeof message.updatedAt === "number")
17242
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
17243
+ else
17244
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
17245
+ if (message.slug != null && message.hasOwnProperty("slug"))
17246
+ object.slug = message.slug;
17247
+ return object;
17248
+ };
17249
+
17250
+ /**
17251
+ * Converts this AccessGroupUpdated to JSON.
17252
+ * @function toJSON
17253
+ * @memberof AccessGroupUpdated
17254
+ * @instance
17255
+ * @returns {Object.<string,*>} JSON object
17256
+ */
17257
+ AccessGroupUpdated.prototype.toJSON = function toJSON() {
17258
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17259
+ };
17260
+
17261
+ return AccessGroupUpdated;
17262
+ })();
17263
+
16428
17264
  $root.AccessGroupDeleted = (function() {
16429
17265
 
16430
17266
  /**
@@ -16433,6 +17269,7 @@ $root.AccessGroupDeleted = (function() {
16433
17269
  * @interface IAccessGroupDeleted
16434
17270
  * @property {string|null} [accessGroupName] AccessGroupDeleted accessGroupName
16435
17271
  * @property {number|Long|null} [deletedAt] AccessGroupDeleted deletedAt
17272
+ * @property {string|null} [slug] AccessGroupDeleted slug
16436
17273
  */
16437
17274
 
16438
17275
  /**
@@ -16466,6 +17303,14 @@ $root.AccessGroupDeleted = (function() {
16466
17303
  */
16467
17304
  AccessGroupDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16468
17305
 
17306
+ /**
17307
+ * AccessGroupDeleted slug.
17308
+ * @member {string} slug
17309
+ * @memberof AccessGroupDeleted
17310
+ * @instance
17311
+ */
17312
+ AccessGroupDeleted.prototype.slug = "";
17313
+
16469
17314
  /**
16470
17315
  * Creates a new AccessGroupDeleted instance using the specified properties.
16471
17316
  * @function create
@@ -16494,6 +17339,8 @@ $root.AccessGroupDeleted = (function() {
16494
17339
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
16495
17340
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
16496
17341
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
17342
+ if (message.slug != null && message.hasOwnProperty("slug"))
17343
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
16497
17344
  return writer;
16498
17345
  };
16499
17346
 
@@ -16534,6 +17381,9 @@ $root.AccessGroupDeleted = (function() {
16534
17381
  case 2:
16535
17382
  message.deletedAt = reader.uint64();
16536
17383
  break;
17384
+ case 3:
17385
+ message.slug = reader.string();
17386
+ break;
16537
17387
  default:
16538
17388
  reader.skipType(tag & 7);
16539
17389
  break;
@@ -16575,6 +17425,9 @@ $root.AccessGroupDeleted = (function() {
16575
17425
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
16576
17426
  if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
16577
17427
  return "deletedAt: integer|Long expected";
17428
+ if (message.slug != null && message.hasOwnProperty("slug"))
17429
+ if (!$util.isString(message.slug))
17430
+ return "slug: string expected";
16578
17431
  return null;
16579
17432
  };
16580
17433
 
@@ -16601,6 +17454,8 @@ $root.AccessGroupDeleted = (function() {
16601
17454
  message.deletedAt = object.deletedAt;
16602
17455
  else if (typeof object.deletedAt === "object")
16603
17456
  message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
17457
+ if (object.slug != null)
17458
+ message.slug = String(object.slug);
16604
17459
  return message;
16605
17460
  };
16606
17461
 
@@ -16624,6 +17479,7 @@ $root.AccessGroupDeleted = (function() {
16624
17479
  object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16625
17480
  } else
16626
17481
  object.deletedAt = options.longs === String ? "0" : 0;
17482
+ object.slug = "";
16627
17483
  }
16628
17484
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16629
17485
  object.accessGroupName = message.accessGroupName;
@@ -16632,6 +17488,8 @@ $root.AccessGroupDeleted = (function() {
16632
17488
  object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
16633
17489
  else
16634
17490
  object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
17491
+ if (message.slug != null && message.hasOwnProperty("slug"))
17492
+ object.slug = message.slug;
16635
17493
  return object;
16636
17494
  };
16637
17495