@juzi/wechaty-grpc 1.0.108 → 1.0.110
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/dist/cjs/out/wechaty/puppet/event_pb.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +4 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +1418 -1
- package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +174 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb.js +1257 -4
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +281 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +401 -3
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +85 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +155 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +95 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +200 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +5 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +55 -0
- package/dist/cjs/proto/wechaty/puppet/wecom.proto +47 -0
- package/dist/cjs/proto/wechaty/puppet.proto +18 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +25 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/cjs/tests/room-member-load.spec.d.ts +2 -0
- package/dist/cjs/tests/room-member-load.spec.d.ts.map +1 -0
- package/dist/cjs/tests/room-member-load.spec.js +134 -0
- package/dist/cjs/tests/room-member-load.spec.js.map +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +4 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +1418 -1
- package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +174 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb.js +1257 -4
- package/dist/esm/out/wechaty/puppet.openapi.yaml +281 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +401 -3
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +85 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +155 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +95 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +200 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +5 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +55 -0
- package/dist/esm/proto/wechaty/puppet/wecom.proto +47 -0
- package/dist/esm/proto/wechaty/puppet.proto +18 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +25 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/tests/room-member-load.spec.d.ts +2 -0
- package/dist/esm/tests/room-member-load.spec.d.ts.map +1 -0
- package/dist/esm/tests/room-member-load.spec.js +132 -0
- package/dist/esm/tests/room-member-load.spec.js.map +1 -0
- package/out/wechaty/puppet/event_pb.d.ts +3 -0
- package/out/wechaty/puppet/event_pb.js +4 -1
- package/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/out/wechaty/puppet/room_pb.js +1418 -1
- package/out/wechaty/puppet/wecom_pb.d.ts +174 -0
- package/out/wechaty/puppet/wecom_pb.js +1257 -4
- package/out/wechaty/puppet.openapi.yaml +281 -1
- package/out/wechaty/puppet.swagger.json +401 -3
- package/out/wechaty/puppet_grpc_pb.d.ts +85 -0
- package/out/wechaty/puppet_grpc_pb.js +155 -0
- package/out/wechaty/puppet_pb_service.d.ts +95 -0
- package/out/wechaty/puppet_pb_service.js +200 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -1969,6 +1969,50 @@ function deserialize_wechaty_puppet_MomentVisibleListResponse(buffer_arg) {
|
|
|
1969
1969
|
return wechaty_puppet_moment_pb.MomentVisibleListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1970
1970
|
}
|
|
1971
1971
|
|
|
1972
|
+
function serialize_wechaty_puppet_OrgBroadcastExecuteRequest(arg) {
|
|
1973
|
+
if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest)) {
|
|
1974
|
+
throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastExecuteRequest');
|
|
1975
|
+
}
|
|
1976
|
+
return Buffer.from(arg.serializeBinary());
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
function deserialize_wechaty_puppet_OrgBroadcastExecuteRequest(buffer_arg) {
|
|
1980
|
+
return wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
function serialize_wechaty_puppet_OrgBroadcastExecuteResponse(arg) {
|
|
1984
|
+
if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse)) {
|
|
1985
|
+
throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastExecuteResponse');
|
|
1986
|
+
}
|
|
1987
|
+
return Buffer.from(arg.serializeBinary());
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
function deserialize_wechaty_puppet_OrgBroadcastExecuteResponse(buffer_arg) {
|
|
1991
|
+
return wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
function serialize_wechaty_puppet_OrgBroadcastPayloadRequest(arg) {
|
|
1995
|
+
if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest)) {
|
|
1996
|
+
throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastPayloadRequest');
|
|
1997
|
+
}
|
|
1998
|
+
return Buffer.from(arg.serializeBinary());
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
function deserialize_wechaty_puppet_OrgBroadcastPayloadRequest(buffer_arg) {
|
|
2002
|
+
return wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
function serialize_wechaty_puppet_OrgBroadcastPayloadResponse(arg) {
|
|
2006
|
+
if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse)) {
|
|
2007
|
+
throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastPayloadResponse');
|
|
2008
|
+
}
|
|
2009
|
+
return Buffer.from(arg.serializeBinary());
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
function deserialize_wechaty_puppet_OrgBroadcastPayloadResponse(buffer_arg) {
|
|
2013
|
+
return wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1972
2016
|
function serialize_wechaty_puppet_PostPayloadRequest(arg) {
|
|
1973
2017
|
if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadRequest)) {
|
|
1974
2018
|
throw new Error('Expected argument of type wechaty.puppet.PostPayloadRequest');
|
|
@@ -2354,6 +2398,28 @@ function deserialize_wechaty_puppet_RoomMemberListResponse(buffer_arg) {
|
|
|
2354
2398
|
return wechaty_puppet_room$member_pb.RoomMemberListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2355
2399
|
}
|
|
2356
2400
|
|
|
2401
|
+
function serialize_wechaty_puppet_RoomMemberLoadStateRequest(arg) {
|
|
2402
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberLoadStateRequest)) {
|
|
2403
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomMemberLoadStateRequest');
|
|
2404
|
+
}
|
|
2405
|
+
return Buffer.from(arg.serializeBinary());
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
function deserialize_wechaty_puppet_RoomMemberLoadStateRequest(buffer_arg) {
|
|
2409
|
+
return wechaty_puppet_room_pb.RoomMemberLoadStateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
function serialize_wechaty_puppet_RoomMemberLoadStateResponse(arg) {
|
|
2413
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberLoadStateResponse)) {
|
|
2414
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomMemberLoadStateResponse');
|
|
2415
|
+
}
|
|
2416
|
+
return Buffer.from(arg.serializeBinary());
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
function deserialize_wechaty_puppet_RoomMemberLoadStateResponse(buffer_arg) {
|
|
2420
|
+
return wechaty_puppet_room_pb.RoomMemberLoadStateResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2357
2423
|
function serialize_wechaty_puppet_RoomMemberPayloadRequest(arg) {
|
|
2358
2424
|
if (!(arg instanceof wechaty_puppet_room$member_pb.RoomMemberPayloadRequest)) {
|
|
2359
2425
|
throw new Error('Expected argument of type wechaty.puppet.RoomMemberPayloadRequest');
|
|
@@ -2376,6 +2442,39 @@ function deserialize_wechaty_puppet_RoomMemberPayloadResponse(buffer_arg) {
|
|
|
2376
2442
|
return wechaty_puppet_room$member_pb.RoomMemberPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2377
2443
|
}
|
|
2378
2444
|
|
|
2445
|
+
function serialize_wechaty_puppet_RoomMemberSnapshotRequest(arg) {
|
|
2446
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberSnapshotRequest)) {
|
|
2447
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomMemberSnapshotRequest');
|
|
2448
|
+
}
|
|
2449
|
+
return Buffer.from(arg.serializeBinary());
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
function deserialize_wechaty_puppet_RoomMemberSnapshotRequest(buffer_arg) {
|
|
2453
|
+
return wechaty_puppet_room_pb.RoomMemberSnapshotRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
function serialize_wechaty_puppet_RoomMemberSnapshotResponse(arg) {
|
|
2457
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberSnapshotResponse)) {
|
|
2458
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomMemberSnapshotResponse');
|
|
2459
|
+
}
|
|
2460
|
+
return Buffer.from(arg.serializeBinary());
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
function deserialize_wechaty_puppet_RoomMemberSnapshotResponse(buffer_arg) {
|
|
2464
|
+
return wechaty_puppet_room_pb.RoomMemberSnapshotResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
function serialize_wechaty_puppet_RoomMemberSyncRequest(arg) {
|
|
2468
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberSyncRequest)) {
|
|
2469
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomMemberSyncRequest');
|
|
2470
|
+
}
|
|
2471
|
+
return Buffer.from(arg.serializeBinary());
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
function deserialize_wechaty_puppet_RoomMemberSyncRequest(buffer_arg) {
|
|
2475
|
+
return wechaty_puppet_room_pb.RoomMemberSyncRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2379
2478
|
function serialize_wechaty_puppet_RoomOwnerTransferRequest(arg) {
|
|
2380
2479
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomOwnerTransferRequest)) {
|
|
2381
2480
|
throw new Error('Expected argument of type wechaty.puppet.RoomOwnerTransferRequest');
|
|
@@ -4115,6 +4214,40 @@ roomMemberPayload: {
|
|
|
4115
4214
|
responseSerialize: serialize_wechaty_puppet_RoomMemberListResponse,
|
|
4116
4215
|
responseDeserialize: deserialize_wechaty_puppet_RoomMemberListResponse,
|
|
4117
4216
|
},
|
|
4217
|
+
roomMemberSync: {
|
|
4218
|
+
path: '/wechaty.Puppet/RoomMemberSync',
|
|
4219
|
+
requestStream: false,
|
|
4220
|
+
responseStream: false,
|
|
4221
|
+
requestType: wechaty_puppet_room_pb.RoomMemberSyncRequest,
|
|
4222
|
+
responseType: wechaty_puppet_room_pb.RoomMemberLoadStateResponse,
|
|
4223
|
+
requestSerialize: serialize_wechaty_puppet_RoomMemberSyncRequest,
|
|
4224
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomMemberSyncRequest,
|
|
4225
|
+
responseSerialize: serialize_wechaty_puppet_RoomMemberLoadStateResponse,
|
|
4226
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomMemberLoadStateResponse,
|
|
4227
|
+
},
|
|
4228
|
+
roomMemberLoadState: {
|
|
4229
|
+
path: '/wechaty.Puppet/RoomMemberLoadState',
|
|
4230
|
+
requestStream: false,
|
|
4231
|
+
responseStream: false,
|
|
4232
|
+
requestType: wechaty_puppet_room_pb.RoomMemberLoadStateRequest,
|
|
4233
|
+
responseType: wechaty_puppet_room_pb.RoomMemberLoadStateResponse,
|
|
4234
|
+
requestSerialize: serialize_wechaty_puppet_RoomMemberLoadStateRequest,
|
|
4235
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomMemberLoadStateRequest,
|
|
4236
|
+
responseSerialize: serialize_wechaty_puppet_RoomMemberLoadStateResponse,
|
|
4237
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomMemberLoadStateResponse,
|
|
4238
|
+
},
|
|
4239
|
+
// Reads an existing revision only; must not start member loading.
|
|
4240
|
+
roomMemberSnapshot: {
|
|
4241
|
+
path: '/wechaty.Puppet/RoomMemberSnapshot',
|
|
4242
|
+
requestStream: false,
|
|
4243
|
+
responseStream: false,
|
|
4244
|
+
requestType: wechaty_puppet_room_pb.RoomMemberSnapshotRequest,
|
|
4245
|
+
responseType: wechaty_puppet_room_pb.RoomMemberSnapshotResponse,
|
|
4246
|
+
requestSerialize: serialize_wechaty_puppet_RoomMemberSnapshotRequest,
|
|
4247
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomMemberSnapshotRequest,
|
|
4248
|
+
responseSerialize: serialize_wechaty_puppet_RoomMemberSnapshotResponse,
|
|
4249
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomMemberSnapshotResponse,
|
|
4250
|
+
},
|
|
4118
4251
|
batchRoomMemberPayload: {
|
|
4119
4252
|
path: '/wechaty.Puppet/BatchRoomMemberPayload',
|
|
4120
4253
|
requestStream: false,
|
|
@@ -4478,6 +4611,28 @@ getContactExternalUserId: {
|
|
|
4478
4611
|
responseSerialize: serialize_wechaty_puppet_GetCorpMessageInterceptionStrategiesResponse,
|
|
4479
4612
|
responseDeserialize: deserialize_wechaty_puppet_GetCorpMessageInterceptionStrategiesResponse,
|
|
4480
4613
|
},
|
|
4614
|
+
orgBroadcastPayload: {
|
|
4615
|
+
path: '/wechaty.Puppet/OrgBroadcastPayload',
|
|
4616
|
+
requestStream: false,
|
|
4617
|
+
responseStream: false,
|
|
4618
|
+
requestType: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest,
|
|
4619
|
+
responseType: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse,
|
|
4620
|
+
requestSerialize: serialize_wechaty_puppet_OrgBroadcastPayloadRequest,
|
|
4621
|
+
requestDeserialize: deserialize_wechaty_puppet_OrgBroadcastPayloadRequest,
|
|
4622
|
+
responseSerialize: serialize_wechaty_puppet_OrgBroadcastPayloadResponse,
|
|
4623
|
+
responseDeserialize: deserialize_wechaty_puppet_OrgBroadcastPayloadResponse,
|
|
4624
|
+
},
|
|
4625
|
+
orgBroadcastExecute: {
|
|
4626
|
+
path: '/wechaty.Puppet/OrgBroadcastExecute',
|
|
4627
|
+
requestStream: false,
|
|
4628
|
+
responseStream: false,
|
|
4629
|
+
requestType: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest,
|
|
4630
|
+
responseType: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse,
|
|
4631
|
+
requestSerialize: serialize_wechaty_puppet_OrgBroadcastExecuteRequest,
|
|
4632
|
+
requestDeserialize: deserialize_wechaty_puppet_OrgBroadcastExecuteRequest,
|
|
4633
|
+
responseSerialize: serialize_wechaty_puppet_OrgBroadcastExecuteResponse,
|
|
4634
|
+
responseDeserialize: deserialize_wechaty_puppet_OrgBroadcastExecuteResponse,
|
|
4635
|
+
},
|
|
4481
4636
|
// *
|
|
4482
4637
|
// File/Blob download & upload
|
|
4483
4638
|
download: {
|
|
@@ -938,6 +938,33 @@ type PuppetRoomMemberList = {
|
|
|
938
938
|
readonly responseType: typeof wechaty_puppet_room_member_pb.RoomMemberListResponse;
|
|
939
939
|
};
|
|
940
940
|
|
|
941
|
+
type PuppetRoomMemberSync = {
|
|
942
|
+
readonly methodName: string;
|
|
943
|
+
readonly service: typeof Puppet;
|
|
944
|
+
readonly requestStream: false;
|
|
945
|
+
readonly responseStream: false;
|
|
946
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomMemberSyncRequest;
|
|
947
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomMemberLoadStateResponse;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
type PuppetRoomMemberLoadState = {
|
|
951
|
+
readonly methodName: string;
|
|
952
|
+
readonly service: typeof Puppet;
|
|
953
|
+
readonly requestStream: false;
|
|
954
|
+
readonly responseStream: false;
|
|
955
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomMemberLoadStateRequest;
|
|
956
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomMemberLoadStateResponse;
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
type PuppetRoomMemberSnapshot = {
|
|
960
|
+
readonly methodName: string;
|
|
961
|
+
readonly service: typeof Puppet;
|
|
962
|
+
readonly requestStream: false;
|
|
963
|
+
readonly responseStream: false;
|
|
964
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomMemberSnapshotRequest;
|
|
965
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomMemberSnapshotResponse;
|
|
966
|
+
};
|
|
967
|
+
|
|
941
968
|
type PuppetBatchRoomMemberPayload = {
|
|
942
969
|
readonly methodName: string;
|
|
943
970
|
readonly service: typeof Puppet;
|
|
@@ -1217,6 +1244,24 @@ type PuppetGetCorpMessageInterceptionStrategies = {
|
|
|
1217
1244
|
readonly responseType: typeof wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse;
|
|
1218
1245
|
};
|
|
1219
1246
|
|
|
1247
|
+
type PuppetOrgBroadcastPayload = {
|
|
1248
|
+
readonly methodName: string;
|
|
1249
|
+
readonly service: typeof Puppet;
|
|
1250
|
+
readonly requestStream: false;
|
|
1251
|
+
readonly responseStream: false;
|
|
1252
|
+
readonly requestType: typeof wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest;
|
|
1253
|
+
readonly responseType: typeof wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse;
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
type PuppetOrgBroadcastExecute = {
|
|
1257
|
+
readonly methodName: string;
|
|
1258
|
+
readonly service: typeof Puppet;
|
|
1259
|
+
readonly requestStream: false;
|
|
1260
|
+
readonly responseStream: false;
|
|
1261
|
+
readonly requestType: typeof wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest;
|
|
1262
|
+
readonly responseType: typeof wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse;
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1220
1265
|
type PuppetDownload = {
|
|
1221
1266
|
readonly methodName: string;
|
|
1222
1267
|
readonly service: typeof Puppet;
|
|
@@ -1339,6 +1384,9 @@ export class Puppet {
|
|
|
1339
1384
|
static readonly RoomDelV2: PuppetRoomDelV2;
|
|
1340
1385
|
static readonly RoomMemberPayload: PuppetRoomMemberPayload;
|
|
1341
1386
|
static readonly RoomMemberList: PuppetRoomMemberList;
|
|
1387
|
+
static readonly RoomMemberSync: PuppetRoomMemberSync;
|
|
1388
|
+
static readonly RoomMemberLoadState: PuppetRoomMemberLoadState;
|
|
1389
|
+
static readonly RoomMemberSnapshot: PuppetRoomMemberSnapshot;
|
|
1342
1390
|
static readonly BatchRoomMemberPayload: PuppetBatchRoomMemberPayload;
|
|
1343
1391
|
static readonly RoomInvitationPayload: PuppetRoomInvitationPayload;
|
|
1344
1392
|
static readonly RoomInvitationAccept: PuppetRoomInvitationAccept;
|
|
@@ -1370,6 +1418,8 @@ export class Puppet {
|
|
|
1370
1418
|
static readonly GetRoomAntiSpamStrategyEffectRoomList: PuppetGetRoomAntiSpamStrategyEffectRoomList;
|
|
1371
1419
|
static readonly ApplyRoomAntiSpamStrategy: PuppetApplyRoomAntiSpamStrategy;
|
|
1372
1420
|
static readonly GetCorpMessageInterceptionStrategies: PuppetGetCorpMessageInterceptionStrategies;
|
|
1421
|
+
static readonly OrgBroadcastPayload: PuppetOrgBroadcastPayload;
|
|
1422
|
+
static readonly OrgBroadcastExecute: PuppetOrgBroadcastExecute;
|
|
1373
1423
|
static readonly Download: PuppetDownload;
|
|
1374
1424
|
static readonly Upload: PuppetUpload;
|
|
1375
1425
|
}
|
|
@@ -2316,6 +2366,33 @@ export class PuppetClient {
|
|
|
2316
2366
|
requestMessage: wechaty_puppet_room_member_pb.RoomMemberListRequest,
|
|
2317
2367
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_member_pb.RoomMemberListResponse|null) => void
|
|
2318
2368
|
): UnaryResponse;
|
|
2369
|
+
roomMemberSync(
|
|
2370
|
+
requestMessage: wechaty_puppet_room_pb.RoomMemberSyncRequest,
|
|
2371
|
+
metadata: grpc.Metadata,
|
|
2372
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomMemberLoadStateResponse|null) => void
|
|
2373
|
+
): UnaryResponse;
|
|
2374
|
+
roomMemberSync(
|
|
2375
|
+
requestMessage: wechaty_puppet_room_pb.RoomMemberSyncRequest,
|
|
2376
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomMemberLoadStateResponse|null) => void
|
|
2377
|
+
): UnaryResponse;
|
|
2378
|
+
roomMemberLoadState(
|
|
2379
|
+
requestMessage: wechaty_puppet_room_pb.RoomMemberLoadStateRequest,
|
|
2380
|
+
metadata: grpc.Metadata,
|
|
2381
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomMemberLoadStateResponse|null) => void
|
|
2382
|
+
): UnaryResponse;
|
|
2383
|
+
roomMemberLoadState(
|
|
2384
|
+
requestMessage: wechaty_puppet_room_pb.RoomMemberLoadStateRequest,
|
|
2385
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomMemberLoadStateResponse|null) => void
|
|
2386
|
+
): UnaryResponse;
|
|
2387
|
+
roomMemberSnapshot(
|
|
2388
|
+
requestMessage: wechaty_puppet_room_pb.RoomMemberSnapshotRequest,
|
|
2389
|
+
metadata: grpc.Metadata,
|
|
2390
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomMemberSnapshotResponse|null) => void
|
|
2391
|
+
): UnaryResponse;
|
|
2392
|
+
roomMemberSnapshot(
|
|
2393
|
+
requestMessage: wechaty_puppet_room_pb.RoomMemberSnapshotRequest,
|
|
2394
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomMemberSnapshotResponse|null) => void
|
|
2395
|
+
): UnaryResponse;
|
|
2319
2396
|
batchRoomMemberPayload(
|
|
2320
2397
|
requestMessage: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest,
|
|
2321
2398
|
metadata: grpc.Metadata,
|
|
@@ -2595,6 +2672,24 @@ export class PuppetClient {
|
|
|
2595
2672
|
requestMessage: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest,
|
|
2596
2673
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse|null) => void
|
|
2597
2674
|
): UnaryResponse;
|
|
2675
|
+
orgBroadcastPayload(
|
|
2676
|
+
requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest,
|
|
2677
|
+
metadata: grpc.Metadata,
|
|
2678
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse|null) => void
|
|
2679
|
+
): UnaryResponse;
|
|
2680
|
+
orgBroadcastPayload(
|
|
2681
|
+
requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest,
|
|
2682
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse|null) => void
|
|
2683
|
+
): UnaryResponse;
|
|
2684
|
+
orgBroadcastExecute(
|
|
2685
|
+
requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest,
|
|
2686
|
+
metadata: grpc.Metadata,
|
|
2687
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse|null) => void
|
|
2688
|
+
): UnaryResponse;
|
|
2689
|
+
orgBroadcastExecute(
|
|
2690
|
+
requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest,
|
|
2691
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse|null) => void
|
|
2692
|
+
): UnaryResponse;
|
|
2598
2693
|
download(requestMessage: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
2599
2694
|
upload(metadata?: grpc.Metadata): RequestStream<wechaty_puppet_download_upload_pb.UploadRequest>;
|
|
2600
2695
|
}
|
|
@@ -944,6 +944,33 @@ Puppet.RoomMemberList = {
|
|
|
944
944
|
responseType: wechaty_puppet_room_member_pb.RoomMemberListResponse
|
|
945
945
|
};
|
|
946
946
|
|
|
947
|
+
Puppet.RoomMemberSync = {
|
|
948
|
+
methodName: "RoomMemberSync",
|
|
949
|
+
service: Puppet,
|
|
950
|
+
requestStream: false,
|
|
951
|
+
responseStream: false,
|
|
952
|
+
requestType: wechaty_puppet_room_pb.RoomMemberSyncRequest,
|
|
953
|
+
responseType: wechaty_puppet_room_pb.RoomMemberLoadStateResponse
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
Puppet.RoomMemberLoadState = {
|
|
957
|
+
methodName: "RoomMemberLoadState",
|
|
958
|
+
service: Puppet,
|
|
959
|
+
requestStream: false,
|
|
960
|
+
responseStream: false,
|
|
961
|
+
requestType: wechaty_puppet_room_pb.RoomMemberLoadStateRequest,
|
|
962
|
+
responseType: wechaty_puppet_room_pb.RoomMemberLoadStateResponse
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
Puppet.RoomMemberSnapshot = {
|
|
966
|
+
methodName: "RoomMemberSnapshot",
|
|
967
|
+
service: Puppet,
|
|
968
|
+
requestStream: false,
|
|
969
|
+
responseStream: false,
|
|
970
|
+
requestType: wechaty_puppet_room_pb.RoomMemberSnapshotRequest,
|
|
971
|
+
responseType: wechaty_puppet_room_pb.RoomMemberSnapshotResponse
|
|
972
|
+
};
|
|
973
|
+
|
|
947
974
|
Puppet.BatchRoomMemberPayload = {
|
|
948
975
|
methodName: "BatchRoomMemberPayload",
|
|
949
976
|
service: Puppet,
|
|
@@ -1223,6 +1250,24 @@ Puppet.GetCorpMessageInterceptionStrategies = {
|
|
|
1223
1250
|
responseType: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse
|
|
1224
1251
|
};
|
|
1225
1252
|
|
|
1253
|
+
Puppet.OrgBroadcastPayload = {
|
|
1254
|
+
methodName: "OrgBroadcastPayload",
|
|
1255
|
+
service: Puppet,
|
|
1256
|
+
requestStream: false,
|
|
1257
|
+
responseStream: false,
|
|
1258
|
+
requestType: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest,
|
|
1259
|
+
responseType: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
Puppet.OrgBroadcastExecute = {
|
|
1263
|
+
methodName: "OrgBroadcastExecute",
|
|
1264
|
+
service: Puppet,
|
|
1265
|
+
requestStream: false,
|
|
1266
|
+
responseStream: false,
|
|
1267
|
+
requestType: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest,
|
|
1268
|
+
responseType: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1226
1271
|
Puppet.Download = {
|
|
1227
1272
|
methodName: "Download",
|
|
1228
1273
|
service: Puppet,
|
|
@@ -4418,6 +4463,99 @@ PuppetClient.prototype.roomMemberList = function roomMemberList(requestMessage,
|
|
|
4418
4463
|
};
|
|
4419
4464
|
};
|
|
4420
4465
|
|
|
4466
|
+
PuppetClient.prototype.roomMemberSync = function roomMemberSync(requestMessage, metadata, callback) {
|
|
4467
|
+
if (arguments.length === 2) {
|
|
4468
|
+
callback = arguments[1];
|
|
4469
|
+
}
|
|
4470
|
+
var client = grpc.unary(Puppet.RoomMemberSync, {
|
|
4471
|
+
request: requestMessage,
|
|
4472
|
+
host: this.serviceHost,
|
|
4473
|
+
metadata: metadata,
|
|
4474
|
+
transport: this.options.transport,
|
|
4475
|
+
debug: this.options.debug,
|
|
4476
|
+
onEnd: function (response) {
|
|
4477
|
+
if (callback) {
|
|
4478
|
+
if (response.status !== grpc.Code.OK) {
|
|
4479
|
+
var err = new Error(response.statusMessage);
|
|
4480
|
+
err.code = response.status;
|
|
4481
|
+
err.metadata = response.trailers;
|
|
4482
|
+
callback(err, null);
|
|
4483
|
+
} else {
|
|
4484
|
+
callback(null, response.message);
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
}
|
|
4488
|
+
});
|
|
4489
|
+
return {
|
|
4490
|
+
cancel: function () {
|
|
4491
|
+
callback = null;
|
|
4492
|
+
client.close();
|
|
4493
|
+
}
|
|
4494
|
+
};
|
|
4495
|
+
};
|
|
4496
|
+
|
|
4497
|
+
PuppetClient.prototype.roomMemberLoadState = function roomMemberLoadState(requestMessage, metadata, callback) {
|
|
4498
|
+
if (arguments.length === 2) {
|
|
4499
|
+
callback = arguments[1];
|
|
4500
|
+
}
|
|
4501
|
+
var client = grpc.unary(Puppet.RoomMemberLoadState, {
|
|
4502
|
+
request: requestMessage,
|
|
4503
|
+
host: this.serviceHost,
|
|
4504
|
+
metadata: metadata,
|
|
4505
|
+
transport: this.options.transport,
|
|
4506
|
+
debug: this.options.debug,
|
|
4507
|
+
onEnd: function (response) {
|
|
4508
|
+
if (callback) {
|
|
4509
|
+
if (response.status !== grpc.Code.OK) {
|
|
4510
|
+
var err = new Error(response.statusMessage);
|
|
4511
|
+
err.code = response.status;
|
|
4512
|
+
err.metadata = response.trailers;
|
|
4513
|
+
callback(err, null);
|
|
4514
|
+
} else {
|
|
4515
|
+
callback(null, response.message);
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
}
|
|
4519
|
+
});
|
|
4520
|
+
return {
|
|
4521
|
+
cancel: function () {
|
|
4522
|
+
callback = null;
|
|
4523
|
+
client.close();
|
|
4524
|
+
}
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
|
|
4528
|
+
PuppetClient.prototype.roomMemberSnapshot = function roomMemberSnapshot(requestMessage, metadata, callback) {
|
|
4529
|
+
if (arguments.length === 2) {
|
|
4530
|
+
callback = arguments[1];
|
|
4531
|
+
}
|
|
4532
|
+
var client = grpc.unary(Puppet.RoomMemberSnapshot, {
|
|
4533
|
+
request: requestMessage,
|
|
4534
|
+
host: this.serviceHost,
|
|
4535
|
+
metadata: metadata,
|
|
4536
|
+
transport: this.options.transport,
|
|
4537
|
+
debug: this.options.debug,
|
|
4538
|
+
onEnd: function (response) {
|
|
4539
|
+
if (callback) {
|
|
4540
|
+
if (response.status !== grpc.Code.OK) {
|
|
4541
|
+
var err = new Error(response.statusMessage);
|
|
4542
|
+
err.code = response.status;
|
|
4543
|
+
err.metadata = response.trailers;
|
|
4544
|
+
callback(err, null);
|
|
4545
|
+
} else {
|
|
4546
|
+
callback(null, response.message);
|
|
4547
|
+
}
|
|
4548
|
+
}
|
|
4549
|
+
}
|
|
4550
|
+
});
|
|
4551
|
+
return {
|
|
4552
|
+
cancel: function () {
|
|
4553
|
+
callback = null;
|
|
4554
|
+
client.close();
|
|
4555
|
+
}
|
|
4556
|
+
};
|
|
4557
|
+
};
|
|
4558
|
+
|
|
4421
4559
|
PuppetClient.prototype.batchRoomMemberPayload = function batchRoomMemberPayload(requestMessage, metadata, callback) {
|
|
4422
4560
|
if (arguments.length === 2) {
|
|
4423
4561
|
callback = arguments[1];
|
|
@@ -5379,6 +5517,68 @@ PuppetClient.prototype.getCorpMessageInterceptionStrategies = function getCorpMe
|
|
|
5379
5517
|
};
|
|
5380
5518
|
};
|
|
5381
5519
|
|
|
5520
|
+
PuppetClient.prototype.orgBroadcastPayload = function orgBroadcastPayload(requestMessage, metadata, callback) {
|
|
5521
|
+
if (arguments.length === 2) {
|
|
5522
|
+
callback = arguments[1];
|
|
5523
|
+
}
|
|
5524
|
+
var client = grpc.unary(Puppet.OrgBroadcastPayload, {
|
|
5525
|
+
request: requestMessage,
|
|
5526
|
+
host: this.serviceHost,
|
|
5527
|
+
metadata: metadata,
|
|
5528
|
+
transport: this.options.transport,
|
|
5529
|
+
debug: this.options.debug,
|
|
5530
|
+
onEnd: function (response) {
|
|
5531
|
+
if (callback) {
|
|
5532
|
+
if (response.status !== grpc.Code.OK) {
|
|
5533
|
+
var err = new Error(response.statusMessage);
|
|
5534
|
+
err.code = response.status;
|
|
5535
|
+
err.metadata = response.trailers;
|
|
5536
|
+
callback(err, null);
|
|
5537
|
+
} else {
|
|
5538
|
+
callback(null, response.message);
|
|
5539
|
+
}
|
|
5540
|
+
}
|
|
5541
|
+
}
|
|
5542
|
+
});
|
|
5543
|
+
return {
|
|
5544
|
+
cancel: function () {
|
|
5545
|
+
callback = null;
|
|
5546
|
+
client.close();
|
|
5547
|
+
}
|
|
5548
|
+
};
|
|
5549
|
+
};
|
|
5550
|
+
|
|
5551
|
+
PuppetClient.prototype.orgBroadcastExecute = function orgBroadcastExecute(requestMessage, metadata, callback) {
|
|
5552
|
+
if (arguments.length === 2) {
|
|
5553
|
+
callback = arguments[1];
|
|
5554
|
+
}
|
|
5555
|
+
var client = grpc.unary(Puppet.OrgBroadcastExecute, {
|
|
5556
|
+
request: requestMessage,
|
|
5557
|
+
host: this.serviceHost,
|
|
5558
|
+
metadata: metadata,
|
|
5559
|
+
transport: this.options.transport,
|
|
5560
|
+
debug: this.options.debug,
|
|
5561
|
+
onEnd: function (response) {
|
|
5562
|
+
if (callback) {
|
|
5563
|
+
if (response.status !== grpc.Code.OK) {
|
|
5564
|
+
var err = new Error(response.statusMessage);
|
|
5565
|
+
err.code = response.status;
|
|
5566
|
+
err.metadata = response.trailers;
|
|
5567
|
+
callback(err, null);
|
|
5568
|
+
} else {
|
|
5569
|
+
callback(null, response.message);
|
|
5570
|
+
}
|
|
5571
|
+
}
|
|
5572
|
+
}
|
|
5573
|
+
});
|
|
5574
|
+
return {
|
|
5575
|
+
cancel: function () {
|
|
5576
|
+
callback = null;
|
|
5577
|
+
client.close();
|
|
5578
|
+
}
|
|
5579
|
+
};
|
|
5580
|
+
};
|
|
5581
|
+
|
|
5382
5582
|
PuppetClient.prototype.download = function download(requestMessage, metadata) {
|
|
5383
5583
|
var listeners = {
|
|
5384
5584
|
data: [],
|
|
@@ -37,6 +37,11 @@ enum EventType {
|
|
|
37
37
|
EVENT_TYPE_CALL = 35;
|
|
38
38
|
// same network verify for personal wechat login on Mac protocol
|
|
39
39
|
EVENT_TYPE_SAME_NET_VERIFY = 36;
|
|
40
|
+
// wecom org (admin) broadcast plan arrived: member received the broadcast assistant card
|
|
41
|
+
EVENT_TYPE_ORG_BROADCAST_CREATED = 37;
|
|
42
|
+
// wecom org (admin) broadcast plan executed, from any client
|
|
43
|
+
EVENT_TYPE_ORG_BROADCAST_SENT = 38;
|
|
44
|
+
EVENT_TYPE_ROOM_MEMBER_LOAD = 39;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
message EventRequest {
|
|
@@ -9,6 +9,21 @@ import "google/protobuf/wrappers.proto";
|
|
|
9
9
|
import "google/protobuf/timestamp.proto";
|
|
10
10
|
|
|
11
11
|
import "wechaty/puppet/util.proto";
|
|
12
|
+
import "wechaty/puppet/room-member.proto";
|
|
13
|
+
|
|
14
|
+
enum RoomMemberLoadMode {
|
|
15
|
+
ROOM_MEMBER_LOAD_MODE_UNSPECIFIED = 0;
|
|
16
|
+
ROOM_MEMBER_LOAD_MODE_NORMAL = 1;
|
|
17
|
+
ROOM_MEMBER_LOAD_MODE_LAZY = 2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
enum RoomMemberLoadStatus {
|
|
21
|
+
ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED = 0;
|
|
22
|
+
ROOM_MEMBER_LOAD_STATUS_PENDING = 1;
|
|
23
|
+
ROOM_MEMBER_LOAD_STATUS_LOADING = 2;
|
|
24
|
+
ROOM_MEMBER_LOAD_STATUS_LOADED = 3;
|
|
25
|
+
ROOM_MEMBER_LOAD_STATUS_FAILED = 4;
|
|
26
|
+
}
|
|
12
27
|
|
|
13
28
|
message RoomListRequest {}
|
|
14
29
|
message RoomListResponse {
|
|
@@ -30,6 +45,11 @@ message RoomPayloadResponse {
|
|
|
30
45
|
string room_remark = 9;
|
|
31
46
|
bool external = 10;
|
|
32
47
|
google.protobuf.Timestamp create_time = 11;
|
|
48
|
+
uint32 member_count = 12;
|
|
49
|
+
RoomMemberLoadMode member_load_mode = 13;
|
|
50
|
+
RoomMemberLoadStatus member_load_status = 14;
|
|
51
|
+
string member_load_revision = 15;
|
|
52
|
+
google.protobuf.Timestamp member_loaded_at = 16;
|
|
33
53
|
}
|
|
34
54
|
|
|
35
55
|
message RoomAddRequest {
|
|
@@ -179,3 +199,38 @@ message BatchRoomPayloadRequest {
|
|
|
179
199
|
message BatchRoomPayloadResponse {
|
|
180
200
|
repeated RoomPayloadResponse room_payloads = 1;
|
|
181
201
|
}
|
|
202
|
+
|
|
203
|
+
message RoomMemberSyncRequest {
|
|
204
|
+
string id = 1;
|
|
205
|
+
bool force = 2;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
message RoomMemberLoadStateRequest {
|
|
209
|
+
string id = 1;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
message RoomMemberLoadStateResponse {
|
|
213
|
+
string id = 1;
|
|
214
|
+
string task_id = 2;
|
|
215
|
+
RoomMemberLoadStatus status = 3;
|
|
216
|
+
// Canonical non-negative decimal string; never convert to a JS number.
|
|
217
|
+
string revision = 4;
|
|
218
|
+
google.protobuf.Timestamp loaded_at = 5;
|
|
219
|
+
string error = 6;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message RoomMemberSnapshotRequest {
|
|
223
|
+
string id = 1;
|
|
224
|
+
string revision = 2;
|
|
225
|
+
string page_token = 3;
|
|
226
|
+
// Zero selects the adapter default (100); maximum 500.
|
|
227
|
+
uint32 page_size = 4;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message RoomMemberSnapshotResponse {
|
|
231
|
+
string id = 1;
|
|
232
|
+
string revision = 2;
|
|
233
|
+
google.protobuf.Timestamp loaded_at = 3;
|
|
234
|
+
repeated RoomMemberPayloadResponse members = 4;
|
|
235
|
+
string next_page_token = 5;
|
|
236
|
+
}
|
|
@@ -65,3 +65,50 @@ message GetCorpMessageInterceptionStrategiesRequest {}
|
|
|
65
65
|
message GetCorpMessageInterceptionStrategiesResponse {
|
|
66
66
|
repeated CorpMessageInterceptionStrategy strategies = 1;
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
enum OrgBroadcastTargetStatus {
|
|
70
|
+
ORG_BROADCAST_TARGET_STATUS_UNSENT = 0;
|
|
71
|
+
ORG_BROADCAST_TARGET_STATUS_SENT = 1;
|
|
72
|
+
ORG_BROADCAST_TARGET_STATUS_NOT_FRIEND = 2;
|
|
73
|
+
ORG_BROADCAST_TARGET_STATUS_OCCUPIED = 3;
|
|
74
|
+
ORG_BROADCAST_TARGET_STATUS_UNCONFIRMED = 4;
|
|
75
|
+
ORG_BROADCAST_TARGET_STATUS_CONFIRMED = 5;
|
|
76
|
+
ORG_BROADCAST_TARGET_STATUS_EXPIRED = 6;
|
|
77
|
+
ORG_BROADCAST_TARGET_STATUS_CANCELED = 7;
|
|
78
|
+
ORG_BROADCAST_TARGET_STATUS_NEW_UNSENT = 8;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message OrgBroadcastTarget {
|
|
82
|
+
string contact_id = 1; // set when conversation_type is person
|
|
83
|
+
string room_id = 2; // set when conversation_type is group
|
|
84
|
+
OrgBroadcastTargetStatus status = 3;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message OrgBroadcastPayloadRequest {
|
|
88
|
+
string id = 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message OrgBroadcastPayloadResponse {
|
|
92
|
+
string id = 1;
|
|
93
|
+
int32 send_type = 2; // 0: official (org admin), 1: personal, 2: special
|
|
94
|
+
int32 conversation_type = 3; // 0: person, 1: group
|
|
95
|
+
string creator_id = 4;
|
|
96
|
+
int64 exec_time = 5; // milliseconds timestamp of the scheduled sending, 0 means immediately
|
|
97
|
+
int32 status = 6; // 0: checking, 1: check succeeded, 2: check failed, 3: delayed send succeeded, 4: delayed send canceled
|
|
98
|
+
bool can_cancel = 7;
|
|
99
|
+
bool allow_select = 8; // members may adjust targets before sending
|
|
100
|
+
bool sent = 9;
|
|
101
|
+
int32 total_count = 10;
|
|
102
|
+
int32 sent_count = 11;
|
|
103
|
+
string content_list_json = 12;
|
|
104
|
+
repeated OrgBroadcastTarget targets = 13;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message OrgBroadcastExecuteRequest {
|
|
108
|
+
string id = 1;
|
|
109
|
+
// empty means all targets of the plan; otherwise a subset of the plan targets.
|
|
110
|
+
// clients must not send an explicit empty selection, it would be read as all targets
|
|
111
|
+
repeated string target_ids = 2;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message OrgBroadcastExecuteResponse {}
|