@headspace/protos-events 1.69.0 → 1.71.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
@@ -2026,6 +2026,9 @@ export namespace userdomain {
2026
2026
 
2027
2027
  /** User signupPlatform */
2028
2028
  signupPlatform?: (userdomain.Platform|null);
2029
+
2030
+ /** User registrationConnection */
2031
+ registrationConnection?: (userdomain.Connection|null);
2029
2032
  }
2030
2033
 
2031
2034
  /** Represents a User. */
@@ -2061,6 +2064,9 @@ export namespace userdomain {
2061
2064
  /** User signupPlatform. */
2062
2065
  public signupPlatform: userdomain.Platform;
2063
2066
 
2067
+ /** User registrationConnection. */
2068
+ public registrationConnection: userdomain.Connection;
2069
+
2064
2070
  /**
2065
2071
  * Creates a new User instance using the specified properties.
2066
2072
  * @param [properties] Properties to set
@@ -2141,6 +2147,14 @@ export namespace userdomain {
2141
2147
  ALEXA = 4,
2142
2148
  GOOGLE_ASSISTANT = 5
2143
2149
  }
2150
+
2151
+ /** Connection enum. */
2152
+ enum Connection {
2153
+ UNKNOWN = 0,
2154
+ EMAIL = 1,
2155
+ FACEBOOK = 2,
2156
+ SPOTIFY = 3
2157
+ }
2144
2158
  }
2145
2159
 
2146
2160
  /** Properties of a UserRoleUpdated. */
@@ -3283,6 +3297,102 @@ export class BuddyAccepted implements IBuddyAccepted {
3283
3297
  public toJSON(): { [k: string]: any };
3284
3298
  }
3285
3299
 
3300
+ /** Properties of a BuddyDeleted. */
3301
+ export interface IBuddyDeleted {
3302
+
3303
+ /** BuddyDeleted userId */
3304
+ userId?: (string|null);
3305
+
3306
+ /** BuddyDeleted buddyUserId */
3307
+ buddyUserId?: (string|null);
3308
+ }
3309
+
3310
+ /** Represents a BuddyDeleted. */
3311
+ export class BuddyDeleted implements IBuddyDeleted {
3312
+
3313
+ /**
3314
+ * Constructs a new BuddyDeleted.
3315
+ * @param [properties] Properties to set
3316
+ */
3317
+ constructor(properties?: IBuddyDeleted);
3318
+
3319
+ /** BuddyDeleted userId. */
3320
+ public userId: string;
3321
+
3322
+ /** BuddyDeleted buddyUserId. */
3323
+ public buddyUserId: string;
3324
+
3325
+ /**
3326
+ * Creates a new BuddyDeleted instance using the specified properties.
3327
+ * @param [properties] Properties to set
3328
+ * @returns BuddyDeleted instance
3329
+ */
3330
+ public static create(properties?: IBuddyDeleted): BuddyDeleted;
3331
+
3332
+ /**
3333
+ * Encodes the specified BuddyDeleted message. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
3334
+ * @param message BuddyDeleted message or plain object to encode
3335
+ * @param [writer] Writer to encode to
3336
+ * @returns Writer
3337
+ */
3338
+ public static encode(message: IBuddyDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
3339
+
3340
+ /**
3341
+ * Encodes the specified BuddyDeleted message, length delimited. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
3342
+ * @param message BuddyDeleted message or plain object to encode
3343
+ * @param [writer] Writer to encode to
3344
+ * @returns Writer
3345
+ */
3346
+ public static encodeDelimited(message: IBuddyDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
3347
+
3348
+ /**
3349
+ * Decodes a BuddyDeleted message from the specified reader or buffer.
3350
+ * @param reader Reader or buffer to decode from
3351
+ * @param [length] Message length if known beforehand
3352
+ * @returns BuddyDeleted
3353
+ * @throws {Error} If the payload is not a reader or valid buffer
3354
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3355
+ */
3356
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BuddyDeleted;
3357
+
3358
+ /**
3359
+ * Decodes a BuddyDeleted message from the specified reader or buffer, length delimited.
3360
+ * @param reader Reader or buffer to decode from
3361
+ * @returns BuddyDeleted
3362
+ * @throws {Error} If the payload is not a reader or valid buffer
3363
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3364
+ */
3365
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BuddyDeleted;
3366
+
3367
+ /**
3368
+ * Verifies a BuddyDeleted message.
3369
+ * @param message Plain object to verify
3370
+ * @returns `null` if valid, otherwise the reason why it is not
3371
+ */
3372
+ public static verify(message: { [k: string]: any }): (string|null);
3373
+
3374
+ /**
3375
+ * Creates a BuddyDeleted message from a plain object. Also converts values to their respective internal types.
3376
+ * @param object Plain object
3377
+ * @returns BuddyDeleted
3378
+ */
3379
+ public static fromObject(object: { [k: string]: any }): BuddyDeleted;
3380
+
3381
+ /**
3382
+ * Creates a plain object from a BuddyDeleted message. Also converts values to other types if specified.
3383
+ * @param message BuddyDeleted
3384
+ * @param [options] Conversion options
3385
+ * @returns Plain object
3386
+ */
3387
+ public static toObject(message: BuddyDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
3388
+
3389
+ /**
3390
+ * Converts this BuddyDeleted to JSON.
3391
+ * @returns JSON object
3392
+ */
3393
+ public toJSON(): { [k: string]: any };
3394
+ }
3395
+
3286
3396
  /** Properties of a MessageSent. */
3287
3397
  export interface IMessageSent {
3288
3398
 
package/lib/index.js CHANGED
@@ -4824,6 +4824,7 @@ $root.userdomain = (function() {
4824
4824
  * @property {string|null} [countryCode] User countryCode
4825
4825
  * @property {string|null} [stateCode] User stateCode
4826
4826
  * @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
4827
+ * @property {userdomain.Connection|null} [registrationConnection] User registrationConnection
4827
4828
  */
4828
4829
 
4829
4830
  /**
@@ -4905,6 +4906,14 @@ $root.userdomain = (function() {
4905
4906
  */
4906
4907
  User.prototype.signupPlatform = 0;
4907
4908
 
4909
+ /**
4910
+ * User registrationConnection.
4911
+ * @member {userdomain.Connection} registrationConnection
4912
+ * @memberof userdomain.User
4913
+ * @instance
4914
+ */
4915
+ User.prototype.registrationConnection = 0;
4916
+
4908
4917
  /**
4909
4918
  * Creates a new User instance using the specified properties.
4910
4919
  * @function create
@@ -4945,6 +4954,8 @@ $root.userdomain = (function() {
4945
4954
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
4946
4955
  if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
4947
4956
  writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
4957
+ if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
4958
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.registrationConnection);
4948
4959
  return writer;
4949
4960
  };
4950
4961
 
@@ -5003,6 +5014,9 @@ $root.userdomain = (function() {
5003
5014
  case 8:
5004
5015
  message.signupPlatform = reader.int32();
5005
5016
  break;
5017
+ case 9:
5018
+ message.registrationConnection = reader.int32();
5019
+ break;
5006
5020
  default:
5007
5021
  reader.skipType(tag & 7);
5008
5022
  break;
@@ -5071,6 +5085,16 @@ $root.userdomain = (function() {
5071
5085
  case 5:
5072
5086
  break;
5073
5087
  }
5088
+ if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
5089
+ switch (message.registrationConnection) {
5090
+ default:
5091
+ return "registrationConnection: enum value expected";
5092
+ case 0:
5093
+ case 1:
5094
+ case 2:
5095
+ case 3:
5096
+ break;
5097
+ }
5074
5098
  return null;
5075
5099
  };
5076
5100
 
@@ -5126,6 +5150,24 @@ $root.userdomain = (function() {
5126
5150
  message.signupPlatform = 5;
5127
5151
  break;
5128
5152
  }
5153
+ switch (object.registrationConnection) {
5154
+ case "UNKNOWN":
5155
+ case 0:
5156
+ message.registrationConnection = 0;
5157
+ break;
5158
+ case "EMAIL":
5159
+ case 1:
5160
+ message.registrationConnection = 1;
5161
+ break;
5162
+ case "FACEBOOK":
5163
+ case 2:
5164
+ message.registrationConnection = 2;
5165
+ break;
5166
+ case "SPOTIFY":
5167
+ case 3:
5168
+ message.registrationConnection = 3;
5169
+ break;
5170
+ }
5129
5171
  return message;
5130
5172
  };
5131
5173
 
@@ -5151,6 +5193,7 @@ $root.userdomain = (function() {
5151
5193
  object.countryCode = "";
5152
5194
  object.stateCode = "";
5153
5195
  object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
5196
+ object.registrationConnection = options.enums === String ? "UNKNOWN" : 0;
5154
5197
  }
5155
5198
  if (message.hsId != null && message.hasOwnProperty("hsId"))
5156
5199
  object.hsId = message.hsId;
@@ -5168,6 +5211,8 @@ $root.userdomain = (function() {
5168
5211
  object.stateCode = message.stateCode;
5169
5212
  if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
5170
5213
  object.signupPlatform = options.enums === String ? $root.userdomain.Platform[message.signupPlatform] : message.signupPlatform;
5214
+ if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
5215
+ object.registrationConnection = options.enums === String ? $root.userdomain.Connection[message.registrationConnection] : message.registrationConnection;
5171
5216
  return object;
5172
5217
  };
5173
5218
 
@@ -5207,6 +5252,24 @@ $root.userdomain = (function() {
5207
5252
  return values;
5208
5253
  })();
5209
5254
 
5255
+ /**
5256
+ * Connection enum.
5257
+ * @name userdomain.Connection
5258
+ * @enum {string}
5259
+ * @property {number} UNKNOWN=0 UNKNOWN value
5260
+ * @property {number} EMAIL=1 EMAIL value
5261
+ * @property {number} FACEBOOK=2 FACEBOOK value
5262
+ * @property {number} SPOTIFY=3 SPOTIFY value
5263
+ */
5264
+ userdomain.Connection = (function() {
5265
+ var valuesById = {}, values = Object.create(valuesById);
5266
+ values[valuesById[0] = "UNKNOWN"] = 0;
5267
+ values[valuesById[1] = "EMAIL"] = 1;
5268
+ values[valuesById[2] = "FACEBOOK"] = 2;
5269
+ values[valuesById[3] = "SPOTIFY"] = 3;
5270
+ return values;
5271
+ })();
5272
+
5210
5273
  return userdomain;
5211
5274
  })();
5212
5275
 
@@ -7970,6 +8033,216 @@ $root.BuddyAccepted = (function() {
7970
8033
  return BuddyAccepted;
7971
8034
  })();
7972
8035
 
8036
+ $root.BuddyDeleted = (function() {
8037
+
8038
+ /**
8039
+ * Properties of a BuddyDeleted.
8040
+ * @exports IBuddyDeleted
8041
+ * @interface IBuddyDeleted
8042
+ * @property {string|null} [userId] BuddyDeleted userId
8043
+ * @property {string|null} [buddyUserId] BuddyDeleted buddyUserId
8044
+ */
8045
+
8046
+ /**
8047
+ * Constructs a new BuddyDeleted.
8048
+ * @exports BuddyDeleted
8049
+ * @classdesc Represents a BuddyDeleted.
8050
+ * @implements IBuddyDeleted
8051
+ * @constructor
8052
+ * @param {IBuddyDeleted=} [properties] Properties to set
8053
+ */
8054
+ function BuddyDeleted(properties) {
8055
+ if (properties)
8056
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8057
+ if (properties[keys[i]] != null)
8058
+ this[keys[i]] = properties[keys[i]];
8059
+ }
8060
+
8061
+ /**
8062
+ * BuddyDeleted userId.
8063
+ * @member {string} userId
8064
+ * @memberof BuddyDeleted
8065
+ * @instance
8066
+ */
8067
+ BuddyDeleted.prototype.userId = "";
8068
+
8069
+ /**
8070
+ * BuddyDeleted buddyUserId.
8071
+ * @member {string} buddyUserId
8072
+ * @memberof BuddyDeleted
8073
+ * @instance
8074
+ */
8075
+ BuddyDeleted.prototype.buddyUserId = "";
8076
+
8077
+ /**
8078
+ * Creates a new BuddyDeleted instance using the specified properties.
8079
+ * @function create
8080
+ * @memberof BuddyDeleted
8081
+ * @static
8082
+ * @param {IBuddyDeleted=} [properties] Properties to set
8083
+ * @returns {BuddyDeleted} BuddyDeleted instance
8084
+ */
8085
+ BuddyDeleted.create = function create(properties) {
8086
+ return new BuddyDeleted(properties);
8087
+ };
8088
+
8089
+ /**
8090
+ * Encodes the specified BuddyDeleted message. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
8091
+ * @function encode
8092
+ * @memberof BuddyDeleted
8093
+ * @static
8094
+ * @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
8095
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8096
+ * @returns {$protobuf.Writer} Writer
8097
+ */
8098
+ BuddyDeleted.encode = function encode(message, writer) {
8099
+ if (!writer)
8100
+ writer = $Writer.create();
8101
+ if (message.userId != null && message.hasOwnProperty("userId"))
8102
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
8103
+ if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
8104
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.buddyUserId);
8105
+ return writer;
8106
+ };
8107
+
8108
+ /**
8109
+ * Encodes the specified BuddyDeleted message, length delimited. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
8110
+ * @function encodeDelimited
8111
+ * @memberof BuddyDeleted
8112
+ * @static
8113
+ * @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
8114
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8115
+ * @returns {$protobuf.Writer} Writer
8116
+ */
8117
+ BuddyDeleted.encodeDelimited = function encodeDelimited(message, writer) {
8118
+ return this.encode(message, writer).ldelim();
8119
+ };
8120
+
8121
+ /**
8122
+ * Decodes a BuddyDeleted message from the specified reader or buffer.
8123
+ * @function decode
8124
+ * @memberof BuddyDeleted
8125
+ * @static
8126
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8127
+ * @param {number} [length] Message length if known beforehand
8128
+ * @returns {BuddyDeleted} BuddyDeleted
8129
+ * @throws {Error} If the payload is not a reader or valid buffer
8130
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8131
+ */
8132
+ BuddyDeleted.decode = function decode(reader, length) {
8133
+ if (!(reader instanceof $Reader))
8134
+ reader = $Reader.create(reader);
8135
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BuddyDeleted();
8136
+ while (reader.pos < end) {
8137
+ var tag = reader.uint32();
8138
+ switch (tag >>> 3) {
8139
+ case 1:
8140
+ message.userId = reader.string();
8141
+ break;
8142
+ case 2:
8143
+ message.buddyUserId = reader.string();
8144
+ break;
8145
+ default:
8146
+ reader.skipType(tag & 7);
8147
+ break;
8148
+ }
8149
+ }
8150
+ return message;
8151
+ };
8152
+
8153
+ /**
8154
+ * Decodes a BuddyDeleted message from the specified reader or buffer, length delimited.
8155
+ * @function decodeDelimited
8156
+ * @memberof BuddyDeleted
8157
+ * @static
8158
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8159
+ * @returns {BuddyDeleted} BuddyDeleted
8160
+ * @throws {Error} If the payload is not a reader or valid buffer
8161
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8162
+ */
8163
+ BuddyDeleted.decodeDelimited = function decodeDelimited(reader) {
8164
+ if (!(reader instanceof $Reader))
8165
+ reader = new $Reader(reader);
8166
+ return this.decode(reader, reader.uint32());
8167
+ };
8168
+
8169
+ /**
8170
+ * Verifies a BuddyDeleted message.
8171
+ * @function verify
8172
+ * @memberof BuddyDeleted
8173
+ * @static
8174
+ * @param {Object.<string,*>} message Plain object to verify
8175
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8176
+ */
8177
+ BuddyDeleted.verify = function verify(message) {
8178
+ if (typeof message !== "object" || message === null)
8179
+ return "object expected";
8180
+ if (message.userId != null && message.hasOwnProperty("userId"))
8181
+ if (!$util.isString(message.userId))
8182
+ return "userId: string expected";
8183
+ if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
8184
+ if (!$util.isString(message.buddyUserId))
8185
+ return "buddyUserId: string expected";
8186
+ return null;
8187
+ };
8188
+
8189
+ /**
8190
+ * Creates a BuddyDeleted message from a plain object. Also converts values to their respective internal types.
8191
+ * @function fromObject
8192
+ * @memberof BuddyDeleted
8193
+ * @static
8194
+ * @param {Object.<string,*>} object Plain object
8195
+ * @returns {BuddyDeleted} BuddyDeleted
8196
+ */
8197
+ BuddyDeleted.fromObject = function fromObject(object) {
8198
+ if (object instanceof $root.BuddyDeleted)
8199
+ return object;
8200
+ var message = new $root.BuddyDeleted();
8201
+ if (object.userId != null)
8202
+ message.userId = String(object.userId);
8203
+ if (object.buddyUserId != null)
8204
+ message.buddyUserId = String(object.buddyUserId);
8205
+ return message;
8206
+ };
8207
+
8208
+ /**
8209
+ * Creates a plain object from a BuddyDeleted message. Also converts values to other types if specified.
8210
+ * @function toObject
8211
+ * @memberof BuddyDeleted
8212
+ * @static
8213
+ * @param {BuddyDeleted} message BuddyDeleted
8214
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8215
+ * @returns {Object.<string,*>} Plain object
8216
+ */
8217
+ BuddyDeleted.toObject = function toObject(message, options) {
8218
+ if (!options)
8219
+ options = {};
8220
+ var object = {};
8221
+ if (options.defaults) {
8222
+ object.userId = "";
8223
+ object.buddyUserId = "";
8224
+ }
8225
+ if (message.userId != null && message.hasOwnProperty("userId"))
8226
+ object.userId = message.userId;
8227
+ if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
8228
+ object.buddyUserId = message.buddyUserId;
8229
+ return object;
8230
+ };
8231
+
8232
+ /**
8233
+ * Converts this BuddyDeleted to JSON.
8234
+ * @function toJSON
8235
+ * @memberof BuddyDeleted
8236
+ * @instance
8237
+ * @returns {Object.<string,*>} JSON object
8238
+ */
8239
+ BuddyDeleted.prototype.toJSON = function toJSON() {
8240
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8241
+ };
8242
+
8243
+ return BuddyDeleted;
8244
+ })();
8245
+
7973
8246
  $root.MessageSent = (function() {
7974
8247
 
7975
8248
  /**
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.69.0"
19
+ "version": "1.71.0"
20
20
  }