@headspace/protos-events 1.431.0 → 1.433.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
@@ -28915,6 +28915,9 @@ export enum GoalType {
28915
28915
  /** Properties of a B2BChallengeCreated. */
28916
28916
  export interface IB2BChallengeCreated {
28917
28917
 
28918
+ /** B2BChallengeCreated challengeId */
28919
+ challengeId?: (number|Long|null);
28920
+
28918
28921
  /** B2BChallengeCreated b2bOrgId */
28919
28922
  b2bOrgId?: (number|Long|null);
28920
28923
 
@@ -28949,6 +28952,9 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
28949
28952
  */
28950
28953
  constructor(properties?: IB2BChallengeCreated);
28951
28954
 
28955
+ /** B2BChallengeCreated challengeId. */
28956
+ public challengeId: (number|Long);
28957
+
28952
28958
  /** B2BChallengeCreated b2bOrgId. */
28953
28959
  public b2bOrgId: (number|Long);
28954
28960
 
@@ -29044,6 +29050,102 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
29044
29050
  public toJSON(): { [k: string]: any };
29045
29051
  }
29046
29052
 
29053
+ /** Properties of a B2BChallengeScheduled. */
29054
+ export interface IB2BChallengeScheduled {
29055
+
29056
+ /** B2BChallengeScheduled challengeId */
29057
+ challengeId?: (number|Long|null);
29058
+
29059
+ /** B2BChallengeScheduled brazeScheduleId */
29060
+ brazeScheduleId?: (string|null);
29061
+ }
29062
+
29063
+ /** Represents a B2BChallengeScheduled. */
29064
+ export class B2BChallengeScheduled implements IB2BChallengeScheduled {
29065
+
29066
+ /**
29067
+ * Constructs a new B2BChallengeScheduled.
29068
+ * @param [properties] Properties to set
29069
+ */
29070
+ constructor(properties?: IB2BChallengeScheduled);
29071
+
29072
+ /** B2BChallengeScheduled challengeId. */
29073
+ public challengeId: (number|Long);
29074
+
29075
+ /** B2BChallengeScheduled brazeScheduleId. */
29076
+ public brazeScheduleId: string;
29077
+
29078
+ /**
29079
+ * Creates a new B2BChallengeScheduled instance using the specified properties.
29080
+ * @param [properties] Properties to set
29081
+ * @returns B2BChallengeScheduled instance
29082
+ */
29083
+ public static create(properties?: IB2BChallengeScheduled): B2BChallengeScheduled;
29084
+
29085
+ /**
29086
+ * Encodes the specified B2BChallengeScheduled message. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
29087
+ * @param message B2BChallengeScheduled message or plain object to encode
29088
+ * @param [writer] Writer to encode to
29089
+ * @returns Writer
29090
+ */
29091
+ public static encode(message: IB2BChallengeScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
29092
+
29093
+ /**
29094
+ * Encodes the specified B2BChallengeScheduled message, length delimited. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
29095
+ * @param message B2BChallengeScheduled message or plain object to encode
29096
+ * @param [writer] Writer to encode to
29097
+ * @returns Writer
29098
+ */
29099
+ public static encodeDelimited(message: IB2BChallengeScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
29100
+
29101
+ /**
29102
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer.
29103
+ * @param reader Reader or buffer to decode from
29104
+ * @param [length] Message length if known beforehand
29105
+ * @returns B2BChallengeScheduled
29106
+ * @throws {Error} If the payload is not a reader or valid buffer
29107
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29108
+ */
29109
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BChallengeScheduled;
29110
+
29111
+ /**
29112
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer, length delimited.
29113
+ * @param reader Reader or buffer to decode from
29114
+ * @returns B2BChallengeScheduled
29115
+ * @throws {Error} If the payload is not a reader or valid buffer
29116
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29117
+ */
29118
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BChallengeScheduled;
29119
+
29120
+ /**
29121
+ * Verifies a B2BChallengeScheduled message.
29122
+ * @param message Plain object to verify
29123
+ * @returns `null` if valid, otherwise the reason why it is not
29124
+ */
29125
+ public static verify(message: { [k: string]: any }): (string|null);
29126
+
29127
+ /**
29128
+ * Creates a B2BChallengeScheduled message from a plain object. Also converts values to their respective internal types.
29129
+ * @param object Plain object
29130
+ * @returns B2BChallengeScheduled
29131
+ */
29132
+ public static fromObject(object: { [k: string]: any }): B2BChallengeScheduled;
29133
+
29134
+ /**
29135
+ * Creates a plain object from a B2BChallengeScheduled message. Also converts values to other types if specified.
29136
+ * @param message B2BChallengeScheduled
29137
+ * @param [options] Conversion options
29138
+ * @returns Plain object
29139
+ */
29140
+ public static toObject(message: B2BChallengeScheduled, options?: $protobuf.IConversionOptions): { [k: string]: any };
29141
+
29142
+ /**
29143
+ * Converts this B2BChallengeScheduled to JSON.
29144
+ * @returns JSON object
29145
+ */
29146
+ public toJSON(): { [k: string]: any };
29147
+ }
29148
+
29047
29149
  /** Properties of an EligibilityFileProcessed. */
29048
29150
  export interface IEligibilityFileProcessed {
29049
29151
 
@@ -37054,6 +37156,155 @@ export class ModuleDescriptorDeleted implements IModuleDescriptorDeleted {
37054
37156
  public toJSON(): { [k: string]: any };
37055
37157
  }
37056
37158
 
37159
+ /** Properties of a ModerationActionPerformed. */
37160
+ export interface IModerationActionPerformed {
37161
+
37162
+ /** ModerationActionPerformed reportId */
37163
+ reportId?: (string|null);
37164
+
37165
+ /** ModerationActionPerformed moderatorId */
37166
+ moderatorId?: (string|null);
37167
+
37168
+ /** ModerationActionPerformed actionType */
37169
+ actionType?: (ModerationActionPerformed.ActionType|null);
37170
+
37171
+ /** ModerationActionPerformed actionDescription */
37172
+ actionDescription?: (string|null);
37173
+
37174
+ /** ModerationActionPerformed proposedReportCategories */
37175
+ proposedReportCategories?: (ModerationActionPerformed.ReportCategory[]|null);
37176
+
37177
+ /** ModerationActionPerformed createdAt */
37178
+ createdAt?: (number|Long|null);
37179
+ }
37180
+
37181
+ /** Represents a ModerationActionPerformed. */
37182
+ export class ModerationActionPerformed implements IModerationActionPerformed {
37183
+
37184
+ /**
37185
+ * Constructs a new ModerationActionPerformed.
37186
+ * @param [properties] Properties to set
37187
+ */
37188
+ constructor(properties?: IModerationActionPerformed);
37189
+
37190
+ /** ModerationActionPerformed reportId. */
37191
+ public reportId: string;
37192
+
37193
+ /** ModerationActionPerformed moderatorId. */
37194
+ public moderatorId: string;
37195
+
37196
+ /** ModerationActionPerformed actionType. */
37197
+ public actionType: ModerationActionPerformed.ActionType;
37198
+
37199
+ /** ModerationActionPerformed actionDescription. */
37200
+ public actionDescription: string;
37201
+
37202
+ /** ModerationActionPerformed proposedReportCategories. */
37203
+ public proposedReportCategories: ModerationActionPerformed.ReportCategory[];
37204
+
37205
+ /** ModerationActionPerformed createdAt. */
37206
+ public createdAt: (number|Long);
37207
+
37208
+ /**
37209
+ * Creates a new ModerationActionPerformed instance using the specified properties.
37210
+ * @param [properties] Properties to set
37211
+ * @returns ModerationActionPerformed instance
37212
+ */
37213
+ public static create(properties?: IModerationActionPerformed): ModerationActionPerformed;
37214
+
37215
+ /**
37216
+ * Encodes the specified ModerationActionPerformed message. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
37217
+ * @param message ModerationActionPerformed message or plain object to encode
37218
+ * @param [writer] Writer to encode to
37219
+ * @returns Writer
37220
+ */
37221
+ public static encode(message: IModerationActionPerformed, writer?: $protobuf.Writer): $protobuf.Writer;
37222
+
37223
+ /**
37224
+ * Encodes the specified ModerationActionPerformed message, length delimited. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
37225
+ * @param message ModerationActionPerformed message or plain object to encode
37226
+ * @param [writer] Writer to encode to
37227
+ * @returns Writer
37228
+ */
37229
+ public static encodeDelimited(message: IModerationActionPerformed, writer?: $protobuf.Writer): $protobuf.Writer;
37230
+
37231
+ /**
37232
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer.
37233
+ * @param reader Reader or buffer to decode from
37234
+ * @param [length] Message length if known beforehand
37235
+ * @returns ModerationActionPerformed
37236
+ * @throws {Error} If the payload is not a reader or valid buffer
37237
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37238
+ */
37239
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ModerationActionPerformed;
37240
+
37241
+ /**
37242
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer, length delimited.
37243
+ * @param reader Reader or buffer to decode from
37244
+ * @returns ModerationActionPerformed
37245
+ * @throws {Error} If the payload is not a reader or valid buffer
37246
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37247
+ */
37248
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ModerationActionPerformed;
37249
+
37250
+ /**
37251
+ * Verifies a ModerationActionPerformed message.
37252
+ * @param message Plain object to verify
37253
+ * @returns `null` if valid, otherwise the reason why it is not
37254
+ */
37255
+ public static verify(message: { [k: string]: any }): (string|null);
37256
+
37257
+ /**
37258
+ * Creates a ModerationActionPerformed message from a plain object. Also converts values to their respective internal types.
37259
+ * @param object Plain object
37260
+ * @returns ModerationActionPerformed
37261
+ */
37262
+ public static fromObject(object: { [k: string]: any }): ModerationActionPerformed;
37263
+
37264
+ /**
37265
+ * Creates a plain object from a ModerationActionPerformed message. Also converts values to other types if specified.
37266
+ * @param message ModerationActionPerformed
37267
+ * @param [options] Conversion options
37268
+ * @returns Plain object
37269
+ */
37270
+ public static toObject(message: ModerationActionPerformed, options?: $protobuf.IConversionOptions): { [k: string]: any };
37271
+
37272
+ /**
37273
+ * Converts this ModerationActionPerformed to JSON.
37274
+ * @returns JSON object
37275
+ */
37276
+ public toJSON(): { [k: string]: any };
37277
+ }
37278
+
37279
+ export namespace ModerationActionPerformed {
37280
+
37281
+ /** ActionType enum. */
37282
+ enum ActionType {
37283
+ ACTION_TYPE_UNKNOWN = 0,
37284
+ ACTION_TYPE_CATEGORIES_UPDATE = 1,
37285
+ ACTION_TYPE_UPDATE_AS_SAFE = 2,
37286
+ ACTION_TYPE_USER_BAN = 3,
37287
+ ACTION_TYPE_USER_ESCALATE = 4,
37288
+ ACTION_TYPE_REPORT_RESOLVE = 5
37289
+ }
37290
+
37291
+ /** ReportCategory enum. */
37292
+ enum ReportCategory {
37293
+ REPORT_CATEGORY_UNKNOWN = 0,
37294
+ REPORT_CATEGORY_SAFE = 1,
37295
+ REPORT_CATEGORY_OBSCENITY = 2,
37296
+ REPORT_CATEGORY_SUICIDAL_IDEATION = 3,
37297
+ REPORT_CATEGORY_TRIGGERING = 4,
37298
+ REPORT_CATEGORY_HATE = 5,
37299
+ REPORT_CATEGORY_THREATENING = 6,
37300
+ REPORT_CATEGORY_SELF_HARM = 7,
37301
+ REPORT_CATEGORY_SEXUAL = 8,
37302
+ REPORT_CATEGORY_SEXUAL_MINORS = 9,
37303
+ REPORT_CATEGORY_VIOLENCE = 10,
37304
+ REPORT_CATEGORY_VIOLENCE_GRAPHIC = 11
37305
+ }
37306
+ }
37307
+
37057
37308
  /** Properties of a WakeupPlaylistCreated. */
37058
37309
  export interface IWakeupPlaylistCreated {
37059
37310
 
package/lib/index.js CHANGED
@@ -80013,6 +80013,7 @@ $root.B2BChallengeCreated = (function() {
80013
80013
  * Properties of a B2BChallengeCreated.
80014
80014
  * @exports IB2BChallengeCreated
80015
80015
  * @interface IB2BChallengeCreated
80016
+ * @property {number|Long|null} [challengeId] B2BChallengeCreated challengeId
80016
80017
  * @property {number|Long|null} [b2bOrgId] B2BChallengeCreated b2bOrgId
80017
80018
  * @property {string|null} [headspaceHealthId] B2BChallengeCreated headspaceHealthId
80018
80019
  * @property {string|null} [orgName] B2BChallengeCreated orgName
@@ -80038,6 +80039,14 @@ $root.B2BChallengeCreated = (function() {
80038
80039
  this[keys[i]] = properties[keys[i]];
80039
80040
  }
80040
80041
 
80042
+ /**
80043
+ * B2BChallengeCreated challengeId.
80044
+ * @member {number|Long} challengeId
80045
+ * @memberof B2BChallengeCreated
80046
+ * @instance
80047
+ */
80048
+ B2BChallengeCreated.prototype.challengeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80049
+
80041
80050
  /**
80042
80051
  * B2BChallengeCreated b2bOrgId.
80043
80052
  * @member {number|Long} b2bOrgId
@@ -80142,6 +80151,8 @@ $root.B2BChallengeCreated = (function() {
80142
80151
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.goalType);
80143
80152
  if (message.goalTarget != null && message.hasOwnProperty("goalTarget"))
80144
80153
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.goalTarget);
80154
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80155
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.challengeId);
80145
80156
  return writer;
80146
80157
  };
80147
80158
 
@@ -80176,6 +80187,9 @@ $root.B2BChallengeCreated = (function() {
80176
80187
  while (reader.pos < end) {
80177
80188
  var tag = reader.uint32();
80178
80189
  switch (tag >>> 3) {
80190
+ case 9:
80191
+ message.challengeId = reader.uint64();
80192
+ break;
80179
80193
  case 1:
80180
80194
  message.b2bOrgId = reader.uint64();
80181
80195
  break;
@@ -80235,6 +80249,9 @@ $root.B2BChallengeCreated = (function() {
80235
80249
  B2BChallengeCreated.verify = function verify(message) {
80236
80250
  if (typeof message !== "object" || message === null)
80237
80251
  return "object expected";
80252
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80253
+ if (!$util.isInteger(message.challengeId) && !(message.challengeId && $util.isInteger(message.challengeId.low) && $util.isInteger(message.challengeId.high)))
80254
+ return "challengeId: integer|Long expected";
80238
80255
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80239
80256
  if (!$util.isInteger(message.b2bOrgId) && !(message.b2bOrgId && $util.isInteger(message.b2bOrgId.low) && $util.isInteger(message.b2bOrgId.high)))
80240
80257
  return "b2bOrgId: integer|Long expected";
@@ -80287,6 +80304,15 @@ $root.B2BChallengeCreated = (function() {
80287
80304
  if (object instanceof $root.B2BChallengeCreated)
80288
80305
  return object;
80289
80306
  var message = new $root.B2BChallengeCreated();
80307
+ if (object.challengeId != null)
80308
+ if ($util.Long)
80309
+ (message.challengeId = $util.Long.fromValue(object.challengeId)).unsigned = true;
80310
+ else if (typeof object.challengeId === "string")
80311
+ message.challengeId = parseInt(object.challengeId, 10);
80312
+ else if (typeof object.challengeId === "number")
80313
+ message.challengeId = object.challengeId;
80314
+ else if (typeof object.challengeId === "object")
80315
+ message.challengeId = new $util.LongBits(object.challengeId.low >>> 0, object.challengeId.high >>> 0).toNumber(true);
80290
80316
  if (object.b2bOrgId != null)
80291
80317
  if ($util.Long)
80292
80318
  (message.b2bOrgId = $util.Long.fromValue(object.b2bOrgId)).unsigned = true;
@@ -80389,6 +80415,11 @@ $root.B2BChallengeCreated = (function() {
80389
80415
  object.goalTarget = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80390
80416
  } else
80391
80417
  object.goalTarget = options.longs === String ? "0" : 0;
80418
+ if ($util.Long) {
80419
+ var long = new $util.Long(0, 0, true);
80420
+ object.challengeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80421
+ } else
80422
+ object.challengeId = options.longs === String ? "0" : 0;
80392
80423
  }
80393
80424
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80394
80425
  if (typeof message.b2bOrgId === "number")
@@ -80415,6 +80446,11 @@ $root.B2BChallengeCreated = (function() {
80415
80446
  object.goalTarget = options.longs === String ? String(message.goalTarget) : message.goalTarget;
80416
80447
  else
80417
80448
  object.goalTarget = options.longs === String ? $util.Long.prototype.toString.call(message.goalTarget) : options.longs === Number ? new $util.LongBits(message.goalTarget.low >>> 0, message.goalTarget.high >>> 0).toNumber(true) : message.goalTarget;
80449
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80450
+ if (typeof message.challengeId === "number")
80451
+ object.challengeId = options.longs === String ? String(message.challengeId) : message.challengeId;
80452
+ else
80453
+ object.challengeId = options.longs === String ? $util.Long.prototype.toString.call(message.challengeId) : options.longs === Number ? new $util.LongBits(message.challengeId.low >>> 0, message.challengeId.high >>> 0).toNumber(true) : message.challengeId;
80418
80454
  return object;
80419
80455
  };
80420
80456
 
@@ -80432,6 +80468,230 @@ $root.B2BChallengeCreated = (function() {
80432
80468
  return B2BChallengeCreated;
80433
80469
  })();
80434
80470
 
80471
+ $root.B2BChallengeScheduled = (function() {
80472
+
80473
+ /**
80474
+ * Properties of a B2BChallengeScheduled.
80475
+ * @exports IB2BChallengeScheduled
80476
+ * @interface IB2BChallengeScheduled
80477
+ * @property {number|Long|null} [challengeId] B2BChallengeScheduled challengeId
80478
+ * @property {string|null} [brazeScheduleId] B2BChallengeScheduled brazeScheduleId
80479
+ */
80480
+
80481
+ /**
80482
+ * Constructs a new B2BChallengeScheduled.
80483
+ * @exports B2BChallengeScheduled
80484
+ * @classdesc Represents a B2BChallengeScheduled.
80485
+ * @implements IB2BChallengeScheduled
80486
+ * @constructor
80487
+ * @param {IB2BChallengeScheduled=} [properties] Properties to set
80488
+ */
80489
+ function B2BChallengeScheduled(properties) {
80490
+ if (properties)
80491
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80492
+ if (properties[keys[i]] != null)
80493
+ this[keys[i]] = properties[keys[i]];
80494
+ }
80495
+
80496
+ /**
80497
+ * B2BChallengeScheduled challengeId.
80498
+ * @member {number|Long} challengeId
80499
+ * @memberof B2BChallengeScheduled
80500
+ * @instance
80501
+ */
80502
+ B2BChallengeScheduled.prototype.challengeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80503
+
80504
+ /**
80505
+ * B2BChallengeScheduled brazeScheduleId.
80506
+ * @member {string} brazeScheduleId
80507
+ * @memberof B2BChallengeScheduled
80508
+ * @instance
80509
+ */
80510
+ B2BChallengeScheduled.prototype.brazeScheduleId = "";
80511
+
80512
+ /**
80513
+ * Creates a new B2BChallengeScheduled instance using the specified properties.
80514
+ * @function create
80515
+ * @memberof B2BChallengeScheduled
80516
+ * @static
80517
+ * @param {IB2BChallengeScheduled=} [properties] Properties to set
80518
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled instance
80519
+ */
80520
+ B2BChallengeScheduled.create = function create(properties) {
80521
+ return new B2BChallengeScheduled(properties);
80522
+ };
80523
+
80524
+ /**
80525
+ * Encodes the specified B2BChallengeScheduled message. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
80526
+ * @function encode
80527
+ * @memberof B2BChallengeScheduled
80528
+ * @static
80529
+ * @param {IB2BChallengeScheduled} message B2BChallengeScheduled message or plain object to encode
80530
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80531
+ * @returns {$protobuf.Writer} Writer
80532
+ */
80533
+ B2BChallengeScheduled.encode = function encode(message, writer) {
80534
+ if (!writer)
80535
+ writer = $Writer.create();
80536
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80537
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.challengeId);
80538
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
80539
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.brazeScheduleId);
80540
+ return writer;
80541
+ };
80542
+
80543
+ /**
80544
+ * Encodes the specified B2BChallengeScheduled message, length delimited. Does not implicitly {@link B2BChallengeScheduled.verify|verify} messages.
80545
+ * @function encodeDelimited
80546
+ * @memberof B2BChallengeScheduled
80547
+ * @static
80548
+ * @param {IB2BChallengeScheduled} message B2BChallengeScheduled message or plain object to encode
80549
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80550
+ * @returns {$protobuf.Writer} Writer
80551
+ */
80552
+ B2BChallengeScheduled.encodeDelimited = function encodeDelimited(message, writer) {
80553
+ return this.encode(message, writer).ldelim();
80554
+ };
80555
+
80556
+ /**
80557
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer.
80558
+ * @function decode
80559
+ * @memberof B2BChallengeScheduled
80560
+ * @static
80561
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80562
+ * @param {number} [length] Message length if known beforehand
80563
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled
80564
+ * @throws {Error} If the payload is not a reader or valid buffer
80565
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80566
+ */
80567
+ B2BChallengeScheduled.decode = function decode(reader, length) {
80568
+ if (!(reader instanceof $Reader))
80569
+ reader = $Reader.create(reader);
80570
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BChallengeScheduled();
80571
+ while (reader.pos < end) {
80572
+ var tag = reader.uint32();
80573
+ switch (tag >>> 3) {
80574
+ case 1:
80575
+ message.challengeId = reader.uint64();
80576
+ break;
80577
+ case 2:
80578
+ message.brazeScheduleId = reader.string();
80579
+ break;
80580
+ default:
80581
+ reader.skipType(tag & 7);
80582
+ break;
80583
+ }
80584
+ }
80585
+ return message;
80586
+ };
80587
+
80588
+ /**
80589
+ * Decodes a B2BChallengeScheduled message from the specified reader or buffer, length delimited.
80590
+ * @function decodeDelimited
80591
+ * @memberof B2BChallengeScheduled
80592
+ * @static
80593
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80594
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled
80595
+ * @throws {Error} If the payload is not a reader or valid buffer
80596
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80597
+ */
80598
+ B2BChallengeScheduled.decodeDelimited = function decodeDelimited(reader) {
80599
+ if (!(reader instanceof $Reader))
80600
+ reader = new $Reader(reader);
80601
+ return this.decode(reader, reader.uint32());
80602
+ };
80603
+
80604
+ /**
80605
+ * Verifies a B2BChallengeScheduled message.
80606
+ * @function verify
80607
+ * @memberof B2BChallengeScheduled
80608
+ * @static
80609
+ * @param {Object.<string,*>} message Plain object to verify
80610
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80611
+ */
80612
+ B2BChallengeScheduled.verify = function verify(message) {
80613
+ if (typeof message !== "object" || message === null)
80614
+ return "object expected";
80615
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80616
+ if (!$util.isInteger(message.challengeId) && !(message.challengeId && $util.isInteger(message.challengeId.low) && $util.isInteger(message.challengeId.high)))
80617
+ return "challengeId: integer|Long expected";
80618
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
80619
+ if (!$util.isString(message.brazeScheduleId))
80620
+ return "brazeScheduleId: string expected";
80621
+ return null;
80622
+ };
80623
+
80624
+ /**
80625
+ * Creates a B2BChallengeScheduled message from a plain object. Also converts values to their respective internal types.
80626
+ * @function fromObject
80627
+ * @memberof B2BChallengeScheduled
80628
+ * @static
80629
+ * @param {Object.<string,*>} object Plain object
80630
+ * @returns {B2BChallengeScheduled} B2BChallengeScheduled
80631
+ */
80632
+ B2BChallengeScheduled.fromObject = function fromObject(object) {
80633
+ if (object instanceof $root.B2BChallengeScheduled)
80634
+ return object;
80635
+ var message = new $root.B2BChallengeScheduled();
80636
+ if (object.challengeId != null)
80637
+ if ($util.Long)
80638
+ (message.challengeId = $util.Long.fromValue(object.challengeId)).unsigned = true;
80639
+ else if (typeof object.challengeId === "string")
80640
+ message.challengeId = parseInt(object.challengeId, 10);
80641
+ else if (typeof object.challengeId === "number")
80642
+ message.challengeId = object.challengeId;
80643
+ else if (typeof object.challengeId === "object")
80644
+ message.challengeId = new $util.LongBits(object.challengeId.low >>> 0, object.challengeId.high >>> 0).toNumber(true);
80645
+ if (object.brazeScheduleId != null)
80646
+ message.brazeScheduleId = String(object.brazeScheduleId);
80647
+ return message;
80648
+ };
80649
+
80650
+ /**
80651
+ * Creates a plain object from a B2BChallengeScheduled message. Also converts values to other types if specified.
80652
+ * @function toObject
80653
+ * @memberof B2BChallengeScheduled
80654
+ * @static
80655
+ * @param {B2BChallengeScheduled} message B2BChallengeScheduled
80656
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80657
+ * @returns {Object.<string,*>} Plain object
80658
+ */
80659
+ B2BChallengeScheduled.toObject = function toObject(message, options) {
80660
+ if (!options)
80661
+ options = {};
80662
+ var object = {};
80663
+ if (options.defaults) {
80664
+ if ($util.Long) {
80665
+ var long = new $util.Long(0, 0, true);
80666
+ object.challengeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80667
+ } else
80668
+ object.challengeId = options.longs === String ? "0" : 0;
80669
+ object.brazeScheduleId = "";
80670
+ }
80671
+ if (message.challengeId != null && message.hasOwnProperty("challengeId"))
80672
+ if (typeof message.challengeId === "number")
80673
+ object.challengeId = options.longs === String ? String(message.challengeId) : message.challengeId;
80674
+ else
80675
+ object.challengeId = options.longs === String ? $util.Long.prototype.toString.call(message.challengeId) : options.longs === Number ? new $util.LongBits(message.challengeId.low >>> 0, message.challengeId.high >>> 0).toNumber(true) : message.challengeId;
80676
+ if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
80677
+ object.brazeScheduleId = message.brazeScheduleId;
80678
+ return object;
80679
+ };
80680
+
80681
+ /**
80682
+ * Converts this B2BChallengeScheduled to JSON.
80683
+ * @function toJSON
80684
+ * @memberof B2BChallengeScheduled
80685
+ * @instance
80686
+ * @returns {Object.<string,*>} JSON object
80687
+ */
80688
+ B2BChallengeScheduled.prototype.toJSON = function toJSON() {
80689
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80690
+ };
80691
+
80692
+ return B2BChallengeScheduled;
80693
+ })();
80694
+
80435
80695
  $root.EligibilityFileProcessed = (function() {
80436
80696
 
80437
80697
  /**
@@ -104313,6 +104573,497 @@ $root.ModuleDescriptorDeleted = (function() {
104313
104573
  return ModuleDescriptorDeleted;
104314
104574
  })();
104315
104575
 
104576
+ $root.ModerationActionPerformed = (function() {
104577
+
104578
+ /**
104579
+ * Properties of a ModerationActionPerformed.
104580
+ * @exports IModerationActionPerformed
104581
+ * @interface IModerationActionPerformed
104582
+ * @property {string|null} [reportId] ModerationActionPerformed reportId
104583
+ * @property {string|null} [moderatorId] ModerationActionPerformed moderatorId
104584
+ * @property {ModerationActionPerformed.ActionType|null} [actionType] ModerationActionPerformed actionType
104585
+ * @property {string|null} [actionDescription] ModerationActionPerformed actionDescription
104586
+ * @property {Array.<ModerationActionPerformed.ReportCategory>|null} [proposedReportCategories] ModerationActionPerformed proposedReportCategories
104587
+ * @property {number|Long|null} [createdAt] ModerationActionPerformed createdAt
104588
+ */
104589
+
104590
+ /**
104591
+ * Constructs a new ModerationActionPerformed.
104592
+ * @exports ModerationActionPerformed
104593
+ * @classdesc Represents a ModerationActionPerformed.
104594
+ * @implements IModerationActionPerformed
104595
+ * @constructor
104596
+ * @param {IModerationActionPerformed=} [properties] Properties to set
104597
+ */
104598
+ function ModerationActionPerformed(properties) {
104599
+ this.proposedReportCategories = [];
104600
+ if (properties)
104601
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
104602
+ if (properties[keys[i]] != null)
104603
+ this[keys[i]] = properties[keys[i]];
104604
+ }
104605
+
104606
+ /**
104607
+ * ModerationActionPerformed reportId.
104608
+ * @member {string} reportId
104609
+ * @memberof ModerationActionPerformed
104610
+ * @instance
104611
+ */
104612
+ ModerationActionPerformed.prototype.reportId = "";
104613
+
104614
+ /**
104615
+ * ModerationActionPerformed moderatorId.
104616
+ * @member {string} moderatorId
104617
+ * @memberof ModerationActionPerformed
104618
+ * @instance
104619
+ */
104620
+ ModerationActionPerformed.prototype.moderatorId = "";
104621
+
104622
+ /**
104623
+ * ModerationActionPerformed actionType.
104624
+ * @member {ModerationActionPerformed.ActionType} actionType
104625
+ * @memberof ModerationActionPerformed
104626
+ * @instance
104627
+ */
104628
+ ModerationActionPerformed.prototype.actionType = 0;
104629
+
104630
+ /**
104631
+ * ModerationActionPerformed actionDescription.
104632
+ * @member {string} actionDescription
104633
+ * @memberof ModerationActionPerformed
104634
+ * @instance
104635
+ */
104636
+ ModerationActionPerformed.prototype.actionDescription = "";
104637
+
104638
+ /**
104639
+ * ModerationActionPerformed proposedReportCategories.
104640
+ * @member {Array.<ModerationActionPerformed.ReportCategory>} proposedReportCategories
104641
+ * @memberof ModerationActionPerformed
104642
+ * @instance
104643
+ */
104644
+ ModerationActionPerformed.prototype.proposedReportCategories = $util.emptyArray;
104645
+
104646
+ /**
104647
+ * ModerationActionPerformed createdAt.
104648
+ * @member {number|Long} createdAt
104649
+ * @memberof ModerationActionPerformed
104650
+ * @instance
104651
+ */
104652
+ ModerationActionPerformed.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
104653
+
104654
+ /**
104655
+ * Creates a new ModerationActionPerformed instance using the specified properties.
104656
+ * @function create
104657
+ * @memberof ModerationActionPerformed
104658
+ * @static
104659
+ * @param {IModerationActionPerformed=} [properties] Properties to set
104660
+ * @returns {ModerationActionPerformed} ModerationActionPerformed instance
104661
+ */
104662
+ ModerationActionPerformed.create = function create(properties) {
104663
+ return new ModerationActionPerformed(properties);
104664
+ };
104665
+
104666
+ /**
104667
+ * Encodes the specified ModerationActionPerformed message. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
104668
+ * @function encode
104669
+ * @memberof ModerationActionPerformed
104670
+ * @static
104671
+ * @param {IModerationActionPerformed} message ModerationActionPerformed message or plain object to encode
104672
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104673
+ * @returns {$protobuf.Writer} Writer
104674
+ */
104675
+ ModerationActionPerformed.encode = function encode(message, writer) {
104676
+ if (!writer)
104677
+ writer = $Writer.create();
104678
+ if (message.reportId != null && message.hasOwnProperty("reportId"))
104679
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reportId);
104680
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
104681
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.moderatorId);
104682
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
104683
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actionType);
104684
+ if (message.actionDescription != null && message.hasOwnProperty("actionDescription"))
104685
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionDescription);
104686
+ if (message.proposedReportCategories != null && message.proposedReportCategories.length) {
104687
+ writer.uint32(/* id 5, wireType 2 =*/42).fork();
104688
+ for (var i = 0; i < message.proposedReportCategories.length; ++i)
104689
+ writer.int32(message.proposedReportCategories[i]);
104690
+ writer.ldelim();
104691
+ }
104692
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104693
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
104694
+ return writer;
104695
+ };
104696
+
104697
+ /**
104698
+ * Encodes the specified ModerationActionPerformed message, length delimited. Does not implicitly {@link ModerationActionPerformed.verify|verify} messages.
104699
+ * @function encodeDelimited
104700
+ * @memberof ModerationActionPerformed
104701
+ * @static
104702
+ * @param {IModerationActionPerformed} message ModerationActionPerformed message or plain object to encode
104703
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104704
+ * @returns {$protobuf.Writer} Writer
104705
+ */
104706
+ ModerationActionPerformed.encodeDelimited = function encodeDelimited(message, writer) {
104707
+ return this.encode(message, writer).ldelim();
104708
+ };
104709
+
104710
+ /**
104711
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer.
104712
+ * @function decode
104713
+ * @memberof ModerationActionPerformed
104714
+ * @static
104715
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104716
+ * @param {number} [length] Message length if known beforehand
104717
+ * @returns {ModerationActionPerformed} ModerationActionPerformed
104718
+ * @throws {Error} If the payload is not a reader or valid buffer
104719
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104720
+ */
104721
+ ModerationActionPerformed.decode = function decode(reader, length) {
104722
+ if (!(reader instanceof $Reader))
104723
+ reader = $Reader.create(reader);
104724
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModerationActionPerformed();
104725
+ while (reader.pos < end) {
104726
+ var tag = reader.uint32();
104727
+ switch (tag >>> 3) {
104728
+ case 1:
104729
+ message.reportId = reader.string();
104730
+ break;
104731
+ case 2:
104732
+ message.moderatorId = reader.string();
104733
+ break;
104734
+ case 3:
104735
+ message.actionType = reader.int32();
104736
+ break;
104737
+ case 4:
104738
+ message.actionDescription = reader.string();
104739
+ break;
104740
+ case 5:
104741
+ if (!(message.proposedReportCategories && message.proposedReportCategories.length))
104742
+ message.proposedReportCategories = [];
104743
+ if ((tag & 7) === 2) {
104744
+ var end2 = reader.uint32() + reader.pos;
104745
+ while (reader.pos < end2)
104746
+ message.proposedReportCategories.push(reader.int32());
104747
+ } else
104748
+ message.proposedReportCategories.push(reader.int32());
104749
+ break;
104750
+ case 6:
104751
+ message.createdAt = reader.uint64();
104752
+ break;
104753
+ default:
104754
+ reader.skipType(tag & 7);
104755
+ break;
104756
+ }
104757
+ }
104758
+ return message;
104759
+ };
104760
+
104761
+ /**
104762
+ * Decodes a ModerationActionPerformed message from the specified reader or buffer, length delimited.
104763
+ * @function decodeDelimited
104764
+ * @memberof ModerationActionPerformed
104765
+ * @static
104766
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104767
+ * @returns {ModerationActionPerformed} ModerationActionPerformed
104768
+ * @throws {Error} If the payload is not a reader or valid buffer
104769
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104770
+ */
104771
+ ModerationActionPerformed.decodeDelimited = function decodeDelimited(reader) {
104772
+ if (!(reader instanceof $Reader))
104773
+ reader = new $Reader(reader);
104774
+ return this.decode(reader, reader.uint32());
104775
+ };
104776
+
104777
+ /**
104778
+ * Verifies a ModerationActionPerformed message.
104779
+ * @function verify
104780
+ * @memberof ModerationActionPerformed
104781
+ * @static
104782
+ * @param {Object.<string,*>} message Plain object to verify
104783
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
104784
+ */
104785
+ ModerationActionPerformed.verify = function verify(message) {
104786
+ if (typeof message !== "object" || message === null)
104787
+ return "object expected";
104788
+ if (message.reportId != null && message.hasOwnProperty("reportId"))
104789
+ if (!$util.isString(message.reportId))
104790
+ return "reportId: string expected";
104791
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
104792
+ if (!$util.isString(message.moderatorId))
104793
+ return "moderatorId: string expected";
104794
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
104795
+ switch (message.actionType) {
104796
+ default:
104797
+ return "actionType: enum value expected";
104798
+ case 0:
104799
+ case 1:
104800
+ case 2:
104801
+ case 3:
104802
+ case 4:
104803
+ case 5:
104804
+ break;
104805
+ }
104806
+ if (message.actionDescription != null && message.hasOwnProperty("actionDescription"))
104807
+ if (!$util.isString(message.actionDescription))
104808
+ return "actionDescription: string expected";
104809
+ if (message.proposedReportCategories != null && message.hasOwnProperty("proposedReportCategories")) {
104810
+ if (!Array.isArray(message.proposedReportCategories))
104811
+ return "proposedReportCategories: array expected";
104812
+ for (var i = 0; i < message.proposedReportCategories.length; ++i)
104813
+ switch (message.proposedReportCategories[i]) {
104814
+ default:
104815
+ return "proposedReportCategories: enum value[] expected";
104816
+ case 0:
104817
+ case 1:
104818
+ case 2:
104819
+ case 3:
104820
+ case 4:
104821
+ case 5:
104822
+ case 6:
104823
+ case 7:
104824
+ case 8:
104825
+ case 9:
104826
+ case 10:
104827
+ case 11:
104828
+ break;
104829
+ }
104830
+ }
104831
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104832
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
104833
+ return "createdAt: integer|Long expected";
104834
+ return null;
104835
+ };
104836
+
104837
+ /**
104838
+ * Creates a ModerationActionPerformed message from a plain object. Also converts values to their respective internal types.
104839
+ * @function fromObject
104840
+ * @memberof ModerationActionPerformed
104841
+ * @static
104842
+ * @param {Object.<string,*>} object Plain object
104843
+ * @returns {ModerationActionPerformed} ModerationActionPerformed
104844
+ */
104845
+ ModerationActionPerformed.fromObject = function fromObject(object) {
104846
+ if (object instanceof $root.ModerationActionPerformed)
104847
+ return object;
104848
+ var message = new $root.ModerationActionPerformed();
104849
+ if (object.reportId != null)
104850
+ message.reportId = String(object.reportId);
104851
+ if (object.moderatorId != null)
104852
+ message.moderatorId = String(object.moderatorId);
104853
+ switch (object.actionType) {
104854
+ case "ACTION_TYPE_UNKNOWN":
104855
+ case 0:
104856
+ message.actionType = 0;
104857
+ break;
104858
+ case "ACTION_TYPE_CATEGORIES_UPDATE":
104859
+ case 1:
104860
+ message.actionType = 1;
104861
+ break;
104862
+ case "ACTION_TYPE_UPDATE_AS_SAFE":
104863
+ case 2:
104864
+ message.actionType = 2;
104865
+ break;
104866
+ case "ACTION_TYPE_USER_BAN":
104867
+ case 3:
104868
+ message.actionType = 3;
104869
+ break;
104870
+ case "ACTION_TYPE_USER_ESCALATE":
104871
+ case 4:
104872
+ message.actionType = 4;
104873
+ break;
104874
+ case "ACTION_TYPE_REPORT_RESOLVE":
104875
+ case 5:
104876
+ message.actionType = 5;
104877
+ break;
104878
+ }
104879
+ if (object.actionDescription != null)
104880
+ message.actionDescription = String(object.actionDescription);
104881
+ if (object.proposedReportCategories) {
104882
+ if (!Array.isArray(object.proposedReportCategories))
104883
+ throw TypeError(".ModerationActionPerformed.proposedReportCategories: array expected");
104884
+ message.proposedReportCategories = [];
104885
+ for (var i = 0; i < object.proposedReportCategories.length; ++i)
104886
+ switch (object.proposedReportCategories[i]) {
104887
+ default:
104888
+ case "REPORT_CATEGORY_UNKNOWN":
104889
+ case 0:
104890
+ message.proposedReportCategories[i] = 0;
104891
+ break;
104892
+ case "REPORT_CATEGORY_SAFE":
104893
+ case 1:
104894
+ message.proposedReportCategories[i] = 1;
104895
+ break;
104896
+ case "REPORT_CATEGORY_OBSCENITY":
104897
+ case 2:
104898
+ message.proposedReportCategories[i] = 2;
104899
+ break;
104900
+ case "REPORT_CATEGORY_SUICIDAL_IDEATION":
104901
+ case 3:
104902
+ message.proposedReportCategories[i] = 3;
104903
+ break;
104904
+ case "REPORT_CATEGORY_TRIGGERING":
104905
+ case 4:
104906
+ message.proposedReportCategories[i] = 4;
104907
+ break;
104908
+ case "REPORT_CATEGORY_HATE":
104909
+ case 5:
104910
+ message.proposedReportCategories[i] = 5;
104911
+ break;
104912
+ case "REPORT_CATEGORY_THREATENING":
104913
+ case 6:
104914
+ message.proposedReportCategories[i] = 6;
104915
+ break;
104916
+ case "REPORT_CATEGORY_SELF_HARM":
104917
+ case 7:
104918
+ message.proposedReportCategories[i] = 7;
104919
+ break;
104920
+ case "REPORT_CATEGORY_SEXUAL":
104921
+ case 8:
104922
+ message.proposedReportCategories[i] = 8;
104923
+ break;
104924
+ case "REPORT_CATEGORY_SEXUAL_MINORS":
104925
+ case 9:
104926
+ message.proposedReportCategories[i] = 9;
104927
+ break;
104928
+ case "REPORT_CATEGORY_VIOLENCE":
104929
+ case 10:
104930
+ message.proposedReportCategories[i] = 10;
104931
+ break;
104932
+ case "REPORT_CATEGORY_VIOLENCE_GRAPHIC":
104933
+ case 11:
104934
+ message.proposedReportCategories[i] = 11;
104935
+ break;
104936
+ }
104937
+ }
104938
+ if (object.createdAt != null)
104939
+ if ($util.Long)
104940
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
104941
+ else if (typeof object.createdAt === "string")
104942
+ message.createdAt = parseInt(object.createdAt, 10);
104943
+ else if (typeof object.createdAt === "number")
104944
+ message.createdAt = object.createdAt;
104945
+ else if (typeof object.createdAt === "object")
104946
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
104947
+ return message;
104948
+ };
104949
+
104950
+ /**
104951
+ * Creates a plain object from a ModerationActionPerformed message. Also converts values to other types if specified.
104952
+ * @function toObject
104953
+ * @memberof ModerationActionPerformed
104954
+ * @static
104955
+ * @param {ModerationActionPerformed} message ModerationActionPerformed
104956
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
104957
+ * @returns {Object.<string,*>} Plain object
104958
+ */
104959
+ ModerationActionPerformed.toObject = function toObject(message, options) {
104960
+ if (!options)
104961
+ options = {};
104962
+ var object = {};
104963
+ if (options.arrays || options.defaults)
104964
+ object.proposedReportCategories = [];
104965
+ if (options.defaults) {
104966
+ object.reportId = "";
104967
+ object.moderatorId = "";
104968
+ object.actionType = options.enums === String ? "ACTION_TYPE_UNKNOWN" : 0;
104969
+ object.actionDescription = "";
104970
+ if ($util.Long) {
104971
+ var long = new $util.Long(0, 0, true);
104972
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
104973
+ } else
104974
+ object.createdAt = options.longs === String ? "0" : 0;
104975
+ }
104976
+ if (message.reportId != null && message.hasOwnProperty("reportId"))
104977
+ object.reportId = message.reportId;
104978
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
104979
+ object.moderatorId = message.moderatorId;
104980
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
104981
+ object.actionType = options.enums === String ? $root.ModerationActionPerformed.ActionType[message.actionType] : message.actionType;
104982
+ if (message.actionDescription != null && message.hasOwnProperty("actionDescription"))
104983
+ object.actionDescription = message.actionDescription;
104984
+ if (message.proposedReportCategories && message.proposedReportCategories.length) {
104985
+ object.proposedReportCategories = [];
104986
+ for (var j = 0; j < message.proposedReportCategories.length; ++j)
104987
+ object.proposedReportCategories[j] = options.enums === String ? $root.ModerationActionPerformed.ReportCategory[message.proposedReportCategories[j]] : message.proposedReportCategories[j];
104988
+ }
104989
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104990
+ if (typeof message.createdAt === "number")
104991
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
104992
+ else
104993
+ 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;
104994
+ return object;
104995
+ };
104996
+
104997
+ /**
104998
+ * Converts this ModerationActionPerformed to JSON.
104999
+ * @function toJSON
105000
+ * @memberof ModerationActionPerformed
105001
+ * @instance
105002
+ * @returns {Object.<string,*>} JSON object
105003
+ */
105004
+ ModerationActionPerformed.prototype.toJSON = function toJSON() {
105005
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
105006
+ };
105007
+
105008
+ /**
105009
+ * ActionType enum.
105010
+ * @name ModerationActionPerformed.ActionType
105011
+ * @enum {string}
105012
+ * @property {number} ACTION_TYPE_UNKNOWN=0 ACTION_TYPE_UNKNOWN value
105013
+ * @property {number} ACTION_TYPE_CATEGORIES_UPDATE=1 ACTION_TYPE_CATEGORIES_UPDATE value
105014
+ * @property {number} ACTION_TYPE_UPDATE_AS_SAFE=2 ACTION_TYPE_UPDATE_AS_SAFE value
105015
+ * @property {number} ACTION_TYPE_USER_BAN=3 ACTION_TYPE_USER_BAN value
105016
+ * @property {number} ACTION_TYPE_USER_ESCALATE=4 ACTION_TYPE_USER_ESCALATE value
105017
+ * @property {number} ACTION_TYPE_REPORT_RESOLVE=5 ACTION_TYPE_REPORT_RESOLVE value
105018
+ */
105019
+ ModerationActionPerformed.ActionType = (function() {
105020
+ var valuesById = {}, values = Object.create(valuesById);
105021
+ values[valuesById[0] = "ACTION_TYPE_UNKNOWN"] = 0;
105022
+ values[valuesById[1] = "ACTION_TYPE_CATEGORIES_UPDATE"] = 1;
105023
+ values[valuesById[2] = "ACTION_TYPE_UPDATE_AS_SAFE"] = 2;
105024
+ values[valuesById[3] = "ACTION_TYPE_USER_BAN"] = 3;
105025
+ values[valuesById[4] = "ACTION_TYPE_USER_ESCALATE"] = 4;
105026
+ values[valuesById[5] = "ACTION_TYPE_REPORT_RESOLVE"] = 5;
105027
+ return values;
105028
+ })();
105029
+
105030
+ /**
105031
+ * ReportCategory enum.
105032
+ * @name ModerationActionPerformed.ReportCategory
105033
+ * @enum {string}
105034
+ * @property {number} REPORT_CATEGORY_UNKNOWN=0 REPORT_CATEGORY_UNKNOWN value
105035
+ * @property {number} REPORT_CATEGORY_SAFE=1 REPORT_CATEGORY_SAFE value
105036
+ * @property {number} REPORT_CATEGORY_OBSCENITY=2 REPORT_CATEGORY_OBSCENITY value
105037
+ * @property {number} REPORT_CATEGORY_SUICIDAL_IDEATION=3 REPORT_CATEGORY_SUICIDAL_IDEATION value
105038
+ * @property {number} REPORT_CATEGORY_TRIGGERING=4 REPORT_CATEGORY_TRIGGERING value
105039
+ * @property {number} REPORT_CATEGORY_HATE=5 REPORT_CATEGORY_HATE value
105040
+ * @property {number} REPORT_CATEGORY_THREATENING=6 REPORT_CATEGORY_THREATENING value
105041
+ * @property {number} REPORT_CATEGORY_SELF_HARM=7 REPORT_CATEGORY_SELF_HARM value
105042
+ * @property {number} REPORT_CATEGORY_SEXUAL=8 REPORT_CATEGORY_SEXUAL value
105043
+ * @property {number} REPORT_CATEGORY_SEXUAL_MINORS=9 REPORT_CATEGORY_SEXUAL_MINORS value
105044
+ * @property {number} REPORT_CATEGORY_VIOLENCE=10 REPORT_CATEGORY_VIOLENCE value
105045
+ * @property {number} REPORT_CATEGORY_VIOLENCE_GRAPHIC=11 REPORT_CATEGORY_VIOLENCE_GRAPHIC value
105046
+ */
105047
+ ModerationActionPerformed.ReportCategory = (function() {
105048
+ var valuesById = {}, values = Object.create(valuesById);
105049
+ values[valuesById[0] = "REPORT_CATEGORY_UNKNOWN"] = 0;
105050
+ values[valuesById[1] = "REPORT_CATEGORY_SAFE"] = 1;
105051
+ values[valuesById[2] = "REPORT_CATEGORY_OBSCENITY"] = 2;
105052
+ values[valuesById[3] = "REPORT_CATEGORY_SUICIDAL_IDEATION"] = 3;
105053
+ values[valuesById[4] = "REPORT_CATEGORY_TRIGGERING"] = 4;
105054
+ values[valuesById[5] = "REPORT_CATEGORY_HATE"] = 5;
105055
+ values[valuesById[6] = "REPORT_CATEGORY_THREATENING"] = 6;
105056
+ values[valuesById[7] = "REPORT_CATEGORY_SELF_HARM"] = 7;
105057
+ values[valuesById[8] = "REPORT_CATEGORY_SEXUAL"] = 8;
105058
+ values[valuesById[9] = "REPORT_CATEGORY_SEXUAL_MINORS"] = 9;
105059
+ values[valuesById[10] = "REPORT_CATEGORY_VIOLENCE"] = 10;
105060
+ values[valuesById[11] = "REPORT_CATEGORY_VIOLENCE_GRAPHIC"] = 11;
105061
+ return values;
105062
+ })();
105063
+
105064
+ return ModerationActionPerformed;
105065
+ })();
105066
+
104316
105067
  $root.WakeupPlaylistCreated = (function() {
104317
105068
 
104318
105069
  /**
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.433.0"
20
20
  }