@headspace/protos-events 1.43.0 → 1.45.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 +630 -830
  2. package/lib/index.js +1631 -1917
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1144,847 +1144,647 @@ export namespace subscription {
1144
1144
  }
1145
1145
  }
1146
1146
 
1147
- /** Namespace com. */
1148
- export namespace com {
1147
+ /** Namespace userdomain. */
1148
+ export namespace userdomain {
1149
1149
 
1150
- /** Namespace headspace. */
1151
- namespace headspace {
1150
+ /** Properties of a UserRole. */
1151
+ interface IUserRole {
1152
1152
 
1153
- /** Namespace userdomain. */
1154
- namespace userdomain {
1153
+ /** UserRole roles */
1154
+ roles?: (userdomain.Role[]|null);
1155
+ }
1155
1156
 
1156
- /** Namespace grpc. */
1157
- namespace grpc {
1157
+ /** Represents a UserRole. */
1158
+ class UserRole implements IUserRole {
1158
1159
 
1159
- /** Namespace user. */
1160
- namespace user {
1160
+ /**
1161
+ * Constructs a new UserRole.
1162
+ * @param [properties] Properties to set
1163
+ */
1164
+ constructor(properties?: userdomain.IUserRole);
1161
1165
 
1162
- /** PLATFORM enum. */
1163
- enum PLATFORM {
1164
- DESKTOP = 0,
1165
- IOS = 1,
1166
- ANDROID = 2,
1167
- ALEXA = 3,
1168
- GOOGLE_ASSISTANT = 4
1169
- }
1166
+ /** UserRole roles. */
1167
+ public roles: userdomain.Role[];
1170
1168
 
1171
- /** Properties of a User. */
1172
- interface IUser {
1169
+ /**
1170
+ * Creates a new UserRole instance using the specified properties.
1171
+ * @param [properties] Properties to set
1172
+ * @returns UserRole instance
1173
+ */
1174
+ public static create(properties?: userdomain.IUserRole): userdomain.UserRole;
1173
1175
 
1174
- /** User hsId */
1175
- hsId?: (string|null);
1176
+ /**
1177
+ * Encodes the specified UserRole message. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
1178
+ * @param message UserRole message or plain object to encode
1179
+ * @param [writer] Writer to encode to
1180
+ * @returns Writer
1181
+ */
1182
+ public static encode(message: userdomain.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
1176
1183
 
1177
- /** User auth0Id */
1178
- auth0Id?: (string|null);
1184
+ /**
1185
+ * Encodes the specified UserRole message, length delimited. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
1186
+ * @param message UserRole message or plain object to encode
1187
+ * @param [writer] Writer to encode to
1188
+ * @returns Writer
1189
+ */
1190
+ public static encodeDelimited(message: userdomain.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
1179
1191
 
1180
- /** User firstName */
1181
- firstName?: (string|null);
1182
-
1183
- /** User lastName */
1184
- lastName?: (string|null);
1192
+ /**
1193
+ * Decodes a UserRole message from the specified reader or buffer.
1194
+ * @param reader Reader or buffer to decode from
1195
+ * @param [length] Message length if known beforehand
1196
+ * @returns UserRole
1197
+ * @throws {Error} If the payload is not a reader or valid buffer
1198
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1199
+ */
1200
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.UserRole;
1185
1201
 
1186
- /** User email */
1187
- email?: (string|null);
1188
-
1189
- /** User countryCode */
1190
- countryCode?: (string|null);
1191
-
1192
- /** User stateCode */
1193
- stateCode?: (string|null);
1194
-
1195
- /** User signupPlatform */
1196
- signupPlatform?: (com.headspace.userdomain.grpc.user.PLATFORM|null);
1197
-
1198
- /** User createdAt */
1199
- createdAt?: (number|Long|null);
1200
-
1201
- /** User updatedAt */
1202
- updatedAt?: (number|Long|null);
1203
- }
1204
-
1205
- /** Represents a User. */
1206
- class User implements IUser {
1207
-
1208
- /**
1209
- * Constructs a new User.
1210
- * @param [properties] Properties to set
1211
- */
1212
- constructor(properties?: com.headspace.userdomain.grpc.user.IUser);
1213
-
1214
- /** User hsId. */
1215
- public hsId: string;
1216
-
1217
- /** User auth0Id. */
1218
- public auth0Id: string;
1219
-
1220
- /** User firstName. */
1221
- public firstName: string;
1222
-
1223
- /** User lastName. */
1224
- public lastName: string;
1225
-
1226
- /** User email. */
1227
- public email: string;
1228
-
1229
- /** User countryCode. */
1230
- public countryCode: string;
1231
-
1232
- /** User stateCode. */
1233
- public stateCode: string;
1234
-
1235
- /** User signupPlatform. */
1236
- public signupPlatform: com.headspace.userdomain.grpc.user.PLATFORM;
1237
-
1238
- /** User createdAt. */
1239
- public createdAt: (number|Long);
1240
-
1241
- /** User updatedAt. */
1242
- public updatedAt: (number|Long);
1243
-
1244
- /**
1245
- * Creates a new User instance using the specified properties.
1246
- * @param [properties] Properties to set
1247
- * @returns User instance
1248
- */
1249
- public static create(properties?: com.headspace.userdomain.grpc.user.IUser): com.headspace.userdomain.grpc.user.User;
1250
-
1251
- /**
1252
- * Encodes the specified User message. Does not implicitly {@link com.headspace.userdomain.grpc.user.User.verify|verify} messages.
1253
- * @param message User message or plain object to encode
1254
- * @param [writer] Writer to encode to
1255
- * @returns Writer
1256
- */
1257
- public static encode(message: com.headspace.userdomain.grpc.user.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
1258
-
1259
- /**
1260
- * Encodes the specified User message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.User.verify|verify} messages.
1261
- * @param message User message or plain object to encode
1262
- * @param [writer] Writer to encode to
1263
- * @returns Writer
1264
- */
1265
- public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
1266
-
1267
- /**
1268
- * Decodes a User message from the specified reader or buffer.
1269
- * @param reader Reader or buffer to decode from
1270
- * @param [length] Message length if known beforehand
1271
- * @returns User
1272
- * @throws {Error} If the payload is not a reader or valid buffer
1273
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1274
- */
1275
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.User;
1276
-
1277
- /**
1278
- * Decodes a User message from the specified reader or buffer, length delimited.
1279
- * @param reader Reader or buffer to decode from
1280
- * @returns User
1281
- * @throws {Error} If the payload is not a reader or valid buffer
1282
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1283
- */
1284
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.User;
1285
-
1286
- /**
1287
- * Verifies a User message.
1288
- * @param message Plain object to verify
1289
- * @returns `null` if valid, otherwise the reason why it is not
1290
- */
1291
- public static verify(message: { [k: string]: any }): (string|null);
1292
-
1293
- /**
1294
- * Creates a User message from a plain object. Also converts values to their respective internal types.
1295
- * @param object Plain object
1296
- * @returns User
1297
- */
1298
- public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.User;
1299
-
1300
- /**
1301
- * Creates a plain object from a User message. Also converts values to other types if specified.
1302
- * @param message User
1303
- * @param [options] Conversion options
1304
- * @returns Plain object
1305
- */
1306
- public static toObject(message: com.headspace.userdomain.grpc.user.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
1307
-
1308
- /**
1309
- * Converts this User to JSON.
1310
- * @returns JSON object
1311
- */
1312
- public toJSON(): { [k: string]: any };
1313
- }
1314
-
1315
- /** Properties of a DeleteUserRequest. */
1316
- interface IDeleteUserRequest {
1317
-
1318
- /** DeleteUserRequest hsId */
1319
- hsId?: (string|null);
1320
- }
1321
-
1322
- /** Represents a DeleteUserRequest. */
1323
- class DeleteUserRequest implements IDeleteUserRequest {
1324
-
1325
- /**
1326
- * Constructs a new DeleteUserRequest.
1327
- * @param [properties] Properties to set
1328
- */
1329
- constructor(properties?: com.headspace.userdomain.grpc.user.IDeleteUserRequest);
1330
-
1331
- /** DeleteUserRequest hsId. */
1332
- public hsId: string;
1333
-
1334
- /**
1335
- * Creates a new DeleteUserRequest instance using the specified properties.
1336
- * @param [properties] Properties to set
1337
- * @returns DeleteUserRequest instance
1338
- */
1339
- public static create(properties?: com.headspace.userdomain.grpc.user.IDeleteUserRequest): com.headspace.userdomain.grpc.user.DeleteUserRequest;
1340
-
1341
- /**
1342
- * Encodes the specified DeleteUserRequest message. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserRequest.verify|verify} messages.
1343
- * @param message DeleteUserRequest message or plain object to encode
1344
- * @param [writer] Writer to encode to
1345
- * @returns Writer
1346
- */
1347
- public static encode(message: com.headspace.userdomain.grpc.user.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1348
-
1349
- /**
1350
- * Encodes the specified DeleteUserRequest message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserRequest.verify|verify} messages.
1351
- * @param message DeleteUserRequest message or plain object to encode
1352
- * @param [writer] Writer to encode to
1353
- * @returns Writer
1354
- */
1355
- public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1356
-
1357
- /**
1358
- * Decodes a DeleteUserRequest message from the specified reader or buffer.
1359
- * @param reader Reader or buffer to decode from
1360
- * @param [length] Message length if known beforehand
1361
- * @returns DeleteUserRequest
1362
- * @throws {Error} If the payload is not a reader or valid buffer
1363
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1364
- */
1365
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.DeleteUserRequest;
1366
-
1367
- /**
1368
- * Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited.
1369
- * @param reader Reader or buffer to decode from
1370
- * @returns DeleteUserRequest
1371
- * @throws {Error} If the payload is not a reader or valid buffer
1372
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1373
- */
1374
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.DeleteUserRequest;
1375
-
1376
- /**
1377
- * Verifies a DeleteUserRequest message.
1378
- * @param message Plain object to verify
1379
- * @returns `null` if valid, otherwise the reason why it is not
1380
- */
1381
- public static verify(message: { [k: string]: any }): (string|null);
1382
-
1383
- /**
1384
- * Creates a DeleteUserRequest message from a plain object. Also converts values to their respective internal types.
1385
- * @param object Plain object
1386
- * @returns DeleteUserRequest
1387
- */
1388
- public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.DeleteUserRequest;
1389
-
1390
- /**
1391
- * Creates a plain object from a DeleteUserRequest message. Also converts values to other types if specified.
1392
- * @param message DeleteUserRequest
1393
- * @param [options] Conversion options
1394
- * @returns Plain object
1395
- */
1396
- public static toObject(message: com.headspace.userdomain.grpc.user.DeleteUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1397
-
1398
- /**
1399
- * Converts this DeleteUserRequest to JSON.
1400
- * @returns JSON object
1401
- */
1402
- public toJSON(): { [k: string]: any };
1403
- }
1404
-
1405
- /** Properties of a DeleteUserResponse. */
1406
- interface IDeleteUserResponse {
1407
- }
1408
-
1409
- /** Represents a DeleteUserResponse. */
1410
- class DeleteUserResponse implements IDeleteUserResponse {
1411
-
1412
- /**
1413
- * Constructs a new DeleteUserResponse.
1414
- * @param [properties] Properties to set
1415
- */
1416
- constructor(properties?: com.headspace.userdomain.grpc.user.IDeleteUserResponse);
1417
-
1418
- /**
1419
- * Creates a new DeleteUserResponse instance using the specified properties.
1420
- * @param [properties] Properties to set
1421
- * @returns DeleteUserResponse instance
1422
- */
1423
- public static create(properties?: com.headspace.userdomain.grpc.user.IDeleteUserResponse): com.headspace.userdomain.grpc.user.DeleteUserResponse;
1424
-
1425
- /**
1426
- * Encodes the specified DeleteUserResponse message. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserResponse.verify|verify} messages.
1427
- * @param message DeleteUserResponse message or plain object to encode
1428
- * @param [writer] Writer to encode to
1429
- * @returns Writer
1430
- */
1431
- public static encode(message: com.headspace.userdomain.grpc.user.IDeleteUserResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1432
-
1433
- /**
1434
- * Encodes the specified DeleteUserResponse message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserResponse.verify|verify} messages.
1435
- * @param message DeleteUserResponse message or plain object to encode
1436
- * @param [writer] Writer to encode to
1437
- * @returns Writer
1438
- */
1439
- public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IDeleteUserResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1440
-
1441
- /**
1442
- * Decodes a DeleteUserResponse message from the specified reader or buffer.
1443
- * @param reader Reader or buffer to decode from
1444
- * @param [length] Message length if known beforehand
1445
- * @returns DeleteUserResponse
1446
- * @throws {Error} If the payload is not a reader or valid buffer
1447
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1448
- */
1449
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.DeleteUserResponse;
1450
-
1451
- /**
1452
- * Decodes a DeleteUserResponse message from the specified reader or buffer, length delimited.
1453
- * @param reader Reader or buffer to decode from
1454
- * @returns DeleteUserResponse
1455
- * @throws {Error} If the payload is not a reader or valid buffer
1456
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1457
- */
1458
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.DeleteUserResponse;
1459
-
1460
- /**
1461
- * Verifies a DeleteUserResponse message.
1462
- * @param message Plain object to verify
1463
- * @returns `null` if valid, otherwise the reason why it is not
1464
- */
1465
- public static verify(message: { [k: string]: any }): (string|null);
1466
-
1467
- /**
1468
- * Creates a DeleteUserResponse message from a plain object. Also converts values to their respective internal types.
1469
- * @param object Plain object
1470
- * @returns DeleteUserResponse
1471
- */
1472
- public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.DeleteUserResponse;
1473
-
1474
- /**
1475
- * Creates a plain object from a DeleteUserResponse message. Also converts values to other types if specified.
1476
- * @param message DeleteUserResponse
1477
- * @param [options] Conversion options
1478
- * @returns Plain object
1479
- */
1480
- public static toObject(message: com.headspace.userdomain.grpc.user.DeleteUserResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1481
-
1482
- /**
1483
- * Converts this DeleteUserResponse to JSON.
1484
- * @returns JSON object
1485
- */
1486
- public toJSON(): { [k: string]: any };
1487
- }
1488
-
1489
- /** Properties of a FindUserRequest. */
1490
- interface IFindUserRequest {
1491
-
1492
- /** FindUserRequest hsId */
1493
- hsId?: (string|null);
1494
-
1495
- /** FindUserRequest email */
1496
- email?: (string|null);
1497
- }
1498
-
1499
- /** Represents a FindUserRequest. */
1500
- class FindUserRequest implements IFindUserRequest {
1501
-
1502
- /**
1503
- * Constructs a new FindUserRequest.
1504
- * @param [properties] Properties to set
1505
- */
1506
- constructor(properties?: com.headspace.userdomain.grpc.user.IFindUserRequest);
1507
-
1508
- /** FindUserRequest hsId. */
1509
- public hsId: string;
1510
-
1511
- /** FindUserRequest email. */
1512
- public email: string;
1513
-
1514
- /**
1515
- * Creates a new FindUserRequest instance using the specified properties.
1516
- * @param [properties] Properties to set
1517
- * @returns FindUserRequest instance
1518
- */
1519
- public static create(properties?: com.headspace.userdomain.grpc.user.IFindUserRequest): com.headspace.userdomain.grpc.user.FindUserRequest;
1520
-
1521
- /**
1522
- * Encodes the specified FindUserRequest message. Does not implicitly {@link com.headspace.userdomain.grpc.user.FindUserRequest.verify|verify} messages.
1523
- * @param message FindUserRequest message or plain object to encode
1524
- * @param [writer] Writer to encode to
1525
- * @returns Writer
1526
- */
1527
- public static encode(message: com.headspace.userdomain.grpc.user.IFindUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1528
-
1529
- /**
1530
- * Encodes the specified FindUserRequest message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.FindUserRequest.verify|verify} messages.
1531
- * @param message FindUserRequest message or plain object to encode
1532
- * @param [writer] Writer to encode to
1533
- * @returns Writer
1534
- */
1535
- public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IFindUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1536
-
1537
- /**
1538
- * Decodes a FindUserRequest message from the specified reader or buffer.
1539
- * @param reader Reader or buffer to decode from
1540
- * @param [length] Message length if known beforehand
1541
- * @returns FindUserRequest
1542
- * @throws {Error} If the payload is not a reader or valid buffer
1543
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1544
- */
1545
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.FindUserRequest;
1546
-
1547
- /**
1548
- * Decodes a FindUserRequest message from the specified reader or buffer, length delimited.
1549
- * @param reader Reader or buffer to decode from
1550
- * @returns FindUserRequest
1551
- * @throws {Error} If the payload is not a reader or valid buffer
1552
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1553
- */
1554
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.FindUserRequest;
1555
-
1556
- /**
1557
- * Verifies a FindUserRequest message.
1558
- * @param message Plain object to verify
1559
- * @returns `null` if valid, otherwise the reason why it is not
1560
- */
1561
- public static verify(message: { [k: string]: any }): (string|null);
1562
-
1563
- /**
1564
- * Creates a FindUserRequest message from a plain object. Also converts values to their respective internal types.
1565
- * @param object Plain object
1566
- * @returns FindUserRequest
1567
- */
1568
- public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.FindUserRequest;
1569
-
1570
- /**
1571
- * Creates a plain object from a FindUserRequest message. Also converts values to other types if specified.
1572
- * @param message FindUserRequest
1573
- * @param [options] Conversion options
1574
- * @returns Plain object
1575
- */
1576
- public static toObject(message: com.headspace.userdomain.grpc.user.FindUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1577
-
1578
- /**
1579
- * Converts this FindUserRequest to JSON.
1580
- * @returns JSON object
1581
- */
1582
- public toJSON(): { [k: string]: any };
1583
- }
1584
-
1585
- /** Represents a UserService */
1586
- class UserService extends $protobuf.rpc.Service {
1587
-
1588
- /**
1589
- * Constructs a new UserService service.
1590
- * @param rpcImpl RPC implementation
1591
- * @param [requestDelimited=false] Whether requests are length-delimited
1592
- * @param [responseDelimited=false] Whether responses are length-delimited
1593
- */
1594
- constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
1595
-
1596
- /**
1597
- * Creates new UserService service using the specified rpc implementation.
1598
- * @param rpcImpl RPC implementation
1599
- * @param [requestDelimited=false] Whether requests are length-delimited
1600
- * @param [responseDelimited=false] Whether responses are length-delimited
1601
- * @returns RPC service. Useful where requests and/or responses are streamed.
1602
- */
1603
- public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): UserService;
1604
-
1605
- /**
1606
- * Calls CreateUser.
1607
- * @param request User message or plain object
1608
- * @param callback Node-style callback called with the error, if any, and User
1609
- */
1610
- public createUser(request: com.headspace.userdomain.grpc.user.IUser, callback: com.headspace.userdomain.grpc.user.UserService.CreateUserCallback): void;
1611
-
1612
- /**
1613
- * Calls CreateUser.
1614
- * @param request User message or plain object
1615
- * @returns Promise
1616
- */
1617
- public createUser(request: com.headspace.userdomain.grpc.user.IUser): Promise<com.headspace.userdomain.grpc.user.User>;
1618
-
1619
- /**
1620
- * Calls DeleteUser.
1621
- * @param request DeleteUserRequest message or plain object
1622
- * @param callback Node-style callback called with the error, if any, and DeleteUserResponse
1623
- */
1624
- public deleteUser(request: com.headspace.userdomain.grpc.user.IDeleteUserRequest, callback: com.headspace.userdomain.grpc.user.UserService.DeleteUserCallback): void;
1625
-
1626
- /**
1627
- * Calls DeleteUser.
1628
- * @param request DeleteUserRequest message or plain object
1629
- * @returns Promise
1630
- */
1631
- public deleteUser(request: com.headspace.userdomain.grpc.user.IDeleteUserRequest): Promise<com.headspace.userdomain.grpc.user.DeleteUserResponse>;
1632
-
1633
- /**
1634
- * Calls UpdateUser.
1635
- * @param request User message or plain object
1636
- * @param callback Node-style callback called with the error, if any, and User
1637
- */
1638
- public updateUser(request: com.headspace.userdomain.grpc.user.IUser, callback: com.headspace.userdomain.grpc.user.UserService.UpdateUserCallback): void;
1639
-
1640
- /**
1641
- * Calls UpdateUser.
1642
- * @param request User message or plain object
1643
- * @returns Promise
1644
- */
1645
- public updateUser(request: com.headspace.userdomain.grpc.user.IUser): Promise<com.headspace.userdomain.grpc.user.User>;
1646
-
1647
- /**
1648
- * Calls FindUser.
1649
- * @param request FindUserRequest message or plain object
1650
- * @param callback Node-style callback called with the error, if any, and User
1651
- */
1652
- public findUser(request: com.headspace.userdomain.grpc.user.IFindUserRequest, callback: com.headspace.userdomain.grpc.user.UserService.FindUserCallback): void;
1653
-
1654
- /**
1655
- * Calls FindUser.
1656
- * @param request FindUserRequest message or plain object
1657
- * @returns Promise
1658
- */
1659
- public findUser(request: com.headspace.userdomain.grpc.user.IFindUserRequest): Promise<com.headspace.userdomain.grpc.user.User>;
1660
- }
1661
-
1662
- namespace UserService {
1663
-
1664
- /**
1665
- * Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#createUser}.
1666
- * @param error Error, if any
1667
- * @param [response] User
1668
- */
1669
- type CreateUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.User) => void;
1670
-
1671
- /**
1672
- * Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#deleteUser}.
1673
- * @param error Error, if any
1674
- * @param [response] DeleteUserResponse
1675
- */
1676
- type DeleteUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.DeleteUserResponse) => void;
1677
-
1678
- /**
1679
- * Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#updateUser}.
1680
- * @param error Error, if any
1681
- * @param [response] User
1682
- */
1683
- type UpdateUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.User) => void;
1684
-
1685
- /**
1686
- * Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#findUser}.
1687
- * @param error Error, if any
1688
- * @param [response] User
1689
- */
1690
- type FindUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.User) => void;
1691
- }
1692
-
1693
- /** Namespace events. */
1694
- namespace events {
1695
-
1696
- /** Properties of a UserCreated. */
1697
- interface IUserCreated {
1698
-
1699
- /** UserCreated user */
1700
- user?: (com.headspace.userdomain.grpc.user.IUser|null);
1701
- }
1702
-
1703
- /** Represents a UserCreated. */
1704
- class UserCreated implements IUserCreated {
1705
-
1706
- /**
1707
- * Constructs a new UserCreated.
1708
- * @param [properties] Properties to set
1709
- */
1710
- constructor(properties?: com.headspace.userdomain.grpc.user.events.IUserCreated);
1711
-
1712
- /** UserCreated user. */
1713
- public user?: (com.headspace.userdomain.grpc.user.IUser|null);
1714
-
1715
- /**
1716
- * Creates a new UserCreated instance using the specified properties.
1717
- * @param [properties] Properties to set
1718
- * @returns UserCreated instance
1719
- */
1720
- public static create(properties?: com.headspace.userdomain.grpc.user.events.IUserCreated): com.headspace.userdomain.grpc.user.events.UserCreated;
1721
-
1722
- /**
1723
- * Encodes the specified UserCreated message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserCreated.verify|verify} messages.
1724
- * @param message UserCreated message or plain object to encode
1725
- * @param [writer] Writer to encode to
1726
- * @returns Writer
1727
- */
1728
- public static encode(message: com.headspace.userdomain.grpc.user.events.IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
1729
-
1730
- /**
1731
- * Encodes the specified UserCreated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserCreated.verify|verify} messages.
1732
- * @param message UserCreated message or plain object to encode
1733
- * @param [writer] Writer to encode to
1734
- * @returns Writer
1735
- */
1736
- public static encodeDelimited(message: com.headspace.userdomain.grpc.user.events.IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
1737
-
1738
- /**
1739
- * Decodes a UserCreated message from the specified reader or buffer.
1740
- * @param reader Reader or buffer to decode from
1741
- * @param [length] Message length if known beforehand
1742
- * @returns UserCreated
1743
- * @throws {Error} If the payload is not a reader or valid buffer
1744
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1745
- */
1746
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.events.UserCreated;
1747
-
1748
- /**
1749
- * Decodes a UserCreated message from the specified reader or buffer, length delimited.
1750
- * @param reader Reader or buffer to decode from
1751
- * @returns UserCreated
1752
- * @throws {Error} If the payload is not a reader or valid buffer
1753
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1754
- */
1755
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.events.UserCreated;
1756
-
1757
- /**
1758
- * Verifies a UserCreated message.
1759
- * @param message Plain object to verify
1760
- * @returns `null` if valid, otherwise the reason why it is not
1761
- */
1762
- public static verify(message: { [k: string]: any }): (string|null);
1763
-
1764
- /**
1765
- * Creates a UserCreated message from a plain object. Also converts values to their respective internal types.
1766
- * @param object Plain object
1767
- * @returns UserCreated
1768
- */
1769
- public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.events.UserCreated;
1770
-
1771
- /**
1772
- * Creates a plain object from a UserCreated message. Also converts values to other types if specified.
1773
- * @param message UserCreated
1774
- * @param [options] Conversion options
1775
- * @returns Plain object
1776
- */
1777
- public static toObject(message: com.headspace.userdomain.grpc.user.events.UserCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
1778
-
1779
- /**
1780
- * Converts this UserCreated to JSON.
1781
- * @returns JSON object
1782
- */
1783
- public toJSON(): { [k: string]: any };
1784
- }
1785
-
1786
- /** Properties of a UserUpdated. */
1787
- interface IUserUpdated {
1788
-
1789
- /** UserUpdated hsId */
1790
- hsId?: (string|null);
1791
-
1792
- /** UserUpdated updatedAt */
1793
- updatedAt?: (number|Long|null);
1794
-
1795
- /** UserUpdated updatedAttributes */
1796
- updatedAttributes?: (com.headspace.userdomain.grpc.user.IUser|null);
1797
- }
1798
-
1799
- /** Represents a UserUpdated. */
1800
- class UserUpdated implements IUserUpdated {
1801
-
1802
- /**
1803
- * Constructs a new UserUpdated.
1804
- * @param [properties] Properties to set
1805
- */
1806
- constructor(properties?: com.headspace.userdomain.grpc.user.events.IUserUpdated);
1807
-
1808
- /** UserUpdated hsId. */
1809
- public hsId: string;
1810
-
1811
- /** UserUpdated updatedAt. */
1812
- public updatedAt: (number|Long);
1813
-
1814
- /** UserUpdated updatedAttributes. */
1815
- public updatedAttributes?: (com.headspace.userdomain.grpc.user.IUser|null);
1816
-
1817
- /**
1818
- * Creates a new UserUpdated instance using the specified properties.
1819
- * @param [properties] Properties to set
1820
- * @returns UserUpdated instance
1821
- */
1822
- public static create(properties?: com.headspace.userdomain.grpc.user.events.IUserUpdated): com.headspace.userdomain.grpc.user.events.UserUpdated;
1823
-
1824
- /**
1825
- * Encodes the specified UserUpdated message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserUpdated.verify|verify} messages.
1826
- * @param message UserUpdated message or plain object to encode
1827
- * @param [writer] Writer to encode to
1828
- * @returns Writer
1829
- */
1830
- public static encode(message: com.headspace.userdomain.grpc.user.events.IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
1831
-
1832
- /**
1833
- * Encodes the specified UserUpdated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserUpdated.verify|verify} messages.
1834
- * @param message UserUpdated message or plain object to encode
1835
- * @param [writer] Writer to encode to
1836
- * @returns Writer
1837
- */
1838
- public static encodeDelimited(message: com.headspace.userdomain.grpc.user.events.IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
1839
-
1840
- /**
1841
- * Decodes a UserUpdated message from the specified reader or buffer.
1842
- * @param reader Reader or buffer to decode from
1843
- * @param [length] Message length if known beforehand
1844
- * @returns UserUpdated
1845
- * @throws {Error} If the payload is not a reader or valid buffer
1846
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1847
- */
1848
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.events.UserUpdated;
1849
-
1850
- /**
1851
- * Decodes a UserUpdated message from the specified reader or buffer, length delimited.
1852
- * @param reader Reader or buffer to decode from
1853
- * @returns UserUpdated
1854
- * @throws {Error} If the payload is not a reader or valid buffer
1855
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1856
- */
1857
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.events.UserUpdated;
1858
-
1859
- /**
1860
- * Verifies a UserUpdated message.
1861
- * @param message Plain object to verify
1862
- * @returns `null` if valid, otherwise the reason why it is not
1863
- */
1864
- public static verify(message: { [k: string]: any }): (string|null);
1865
-
1866
- /**
1867
- * Creates a UserUpdated message from a plain object. Also converts values to their respective internal types.
1868
- * @param object Plain object
1869
- * @returns UserUpdated
1870
- */
1871
- public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.events.UserUpdated;
1872
-
1873
- /**
1874
- * Creates a plain object from a UserUpdated message. Also converts values to other types if specified.
1875
- * @param message UserUpdated
1876
- * @param [options] Conversion options
1877
- * @returns Plain object
1878
- */
1879
- public static toObject(message: com.headspace.userdomain.grpc.user.events.UserUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
1880
-
1881
- /**
1882
- * Converts this UserUpdated to JSON.
1883
- * @returns JSON object
1884
- */
1885
- public toJSON(): { [k: string]: any };
1886
- }
1887
-
1888
- /** Properties of a UserDeleted. */
1889
- interface IUserDeleted {
1890
-
1891
- /** UserDeleted hsId */
1892
- hsId?: (string|null);
1893
-
1894
- /** UserDeleted deletedAt */
1895
- deletedAt?: (number|Long|null);
1896
- }
1897
-
1898
- /** Represents a UserDeleted. */
1899
- class UserDeleted implements IUserDeleted {
1900
-
1901
- /**
1902
- * Constructs a new UserDeleted.
1903
- * @param [properties] Properties to set
1904
- */
1905
- constructor(properties?: com.headspace.userdomain.grpc.user.events.IUserDeleted);
1906
-
1907
- /** UserDeleted hsId. */
1908
- public hsId: string;
1909
-
1910
- /** UserDeleted deletedAt. */
1911
- public deletedAt: (number|Long);
1912
-
1913
- /**
1914
- * Creates a new UserDeleted instance using the specified properties.
1915
- * @param [properties] Properties to set
1916
- * @returns UserDeleted instance
1917
- */
1918
- public static create(properties?: com.headspace.userdomain.grpc.user.events.IUserDeleted): com.headspace.userdomain.grpc.user.events.UserDeleted;
1919
-
1920
- /**
1921
- * Encodes the specified UserDeleted message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserDeleted.verify|verify} messages.
1922
- * @param message UserDeleted message or plain object to encode
1923
- * @param [writer] Writer to encode to
1924
- * @returns Writer
1925
- */
1926
- public static encode(message: com.headspace.userdomain.grpc.user.events.IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
1927
-
1928
- /**
1929
- * Encodes the specified UserDeleted message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserDeleted.verify|verify} messages.
1930
- * @param message UserDeleted message or plain object to encode
1931
- * @param [writer] Writer to encode to
1932
- * @returns Writer
1933
- */
1934
- public static encodeDelimited(message: com.headspace.userdomain.grpc.user.events.IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
1935
-
1936
- /**
1937
- * Decodes a UserDeleted message from the specified reader or buffer.
1938
- * @param reader Reader or buffer to decode from
1939
- * @param [length] Message length if known beforehand
1940
- * @returns UserDeleted
1941
- * @throws {Error} If the payload is not a reader or valid buffer
1942
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1943
- */
1944
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.events.UserDeleted;
1945
-
1946
- /**
1947
- * Decodes a UserDeleted message from the specified reader or buffer, length delimited.
1948
- * @param reader Reader or buffer to decode from
1949
- * @returns UserDeleted
1950
- * @throws {Error} If the payload is not a reader or valid buffer
1951
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1952
- */
1953
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.events.UserDeleted;
1954
-
1955
- /**
1956
- * Verifies a UserDeleted message.
1957
- * @param message Plain object to verify
1958
- * @returns `null` if valid, otherwise the reason why it is not
1959
- */
1960
- public static verify(message: { [k: string]: any }): (string|null);
1961
-
1962
- /**
1963
- * Creates a UserDeleted message from a plain object. Also converts values to their respective internal types.
1964
- * @param object Plain object
1965
- * @returns UserDeleted
1966
- */
1967
- public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.events.UserDeleted;
1968
-
1969
- /**
1970
- * Creates a plain object from a UserDeleted message. Also converts values to other types if specified.
1971
- * @param message UserDeleted
1972
- * @param [options] Conversion options
1973
- * @returns Plain object
1974
- */
1975
- public static toObject(message: com.headspace.userdomain.grpc.user.events.UserDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
1976
-
1977
- /**
1978
- * Converts this UserDeleted to JSON.
1979
- * @returns JSON object
1980
- */
1981
- public toJSON(): { [k: string]: any };
1982
- }
1983
- }
1984
- }
1985
- }
1986
- }
1202
+ /**
1203
+ * Decodes a UserRole message from the specified reader or buffer, length delimited.
1204
+ * @param reader Reader or buffer to decode from
1205
+ * @returns UserRole
1206
+ * @throws {Error} If the payload is not a reader or valid buffer
1207
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1208
+ */
1209
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.UserRole;
1210
+
1211
+ /**
1212
+ * Verifies a UserRole message.
1213
+ * @param message Plain object to verify
1214
+ * @returns `null` if valid, otherwise the reason why it is not
1215
+ */
1216
+ public static verify(message: { [k: string]: any }): (string|null);
1217
+
1218
+ /**
1219
+ * Creates a UserRole message from a plain object. Also converts values to their respective internal types.
1220
+ * @param object Plain object
1221
+ * @returns UserRole
1222
+ */
1223
+ public static fromObject(object: { [k: string]: any }): userdomain.UserRole;
1224
+
1225
+ /**
1226
+ * Creates a plain object from a UserRole message. Also converts values to other types if specified.
1227
+ * @param message UserRole
1228
+ * @param [options] Conversion options
1229
+ * @returns Plain object
1230
+ */
1231
+ public static toObject(message: userdomain.UserRole, options?: $protobuf.IConversionOptions): { [k: string]: any };
1232
+
1233
+ /**
1234
+ * Converts this UserRole to JSON.
1235
+ * @returns JSON object
1236
+ */
1237
+ public toJSON(): { [k: string]: any };
1987
1238
  }
1239
+
1240
+ /** Role enum. */
1241
+ enum Role {
1242
+ UNKNOWN_ROLE = 0,
1243
+ ROLEADMIN = 1,
1244
+ NORMALUSER = 2,
1245
+ CONTENTADMIN = 3,
1246
+ USERADMIN = 4,
1247
+ CORPORATEADMIN = 5,
1248
+ SPECIALADMIN = 6
1249
+ }
1250
+
1251
+ /** Properties of a User. */
1252
+ interface IUser {
1253
+
1254
+ /** User hsId */
1255
+ hsId?: (string|null);
1256
+
1257
+ /** User auth0Id */
1258
+ auth0Id?: (string|null);
1259
+
1260
+ /** User firstName */
1261
+ firstName?: (string|null);
1262
+
1263
+ /** User lastName */
1264
+ lastName?: (string|null);
1265
+
1266
+ /** User email */
1267
+ email?: (string|null);
1268
+
1269
+ /** User countryCode */
1270
+ countryCode?: (string|null);
1271
+
1272
+ /** User stateCode */
1273
+ stateCode?: (string|null);
1274
+
1275
+ /** User signupPlatform */
1276
+ signupPlatform?: (userdomain.Platform|null);
1277
+ }
1278
+
1279
+ /** Represents a User. */
1280
+ class User implements IUser {
1281
+
1282
+ /**
1283
+ * Constructs a new User.
1284
+ * @param [properties] Properties to set
1285
+ */
1286
+ constructor(properties?: userdomain.IUser);
1287
+
1288
+ /** User hsId. */
1289
+ public hsId: string;
1290
+
1291
+ /** User auth0Id. */
1292
+ public auth0Id: string;
1293
+
1294
+ /** User firstName. */
1295
+ public firstName: string;
1296
+
1297
+ /** User lastName. */
1298
+ public lastName: string;
1299
+
1300
+ /** User email. */
1301
+ public email: string;
1302
+
1303
+ /** User countryCode. */
1304
+ public countryCode: string;
1305
+
1306
+ /** User stateCode. */
1307
+ public stateCode: string;
1308
+
1309
+ /** User signupPlatform. */
1310
+ public signupPlatform: userdomain.Platform;
1311
+
1312
+ /**
1313
+ * Creates a new User instance using the specified properties.
1314
+ * @param [properties] Properties to set
1315
+ * @returns User instance
1316
+ */
1317
+ public static create(properties?: userdomain.IUser): userdomain.User;
1318
+
1319
+ /**
1320
+ * Encodes the specified User message. Does not implicitly {@link userdomain.User.verify|verify} messages.
1321
+ * @param message User message or plain object to encode
1322
+ * @param [writer] Writer to encode to
1323
+ * @returns Writer
1324
+ */
1325
+ public static encode(message: userdomain.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
1326
+
1327
+ /**
1328
+ * Encodes the specified User message, length delimited. Does not implicitly {@link userdomain.User.verify|verify} messages.
1329
+ * @param message User message or plain object to encode
1330
+ * @param [writer] Writer to encode to
1331
+ * @returns Writer
1332
+ */
1333
+ public static encodeDelimited(message: userdomain.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
1334
+
1335
+ /**
1336
+ * Decodes a User message from the specified reader or buffer.
1337
+ * @param reader Reader or buffer to decode from
1338
+ * @param [length] Message length if known beforehand
1339
+ * @returns User
1340
+ * @throws {Error} If the payload is not a reader or valid buffer
1341
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1342
+ */
1343
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.User;
1344
+
1345
+ /**
1346
+ * Decodes a User message from the specified reader or buffer, length delimited.
1347
+ * @param reader Reader or buffer to decode from
1348
+ * @returns User
1349
+ * @throws {Error} If the payload is not a reader or valid buffer
1350
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1351
+ */
1352
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.User;
1353
+
1354
+ /**
1355
+ * Verifies a User message.
1356
+ * @param message Plain object to verify
1357
+ * @returns `null` if valid, otherwise the reason why it is not
1358
+ */
1359
+ public static verify(message: { [k: string]: any }): (string|null);
1360
+
1361
+ /**
1362
+ * Creates a User message from a plain object. Also converts values to their respective internal types.
1363
+ * @param object Plain object
1364
+ * @returns User
1365
+ */
1366
+ public static fromObject(object: { [k: string]: any }): userdomain.User;
1367
+
1368
+ /**
1369
+ * Creates a plain object from a User message. Also converts values to other types if specified.
1370
+ * @param message User
1371
+ * @param [options] Conversion options
1372
+ * @returns Plain object
1373
+ */
1374
+ public static toObject(message: userdomain.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
1375
+
1376
+ /**
1377
+ * Converts this User to JSON.
1378
+ * @returns JSON object
1379
+ */
1380
+ public toJSON(): { [k: string]: any };
1381
+ }
1382
+
1383
+ /** Platform enum. */
1384
+ enum Platform {
1385
+ UNKNOWN_PLATFORM = 0,
1386
+ DESKTOP = 1,
1387
+ IOS = 2,
1388
+ ANDROID = 3,
1389
+ ALEXA = 4,
1390
+ GOOGLE_ASSISTANT = 5
1391
+ }
1392
+ }
1393
+
1394
+ /** Properties of a UserRoleUpdated. */
1395
+ export interface IUserRoleUpdated {
1396
+
1397
+ /** UserRoleUpdated hsId */
1398
+ hsId?: (string|null);
1399
+
1400
+ /** UserRoleUpdated userRole */
1401
+ userRole?: (userdomain.IUserRole|null);
1402
+
1403
+ /** UserRoleUpdated updatedAt */
1404
+ updatedAt?: (number|Long|null);
1405
+ }
1406
+
1407
+ /** Represents a UserRoleUpdated. */
1408
+ export class UserRoleUpdated implements IUserRoleUpdated {
1409
+
1410
+ /**
1411
+ * Constructs a new UserRoleUpdated.
1412
+ * @param [properties] Properties to set
1413
+ */
1414
+ constructor(properties?: IUserRoleUpdated);
1415
+
1416
+ /** UserRoleUpdated hsId. */
1417
+ public hsId: string;
1418
+
1419
+ /** UserRoleUpdated userRole. */
1420
+ public userRole?: (userdomain.IUserRole|null);
1421
+
1422
+ /** UserRoleUpdated updatedAt. */
1423
+ public updatedAt: (number|Long);
1424
+
1425
+ /**
1426
+ * Creates a new UserRoleUpdated instance using the specified properties.
1427
+ * @param [properties] Properties to set
1428
+ * @returns UserRoleUpdated instance
1429
+ */
1430
+ public static create(properties?: IUserRoleUpdated): UserRoleUpdated;
1431
+
1432
+ /**
1433
+ * Encodes the specified UserRoleUpdated message. Does not implicitly {@link UserRoleUpdated.verify|verify} messages.
1434
+ * @param message UserRoleUpdated message or plain object to encode
1435
+ * @param [writer] Writer to encode to
1436
+ * @returns Writer
1437
+ */
1438
+ public static encode(message: IUserRoleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
1439
+
1440
+ /**
1441
+ * Encodes the specified UserRoleUpdated message, length delimited. Does not implicitly {@link UserRoleUpdated.verify|verify} messages.
1442
+ * @param message UserRoleUpdated message or plain object to encode
1443
+ * @param [writer] Writer to encode to
1444
+ * @returns Writer
1445
+ */
1446
+ public static encodeDelimited(message: IUserRoleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
1447
+
1448
+ /**
1449
+ * Decodes a UserRoleUpdated message from the specified reader or buffer.
1450
+ * @param reader Reader or buffer to decode from
1451
+ * @param [length] Message length if known beforehand
1452
+ * @returns UserRoleUpdated
1453
+ * @throws {Error} If the payload is not a reader or valid buffer
1454
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1455
+ */
1456
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserRoleUpdated;
1457
+
1458
+ /**
1459
+ * Decodes a UserRoleUpdated message from the specified reader or buffer, length delimited.
1460
+ * @param reader Reader or buffer to decode from
1461
+ * @returns UserRoleUpdated
1462
+ * @throws {Error} If the payload is not a reader or valid buffer
1463
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1464
+ */
1465
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserRoleUpdated;
1466
+
1467
+ /**
1468
+ * Verifies a UserRoleUpdated message.
1469
+ * @param message Plain object to verify
1470
+ * @returns `null` if valid, otherwise the reason why it is not
1471
+ */
1472
+ public static verify(message: { [k: string]: any }): (string|null);
1473
+
1474
+ /**
1475
+ * Creates a UserRoleUpdated message from a plain object. Also converts values to their respective internal types.
1476
+ * @param object Plain object
1477
+ * @returns UserRoleUpdated
1478
+ */
1479
+ public static fromObject(object: { [k: string]: any }): UserRoleUpdated;
1480
+
1481
+ /**
1482
+ * Creates a plain object from a UserRoleUpdated message. Also converts values to other types if specified.
1483
+ * @param message UserRoleUpdated
1484
+ * @param [options] Conversion options
1485
+ * @returns Plain object
1486
+ */
1487
+ public static toObject(message: UserRoleUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
1488
+
1489
+ /**
1490
+ * Converts this UserRoleUpdated to JSON.
1491
+ * @returns JSON object
1492
+ */
1493
+ public toJSON(): { [k: string]: any };
1494
+ }
1495
+
1496
+ /** Properties of a UserCreated. */
1497
+ export interface IUserCreated {
1498
+
1499
+ /** UserCreated user */
1500
+ user?: (userdomain.IUser|null);
1501
+
1502
+ /** UserCreated createdAt */
1503
+ createdAt?: (number|Long|null);
1504
+ }
1505
+
1506
+ /** Represents a UserCreated. */
1507
+ export class UserCreated implements IUserCreated {
1508
+
1509
+ /**
1510
+ * Constructs a new UserCreated.
1511
+ * @param [properties] Properties to set
1512
+ */
1513
+ constructor(properties?: IUserCreated);
1514
+
1515
+ /** UserCreated user. */
1516
+ public user?: (userdomain.IUser|null);
1517
+
1518
+ /** UserCreated createdAt. */
1519
+ public createdAt: (number|Long);
1520
+
1521
+ /**
1522
+ * Creates a new UserCreated instance using the specified properties.
1523
+ * @param [properties] Properties to set
1524
+ * @returns UserCreated instance
1525
+ */
1526
+ public static create(properties?: IUserCreated): UserCreated;
1527
+
1528
+ /**
1529
+ * Encodes the specified UserCreated message. Does not implicitly {@link UserCreated.verify|verify} messages.
1530
+ * @param message UserCreated message or plain object to encode
1531
+ * @param [writer] Writer to encode to
1532
+ * @returns Writer
1533
+ */
1534
+ public static encode(message: IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
1535
+
1536
+ /**
1537
+ * Encodes the specified UserCreated message, length delimited. Does not implicitly {@link UserCreated.verify|verify} messages.
1538
+ * @param message UserCreated message or plain object to encode
1539
+ * @param [writer] Writer to encode to
1540
+ * @returns Writer
1541
+ */
1542
+ public static encodeDelimited(message: IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
1543
+
1544
+ /**
1545
+ * Decodes a UserCreated message from the specified reader or buffer.
1546
+ * @param reader Reader or buffer to decode from
1547
+ * @param [length] Message length if known beforehand
1548
+ * @returns UserCreated
1549
+ * @throws {Error} If the payload is not a reader or valid buffer
1550
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1551
+ */
1552
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserCreated;
1553
+
1554
+ /**
1555
+ * Decodes a UserCreated message from the specified reader or buffer, length delimited.
1556
+ * @param reader Reader or buffer to decode from
1557
+ * @returns UserCreated
1558
+ * @throws {Error} If the payload is not a reader or valid buffer
1559
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1560
+ */
1561
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserCreated;
1562
+
1563
+ /**
1564
+ * Verifies a UserCreated message.
1565
+ * @param message Plain object to verify
1566
+ * @returns `null` if valid, otherwise the reason why it is not
1567
+ */
1568
+ public static verify(message: { [k: string]: any }): (string|null);
1569
+
1570
+ /**
1571
+ * Creates a UserCreated message from a plain object. Also converts values to their respective internal types.
1572
+ * @param object Plain object
1573
+ * @returns UserCreated
1574
+ */
1575
+ public static fromObject(object: { [k: string]: any }): UserCreated;
1576
+
1577
+ /**
1578
+ * Creates a plain object from a UserCreated message. Also converts values to other types if specified.
1579
+ * @param message UserCreated
1580
+ * @param [options] Conversion options
1581
+ * @returns Plain object
1582
+ */
1583
+ public static toObject(message: UserCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
1584
+
1585
+ /**
1586
+ * Converts this UserCreated to JSON.
1587
+ * @returns JSON object
1588
+ */
1589
+ public toJSON(): { [k: string]: any };
1590
+ }
1591
+
1592
+ /** Properties of a UserUpdated. */
1593
+ export interface IUserUpdated {
1594
+
1595
+ /** UserUpdated hsId */
1596
+ hsId?: (string|null);
1597
+
1598
+ /** UserUpdated updatedAt */
1599
+ updatedAt?: (number|Long|null);
1600
+
1601
+ /** UserUpdated user */
1602
+ user?: (userdomain.IUser|null);
1603
+ }
1604
+
1605
+ /** Represents a UserUpdated. */
1606
+ export class UserUpdated implements IUserUpdated {
1607
+
1608
+ /**
1609
+ * Constructs a new UserUpdated.
1610
+ * @param [properties] Properties to set
1611
+ */
1612
+ constructor(properties?: IUserUpdated);
1613
+
1614
+ /** UserUpdated hsId. */
1615
+ public hsId: string;
1616
+
1617
+ /** UserUpdated updatedAt. */
1618
+ public updatedAt: (number|Long);
1619
+
1620
+ /** UserUpdated user. */
1621
+ public user?: (userdomain.IUser|null);
1622
+
1623
+ /**
1624
+ * Creates a new UserUpdated instance using the specified properties.
1625
+ * @param [properties] Properties to set
1626
+ * @returns UserUpdated instance
1627
+ */
1628
+ public static create(properties?: IUserUpdated): UserUpdated;
1629
+
1630
+ /**
1631
+ * Encodes the specified UserUpdated message. Does not implicitly {@link UserUpdated.verify|verify} messages.
1632
+ * @param message UserUpdated message or plain object to encode
1633
+ * @param [writer] Writer to encode to
1634
+ * @returns Writer
1635
+ */
1636
+ public static encode(message: IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
1637
+
1638
+ /**
1639
+ * Encodes the specified UserUpdated message, length delimited. Does not implicitly {@link UserUpdated.verify|verify} messages.
1640
+ * @param message UserUpdated message or plain object to encode
1641
+ * @param [writer] Writer to encode to
1642
+ * @returns Writer
1643
+ */
1644
+ public static encodeDelimited(message: IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
1645
+
1646
+ /**
1647
+ * Decodes a UserUpdated message from the specified reader or buffer.
1648
+ * @param reader Reader or buffer to decode from
1649
+ * @param [length] Message length if known beforehand
1650
+ * @returns UserUpdated
1651
+ * @throws {Error} If the payload is not a reader or valid buffer
1652
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1653
+ */
1654
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserUpdated;
1655
+
1656
+ /**
1657
+ * Decodes a UserUpdated message from the specified reader or buffer, length delimited.
1658
+ * @param reader Reader or buffer to decode from
1659
+ * @returns UserUpdated
1660
+ * @throws {Error} If the payload is not a reader or valid buffer
1661
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1662
+ */
1663
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserUpdated;
1664
+
1665
+ /**
1666
+ * Verifies a UserUpdated message.
1667
+ * @param message Plain object to verify
1668
+ * @returns `null` if valid, otherwise the reason why it is not
1669
+ */
1670
+ public static verify(message: { [k: string]: any }): (string|null);
1671
+
1672
+ /**
1673
+ * Creates a UserUpdated message from a plain object. Also converts values to their respective internal types.
1674
+ * @param object Plain object
1675
+ * @returns UserUpdated
1676
+ */
1677
+ public static fromObject(object: { [k: string]: any }): UserUpdated;
1678
+
1679
+ /**
1680
+ * Creates a plain object from a UserUpdated message. Also converts values to other types if specified.
1681
+ * @param message UserUpdated
1682
+ * @param [options] Conversion options
1683
+ * @returns Plain object
1684
+ */
1685
+ public static toObject(message: UserUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
1686
+
1687
+ /**
1688
+ * Converts this UserUpdated to JSON.
1689
+ * @returns JSON object
1690
+ */
1691
+ public toJSON(): { [k: string]: any };
1692
+ }
1693
+
1694
+ /** Properties of a UserDeleted. */
1695
+ export interface IUserDeleted {
1696
+
1697
+ /** UserDeleted hsId */
1698
+ hsId?: (string|null);
1699
+
1700
+ /** UserDeleted deletedAt */
1701
+ deletedAt?: (number|Long|null);
1702
+ }
1703
+
1704
+ /** Represents a UserDeleted. */
1705
+ export class UserDeleted implements IUserDeleted {
1706
+
1707
+ /**
1708
+ * Constructs a new UserDeleted.
1709
+ * @param [properties] Properties to set
1710
+ */
1711
+ constructor(properties?: IUserDeleted);
1712
+
1713
+ /** UserDeleted hsId. */
1714
+ public hsId: string;
1715
+
1716
+ /** UserDeleted deletedAt. */
1717
+ public deletedAt: (number|Long);
1718
+
1719
+ /**
1720
+ * Creates a new UserDeleted instance using the specified properties.
1721
+ * @param [properties] Properties to set
1722
+ * @returns UserDeleted instance
1723
+ */
1724
+ public static create(properties?: IUserDeleted): UserDeleted;
1725
+
1726
+ /**
1727
+ * Encodes the specified UserDeleted message. Does not implicitly {@link UserDeleted.verify|verify} messages.
1728
+ * @param message UserDeleted message or plain object to encode
1729
+ * @param [writer] Writer to encode to
1730
+ * @returns Writer
1731
+ */
1732
+ public static encode(message: IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
1733
+
1734
+ /**
1735
+ * Encodes the specified UserDeleted message, length delimited. Does not implicitly {@link UserDeleted.verify|verify} messages.
1736
+ * @param message UserDeleted message or plain object to encode
1737
+ * @param [writer] Writer to encode to
1738
+ * @returns Writer
1739
+ */
1740
+ public static encodeDelimited(message: IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
1741
+
1742
+ /**
1743
+ * Decodes a UserDeleted message from the specified reader or buffer.
1744
+ * @param reader Reader or buffer to decode from
1745
+ * @param [length] Message length if known beforehand
1746
+ * @returns UserDeleted
1747
+ * @throws {Error} If the payload is not a reader or valid buffer
1748
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1749
+ */
1750
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDeleted;
1751
+
1752
+ /**
1753
+ * Decodes a UserDeleted message from the specified reader or buffer, length delimited.
1754
+ * @param reader Reader or buffer to decode from
1755
+ * @returns UserDeleted
1756
+ * @throws {Error} If the payload is not a reader or valid buffer
1757
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1758
+ */
1759
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDeleted;
1760
+
1761
+ /**
1762
+ * Verifies a UserDeleted message.
1763
+ * @param message Plain object to verify
1764
+ * @returns `null` if valid, otherwise the reason why it is not
1765
+ */
1766
+ public static verify(message: { [k: string]: any }): (string|null);
1767
+
1768
+ /**
1769
+ * Creates a UserDeleted message from a plain object. Also converts values to their respective internal types.
1770
+ * @param object Plain object
1771
+ * @returns UserDeleted
1772
+ */
1773
+ public static fromObject(object: { [k: string]: any }): UserDeleted;
1774
+
1775
+ /**
1776
+ * Creates a plain object from a UserDeleted message. Also converts values to other types if specified.
1777
+ * @param message UserDeleted
1778
+ * @param [options] Conversion options
1779
+ * @returns Plain object
1780
+ */
1781
+ public static toObject(message: UserDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
1782
+
1783
+ /**
1784
+ * Converts this UserDeleted to JSON.
1785
+ * @returns JSON object
1786
+ */
1787
+ public toJSON(): { [k: string]: any };
1988
1788
  }
1989
1789
 
1990
1790
  /** Properties of a UserPasswordResetCreated. */