@headspace/protos-events 1.76.0 → 1.78.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +1210 -28
  2. package/lib/index.js +738 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -13984,6 +13984,744 @@ $root.AccessGroupDeleted = (function() {
13984
13984
  return AccessGroupDeleted;
13985
13985
  })();
13986
13986
 
13987
+ $root.UserAccessGroupCreated = (function() {
13988
+
13989
+ /**
13990
+ * Properties of a UserAccessGroupCreated.
13991
+ * @exports IUserAccessGroupCreated
13992
+ * @interface IUserAccessGroupCreated
13993
+ * @property {string|null} [userId] UserAccessGroupCreated userId
13994
+ * @property {string|null} [accessGroupName] UserAccessGroupCreated accessGroupName
13995
+ * @property {number|Long|null} [createdAt] UserAccessGroupCreated createdAt
13996
+ */
13997
+
13998
+ /**
13999
+ * Constructs a new UserAccessGroupCreated.
14000
+ * @exports UserAccessGroupCreated
14001
+ * @classdesc Represents a UserAccessGroupCreated.
14002
+ * @implements IUserAccessGroupCreated
14003
+ * @constructor
14004
+ * @param {IUserAccessGroupCreated=} [properties] Properties to set
14005
+ */
14006
+ function UserAccessGroupCreated(properties) {
14007
+ if (properties)
14008
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14009
+ if (properties[keys[i]] != null)
14010
+ this[keys[i]] = properties[keys[i]];
14011
+ }
14012
+
14013
+ /**
14014
+ * UserAccessGroupCreated userId.
14015
+ * @member {string} userId
14016
+ * @memberof UserAccessGroupCreated
14017
+ * @instance
14018
+ */
14019
+ UserAccessGroupCreated.prototype.userId = "";
14020
+
14021
+ /**
14022
+ * UserAccessGroupCreated accessGroupName.
14023
+ * @member {string} accessGroupName
14024
+ * @memberof UserAccessGroupCreated
14025
+ * @instance
14026
+ */
14027
+ UserAccessGroupCreated.prototype.accessGroupName = "";
14028
+
14029
+ /**
14030
+ * UserAccessGroupCreated createdAt.
14031
+ * @member {number|Long} createdAt
14032
+ * @memberof UserAccessGroupCreated
14033
+ * @instance
14034
+ */
14035
+ UserAccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
14036
+
14037
+ /**
14038
+ * Creates a new UserAccessGroupCreated instance using the specified properties.
14039
+ * @function create
14040
+ * @memberof UserAccessGroupCreated
14041
+ * @static
14042
+ * @param {IUserAccessGroupCreated=} [properties] Properties to set
14043
+ * @returns {UserAccessGroupCreated} UserAccessGroupCreated instance
14044
+ */
14045
+ UserAccessGroupCreated.create = function create(properties) {
14046
+ return new UserAccessGroupCreated(properties);
14047
+ };
14048
+
14049
+ /**
14050
+ * Encodes the specified UserAccessGroupCreated message. Does not implicitly {@link UserAccessGroupCreated.verify|verify} messages.
14051
+ * @function encode
14052
+ * @memberof UserAccessGroupCreated
14053
+ * @static
14054
+ * @param {IUserAccessGroupCreated} message UserAccessGroupCreated message or plain object to encode
14055
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14056
+ * @returns {$protobuf.Writer} Writer
14057
+ */
14058
+ UserAccessGroupCreated.encode = function encode(message, writer) {
14059
+ if (!writer)
14060
+ writer = $Writer.create();
14061
+ if (message.userId != null && message.hasOwnProperty("userId"))
14062
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
14063
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14064
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.accessGroupName);
14065
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
14066
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
14067
+ return writer;
14068
+ };
14069
+
14070
+ /**
14071
+ * Encodes the specified UserAccessGroupCreated message, length delimited. Does not implicitly {@link UserAccessGroupCreated.verify|verify} messages.
14072
+ * @function encodeDelimited
14073
+ * @memberof UserAccessGroupCreated
14074
+ * @static
14075
+ * @param {IUserAccessGroupCreated} message UserAccessGroupCreated message or plain object to encode
14076
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14077
+ * @returns {$protobuf.Writer} Writer
14078
+ */
14079
+ UserAccessGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
14080
+ return this.encode(message, writer).ldelim();
14081
+ };
14082
+
14083
+ /**
14084
+ * Decodes a UserAccessGroupCreated message from the specified reader or buffer.
14085
+ * @function decode
14086
+ * @memberof UserAccessGroupCreated
14087
+ * @static
14088
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14089
+ * @param {number} [length] Message length if known beforehand
14090
+ * @returns {UserAccessGroupCreated} UserAccessGroupCreated
14091
+ * @throws {Error} If the payload is not a reader or valid buffer
14092
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14093
+ */
14094
+ UserAccessGroupCreated.decode = function decode(reader, length) {
14095
+ if (!(reader instanceof $Reader))
14096
+ reader = $Reader.create(reader);
14097
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserAccessGroupCreated();
14098
+ while (reader.pos < end) {
14099
+ var tag = reader.uint32();
14100
+ switch (tag >>> 3) {
14101
+ case 1:
14102
+ message.userId = reader.string();
14103
+ break;
14104
+ case 2:
14105
+ message.accessGroupName = reader.string();
14106
+ break;
14107
+ case 3:
14108
+ message.createdAt = reader.uint64();
14109
+ break;
14110
+ default:
14111
+ reader.skipType(tag & 7);
14112
+ break;
14113
+ }
14114
+ }
14115
+ return message;
14116
+ };
14117
+
14118
+ /**
14119
+ * Decodes a UserAccessGroupCreated message from the specified reader or buffer, length delimited.
14120
+ * @function decodeDelimited
14121
+ * @memberof UserAccessGroupCreated
14122
+ * @static
14123
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14124
+ * @returns {UserAccessGroupCreated} UserAccessGroupCreated
14125
+ * @throws {Error} If the payload is not a reader or valid buffer
14126
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14127
+ */
14128
+ UserAccessGroupCreated.decodeDelimited = function decodeDelimited(reader) {
14129
+ if (!(reader instanceof $Reader))
14130
+ reader = new $Reader(reader);
14131
+ return this.decode(reader, reader.uint32());
14132
+ };
14133
+
14134
+ /**
14135
+ * Verifies a UserAccessGroupCreated message.
14136
+ * @function verify
14137
+ * @memberof UserAccessGroupCreated
14138
+ * @static
14139
+ * @param {Object.<string,*>} message Plain object to verify
14140
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14141
+ */
14142
+ UserAccessGroupCreated.verify = function verify(message) {
14143
+ if (typeof message !== "object" || message === null)
14144
+ return "object expected";
14145
+ if (message.userId != null && message.hasOwnProperty("userId"))
14146
+ if (!$util.isString(message.userId))
14147
+ return "userId: string expected";
14148
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14149
+ if (!$util.isString(message.accessGroupName))
14150
+ return "accessGroupName: string expected";
14151
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
14152
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
14153
+ return "createdAt: integer|Long expected";
14154
+ return null;
14155
+ };
14156
+
14157
+ /**
14158
+ * Creates a UserAccessGroupCreated message from a plain object. Also converts values to their respective internal types.
14159
+ * @function fromObject
14160
+ * @memberof UserAccessGroupCreated
14161
+ * @static
14162
+ * @param {Object.<string,*>} object Plain object
14163
+ * @returns {UserAccessGroupCreated} UserAccessGroupCreated
14164
+ */
14165
+ UserAccessGroupCreated.fromObject = function fromObject(object) {
14166
+ if (object instanceof $root.UserAccessGroupCreated)
14167
+ return object;
14168
+ var message = new $root.UserAccessGroupCreated();
14169
+ if (object.userId != null)
14170
+ message.userId = String(object.userId);
14171
+ if (object.accessGroupName != null)
14172
+ message.accessGroupName = String(object.accessGroupName);
14173
+ if (object.createdAt != null)
14174
+ if ($util.Long)
14175
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
14176
+ else if (typeof object.createdAt === "string")
14177
+ message.createdAt = parseInt(object.createdAt, 10);
14178
+ else if (typeof object.createdAt === "number")
14179
+ message.createdAt = object.createdAt;
14180
+ else if (typeof object.createdAt === "object")
14181
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
14182
+ return message;
14183
+ };
14184
+
14185
+ /**
14186
+ * Creates a plain object from a UserAccessGroupCreated message. Also converts values to other types if specified.
14187
+ * @function toObject
14188
+ * @memberof UserAccessGroupCreated
14189
+ * @static
14190
+ * @param {UserAccessGroupCreated} message UserAccessGroupCreated
14191
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14192
+ * @returns {Object.<string,*>} Plain object
14193
+ */
14194
+ UserAccessGroupCreated.toObject = function toObject(message, options) {
14195
+ if (!options)
14196
+ options = {};
14197
+ var object = {};
14198
+ if (options.defaults) {
14199
+ object.userId = "";
14200
+ object.accessGroupName = "";
14201
+ if ($util.Long) {
14202
+ var long = new $util.Long(0, 0, true);
14203
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14204
+ } else
14205
+ object.createdAt = options.longs === String ? "0" : 0;
14206
+ }
14207
+ if (message.userId != null && message.hasOwnProperty("userId"))
14208
+ object.userId = message.userId;
14209
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14210
+ object.accessGroupName = message.accessGroupName;
14211
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
14212
+ if (typeof message.createdAt === "number")
14213
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
14214
+ else
14215
+ 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;
14216
+ return object;
14217
+ };
14218
+
14219
+ /**
14220
+ * Converts this UserAccessGroupCreated to JSON.
14221
+ * @function toJSON
14222
+ * @memberof UserAccessGroupCreated
14223
+ * @instance
14224
+ * @returns {Object.<string,*>} JSON object
14225
+ */
14226
+ UserAccessGroupCreated.prototype.toJSON = function toJSON() {
14227
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14228
+ };
14229
+
14230
+ return UserAccessGroupCreated;
14231
+ })();
14232
+
14233
+ $root.UserAccessGroupDeleted = (function() {
14234
+
14235
+ /**
14236
+ * Properties of a UserAccessGroupDeleted.
14237
+ * @exports IUserAccessGroupDeleted
14238
+ * @interface IUserAccessGroupDeleted
14239
+ * @property {string|null} [userId] UserAccessGroupDeleted userId
14240
+ * @property {string|null} [accessGroupName] UserAccessGroupDeleted accessGroupName
14241
+ * @property {number|Long|null} [deletedAt] UserAccessGroupDeleted deletedAt
14242
+ */
14243
+
14244
+ /**
14245
+ * Constructs a new UserAccessGroupDeleted.
14246
+ * @exports UserAccessGroupDeleted
14247
+ * @classdesc Represents a UserAccessGroupDeleted.
14248
+ * @implements IUserAccessGroupDeleted
14249
+ * @constructor
14250
+ * @param {IUserAccessGroupDeleted=} [properties] Properties to set
14251
+ */
14252
+ function UserAccessGroupDeleted(properties) {
14253
+ if (properties)
14254
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14255
+ if (properties[keys[i]] != null)
14256
+ this[keys[i]] = properties[keys[i]];
14257
+ }
14258
+
14259
+ /**
14260
+ * UserAccessGroupDeleted userId.
14261
+ * @member {string} userId
14262
+ * @memberof UserAccessGroupDeleted
14263
+ * @instance
14264
+ */
14265
+ UserAccessGroupDeleted.prototype.userId = "";
14266
+
14267
+ /**
14268
+ * UserAccessGroupDeleted accessGroupName.
14269
+ * @member {string} accessGroupName
14270
+ * @memberof UserAccessGroupDeleted
14271
+ * @instance
14272
+ */
14273
+ UserAccessGroupDeleted.prototype.accessGroupName = "";
14274
+
14275
+ /**
14276
+ * UserAccessGroupDeleted deletedAt.
14277
+ * @member {number|Long} deletedAt
14278
+ * @memberof UserAccessGroupDeleted
14279
+ * @instance
14280
+ */
14281
+ UserAccessGroupDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
14282
+
14283
+ /**
14284
+ * Creates a new UserAccessGroupDeleted instance using the specified properties.
14285
+ * @function create
14286
+ * @memberof UserAccessGroupDeleted
14287
+ * @static
14288
+ * @param {IUserAccessGroupDeleted=} [properties] Properties to set
14289
+ * @returns {UserAccessGroupDeleted} UserAccessGroupDeleted instance
14290
+ */
14291
+ UserAccessGroupDeleted.create = function create(properties) {
14292
+ return new UserAccessGroupDeleted(properties);
14293
+ };
14294
+
14295
+ /**
14296
+ * Encodes the specified UserAccessGroupDeleted message. Does not implicitly {@link UserAccessGroupDeleted.verify|verify} messages.
14297
+ * @function encode
14298
+ * @memberof UserAccessGroupDeleted
14299
+ * @static
14300
+ * @param {IUserAccessGroupDeleted} message UserAccessGroupDeleted message or plain object to encode
14301
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14302
+ * @returns {$protobuf.Writer} Writer
14303
+ */
14304
+ UserAccessGroupDeleted.encode = function encode(message, writer) {
14305
+ if (!writer)
14306
+ writer = $Writer.create();
14307
+ if (message.userId != null && message.hasOwnProperty("userId"))
14308
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
14309
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14310
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.accessGroupName);
14311
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
14312
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
14313
+ return writer;
14314
+ };
14315
+
14316
+ /**
14317
+ * Encodes the specified UserAccessGroupDeleted message, length delimited. Does not implicitly {@link UserAccessGroupDeleted.verify|verify} messages.
14318
+ * @function encodeDelimited
14319
+ * @memberof UserAccessGroupDeleted
14320
+ * @static
14321
+ * @param {IUserAccessGroupDeleted} message UserAccessGroupDeleted message or plain object to encode
14322
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14323
+ * @returns {$protobuf.Writer} Writer
14324
+ */
14325
+ UserAccessGroupDeleted.encodeDelimited = function encodeDelimited(message, writer) {
14326
+ return this.encode(message, writer).ldelim();
14327
+ };
14328
+
14329
+ /**
14330
+ * Decodes a UserAccessGroupDeleted message from the specified reader or buffer.
14331
+ * @function decode
14332
+ * @memberof UserAccessGroupDeleted
14333
+ * @static
14334
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14335
+ * @param {number} [length] Message length if known beforehand
14336
+ * @returns {UserAccessGroupDeleted} UserAccessGroupDeleted
14337
+ * @throws {Error} If the payload is not a reader or valid buffer
14338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14339
+ */
14340
+ UserAccessGroupDeleted.decode = function decode(reader, length) {
14341
+ if (!(reader instanceof $Reader))
14342
+ reader = $Reader.create(reader);
14343
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserAccessGroupDeleted();
14344
+ while (reader.pos < end) {
14345
+ var tag = reader.uint32();
14346
+ switch (tag >>> 3) {
14347
+ case 1:
14348
+ message.userId = reader.string();
14349
+ break;
14350
+ case 2:
14351
+ message.accessGroupName = reader.string();
14352
+ break;
14353
+ case 3:
14354
+ message.deletedAt = reader.uint64();
14355
+ break;
14356
+ default:
14357
+ reader.skipType(tag & 7);
14358
+ break;
14359
+ }
14360
+ }
14361
+ return message;
14362
+ };
14363
+
14364
+ /**
14365
+ * Decodes a UserAccessGroupDeleted message from the specified reader or buffer, length delimited.
14366
+ * @function decodeDelimited
14367
+ * @memberof UserAccessGroupDeleted
14368
+ * @static
14369
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14370
+ * @returns {UserAccessGroupDeleted} UserAccessGroupDeleted
14371
+ * @throws {Error} If the payload is not a reader or valid buffer
14372
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14373
+ */
14374
+ UserAccessGroupDeleted.decodeDelimited = function decodeDelimited(reader) {
14375
+ if (!(reader instanceof $Reader))
14376
+ reader = new $Reader(reader);
14377
+ return this.decode(reader, reader.uint32());
14378
+ };
14379
+
14380
+ /**
14381
+ * Verifies a UserAccessGroupDeleted message.
14382
+ * @function verify
14383
+ * @memberof UserAccessGroupDeleted
14384
+ * @static
14385
+ * @param {Object.<string,*>} message Plain object to verify
14386
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14387
+ */
14388
+ UserAccessGroupDeleted.verify = function verify(message) {
14389
+ if (typeof message !== "object" || message === null)
14390
+ return "object expected";
14391
+ if (message.userId != null && message.hasOwnProperty("userId"))
14392
+ if (!$util.isString(message.userId))
14393
+ return "userId: string expected";
14394
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14395
+ if (!$util.isString(message.accessGroupName))
14396
+ return "accessGroupName: string expected";
14397
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
14398
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
14399
+ return "deletedAt: integer|Long expected";
14400
+ return null;
14401
+ };
14402
+
14403
+ /**
14404
+ * Creates a UserAccessGroupDeleted message from a plain object. Also converts values to their respective internal types.
14405
+ * @function fromObject
14406
+ * @memberof UserAccessGroupDeleted
14407
+ * @static
14408
+ * @param {Object.<string,*>} object Plain object
14409
+ * @returns {UserAccessGroupDeleted} UserAccessGroupDeleted
14410
+ */
14411
+ UserAccessGroupDeleted.fromObject = function fromObject(object) {
14412
+ if (object instanceof $root.UserAccessGroupDeleted)
14413
+ return object;
14414
+ var message = new $root.UserAccessGroupDeleted();
14415
+ if (object.userId != null)
14416
+ message.userId = String(object.userId);
14417
+ if (object.accessGroupName != null)
14418
+ message.accessGroupName = String(object.accessGroupName);
14419
+ if (object.deletedAt != null)
14420
+ if ($util.Long)
14421
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
14422
+ else if (typeof object.deletedAt === "string")
14423
+ message.deletedAt = parseInt(object.deletedAt, 10);
14424
+ else if (typeof object.deletedAt === "number")
14425
+ message.deletedAt = object.deletedAt;
14426
+ else if (typeof object.deletedAt === "object")
14427
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
14428
+ return message;
14429
+ };
14430
+
14431
+ /**
14432
+ * Creates a plain object from a UserAccessGroupDeleted message. Also converts values to other types if specified.
14433
+ * @function toObject
14434
+ * @memberof UserAccessGroupDeleted
14435
+ * @static
14436
+ * @param {UserAccessGroupDeleted} message UserAccessGroupDeleted
14437
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14438
+ * @returns {Object.<string,*>} Plain object
14439
+ */
14440
+ UserAccessGroupDeleted.toObject = function toObject(message, options) {
14441
+ if (!options)
14442
+ options = {};
14443
+ var object = {};
14444
+ if (options.defaults) {
14445
+ object.userId = "";
14446
+ object.accessGroupName = "";
14447
+ if ($util.Long) {
14448
+ var long = new $util.Long(0, 0, true);
14449
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14450
+ } else
14451
+ object.deletedAt = options.longs === String ? "0" : 0;
14452
+ }
14453
+ if (message.userId != null && message.hasOwnProperty("userId"))
14454
+ object.userId = message.userId;
14455
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14456
+ object.accessGroupName = message.accessGroupName;
14457
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
14458
+ if (typeof message.deletedAt === "number")
14459
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
14460
+ else
14461
+ object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
14462
+ return object;
14463
+ };
14464
+
14465
+ /**
14466
+ * Converts this UserAccessGroupDeleted to JSON.
14467
+ * @function toJSON
14468
+ * @memberof UserAccessGroupDeleted
14469
+ * @instance
14470
+ * @returns {Object.<string,*>} JSON object
14471
+ */
14472
+ UserAccessGroupDeleted.prototype.toJSON = function toJSON() {
14473
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14474
+ };
14475
+
14476
+ return UserAccessGroupDeleted;
14477
+ })();
14478
+
14479
+ $root.UserAccessGroupUpdated = (function() {
14480
+
14481
+ /**
14482
+ * Properties of a UserAccessGroupUpdated.
14483
+ * @exports IUserAccessGroupUpdated
14484
+ * @interface IUserAccessGroupUpdated
14485
+ * @property {string|null} [userId] UserAccessGroupUpdated userId
14486
+ * @property {string|null} [accessGroupName] UserAccessGroupUpdated accessGroupName
14487
+ * @property {number|Long|null} [updatedAt] UserAccessGroupUpdated updatedAt
14488
+ */
14489
+
14490
+ /**
14491
+ * Constructs a new UserAccessGroupUpdated.
14492
+ * @exports UserAccessGroupUpdated
14493
+ * @classdesc Represents a UserAccessGroupUpdated.
14494
+ * @implements IUserAccessGroupUpdated
14495
+ * @constructor
14496
+ * @param {IUserAccessGroupUpdated=} [properties] Properties to set
14497
+ */
14498
+ function UserAccessGroupUpdated(properties) {
14499
+ if (properties)
14500
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14501
+ if (properties[keys[i]] != null)
14502
+ this[keys[i]] = properties[keys[i]];
14503
+ }
14504
+
14505
+ /**
14506
+ * UserAccessGroupUpdated userId.
14507
+ * @member {string} userId
14508
+ * @memberof UserAccessGroupUpdated
14509
+ * @instance
14510
+ */
14511
+ UserAccessGroupUpdated.prototype.userId = "";
14512
+
14513
+ /**
14514
+ * UserAccessGroupUpdated accessGroupName.
14515
+ * @member {string} accessGroupName
14516
+ * @memberof UserAccessGroupUpdated
14517
+ * @instance
14518
+ */
14519
+ UserAccessGroupUpdated.prototype.accessGroupName = "";
14520
+
14521
+ /**
14522
+ * UserAccessGroupUpdated updatedAt.
14523
+ * @member {number|Long} updatedAt
14524
+ * @memberof UserAccessGroupUpdated
14525
+ * @instance
14526
+ */
14527
+ UserAccessGroupUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
14528
+
14529
+ /**
14530
+ * Creates a new UserAccessGroupUpdated instance using the specified properties.
14531
+ * @function create
14532
+ * @memberof UserAccessGroupUpdated
14533
+ * @static
14534
+ * @param {IUserAccessGroupUpdated=} [properties] Properties to set
14535
+ * @returns {UserAccessGroupUpdated} UserAccessGroupUpdated instance
14536
+ */
14537
+ UserAccessGroupUpdated.create = function create(properties) {
14538
+ return new UserAccessGroupUpdated(properties);
14539
+ };
14540
+
14541
+ /**
14542
+ * Encodes the specified UserAccessGroupUpdated message. Does not implicitly {@link UserAccessGroupUpdated.verify|verify} messages.
14543
+ * @function encode
14544
+ * @memberof UserAccessGroupUpdated
14545
+ * @static
14546
+ * @param {IUserAccessGroupUpdated} message UserAccessGroupUpdated message or plain object to encode
14547
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14548
+ * @returns {$protobuf.Writer} Writer
14549
+ */
14550
+ UserAccessGroupUpdated.encode = function encode(message, writer) {
14551
+ if (!writer)
14552
+ writer = $Writer.create();
14553
+ if (message.userId != null && message.hasOwnProperty("userId"))
14554
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
14555
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14556
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.accessGroupName);
14557
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
14558
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
14559
+ return writer;
14560
+ };
14561
+
14562
+ /**
14563
+ * Encodes the specified UserAccessGroupUpdated message, length delimited. Does not implicitly {@link UserAccessGroupUpdated.verify|verify} messages.
14564
+ * @function encodeDelimited
14565
+ * @memberof UserAccessGroupUpdated
14566
+ * @static
14567
+ * @param {IUserAccessGroupUpdated} message UserAccessGroupUpdated message or plain object to encode
14568
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14569
+ * @returns {$protobuf.Writer} Writer
14570
+ */
14571
+ UserAccessGroupUpdated.encodeDelimited = function encodeDelimited(message, writer) {
14572
+ return this.encode(message, writer).ldelim();
14573
+ };
14574
+
14575
+ /**
14576
+ * Decodes a UserAccessGroupUpdated message from the specified reader or buffer.
14577
+ * @function decode
14578
+ * @memberof UserAccessGroupUpdated
14579
+ * @static
14580
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14581
+ * @param {number} [length] Message length if known beforehand
14582
+ * @returns {UserAccessGroupUpdated} UserAccessGroupUpdated
14583
+ * @throws {Error} If the payload is not a reader or valid buffer
14584
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14585
+ */
14586
+ UserAccessGroupUpdated.decode = function decode(reader, length) {
14587
+ if (!(reader instanceof $Reader))
14588
+ reader = $Reader.create(reader);
14589
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserAccessGroupUpdated();
14590
+ while (reader.pos < end) {
14591
+ var tag = reader.uint32();
14592
+ switch (tag >>> 3) {
14593
+ case 1:
14594
+ message.userId = reader.string();
14595
+ break;
14596
+ case 2:
14597
+ message.accessGroupName = reader.string();
14598
+ break;
14599
+ case 3:
14600
+ message.updatedAt = reader.uint64();
14601
+ break;
14602
+ default:
14603
+ reader.skipType(tag & 7);
14604
+ break;
14605
+ }
14606
+ }
14607
+ return message;
14608
+ };
14609
+
14610
+ /**
14611
+ * Decodes a UserAccessGroupUpdated message from the specified reader or buffer, length delimited.
14612
+ * @function decodeDelimited
14613
+ * @memberof UserAccessGroupUpdated
14614
+ * @static
14615
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14616
+ * @returns {UserAccessGroupUpdated} UserAccessGroupUpdated
14617
+ * @throws {Error} If the payload is not a reader or valid buffer
14618
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14619
+ */
14620
+ UserAccessGroupUpdated.decodeDelimited = function decodeDelimited(reader) {
14621
+ if (!(reader instanceof $Reader))
14622
+ reader = new $Reader(reader);
14623
+ return this.decode(reader, reader.uint32());
14624
+ };
14625
+
14626
+ /**
14627
+ * Verifies a UserAccessGroupUpdated message.
14628
+ * @function verify
14629
+ * @memberof UserAccessGroupUpdated
14630
+ * @static
14631
+ * @param {Object.<string,*>} message Plain object to verify
14632
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14633
+ */
14634
+ UserAccessGroupUpdated.verify = function verify(message) {
14635
+ if (typeof message !== "object" || message === null)
14636
+ return "object expected";
14637
+ if (message.userId != null && message.hasOwnProperty("userId"))
14638
+ if (!$util.isString(message.userId))
14639
+ return "userId: string expected";
14640
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14641
+ if (!$util.isString(message.accessGroupName))
14642
+ return "accessGroupName: string expected";
14643
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
14644
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
14645
+ return "updatedAt: integer|Long expected";
14646
+ return null;
14647
+ };
14648
+
14649
+ /**
14650
+ * Creates a UserAccessGroupUpdated message from a plain object. Also converts values to their respective internal types.
14651
+ * @function fromObject
14652
+ * @memberof UserAccessGroupUpdated
14653
+ * @static
14654
+ * @param {Object.<string,*>} object Plain object
14655
+ * @returns {UserAccessGroupUpdated} UserAccessGroupUpdated
14656
+ */
14657
+ UserAccessGroupUpdated.fromObject = function fromObject(object) {
14658
+ if (object instanceof $root.UserAccessGroupUpdated)
14659
+ return object;
14660
+ var message = new $root.UserAccessGroupUpdated();
14661
+ if (object.userId != null)
14662
+ message.userId = String(object.userId);
14663
+ if (object.accessGroupName != null)
14664
+ message.accessGroupName = String(object.accessGroupName);
14665
+ if (object.updatedAt != null)
14666
+ if ($util.Long)
14667
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
14668
+ else if (typeof object.updatedAt === "string")
14669
+ message.updatedAt = parseInt(object.updatedAt, 10);
14670
+ else if (typeof object.updatedAt === "number")
14671
+ message.updatedAt = object.updatedAt;
14672
+ else if (typeof object.updatedAt === "object")
14673
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
14674
+ return message;
14675
+ };
14676
+
14677
+ /**
14678
+ * Creates a plain object from a UserAccessGroupUpdated message. Also converts values to other types if specified.
14679
+ * @function toObject
14680
+ * @memberof UserAccessGroupUpdated
14681
+ * @static
14682
+ * @param {UserAccessGroupUpdated} message UserAccessGroupUpdated
14683
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14684
+ * @returns {Object.<string,*>} Plain object
14685
+ */
14686
+ UserAccessGroupUpdated.toObject = function toObject(message, options) {
14687
+ if (!options)
14688
+ options = {};
14689
+ var object = {};
14690
+ if (options.defaults) {
14691
+ object.userId = "";
14692
+ object.accessGroupName = "";
14693
+ if ($util.Long) {
14694
+ var long = new $util.Long(0, 0, true);
14695
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14696
+ } else
14697
+ object.updatedAt = options.longs === String ? "0" : 0;
14698
+ }
14699
+ if (message.userId != null && message.hasOwnProperty("userId"))
14700
+ object.userId = message.userId;
14701
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
14702
+ object.accessGroupName = message.accessGroupName;
14703
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
14704
+ if (typeof message.updatedAt === "number")
14705
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
14706
+ else
14707
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
14708
+ return object;
14709
+ };
14710
+
14711
+ /**
14712
+ * Converts this UserAccessGroupUpdated to JSON.
14713
+ * @function toJSON
14714
+ * @memberof UserAccessGroupUpdated
14715
+ * @instance
14716
+ * @returns {Object.<string,*>} JSON object
14717
+ */
14718
+ UserAccessGroupUpdated.prototype.toJSON = function toJSON() {
14719
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14720
+ };
14721
+
14722
+ return UserAccessGroupUpdated;
14723
+ })();
14724
+
13987
14725
  $root.ReferralSignedUp = (function() {
13988
14726
 
13989
14727
  /**