@headspace/protos-events 1.431.0 → 1.432.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -37054,6 +37054,155 @@ export class ModuleDescriptorDeleted implements IModuleDescriptorDeleted {
37054
37054
  public toJSON(): { [k: string]: any };
37055
37055
  }
37056
37056
 
37057
+ /** Properties of a ModerationActionPerformed. */
37058
+ export interface IModerationActionPerformed {
37059
+
37060
+ /** ModerationActionPerformed reportId */
37061
+ reportId?: (string|null);
37062
+
37063
+ /** ModerationActionPerformed moderatorId */
37064
+ moderatorId?: (string|null);
37065
+
37066
+ /** ModerationActionPerformed actionType */
37067
+ actionType?: (ModerationActionPerformed.ActionType|null);
37068
+
37069
+ /** ModerationActionPerformed actionDescription */
37070
+ actionDescription?: (string|null);
37071
+
37072
+ /** ModerationActionPerformed proposedReportCategories */
37073
+ proposedReportCategories?: (ModerationActionPerformed.ReportCategory[]|null);
37074
+
37075
+ /** ModerationActionPerformed createdAt */
37076
+ createdAt?: (number|Long|null);
37077
+ }
37078
+
37079
+ /** Represents a ModerationActionPerformed. */
37080
+ export class ModerationActionPerformed implements IModerationActionPerformed {
37081
+
37082
+ /**
37083
+ * Constructs a new ModerationActionPerformed.
37084
+ * @param [properties] Properties to set
37085
+ */
37086
+ constructor(properties?: IModerationActionPerformed);
37087
+
37088
+ /** ModerationActionPerformed reportId. */
37089
+ public reportId: string;
37090
+
37091
+ /** ModerationActionPerformed moderatorId. */
37092
+ public moderatorId: string;
37093
+
37094
+ /** ModerationActionPerformed actionType. */
37095
+ public actionType: ModerationActionPerformed.ActionType;
37096
+
37097
+ /** ModerationActionPerformed actionDescription. */
37098
+ public actionDescription: string;
37099
+
37100
+ /** ModerationActionPerformed proposedReportCategories. */
37101
+ public proposedReportCategories: ModerationActionPerformed.ReportCategory[];
37102
+
37103
+ /** ModerationActionPerformed createdAt. */
37104
+ public createdAt: (number|Long);
37105
+
37106
+ /**
37107
+ * Creates a new ModerationActionPerformed instance using the specified properties.
37108
+ * @param [properties] Properties to set
37109
+ * @returns ModerationActionPerformed instance
37110
+ */
37111
+ public static create(properties?: IModerationActionPerformed): ModerationActionPerformed;
37112
+
37113
+ /**
37114
+ * Encodes the specified ModerationActionPerformed message. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
37115
+ * @param message ModerationActionPerformed message or plain object to encode
37116
+ * @param [writer] Writer to encode to
37117
+ * @returns Writer
37118
+ */
37119
+ public static encode(message: IModerationActionPerformed, writer?: $protobuf.Writer): $protobuf.Writer;
37120
+
37121
+ /**
37122
+ * Encodes the specified ModerationActionPerformed message, length delimited. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
37123
+ * @param message ModerationActionPerformed message or plain object to encode
37124
+ * @param [writer] Writer to encode to
37125
+ * @returns Writer
37126
+ */
37127
+ public static encodeDelimited(message: IModerationActionPerformed, writer?: $protobuf.Writer): $protobuf.Writer;
37128
+
37129
+ /**
37130
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer.
37131
+ * @param reader Reader or buffer to decode from
37132
+ * @param [length] Message length if known beforehand
37133
+ * @returns ModerationActionPerformed
37134
+ * @throws {Error} If the payload is not a reader or valid buffer
37135
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37136
+ */
37137
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ModerationActionPerformed;
37138
+
37139
+ /**
37140
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer, length delimited.
37141
+ * @param reader Reader or buffer to decode from
37142
+ * @returns ModerationActionPerformed
37143
+ * @throws {Error} If the payload is not a reader or valid buffer
37144
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37145
+ */
37146
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ModerationActionPerformed;
37147
+
37148
+ /**
37149
+ * Verifies a ModerationActionPerformed message.
37150
+ * @param message Plain object to verify
37151
+ * @returns `null` if valid, otherwise the reason why it is not
37152
+ */
37153
+ public static verify(message: { [k: string]: any }): (string|null);
37154
+
37155
+ /**
37156
+ * Creates a ModerationActionPerformed message from a plain object. Also converts values to their respective internal types.
37157
+ * @param object Plain object
37158
+ * @returns ModerationActionPerformed
37159
+ */
37160
+ public static fromObject(object: { [k: string]: any }): ModerationActionPerformed;
37161
+
37162
+ /**
37163
+ * Creates a plain object from a ModerationActionPerformed message. Also converts values to other types if specified.
37164
+ * @param message ModerationActionPerformed
37165
+ * @param [options] Conversion options
37166
+ * @returns Plain object
37167
+ */
37168
+ public static toObject(message: ModerationActionPerformed, options?: $protobuf.IConversionOptions): { [k: string]: any };
37169
+
37170
+ /**
37171
+ * Converts this ModerationActionPerformed to JSON.
37172
+ * @returns JSON object
37173
+ */
37174
+ public toJSON(): { [k: string]: any };
37175
+ }
37176
+
37177
+ export namespace ModerationActionPerformed {
37178
+
37179
+ /** ActionType enum. */
37180
+ enum ActionType {
37181
+ ACTION_TYPE_UNKNOWN = 0,
37182
+ ACTION_TYPE_CATEGORIES_UPDATE = 1,
37183
+ ACTION_TYPE_UPDATE_AS_SAFE = 2,
37184
+ ACTION_TYPE_USER_BAN = 3,
37185
+ ACTION_TYPE_USER_ESCALATE = 4,
37186
+ ACTION_TYPE_REPORT_RESOLVE = 5
37187
+ }
37188
+
37189
+ /** ReportCategory enum. */
37190
+ enum ReportCategory {
37191
+ REPORT_CATEGORY_UNKNOWN = 0,
37192
+ REPORT_CATEGORY_SAFE = 1,
37193
+ REPORT_CATEGORY_OBSCENITY = 2,
37194
+ REPORT_CATEGORY_SUICIDAL_IDEATION = 3,
37195
+ REPORT_CATEGORY_TRIGGERING = 4,
37196
+ REPORT_CATEGORY_HATE = 5,
37197
+ REPORT_CATEGORY_THREATENING = 6,
37198
+ REPORT_CATEGORY_SELF_HARM = 7,
37199
+ REPORT_CATEGORY_SEXUAL = 8,
37200
+ REPORT_CATEGORY_SEXUAL_MINORS = 9,
37201
+ REPORT_CATEGORY_VIOLENCE = 10,
37202
+ REPORT_CATEGORY_VIOLENCE_GRAPHIC = 11
37203
+ }
37204
+ }
37205
+
37057
37206
  /** Properties of a WakeupPlaylistCreated. */
37058
37207
  export interface IWakeupPlaylistCreated {
37059
37208
 
package/lib/index.js CHANGED
@@ -104313,6 +104313,497 @@ $root.ModuleDescriptorDeleted = (function() {
104313
104313
  return ModuleDescriptorDeleted;
104314
104314
  })();
104315
104315
 
104316
+ $root.ModerationActionPerformed = (function() {
104317
+
104318
+ /**
104319
+ * Properties of a ModerationActionPerformed.
104320
+ * @exports IModerationActionPerformed
104321
+ * @interface IModerationActionPerformed
104322
+ * @property {string|null} [reportId] ModerationActionPerformed reportId
104323
+ * @property {string|null} [moderatorId] ModerationActionPerformed moderatorId
104324
+ * @property {ModerationActionPerformed.ActionType|null} [actionType] ModerationActionPerformed actionType
104325
+ * @property {string|null} [actionDescription] ModerationActionPerformed actionDescription
104326
+ * @property {Array.<ModerationActionPerformed.ReportCategory>|null} [proposedReportCategories] ModerationActionPerformed proposedReportCategories
104327
+ * @property {number|Long|null} [createdAt] ModerationActionPerformed createdAt
104328
+ */
104329
+
104330
+ /**
104331
+ * Constructs a new ModerationActionPerformed.
104332
+ * @exports ModerationActionPerformed
104333
+ * @classdesc Represents a ModerationActionPerformed.
104334
+ * @implements IModerationActionPerformed
104335
+ * @constructor
104336
+ * @param {IModerationActionPerformed=} [properties] Properties to set
104337
+ */
104338
+ function ModerationActionPerformed(properties) {
104339
+ this.proposedReportCategories = [];
104340
+ if (properties)
104341
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
104342
+ if (properties[keys[i]] != null)
104343
+ this[keys[i]] = properties[keys[i]];
104344
+ }
104345
+
104346
+ /**
104347
+ * ModerationActionPerformed reportId.
104348
+ * @member {string} reportId
104349
+ * @memberof ModerationActionPerformed
104350
+ * @instance
104351
+ */
104352
+ ModerationActionPerformed.prototype.reportId = "";
104353
+
104354
+ /**
104355
+ * ModerationActionPerformed moderatorId.
104356
+ * @member {string} moderatorId
104357
+ * @memberof ModerationActionPerformed
104358
+ * @instance
104359
+ */
104360
+ ModerationActionPerformed.prototype.moderatorId = "";
104361
+
104362
+ /**
104363
+ * ModerationActionPerformed actionType.
104364
+ * @member {ModerationActionPerformed.ActionType} actionType
104365
+ * @memberof ModerationActionPerformed
104366
+ * @instance
104367
+ */
104368
+ ModerationActionPerformed.prototype.actionType = 0;
104369
+
104370
+ /**
104371
+ * ModerationActionPerformed actionDescription.
104372
+ * @member {string} actionDescription
104373
+ * @memberof ModerationActionPerformed
104374
+ * @instance
104375
+ */
104376
+ ModerationActionPerformed.prototype.actionDescription = "";
104377
+
104378
+ /**
104379
+ * ModerationActionPerformed proposedReportCategories.
104380
+ * @member {Array.<ModerationActionPerformed.ReportCategory>} proposedReportCategories
104381
+ * @memberof ModerationActionPerformed
104382
+ * @instance
104383
+ */
104384
+ ModerationActionPerformed.prototype.proposedReportCategories = $util.emptyArray;
104385
+
104386
+ /**
104387
+ * ModerationActionPerformed createdAt.
104388
+ * @member {number|Long} createdAt
104389
+ * @memberof ModerationActionPerformed
104390
+ * @instance
104391
+ */
104392
+ ModerationActionPerformed.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
104393
+
104394
+ /**
104395
+ * Creates a new ModerationActionPerformed instance using the specified properties.
104396
+ * @function create
104397
+ * @memberof ModerationActionPerformed
104398
+ * @static
104399
+ * @param {IModerationActionPerformed=} [properties] Properties to set
104400
+ * @returns {ModerationActionPerformed} ModerationActionPerformed instance
104401
+ */
104402
+ ModerationActionPerformed.create = function create(properties) {
104403
+ return new ModerationActionPerformed(properties);
104404
+ };
104405
+
104406
+ /**
104407
+ * Encodes the specified ModerationActionPerformed message. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
104408
+ * @function encode
104409
+ * @memberof ModerationActionPerformed
104410
+ * @static
104411
+ * @param {IModerationActionPerformed} message ModerationActionPerformed message or plain object to encode
104412
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104413
+ * @returns {$protobuf.Writer} Writer
104414
+ */
104415
+ ModerationActionPerformed.encode = function encode(message, writer) {
104416
+ if (!writer)
104417
+ writer = $Writer.create();
104418
+ if (message.reportId != null && message.hasOwnProperty("reportId"))
104419
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reportId);
104420
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
104421
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.moderatorId);
104422
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
104423
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actionType);
104424
+ if (message.actionDescription != null && message.hasOwnProperty("actionDescription"))
104425
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionDescription);
104426
+ if (message.proposedReportCategories != null && message.proposedReportCategories.length) {
104427
+ writer.uint32(/* id 5, wireType 2 =*/42).fork();
104428
+ for (var i = 0; i < message.proposedReportCategories.length; ++i)
104429
+ writer.int32(message.proposedReportCategories[i]);
104430
+ writer.ldelim();
104431
+ }
104432
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104433
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
104434
+ return writer;
104435
+ };
104436
+
104437
+ /**
104438
+ * Encodes the specified ModerationActionPerformed message, length delimited. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
104439
+ * @function encodeDelimited
104440
+ * @memberof ModerationActionPerformed
104441
+ * @static
104442
+ * @param {IModerationActionPerformed} message ModerationActionPerformed message or plain object to encode
104443
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104444
+ * @returns {$protobuf.Writer} Writer
104445
+ */
104446
+ ModerationActionPerformed.encodeDelimited = function encodeDelimited(message, writer) {
104447
+ return this.encode(message, writer).ldelim();
104448
+ };
104449
+
104450
+ /**
104451
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer.
104452
+ * @function decode
104453
+ * @memberof ModerationActionPerformed
104454
+ * @static
104455
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104456
+ * @param {number} [length] Message length if known beforehand
104457
+ * @returns {ModerationActionPerformed} ModerationActionPerformed
104458
+ * @throws {Error} If the payload is not a reader or valid buffer
104459
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104460
+ */
104461
+ ModerationActionPerformed.decode = function decode(reader, length) {
104462
+ if (!(reader instanceof $Reader))
104463
+ reader = $Reader.create(reader);
104464
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModerationActionPerformed();
104465
+ while (reader.pos < end) {
104466
+ var tag = reader.uint32();
104467
+ switch (tag >>> 3) {
104468
+ case 1:
104469
+ message.reportId = reader.string();
104470
+ break;
104471
+ case 2:
104472
+ message.moderatorId = reader.string();
104473
+ break;
104474
+ case 3:
104475
+ message.actionType = reader.int32();
104476
+ break;
104477
+ case 4:
104478
+ message.actionDescription = reader.string();
104479
+ break;
104480
+ case 5:
104481
+ if (!(message.proposedReportCategories && message.proposedReportCategories.length))
104482
+ message.proposedReportCategories = [];
104483
+ if ((tag & 7) === 2) {
104484
+ var end2 = reader.uint32() + reader.pos;
104485
+ while (reader.pos < end2)
104486
+ message.proposedReportCategories.push(reader.int32());
104487
+ } else
104488
+ message.proposedReportCategories.push(reader.int32());
104489
+ break;
104490
+ case 6:
104491
+ message.createdAt = reader.uint64();
104492
+ break;
104493
+ default:
104494
+ reader.skipType(tag & 7);
104495
+ break;
104496
+ }
104497
+ }
104498
+ return message;
104499
+ };
104500
+
104501
+ /**
104502
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer, length delimited.
104503
+ * @function decodeDelimited
104504
+ * @memberof ModerationActionPerformed
104505
+ * @static
104506
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104507
+ * @returns {ModerationActionPerformed} ModerationActionPerformed
104508
+ * @throws {Error} If the payload is not a reader or valid buffer
104509
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104510
+ */
104511
+ ModerationActionPerformed.decodeDelimited = function decodeDelimited(reader) {
104512
+ if (!(reader instanceof $Reader))
104513
+ reader = new $Reader(reader);
104514
+ return this.decode(reader, reader.uint32());
104515
+ };
104516
+
104517
+ /**
104518
+ * Verifies a ModerationActionPerformed message.
104519
+ * @function verify
104520
+ * @memberof ModerationActionPerformed
104521
+ * @static
104522
+ * @param {Object.<string,*>} message Plain object to verify
104523
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
104524
+ */
104525
+ ModerationActionPerformed.verify = function verify(message) {
104526
+ if (typeof message !== "object" || message === null)
104527
+ return "object expected";
104528
+ if (message.reportId != null && message.hasOwnProperty("reportId"))
104529
+ if (!$util.isString(message.reportId))
104530
+ return "reportId: string expected";
104531
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
104532
+ if (!$util.isString(message.moderatorId))
104533
+ return "moderatorId: string expected";
104534
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
104535
+ switch (message.actionType) {
104536
+ default:
104537
+ return "actionType: enum value expected";
104538
+ case 0:
104539
+ case 1:
104540
+ case 2:
104541
+ case 3:
104542
+ case 4:
104543
+ case 5:
104544
+ break;
104545
+ }
104546
+ if (message.actionDescription != null && message.hasOwnProperty("actionDescription"))
104547
+ if (!$util.isString(message.actionDescription))
104548
+ return "actionDescription: string expected";
104549
+ if (message.proposedReportCategories != null && message.hasOwnProperty("proposedReportCategories")) {
104550
+ if (!Array.isArray(message.proposedReportCategories))
104551
+ return "proposedReportCategories: array expected";
104552
+ for (var i = 0; i < message.proposedReportCategories.length; ++i)
104553
+ switch (message.proposedReportCategories[i]) {
104554
+ default:
104555
+ return "proposedReportCategories: enum value[] expected";
104556
+ case 0:
104557
+ case 1:
104558
+ case 2:
104559
+ case 3:
104560
+ case 4:
104561
+ case 5:
104562
+ case 6:
104563
+ case 7:
104564
+ case 8:
104565
+ case 9:
104566
+ case 10:
104567
+ case 11:
104568
+ break;
104569
+ }
104570
+ }
104571
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104572
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
104573
+ return "createdAt: integer|Long expected";
104574
+ return null;
104575
+ };
104576
+
104577
+ /**
104578
+ * Creates a ModerationActionPerformed message from a plain object. Also converts values to their respective internal types.
104579
+ * @function fromObject
104580
+ * @memberof ModerationActionPerformed
104581
+ * @static
104582
+ * @param {Object.<string,*>} object Plain object
104583
+ * @returns {ModerationActionPerformed} ModerationActionPerformed
104584
+ */
104585
+ ModerationActionPerformed.fromObject = function fromObject(object) {
104586
+ if (object instanceof $root.ModerationActionPerformed)
104587
+ return object;
104588
+ var message = new $root.ModerationActionPerformed();
104589
+ if (object.reportId != null)
104590
+ message.reportId = String(object.reportId);
104591
+ if (object.moderatorId != null)
104592
+ message.moderatorId = String(object.moderatorId);
104593
+ switch (object.actionType) {
104594
+ case "ACTION_TYPE_UNKNOWN":
104595
+ case 0:
104596
+ message.actionType = 0;
104597
+ break;
104598
+ case "ACTION_TYPE_CATEGORIES_UPDATE":
104599
+ case 1:
104600
+ message.actionType = 1;
104601
+ break;
104602
+ case "ACTION_TYPE_UPDATE_AS_SAFE":
104603
+ case 2:
104604
+ message.actionType = 2;
104605
+ break;
104606
+ case "ACTION_TYPE_USER_BAN":
104607
+ case 3:
104608
+ message.actionType = 3;
104609
+ break;
104610
+ case "ACTION_TYPE_USER_ESCALATE":
104611
+ case 4:
104612
+ message.actionType = 4;
104613
+ break;
104614
+ case "ACTION_TYPE_REPORT_RESOLVE":
104615
+ case 5:
104616
+ message.actionType = 5;
104617
+ break;
104618
+ }
104619
+ if (object.actionDescription != null)
104620
+ message.actionDescription = String(object.actionDescription);
104621
+ if (object.proposedReportCategories) {
104622
+ if (!Array.isArray(object.proposedReportCategories))
104623
+ throw TypeError(".ModerationActionPerformed.proposedReportCategories: array expected");
104624
+ message.proposedReportCategories = [];
104625
+ for (var i = 0; i < object.proposedReportCategories.length; ++i)
104626
+ switch (object.proposedReportCategories[i]) {
104627
+ default:
104628
+ case "REPORT_CATEGORY_UNKNOWN":
104629
+ case 0:
104630
+ message.proposedReportCategories[i] = 0;
104631
+ break;
104632
+ case "REPORT_CATEGORY_SAFE":
104633
+ case 1:
104634
+ message.proposedReportCategories[i] = 1;
104635
+ break;
104636
+ case "REPORT_CATEGORY_OBSCENITY":
104637
+ case 2:
104638
+ message.proposedReportCategories[i] = 2;
104639
+ break;
104640
+ case "REPORT_CATEGORY_SUICIDAL_IDEATION":
104641
+ case 3:
104642
+ message.proposedReportCategories[i] = 3;
104643
+ break;
104644
+ case "REPORT_CATEGORY_TRIGGERING":
104645
+ case 4:
104646
+ message.proposedReportCategories[i] = 4;
104647
+ break;
104648
+ case "REPORT_CATEGORY_HATE":
104649
+ case 5:
104650
+ message.proposedReportCategories[i] = 5;
104651
+ break;
104652
+ case "REPORT_CATEGORY_THREATENING":
104653
+ case 6:
104654
+ message.proposedReportCategories[i] = 6;
104655
+ break;
104656
+ case "REPORT_CATEGORY_SELF_HARM":
104657
+ case 7:
104658
+ message.proposedReportCategories[i] = 7;
104659
+ break;
104660
+ case "REPORT_CATEGORY_SEXUAL":
104661
+ case 8:
104662
+ message.proposedReportCategories[i] = 8;
104663
+ break;
104664
+ case "REPORT_CATEGORY_SEXUAL_MINORS":
104665
+ case 9:
104666
+ message.proposedReportCategories[i] = 9;
104667
+ break;
104668
+ case "REPORT_CATEGORY_VIOLENCE":
104669
+ case 10:
104670
+ message.proposedReportCategories[i] = 10;
104671
+ break;
104672
+ case "REPORT_CATEGORY_VIOLENCE_GRAPHIC":
104673
+ case 11:
104674
+ message.proposedReportCategories[i] = 11;
104675
+ break;
104676
+ }
104677
+ }
104678
+ if (object.createdAt != null)
104679
+ if ($util.Long)
104680
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
104681
+ else if (typeof object.createdAt === "string")
104682
+ message.createdAt = parseInt(object.createdAt, 10);
104683
+ else if (typeof object.createdAt === "number")
104684
+ message.createdAt = object.createdAt;
104685
+ else if (typeof object.createdAt === "object")
104686
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
104687
+ return message;
104688
+ };
104689
+
104690
+ /**
104691
+ * Creates a plain object from a ModerationActionPerformed message. Also converts values to other types if specified.
104692
+ * @function toObject
104693
+ * @memberof ModerationActionPerformed
104694
+ * @static
104695
+ * @param {ModerationActionPerformed} message ModerationActionPerformed
104696
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
104697
+ * @returns {Object.<string,*>} Plain object
104698
+ */
104699
+ ModerationActionPerformed.toObject = function toObject(message, options) {
104700
+ if (!options)
104701
+ options = {};
104702
+ var object = {};
104703
+ if (options.arrays || options.defaults)
104704
+ object.proposedReportCategories = [];
104705
+ if (options.defaults) {
104706
+ object.reportId = "";
104707
+ object.moderatorId = "";
104708
+ object.actionType = options.enums === String ? "ACTION_TYPE_UNKNOWN" : 0;
104709
+ object.actionDescription = "";
104710
+ if ($util.Long) {
104711
+ var long = new $util.Long(0, 0, true);
104712
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
104713
+ } else
104714
+ object.createdAt = options.longs === String ? "0" : 0;
104715
+ }
104716
+ if (message.reportId != null && message.hasOwnProperty("reportId"))
104717
+ object.reportId = message.reportId;
104718
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
104719
+ object.moderatorId = message.moderatorId;
104720
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
104721
+ object.actionType = options.enums === String ? $root.ModerationActionPerformed.ActionType[message.actionType] : message.actionType;
104722
+ if (message.actionDescription != null && message.hasOwnProperty("actionDescription"))
104723
+ object.actionDescription = message.actionDescription;
104724
+ if (message.proposedReportCategories && message.proposedReportCategories.length) {
104725
+ object.proposedReportCategories = [];
104726
+ for (var j = 0; j < message.proposedReportCategories.length; ++j)
104727
+ object.proposedReportCategories[j] = options.enums === String ? $root.ModerationActionPerformed.ReportCategory[message.proposedReportCategories[j]] : message.proposedReportCategories[j];
104728
+ }
104729
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104730
+ if (typeof message.createdAt === "number")
104731
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
104732
+ else
104733
+ 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;
104734
+ return object;
104735
+ };
104736
+
104737
+ /**
104738
+ * Converts this ModerationActionPerformed to JSON.
104739
+ * @function toJSON
104740
+ * @memberof ModerationActionPerformed
104741
+ * @instance
104742
+ * @returns {Object.<string,*>} JSON object
104743
+ */
104744
+ ModerationActionPerformed.prototype.toJSON = function toJSON() {
104745
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
104746
+ };
104747
+
104748
+ /**
104749
+ * ActionType enum.
104750
+ * @name ModerationActionPerformed.ActionType
104751
+ * @enum {string}
104752
+ * @property {number} ACTION_TYPE_UNKNOWN=0 ACTION_TYPE_UNKNOWN value
104753
+ * @property {number} ACTION_TYPE_CATEGORIES_UPDATE=1 ACTION_TYPE_CATEGORIES_UPDATE value
104754
+ * @property {number} ACTION_TYPE_UPDATE_AS_SAFE=2 ACTION_TYPE_UPDATE_AS_SAFE value
104755
+ * @property {number} ACTION_TYPE_USER_BAN=3 ACTION_TYPE_USER_BAN value
104756
+ * @property {number} ACTION_TYPE_USER_ESCALATE=4 ACTION_TYPE_USER_ESCALATE value
104757
+ * @property {number} ACTION_TYPE_REPORT_RESOLVE=5 ACTION_TYPE_REPORT_RESOLVE value
104758
+ */
104759
+ ModerationActionPerformed.ActionType = (function() {
104760
+ var valuesById = {}, values = Object.create(valuesById);
104761
+ values[valuesById[0] = "ACTION_TYPE_UNKNOWN"] = 0;
104762
+ values[valuesById[1] = "ACTION_TYPE_CATEGORIES_UPDATE"] = 1;
104763
+ values[valuesById[2] = "ACTION_TYPE_UPDATE_AS_SAFE"] = 2;
104764
+ values[valuesById[3] = "ACTION_TYPE_USER_BAN"] = 3;
104765
+ values[valuesById[4] = "ACTION_TYPE_USER_ESCALATE"] = 4;
104766
+ values[valuesById[5] = "ACTION_TYPE_REPORT_RESOLVE"] = 5;
104767
+ return values;
104768
+ })();
104769
+
104770
+ /**
104771
+ * ReportCategory enum.
104772
+ * @name ModerationActionPerformed.ReportCategory
104773
+ * @enum {string}
104774
+ * @property {number} REPORT_CATEGORY_UNKNOWN=0 REPORT_CATEGORY_UNKNOWN value
104775
+ * @property {number} REPORT_CATEGORY_SAFE=1 REPORT_CATEGORY_SAFE value
104776
+ * @property {number} REPORT_CATEGORY_OBSCENITY=2 REPORT_CATEGORY_OBSCENITY value
104777
+ * @property {number} REPORT_CATEGORY_SUICIDAL_IDEATION=3 REPORT_CATEGORY_SUICIDAL_IDEATION value
104778
+ * @property {number} REPORT_CATEGORY_TRIGGERING=4 REPORT_CATEGORY_TRIGGERING value
104779
+ * @property {number} REPORT_CATEGORY_HATE=5 REPORT_CATEGORY_HATE value
104780
+ * @property {number} REPORT_CATEGORY_THREATENING=6 REPORT_CATEGORY_THREATENING value
104781
+ * @property {number} REPORT_CATEGORY_SELF_HARM=7 REPORT_CATEGORY_SELF_HARM value
104782
+ * @property {number} REPORT_CATEGORY_SEXUAL=8 REPORT_CATEGORY_SEXUAL value
104783
+ * @property {number} REPORT_CATEGORY_SEXUAL_MINORS=9 REPORT_CATEGORY_SEXUAL_MINORS value
104784
+ * @property {number} REPORT_CATEGORY_VIOLENCE=10 REPORT_CATEGORY_VIOLENCE value
104785
+ * @property {number} REPORT_CATEGORY_VIOLENCE_GRAPHIC=11 REPORT_CATEGORY_VIOLENCE_GRAPHIC value
104786
+ */
104787
+ ModerationActionPerformed.ReportCategory = (function() {
104788
+ var valuesById = {}, values = Object.create(valuesById);
104789
+ values[valuesById[0] = "REPORT_CATEGORY_UNKNOWN"] = 0;
104790
+ values[valuesById[1] = "REPORT_CATEGORY_SAFE"] = 1;
104791
+ values[valuesById[2] = "REPORT_CATEGORY_OBSCENITY"] = 2;
104792
+ values[valuesById[3] = "REPORT_CATEGORY_SUICIDAL_IDEATION"] = 3;
104793
+ values[valuesById[4] = "REPORT_CATEGORY_TRIGGERING"] = 4;
104794
+ values[valuesById[5] = "REPORT_CATEGORY_HATE"] = 5;
104795
+ values[valuesById[6] = "REPORT_CATEGORY_THREATENING"] = 6;
104796
+ values[valuesById[7] = "REPORT_CATEGORY_SELF_HARM"] = 7;
104797
+ values[valuesById[8] = "REPORT_CATEGORY_SEXUAL"] = 8;
104798
+ values[valuesById[9] = "REPORT_CATEGORY_SEXUAL_MINORS"] = 9;
104799
+ values[valuesById[10] = "REPORT_CATEGORY_VIOLENCE"] = 10;
104800
+ values[valuesById[11] = "REPORT_CATEGORY_VIOLENCE_GRAPHIC"] = 11;
104801
+ return values;
104802
+ })();
104803
+
104804
+ return ModerationActionPerformed;
104805
+ })();
104806
+
104316
104807
  $root.WakeupPlaylistCreated = (function() {
104317
104808
 
104318
104809
  /**
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.431.0"
19
+ "version": "1.432.0"
20
20
  }