discord-protos 1.2.413 → 1.2.414

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.
@@ -491,6 +491,8 @@ message Experiment {
491
491
  bool require_manual_approval = 3;
492
492
  optional google.protobuf.Timestamp started_at = 4;
493
493
  StepStatus status = 5;
494
+ optional google.protobuf.Timestamp paused_at = 6;
495
+ optional google.protobuf.Duration paused_duration = 7;
494
496
  }
495
497
 
496
498
  message MeasurementPlan {
@@ -1164,6 +1164,14 @@ export interface Experiment_RampStep {
1164
1164
  * @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.StepStatus status = 5
1165
1165
  */
1166
1166
  status: Experiment_StepStatus;
1167
+ /**
1168
+ * @generated from protobuf field: optional google.protobuf.Timestamp paused_at = 6
1169
+ */
1170
+ pausedAt?: Timestamp;
1171
+ /**
1172
+ * @generated from protobuf field: optional google.protobuf.Duration paused_duration = 7
1173
+ */
1174
+ pausedDuration?: Duration;
1167
1175
  }
1168
1176
  /**
1169
1177
  * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan
@@ -4266,7 +4266,9 @@ class Experiment_RampStep$Type extends runtime_4.MessageType {
4266
4266
  { no: 2, name: "hold_duration", kind: "message", T: () => duration_1.Duration },
4267
4267
  { no: 3, name: "require_manual_approval", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
4268
4268
  { no: 4, name: "started_at", kind: "message", T: () => timestamp_1.Timestamp },
4269
- { no: 5, name: "status", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.StepStatus", Experiment_StepStatus, "STEP_STATUS_"] }
4269
+ { no: 5, name: "status", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.StepStatus", Experiment_StepStatus, "STEP_STATUS_"] },
4270
+ { no: 6, name: "paused_at", kind: "message", T: () => timestamp_1.Timestamp },
4271
+ { no: 7, name: "paused_duration", kind: "message", T: () => duration_1.Duration }
4270
4272
  ]);
4271
4273
  }
4272
4274
  create(value) {
@@ -4298,6 +4300,12 @@ class Experiment_RampStep$Type extends runtime_4.MessageType {
4298
4300
  case /* discord_protos.discord_experimentation.v1.Experiment.StepStatus status */ 5:
4299
4301
  message.status = reader.int32();
4300
4302
  break;
4303
+ case /* optional google.protobuf.Timestamp paused_at */ 6:
4304
+ message.pausedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.pausedAt);
4305
+ break;
4306
+ case /* optional google.protobuf.Duration paused_duration */ 7:
4307
+ message.pausedDuration = duration_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.pausedDuration);
4308
+ break;
4301
4309
  default:
4302
4310
  let u = options.readUnknownField;
4303
4311
  if (u === "throw")
@@ -4325,6 +4333,12 @@ class Experiment_RampStep$Type extends runtime_4.MessageType {
4325
4333
  /* discord_protos.discord_experimentation.v1.Experiment.StepStatus status = 5; */
4326
4334
  if (message.status !== 0)
4327
4335
  writer.tag(5, runtime_2.WireType.Varint).int32(message.status);
4336
+ /* optional google.protobuf.Timestamp paused_at = 6; */
4337
+ if (message.pausedAt)
4338
+ timestamp_1.Timestamp.internalBinaryWrite(message.pausedAt, writer.tag(6, runtime_2.WireType.LengthDelimited).fork(), options).join();
4339
+ /* optional google.protobuf.Duration paused_duration = 7; */
4340
+ if (message.pausedDuration)
4341
+ duration_1.Duration.internalBinaryWrite(message.pausedDuration, writer.tag(7, runtime_2.WireType.LengthDelimited).fork(), options).join();
4328
4342
  let u = options.writeUnknownFields;
4329
4343
  if (u !== false)
4330
4344
  (u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-protos",
3
- "version": "1.2.413",
3
+ "version": "1.2.414",
4
4
  "description": "A parser for Discord's protobufs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",