@headspace/protos-events 1.49.0 → 1.51.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
@@ -2233,6 +2233,108 @@ export class ContentPlayed implements IContentPlayed {
2233
2233
  public toJSON(): { [k: string]: any };
2234
2234
  }
2235
2235
 
2236
+ /** Properties of a BuddyAccepted. */
2237
+ export interface IBuddyAccepted {
2238
+
2239
+ /** BuddyAccepted buddyName */
2240
+ buddyName?: (string|null);
2241
+
2242
+ /** BuddyAccepted userId */
2243
+ userId?: (string|null);
2244
+
2245
+ /** BuddyAccepted deepLink */
2246
+ deepLink?: (string|null);
2247
+ }
2248
+
2249
+ /** Represents a BuddyAccepted. */
2250
+ export class BuddyAccepted implements IBuddyAccepted {
2251
+
2252
+ /**
2253
+ * Constructs a new BuddyAccepted.
2254
+ * @param [properties] Properties to set
2255
+ */
2256
+ constructor(properties?: IBuddyAccepted);
2257
+
2258
+ /** BuddyAccepted buddyName. */
2259
+ public buddyName: string;
2260
+
2261
+ /** BuddyAccepted userId. */
2262
+ public userId: string;
2263
+
2264
+ /** BuddyAccepted deepLink. */
2265
+ public deepLink: string;
2266
+
2267
+ /**
2268
+ * Creates a new BuddyAccepted instance using the specified properties.
2269
+ * @param [properties] Properties to set
2270
+ * @returns BuddyAccepted instance
2271
+ */
2272
+ public static create(properties?: IBuddyAccepted): BuddyAccepted;
2273
+
2274
+ /**
2275
+ * Encodes the specified BuddyAccepted message. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
2276
+ * @param message BuddyAccepted message or plain object to encode
2277
+ * @param [writer] Writer to encode to
2278
+ * @returns Writer
2279
+ */
2280
+ public static encode(message: IBuddyAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
2281
+
2282
+ /**
2283
+ * Encodes the specified BuddyAccepted message, length delimited. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
2284
+ * @param message BuddyAccepted message or plain object to encode
2285
+ * @param [writer] Writer to encode to
2286
+ * @returns Writer
2287
+ */
2288
+ public static encodeDelimited(message: IBuddyAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
2289
+
2290
+ /**
2291
+ * Decodes a BuddyAccepted message from the specified reader or buffer.
2292
+ * @param reader Reader or buffer to decode from
2293
+ * @param [length] Message length if known beforehand
2294
+ * @returns BuddyAccepted
2295
+ * @throws {Error} If the payload is not a reader or valid buffer
2296
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2297
+ */
2298
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BuddyAccepted;
2299
+
2300
+ /**
2301
+ * Decodes a BuddyAccepted message from the specified reader or buffer, length delimited.
2302
+ * @param reader Reader or buffer to decode from
2303
+ * @returns BuddyAccepted
2304
+ * @throws {Error} If the payload is not a reader or valid buffer
2305
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2306
+ */
2307
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BuddyAccepted;
2308
+
2309
+ /**
2310
+ * Verifies a BuddyAccepted message.
2311
+ * @param message Plain object to verify
2312
+ * @returns `null` if valid, otherwise the reason why it is not
2313
+ */
2314
+ public static verify(message: { [k: string]: any }): (string|null);
2315
+
2316
+ /**
2317
+ * Creates a BuddyAccepted message from a plain object. Also converts values to their respective internal types.
2318
+ * @param object Plain object
2319
+ * @returns BuddyAccepted
2320
+ */
2321
+ public static fromObject(object: { [k: string]: any }): BuddyAccepted;
2322
+
2323
+ /**
2324
+ * Creates a plain object from a BuddyAccepted message. Also converts values to other types if specified.
2325
+ * @param message BuddyAccepted
2326
+ * @param [options] Conversion options
2327
+ * @returns Plain object
2328
+ */
2329
+ public static toObject(message: BuddyAccepted, options?: $protobuf.IConversionOptions): { [k: string]: any };
2330
+
2331
+ /**
2332
+ * Converts this BuddyAccepted to JSON.
2333
+ * @returns JSON object
2334
+ */
2335
+ public toJSON(): { [k: string]: any };
2336
+ }
2337
+
2236
2338
  /** Properties of a FamilyMemberAdded. */
2237
2339
  export interface IFamilyMemberAdded {
2238
2340
 
package/lib/index.js CHANGED
@@ -5304,6 +5304,238 @@ $root.ContentPlayed = (function() {
5304
5304
  return ContentPlayed;
5305
5305
  })();
5306
5306
 
5307
+ $root.BuddyAccepted = (function() {
5308
+
5309
+ /**
5310
+ * Properties of a BuddyAccepted.
5311
+ * @exports IBuddyAccepted
5312
+ * @interface IBuddyAccepted
5313
+ * @property {string|null} [buddyName] BuddyAccepted buddyName
5314
+ * @property {string|null} [userId] BuddyAccepted userId
5315
+ * @property {string|null} [deepLink] BuddyAccepted deepLink
5316
+ */
5317
+
5318
+ /**
5319
+ * Constructs a new BuddyAccepted.
5320
+ * @exports BuddyAccepted
5321
+ * @classdesc Represents a BuddyAccepted.
5322
+ * @implements IBuddyAccepted
5323
+ * @constructor
5324
+ * @param {IBuddyAccepted=} [properties] Properties to set
5325
+ */
5326
+ function BuddyAccepted(properties) {
5327
+ if (properties)
5328
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5329
+ if (properties[keys[i]] != null)
5330
+ this[keys[i]] = properties[keys[i]];
5331
+ }
5332
+
5333
+ /**
5334
+ * BuddyAccepted buddyName.
5335
+ * @member {string} buddyName
5336
+ * @memberof BuddyAccepted
5337
+ * @instance
5338
+ */
5339
+ BuddyAccepted.prototype.buddyName = "";
5340
+
5341
+ /**
5342
+ * BuddyAccepted userId.
5343
+ * @member {string} userId
5344
+ * @memberof BuddyAccepted
5345
+ * @instance
5346
+ */
5347
+ BuddyAccepted.prototype.userId = "";
5348
+
5349
+ /**
5350
+ * BuddyAccepted deepLink.
5351
+ * @member {string} deepLink
5352
+ * @memberof BuddyAccepted
5353
+ * @instance
5354
+ */
5355
+ BuddyAccepted.prototype.deepLink = "";
5356
+
5357
+ /**
5358
+ * Creates a new BuddyAccepted instance using the specified properties.
5359
+ * @function create
5360
+ * @memberof BuddyAccepted
5361
+ * @static
5362
+ * @param {IBuddyAccepted=} [properties] Properties to set
5363
+ * @returns {BuddyAccepted} BuddyAccepted instance
5364
+ */
5365
+ BuddyAccepted.create = function create(properties) {
5366
+ return new BuddyAccepted(properties);
5367
+ };
5368
+
5369
+ /**
5370
+ * Encodes the specified BuddyAccepted message. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
5371
+ * @function encode
5372
+ * @memberof BuddyAccepted
5373
+ * @static
5374
+ * @param {IBuddyAccepted} message BuddyAccepted message or plain object to encode
5375
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5376
+ * @returns {$protobuf.Writer} Writer
5377
+ */
5378
+ BuddyAccepted.encode = function encode(message, writer) {
5379
+ if (!writer)
5380
+ writer = $Writer.create();
5381
+ if (message.buddyName != null && message.hasOwnProperty("buddyName"))
5382
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.buddyName);
5383
+ if (message.userId != null && message.hasOwnProperty("userId"))
5384
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
5385
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5386
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.deepLink);
5387
+ return writer;
5388
+ };
5389
+
5390
+ /**
5391
+ * Encodes the specified BuddyAccepted message, length delimited. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
5392
+ * @function encodeDelimited
5393
+ * @memberof BuddyAccepted
5394
+ * @static
5395
+ * @param {IBuddyAccepted} message BuddyAccepted message or plain object to encode
5396
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5397
+ * @returns {$protobuf.Writer} Writer
5398
+ */
5399
+ BuddyAccepted.encodeDelimited = function encodeDelimited(message, writer) {
5400
+ return this.encode(message, writer).ldelim();
5401
+ };
5402
+
5403
+ /**
5404
+ * Decodes a BuddyAccepted message from the specified reader or buffer.
5405
+ * @function decode
5406
+ * @memberof BuddyAccepted
5407
+ * @static
5408
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5409
+ * @param {number} [length] Message length if known beforehand
5410
+ * @returns {BuddyAccepted} BuddyAccepted
5411
+ * @throws {Error} If the payload is not a reader or valid buffer
5412
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5413
+ */
5414
+ BuddyAccepted.decode = function decode(reader, length) {
5415
+ if (!(reader instanceof $Reader))
5416
+ reader = $Reader.create(reader);
5417
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BuddyAccepted();
5418
+ while (reader.pos < end) {
5419
+ var tag = reader.uint32();
5420
+ switch (tag >>> 3) {
5421
+ case 1:
5422
+ message.buddyName = reader.string();
5423
+ break;
5424
+ case 2:
5425
+ message.userId = reader.string();
5426
+ break;
5427
+ case 3:
5428
+ message.deepLink = reader.string();
5429
+ break;
5430
+ default:
5431
+ reader.skipType(tag & 7);
5432
+ break;
5433
+ }
5434
+ }
5435
+ return message;
5436
+ };
5437
+
5438
+ /**
5439
+ * Decodes a BuddyAccepted message from the specified reader or buffer, length delimited.
5440
+ * @function decodeDelimited
5441
+ * @memberof BuddyAccepted
5442
+ * @static
5443
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5444
+ * @returns {BuddyAccepted} BuddyAccepted
5445
+ * @throws {Error} If the payload is not a reader or valid buffer
5446
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5447
+ */
5448
+ BuddyAccepted.decodeDelimited = function decodeDelimited(reader) {
5449
+ if (!(reader instanceof $Reader))
5450
+ reader = new $Reader(reader);
5451
+ return this.decode(reader, reader.uint32());
5452
+ };
5453
+
5454
+ /**
5455
+ * Verifies a BuddyAccepted message.
5456
+ * @function verify
5457
+ * @memberof BuddyAccepted
5458
+ * @static
5459
+ * @param {Object.<string,*>} message Plain object to verify
5460
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
5461
+ */
5462
+ BuddyAccepted.verify = function verify(message) {
5463
+ if (typeof message !== "object" || message === null)
5464
+ return "object expected";
5465
+ if (message.buddyName != null && message.hasOwnProperty("buddyName"))
5466
+ if (!$util.isString(message.buddyName))
5467
+ return "buddyName: string expected";
5468
+ if (message.userId != null && message.hasOwnProperty("userId"))
5469
+ if (!$util.isString(message.userId))
5470
+ return "userId: string expected";
5471
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5472
+ if (!$util.isString(message.deepLink))
5473
+ return "deepLink: string expected";
5474
+ return null;
5475
+ };
5476
+
5477
+ /**
5478
+ * Creates a BuddyAccepted message from a plain object. Also converts values to their respective internal types.
5479
+ * @function fromObject
5480
+ * @memberof BuddyAccepted
5481
+ * @static
5482
+ * @param {Object.<string,*>} object Plain object
5483
+ * @returns {BuddyAccepted} BuddyAccepted
5484
+ */
5485
+ BuddyAccepted.fromObject = function fromObject(object) {
5486
+ if (object instanceof $root.BuddyAccepted)
5487
+ return object;
5488
+ var message = new $root.BuddyAccepted();
5489
+ if (object.buddyName != null)
5490
+ message.buddyName = String(object.buddyName);
5491
+ if (object.userId != null)
5492
+ message.userId = String(object.userId);
5493
+ if (object.deepLink != null)
5494
+ message.deepLink = String(object.deepLink);
5495
+ return message;
5496
+ };
5497
+
5498
+ /**
5499
+ * Creates a plain object from a BuddyAccepted message. Also converts values to other types if specified.
5500
+ * @function toObject
5501
+ * @memberof BuddyAccepted
5502
+ * @static
5503
+ * @param {BuddyAccepted} message BuddyAccepted
5504
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
5505
+ * @returns {Object.<string,*>} Plain object
5506
+ */
5507
+ BuddyAccepted.toObject = function toObject(message, options) {
5508
+ if (!options)
5509
+ options = {};
5510
+ var object = {};
5511
+ if (options.defaults) {
5512
+ object.buddyName = "";
5513
+ object.userId = "";
5514
+ object.deepLink = "";
5515
+ }
5516
+ if (message.buddyName != null && message.hasOwnProperty("buddyName"))
5517
+ object.buddyName = message.buddyName;
5518
+ if (message.userId != null && message.hasOwnProperty("userId"))
5519
+ object.userId = message.userId;
5520
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5521
+ object.deepLink = message.deepLink;
5522
+ return object;
5523
+ };
5524
+
5525
+ /**
5526
+ * Converts this BuddyAccepted to JSON.
5527
+ * @function toJSON
5528
+ * @memberof BuddyAccepted
5529
+ * @instance
5530
+ * @returns {Object.<string,*>} JSON object
5531
+ */
5532
+ BuddyAccepted.prototype.toJSON = function toJSON() {
5533
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5534
+ };
5535
+
5536
+ return BuddyAccepted;
5537
+ })();
5538
+
5307
5539
  $root.FamilyMemberAdded = (function() {
5308
5540
 
5309
5541
  /**
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.49.0"
19
+ "version": "1.51.0"
20
20
  }