@headspace/protos-events 1.852.0 → 1.853.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 +12 -0
- package/lib/index.js +58 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -49519,6 +49519,12 @@ export class ContentPlayed {
|
|
|
49519
49519
|
/** ContentPlayed metadata. */
|
|
49520
49520
|
metadata?: (ContentPlayedMetadata.$Properties|null);
|
|
49521
49521
|
|
|
49522
|
+
/** ContentPlayed passportId. */
|
|
49523
|
+
passportId: string;
|
|
49524
|
+
|
|
49525
|
+
/** ContentPlayed universe. */
|
|
49526
|
+
universe: string;
|
|
49527
|
+
|
|
49522
49528
|
/**
|
|
49523
49529
|
* Creates a new ContentPlayed instance using the specified properties.
|
|
49524
49530
|
* @param [properties] Properties to set
|
|
@@ -49621,6 +49627,12 @@ export namespace ContentPlayed {
|
|
|
49621
49627
|
/** ContentPlayed metadata */
|
|
49622
49628
|
metadata?: (ContentPlayedMetadata.$Properties|null);
|
|
49623
49629
|
|
|
49630
|
+
/** ContentPlayed passportId */
|
|
49631
|
+
passportId?: (string|null);
|
|
49632
|
+
|
|
49633
|
+
/** ContentPlayed universe */
|
|
49634
|
+
universe?: (string|null);
|
|
49635
|
+
|
|
49624
49636
|
/** Unknown fields preserved while decoding */
|
|
49625
49637
|
$unknowns?: Uint8Array[];
|
|
49626
49638
|
}
|
package/lib/index.js
CHANGED
|
@@ -147331,6 +147331,8 @@ $root.ContentPlayed = (function() {
|
|
|
147331
147331
|
* @property {ContentType|null} [contentType] ContentPlayed contentType
|
|
147332
147332
|
* @property {Mode|null} [mode] ContentPlayed mode
|
|
147333
147333
|
* @property {ContentPlayedMetadata.$Properties|null} [metadata] ContentPlayed metadata
|
|
147334
|
+
* @property {string|null} [passportId] ContentPlayed passportId
|
|
147335
|
+
* @property {string|null} [universe] ContentPlayed universe
|
|
147334
147336
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
147335
147337
|
*/
|
|
147336
147338
|
|
|
@@ -147410,6 +147412,22 @@ $root.ContentPlayed = (function() {
|
|
|
147410
147412
|
*/
|
|
147411
147413
|
ContentPlayed.prototype.metadata = null;
|
|
147412
147414
|
|
|
147415
|
+
/**
|
|
147416
|
+
* ContentPlayed passportId.
|
|
147417
|
+
* @member {string} passportId
|
|
147418
|
+
* @memberof ContentPlayed
|
|
147419
|
+
* @instance
|
|
147420
|
+
*/
|
|
147421
|
+
ContentPlayed.prototype.passportId = "";
|
|
147422
|
+
|
|
147423
|
+
/**
|
|
147424
|
+
* ContentPlayed universe.
|
|
147425
|
+
* @member {string} universe
|
|
147426
|
+
* @memberof ContentPlayed
|
|
147427
|
+
* @instance
|
|
147428
|
+
*/
|
|
147429
|
+
ContentPlayed.prototype.universe = "";
|
|
147430
|
+
|
|
147413
147431
|
/**
|
|
147414
147432
|
* Creates a new ContentPlayed instance using the specified properties.
|
|
147415
147433
|
* @function create
|
|
@@ -147450,6 +147468,10 @@ $root.ContentPlayed = (function() {
|
|
|
147450
147468
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.mode);
|
|
147451
147469
|
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
147452
147470
|
$root.ContentPlayedMetadata.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
147471
|
+
if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
|
|
147472
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.passportId);
|
|
147473
|
+
if (message.universe != null && Object.hasOwnProperty.call(message, "universe"))
|
|
147474
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.universe);
|
|
147453
147475
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
147454
147476
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
147455
147477
|
writer.raw(message.$unknowns[i]);
|
|
@@ -147548,6 +147570,24 @@ $root.ContentPlayed = (function() {
|
|
|
147548
147570
|
message.metadata = $root.ContentPlayedMetadata.decode(reader, reader.uint32(), undefined, _depth + 1, message.metadata);
|
|
147549
147571
|
continue;
|
|
147550
147572
|
}
|
|
147573
|
+
case 7: {
|
|
147574
|
+
if (wireType !== 2)
|
|
147575
|
+
break;
|
|
147576
|
+
if ((value = reader.string()).length)
|
|
147577
|
+
message.passportId = value;
|
|
147578
|
+
else
|
|
147579
|
+
delete message.passportId;
|
|
147580
|
+
continue;
|
|
147581
|
+
}
|
|
147582
|
+
case 8: {
|
|
147583
|
+
if (wireType !== 2)
|
|
147584
|
+
break;
|
|
147585
|
+
if ((value = reader.string()).length)
|
|
147586
|
+
message.universe = value;
|
|
147587
|
+
else
|
|
147588
|
+
delete message.universe;
|
|
147589
|
+
continue;
|
|
147590
|
+
}
|
|
147551
147591
|
}
|
|
147552
147592
|
reader.skipType(wireType, _depth, tag);
|
|
147553
147593
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -147643,6 +147683,12 @@ $root.ContentPlayed = (function() {
|
|
|
147643
147683
|
if (error)
|
|
147644
147684
|
return "metadata." + error;
|
|
147645
147685
|
}
|
|
147686
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
147687
|
+
if (!$util.isString(message.passportId))
|
|
147688
|
+
return "passportId: string expected";
|
|
147689
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
147690
|
+
if (!$util.isString(message.universe))
|
|
147691
|
+
return "universe: string expected";
|
|
147646
147692
|
return null;
|
|
147647
147693
|
};
|
|
147648
147694
|
|
|
@@ -147813,6 +147859,12 @@ $root.ContentPlayed = (function() {
|
|
|
147813
147859
|
throw TypeError(".ContentPlayed.metadata: object expected");
|
|
147814
147860
|
message.metadata = $root.ContentPlayedMetadata.fromObject(object.metadata, _depth + 1);
|
|
147815
147861
|
}
|
|
147862
|
+
if (object.passportId != null)
|
|
147863
|
+
if (typeof object.passportId !== "string" || object.passportId.length)
|
|
147864
|
+
message.passportId = String(object.passportId);
|
|
147865
|
+
if (object.universe != null)
|
|
147866
|
+
if (typeof object.universe !== "string" || object.universe.length)
|
|
147867
|
+
message.universe = String(object.universe);
|
|
147816
147868
|
return message;
|
|
147817
147869
|
};
|
|
147818
147870
|
|
|
@@ -147840,6 +147892,8 @@ $root.ContentPlayed = (function() {
|
|
|
147840
147892
|
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
147841
147893
|
object.mode = options.enums === String ? "MODE_UNRECOGNIZED" : 0;
|
|
147842
147894
|
object.metadata = null;
|
|
147895
|
+
object.passportId = "";
|
|
147896
|
+
object.universe = "";
|
|
147843
147897
|
}
|
|
147844
147898
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
147845
147899
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -147858,6 +147912,10 @@ $root.ContentPlayed = (function() {
|
|
|
147858
147912
|
object.mode = options.enums === String ? $root.Mode[message.mode] === undefined ? message.mode : $root.Mode[message.mode] : message.mode;
|
|
147859
147913
|
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
147860
147914
|
object.metadata = $root.ContentPlayedMetadata.toObject(message.metadata, options);
|
|
147915
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
147916
|
+
object.passportId = message.passportId;
|
|
147917
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
147918
|
+
object.universe = message.universe;
|
|
147861
147919
|
return object;
|
|
147862
147920
|
};
|
|
147863
147921
|
|
package/package.json
CHANGED