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