@juzi/wechaty-grpc 1.0.11 → 1.0.14
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 +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +181 -73
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +1472 -594
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +216 -112
- package/dist/cjs/out/wechaty/puppet.swagger.json +312 -144
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
- package/dist/cjs/proto/wechaty/puppet/tag.proto +39 -21
- package/dist/cjs/proto/wechaty/puppet.proto +29 -9
- 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 +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +181 -73
- package/dist/esm/out/wechaty/puppet/tag_pb.js +1472 -594
- package/dist/esm/out/wechaty/puppet.openapi.yaml +216 -112
- package/dist/esm/out/wechaty/puppet.swagger.json +312 -144
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
- package/dist/esm/proto/wechaty/puppet/tag.proto +39 -21
- package/dist/esm/proto/wechaty/puppet.proto +29 -9
- 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 +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/out/wechaty/puppet/room_pb.js +58 -2
- package/out/wechaty/puppet/tag_pb.d.ts +181 -73
- package/out/wechaty/puppet/tag_pb.js +1472 -594
- package/out/wechaty/puppet.openapi.yaml +216 -112
- package/out/wechaty/puppet.swagger.json +312 -144
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -84,8 +84,10 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
84
84
|
tagContactTagRemove: IPuppetService_ITagContactTagRemove;
|
|
85
85
|
tagGroupAdd: IPuppetService_ITagGroupAdd;
|
|
86
86
|
tagGroupDelete: IPuppetService_ITagGroupDelete;
|
|
87
|
+
tagGroupPayload: IPuppetService_ITagGroupPayload;
|
|
87
88
|
tagTagAdd: IPuppetService_ITagTagAdd;
|
|
88
89
|
tagTagDelete: IPuppetService_ITagTagDelete;
|
|
90
|
+
tagPayload: IPuppetService_ITagPayload;
|
|
89
91
|
tagGroupList: IPuppetService_ITagGroupList;
|
|
90
92
|
tagGroupTagList: IPuppetService_ITagGroupTagList;
|
|
91
93
|
tagTagList: IPuppetService_ITagTagList;
|
|
@@ -662,6 +664,15 @@ interface IPuppetService_ITagGroupDelete extends grpc.MethodDefinition<wechaty_p
|
|
|
662
664
|
responseSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagGroupDeleteResponse>;
|
|
663
665
|
responseDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagGroupDeleteResponse>;
|
|
664
666
|
}
|
|
667
|
+
interface IPuppetService_ITagGroupPayload extends grpc.MethodDefinition<wechaty_puppet_tag_pb.TagGroupPayloadRequest, wechaty_puppet_tag_pb.TagGroupPayloadResponse> {
|
|
668
|
+
path: "/wechaty.Puppet/TagGroupPayload";
|
|
669
|
+
requestStream: false;
|
|
670
|
+
responseStream: false;
|
|
671
|
+
requestSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagGroupPayloadRequest>;
|
|
672
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagGroupPayloadRequest>;
|
|
673
|
+
responseSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagGroupPayloadResponse>;
|
|
674
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagGroupPayloadResponse>;
|
|
675
|
+
}
|
|
665
676
|
interface IPuppetService_ITagTagAdd extends grpc.MethodDefinition<wechaty_puppet_tag_pb.TagTagAddRequest, wechaty_puppet_tag_pb.TagTagAddResponse> {
|
|
666
677
|
path: "/wechaty.Puppet/TagTagAdd";
|
|
667
678
|
requestStream: false;
|
|
@@ -680,6 +691,15 @@ interface IPuppetService_ITagTagDelete extends grpc.MethodDefinition<wechaty_pup
|
|
|
680
691
|
responseSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagTagDeleteResponse>;
|
|
681
692
|
responseDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagTagDeleteResponse>;
|
|
682
693
|
}
|
|
694
|
+
interface IPuppetService_ITagPayload extends grpc.MethodDefinition<wechaty_puppet_tag_pb.TagPayloadRequest, wechaty_puppet_tag_pb.TagPayloadResponse> {
|
|
695
|
+
path: "/wechaty.Puppet/TagPayload";
|
|
696
|
+
requestStream: false;
|
|
697
|
+
responseStream: false;
|
|
698
|
+
requestSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagPayloadRequest>;
|
|
699
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagPayloadRequest>;
|
|
700
|
+
responseSerialize: grpc.serialize<wechaty_puppet_tag_pb.TagPayloadResponse>;
|
|
701
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_tag_pb.TagPayloadResponse>;
|
|
702
|
+
}
|
|
683
703
|
interface IPuppetService_ITagGroupList extends grpc.MethodDefinition<wechaty_puppet_tag_pb.TagGroupListRequest, wechaty_puppet_tag_pb.TagGroupListResponse> {
|
|
684
704
|
path: "/wechaty.Puppet/TagGroupList";
|
|
685
705
|
requestStream: false;
|
|
@@ -810,8 +830,10 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
810
830
|
tagContactTagRemove: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagContactTagRemoveRequest, wechaty_puppet_tag_pb.TagContactTagRemoveResponse>;
|
|
811
831
|
tagGroupAdd: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupAddRequest, wechaty_puppet_tag_pb.TagGroupAddResponse>;
|
|
812
832
|
tagGroupDelete: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupDeleteRequest, wechaty_puppet_tag_pb.TagGroupDeleteResponse>;
|
|
833
|
+
tagGroupPayload: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupPayloadRequest, wechaty_puppet_tag_pb.TagGroupPayloadResponse>;
|
|
813
834
|
tagTagAdd: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagAddRequest, wechaty_puppet_tag_pb.TagTagAddResponse>;
|
|
814
835
|
tagTagDelete: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagDeleteRequest, wechaty_puppet_tag_pb.TagTagDeleteResponse>;
|
|
836
|
+
tagPayload: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagPayloadRequest, wechaty_puppet_tag_pb.TagPayloadResponse>;
|
|
815
837
|
tagGroupList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupListRequest, wechaty_puppet_tag_pb.TagGroupListResponse>;
|
|
816
838
|
tagGroupTagList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagGroupTagListRequest, wechaty_puppet_tag_pb.TagGroupTagListResponse>;
|
|
817
839
|
tagTagList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagListRequest, wechaty_puppet_tag_pb.TagTagListResponse>;
|
|
@@ -1009,12 +1031,18 @@ export interface IPuppetClient {
|
|
|
1009
1031
|
tagGroupDelete(request: wechaty_puppet_tag_pb.TagGroupDeleteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1010
1032
|
tagGroupDelete(request: wechaty_puppet_tag_pb.TagGroupDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1011
1033
|
tagGroupDelete(request: wechaty_puppet_tag_pb.TagGroupDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1034
|
+
tagGroupPayload(request: wechaty_puppet_tag_pb.TagGroupPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1035
|
+
tagGroupPayload(request: wechaty_puppet_tag_pb.TagGroupPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1036
|
+
tagGroupPayload(request: wechaty_puppet_tag_pb.TagGroupPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1012
1037
|
tagTagAdd(request: wechaty_puppet_tag_pb.TagTagAddRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1013
1038
|
tagTagAdd(request: wechaty_puppet_tag_pb.TagTagAddRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1014
1039
|
tagTagAdd(request: wechaty_puppet_tag_pb.TagTagAddRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1015
1040
|
tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1016
1041
|
tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1017
1042
|
tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1043
|
+
tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1044
|
+
tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1045
|
+
tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1018
1046
|
tagGroupList(request: wechaty_puppet_tag_pb.TagGroupListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupListResponse) => void): grpc.ClientUnaryCall;
|
|
1019
1047
|
tagGroupList(request: wechaty_puppet_tag_pb.TagGroupListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupListResponse) => void): grpc.ClientUnaryCall;
|
|
1020
1048
|
tagGroupList(request: wechaty_puppet_tag_pb.TagGroupListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupListResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1227,12 +1255,18 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1227
1255
|
public tagGroupDelete(request: wechaty_puppet_tag_pb.TagGroupDeleteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1228
1256
|
public tagGroupDelete(request: wechaty_puppet_tag_pb.TagGroupDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1229
1257
|
public tagGroupDelete(request: wechaty_puppet_tag_pb.TagGroupDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1258
|
+
public tagGroupPayload(request: wechaty_puppet_tag_pb.TagGroupPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1259
|
+
public tagGroupPayload(request: wechaty_puppet_tag_pb.TagGroupPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1260
|
+
public tagGroupPayload(request: wechaty_puppet_tag_pb.TagGroupPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1230
1261
|
public tagTagAdd(request: wechaty_puppet_tag_pb.TagTagAddRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1231
1262
|
public tagTagAdd(request: wechaty_puppet_tag_pb.TagTagAddRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1232
1263
|
public tagTagAdd(request: wechaty_puppet_tag_pb.TagTagAddRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagAddResponse) => void): grpc.ClientUnaryCall;
|
|
1233
1264
|
public tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1234
1265
|
public tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1235
1266
|
public tagTagDelete(request: wechaty_puppet_tag_pb.TagTagDeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagTagDeleteResponse) => void): grpc.ClientUnaryCall;
|
|
1267
|
+
public tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1268
|
+
public tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1269
|
+
public tagPayload(request: wechaty_puppet_tag_pb.TagPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1236
1270
|
public tagGroupList(request: wechaty_puppet_tag_pb.TagGroupListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupListResponse) => void): grpc.ClientUnaryCall;
|
|
1237
1271
|
public tagGroupList(request: wechaty_puppet_tag_pb.TagGroupListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupListResponse) => void): grpc.ClientUnaryCall;
|
|
1238
1272
|
public tagGroupList(request: wechaty_puppet_tag_pb.TagGroupListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_tag_pb.TagGroupListResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1437,6 +1437,28 @@ function deserialize_wechaty_puppet_TagGroupListResponse(buffer_arg) {
|
|
|
1437
1437
|
return wechaty_puppet_tag_pb.TagGroupListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
+
function serialize_wechaty_puppet_TagGroupPayloadRequest(arg) {
|
|
1441
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagGroupPayloadRequest)) {
|
|
1442
|
+
throw new Error('Expected argument of type wechaty.puppet.TagGroupPayloadRequest');
|
|
1443
|
+
}
|
|
1444
|
+
return Buffer.from(arg.serializeBinary());
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
function deserialize_wechaty_puppet_TagGroupPayloadRequest(buffer_arg) {
|
|
1448
|
+
return wechaty_puppet_tag_pb.TagGroupPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
function serialize_wechaty_puppet_TagGroupPayloadResponse(arg) {
|
|
1452
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagGroupPayloadResponse)) {
|
|
1453
|
+
throw new Error('Expected argument of type wechaty.puppet.TagGroupPayloadResponse');
|
|
1454
|
+
}
|
|
1455
|
+
return Buffer.from(arg.serializeBinary());
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
function deserialize_wechaty_puppet_TagGroupPayloadResponse(buffer_arg) {
|
|
1459
|
+
return wechaty_puppet_tag_pb.TagGroupPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1440
1462
|
function serialize_wechaty_puppet_TagGroupTagListRequest(arg) {
|
|
1441
1463
|
if (!(arg instanceof wechaty_puppet_tag_pb.TagGroupTagListRequest)) {
|
|
1442
1464
|
throw new Error('Expected argument of type wechaty.puppet.TagGroupTagListRequest');
|
|
@@ -1459,6 +1481,28 @@ function deserialize_wechaty_puppet_TagGroupTagListResponse(buffer_arg) {
|
|
|
1459
1481
|
return wechaty_puppet_tag_pb.TagGroupTagListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1460
1482
|
}
|
|
1461
1483
|
|
|
1484
|
+
function serialize_wechaty_puppet_TagPayloadRequest(arg) {
|
|
1485
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagPayloadRequest)) {
|
|
1486
|
+
throw new Error('Expected argument of type wechaty.puppet.TagPayloadRequest');
|
|
1487
|
+
}
|
|
1488
|
+
return Buffer.from(arg.serializeBinary());
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
function deserialize_wechaty_puppet_TagPayloadRequest(buffer_arg) {
|
|
1492
|
+
return wechaty_puppet_tag_pb.TagPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
function serialize_wechaty_puppet_TagPayloadResponse(arg) {
|
|
1496
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagPayloadResponse)) {
|
|
1497
|
+
throw new Error('Expected argument of type wechaty.puppet.TagPayloadResponse');
|
|
1498
|
+
}
|
|
1499
|
+
return Buffer.from(arg.serializeBinary());
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
function deserialize_wechaty_puppet_TagPayloadResponse(buffer_arg) {
|
|
1503
|
+
return wechaty_puppet_tag_pb.TagPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1462
1506
|
function serialize_wechaty_puppet_TagTagAddRequest(arg) {
|
|
1463
1507
|
if (!(arg instanceof wechaty_puppet_tag_pb.TagTagAddRequest)) {
|
|
1464
1508
|
throw new Error('Expected argument of type wechaty.puppet.TagTagAddRequest');
|
|
@@ -2335,6 +2379,17 @@ tagContactTagAdd: {
|
|
|
2335
2379
|
responseSerialize: serialize_wechaty_puppet_TagGroupDeleteResponse,
|
|
2336
2380
|
responseDeserialize: deserialize_wechaty_puppet_TagGroupDeleteResponse,
|
|
2337
2381
|
},
|
|
2382
|
+
tagGroupPayload: {
|
|
2383
|
+
path: '/wechaty.Puppet/TagGroupPayload',
|
|
2384
|
+
requestStream: false,
|
|
2385
|
+
responseStream: false,
|
|
2386
|
+
requestType: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
2387
|
+
responseType: wechaty_puppet_tag_pb.TagGroupPayloadResponse,
|
|
2388
|
+
requestSerialize: serialize_wechaty_puppet_TagGroupPayloadRequest,
|
|
2389
|
+
requestDeserialize: deserialize_wechaty_puppet_TagGroupPayloadRequest,
|
|
2390
|
+
responseSerialize: serialize_wechaty_puppet_TagGroupPayloadResponse,
|
|
2391
|
+
responseDeserialize: deserialize_wechaty_puppet_TagGroupPayloadResponse,
|
|
2392
|
+
},
|
|
2338
2393
|
tagTagAdd: {
|
|
2339
2394
|
path: '/wechaty.Puppet/TagTagAdd',
|
|
2340
2395
|
requestStream: false,
|
|
@@ -2357,6 +2412,17 @@ tagContactTagAdd: {
|
|
|
2357
2412
|
responseSerialize: serialize_wechaty_puppet_TagTagDeleteResponse,
|
|
2358
2413
|
responseDeserialize: deserialize_wechaty_puppet_TagTagDeleteResponse,
|
|
2359
2414
|
},
|
|
2415
|
+
tagPayload: {
|
|
2416
|
+
path: '/wechaty.Puppet/TagPayload',
|
|
2417
|
+
requestStream: false,
|
|
2418
|
+
responseStream: false,
|
|
2419
|
+
requestType: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
2420
|
+
responseType: wechaty_puppet_tag_pb.TagPayloadResponse,
|
|
2421
|
+
requestSerialize: serialize_wechaty_puppet_TagPayloadRequest,
|
|
2422
|
+
requestDeserialize: deserialize_wechaty_puppet_TagPayloadRequest,
|
|
2423
|
+
responseSerialize: serialize_wechaty_puppet_TagPayloadResponse,
|
|
2424
|
+
responseDeserialize: deserialize_wechaty_puppet_TagPayloadResponse,
|
|
2425
|
+
},
|
|
2360
2426
|
tagGroupList: {
|
|
2361
2427
|
path: '/wechaty.Puppet/TagGroupList',
|
|
2362
2428
|
requestStream: false,
|
|
@@ -582,6 +582,15 @@ type PuppetTagGroupDelete = {
|
|
|
582
582
|
readonly responseType: typeof wechaty_puppet_tag_pb.TagGroupDeleteResponse;
|
|
583
583
|
};
|
|
584
584
|
|
|
585
|
+
type PuppetTagGroupPayload = {
|
|
586
|
+
readonly methodName: string;
|
|
587
|
+
readonly service: typeof Puppet;
|
|
588
|
+
readonly requestStream: false;
|
|
589
|
+
readonly responseStream: false;
|
|
590
|
+
readonly requestType: typeof wechaty_puppet_tag_pb.TagGroupPayloadRequest;
|
|
591
|
+
readonly responseType: typeof wechaty_puppet_tag_pb.TagGroupPayloadResponse;
|
|
592
|
+
};
|
|
593
|
+
|
|
585
594
|
type PuppetTagTagAdd = {
|
|
586
595
|
readonly methodName: string;
|
|
587
596
|
readonly service: typeof Puppet;
|
|
@@ -600,6 +609,15 @@ type PuppetTagTagDelete = {
|
|
|
600
609
|
readonly responseType: typeof wechaty_puppet_tag_pb.TagTagDeleteResponse;
|
|
601
610
|
};
|
|
602
611
|
|
|
612
|
+
type PuppetTagPayload = {
|
|
613
|
+
readonly methodName: string;
|
|
614
|
+
readonly service: typeof Puppet;
|
|
615
|
+
readonly requestStream: false;
|
|
616
|
+
readonly responseStream: false;
|
|
617
|
+
readonly requestType: typeof wechaty_puppet_tag_pb.TagPayloadRequest;
|
|
618
|
+
readonly responseType: typeof wechaty_puppet_tag_pb.TagPayloadResponse;
|
|
619
|
+
};
|
|
620
|
+
|
|
603
621
|
type PuppetTagGroupList = {
|
|
604
622
|
readonly methodName: string;
|
|
605
623
|
readonly service: typeof Puppet;
|
|
@@ -728,8 +746,10 @@ export class Puppet {
|
|
|
728
746
|
static readonly TagContactTagRemove: PuppetTagContactTagRemove;
|
|
729
747
|
static readonly TagGroupAdd: PuppetTagGroupAdd;
|
|
730
748
|
static readonly TagGroupDelete: PuppetTagGroupDelete;
|
|
749
|
+
static readonly TagGroupPayload: PuppetTagGroupPayload;
|
|
731
750
|
static readonly TagTagAdd: PuppetTagTagAdd;
|
|
732
751
|
static readonly TagTagDelete: PuppetTagTagDelete;
|
|
752
|
+
static readonly TagPayload: PuppetTagPayload;
|
|
733
753
|
static readonly TagGroupList: PuppetTagGroupList;
|
|
734
754
|
static readonly TagGroupTagList: PuppetTagGroupTagList;
|
|
735
755
|
static readonly TagTagList: PuppetTagTagList;
|
|
@@ -1306,6 +1326,15 @@ export class PuppetClient {
|
|
|
1306
1326
|
requestMessage: wechaty_puppet_tag_pb.TagGroupDeleteRequest,
|
|
1307
1327
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagGroupDeleteResponse|null) => void
|
|
1308
1328
|
): UnaryResponse;
|
|
1329
|
+
tagGroupPayload(
|
|
1330
|
+
requestMessage: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
1331
|
+
metadata: grpc.Metadata,
|
|
1332
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagGroupPayloadResponse|null) => void
|
|
1333
|
+
): UnaryResponse;
|
|
1334
|
+
tagGroupPayload(
|
|
1335
|
+
requestMessage: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
1336
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagGroupPayloadResponse|null) => void
|
|
1337
|
+
): UnaryResponse;
|
|
1309
1338
|
tagTagAdd(
|
|
1310
1339
|
requestMessage: wechaty_puppet_tag_pb.TagTagAddRequest,
|
|
1311
1340
|
metadata: grpc.Metadata,
|
|
@@ -1324,6 +1353,15 @@ export class PuppetClient {
|
|
|
1324
1353
|
requestMessage: wechaty_puppet_tag_pb.TagTagDeleteRequest,
|
|
1325
1354
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagTagDeleteResponse|null) => void
|
|
1326
1355
|
): UnaryResponse;
|
|
1356
|
+
tagPayload(
|
|
1357
|
+
requestMessage: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
1358
|
+
metadata: grpc.Metadata,
|
|
1359
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagPayloadResponse|null) => void
|
|
1360
|
+
): UnaryResponse;
|
|
1361
|
+
tagPayload(
|
|
1362
|
+
requestMessage: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
1363
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagPayloadResponse|null) => void
|
|
1364
|
+
): UnaryResponse;
|
|
1327
1365
|
tagGroupList(
|
|
1328
1366
|
requestMessage: wechaty_puppet_tag_pb.TagGroupListRequest,
|
|
1329
1367
|
metadata: grpc.Metadata,
|
|
@@ -588,6 +588,15 @@ Puppet.TagGroupDelete = {
|
|
|
588
588
|
responseType: wechaty_puppet_tag_pb.TagGroupDeleteResponse
|
|
589
589
|
};
|
|
590
590
|
|
|
591
|
+
Puppet.TagGroupPayload = {
|
|
592
|
+
methodName: "TagGroupPayload",
|
|
593
|
+
service: Puppet,
|
|
594
|
+
requestStream: false,
|
|
595
|
+
responseStream: false,
|
|
596
|
+
requestType: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
597
|
+
responseType: wechaty_puppet_tag_pb.TagGroupPayloadResponse
|
|
598
|
+
};
|
|
599
|
+
|
|
591
600
|
Puppet.TagTagAdd = {
|
|
592
601
|
methodName: "TagTagAdd",
|
|
593
602
|
service: Puppet,
|
|
@@ -606,6 +615,15 @@ Puppet.TagTagDelete = {
|
|
|
606
615
|
responseType: wechaty_puppet_tag_pb.TagTagDeleteResponse
|
|
607
616
|
};
|
|
608
617
|
|
|
618
|
+
Puppet.TagPayload = {
|
|
619
|
+
methodName: "TagPayload",
|
|
620
|
+
service: Puppet,
|
|
621
|
+
requestStream: false,
|
|
622
|
+
responseStream: false,
|
|
623
|
+
requestType: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
624
|
+
responseType: wechaty_puppet_tag_pb.TagPayloadResponse
|
|
625
|
+
};
|
|
626
|
+
|
|
609
627
|
Puppet.TagGroupList = {
|
|
610
628
|
methodName: "TagGroupList",
|
|
611
629
|
service: Puppet,
|
|
@@ -2663,6 +2681,37 @@ PuppetClient.prototype.tagGroupDelete = function tagGroupDelete(requestMessage,
|
|
|
2663
2681
|
};
|
|
2664
2682
|
};
|
|
2665
2683
|
|
|
2684
|
+
PuppetClient.prototype.tagGroupPayload = function tagGroupPayload(requestMessage, metadata, callback) {
|
|
2685
|
+
if (arguments.length === 2) {
|
|
2686
|
+
callback = arguments[1];
|
|
2687
|
+
}
|
|
2688
|
+
var client = grpc.unary(Puppet.TagGroupPayload, {
|
|
2689
|
+
request: requestMessage,
|
|
2690
|
+
host: this.serviceHost,
|
|
2691
|
+
metadata: metadata,
|
|
2692
|
+
transport: this.options.transport,
|
|
2693
|
+
debug: this.options.debug,
|
|
2694
|
+
onEnd: function (response) {
|
|
2695
|
+
if (callback) {
|
|
2696
|
+
if (response.status !== grpc.Code.OK) {
|
|
2697
|
+
var err = new Error(response.statusMessage);
|
|
2698
|
+
err.code = response.status;
|
|
2699
|
+
err.metadata = response.trailers;
|
|
2700
|
+
callback(err, null);
|
|
2701
|
+
} else {
|
|
2702
|
+
callback(null, response.message);
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
});
|
|
2707
|
+
return {
|
|
2708
|
+
cancel: function () {
|
|
2709
|
+
callback = null;
|
|
2710
|
+
client.close();
|
|
2711
|
+
}
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2666
2715
|
PuppetClient.prototype.tagTagAdd = function tagTagAdd(requestMessage, metadata, callback) {
|
|
2667
2716
|
if (arguments.length === 2) {
|
|
2668
2717
|
callback = arguments[1];
|
|
@@ -2725,6 +2774,37 @@ PuppetClient.prototype.tagTagDelete = function tagTagDelete(requestMessage, meta
|
|
|
2725
2774
|
};
|
|
2726
2775
|
};
|
|
2727
2776
|
|
|
2777
|
+
PuppetClient.prototype.tagPayload = function tagPayload(requestMessage, metadata, callback) {
|
|
2778
|
+
if (arguments.length === 2) {
|
|
2779
|
+
callback = arguments[1];
|
|
2780
|
+
}
|
|
2781
|
+
var client = grpc.unary(Puppet.TagPayload, {
|
|
2782
|
+
request: requestMessage,
|
|
2783
|
+
host: this.serviceHost,
|
|
2784
|
+
metadata: metadata,
|
|
2785
|
+
transport: this.options.transport,
|
|
2786
|
+
debug: this.options.debug,
|
|
2787
|
+
onEnd: function (response) {
|
|
2788
|
+
if (callback) {
|
|
2789
|
+
if (response.status !== grpc.Code.OK) {
|
|
2790
|
+
var err = new Error(response.statusMessage);
|
|
2791
|
+
err.code = response.status;
|
|
2792
|
+
err.metadata = response.trailers;
|
|
2793
|
+
callback(err, null);
|
|
2794
|
+
} else {
|
|
2795
|
+
callback(null, response.message);
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
});
|
|
2800
|
+
return {
|
|
2801
|
+
cancel: function () {
|
|
2802
|
+
callback = null;
|
|
2803
|
+
client.close();
|
|
2804
|
+
}
|
|
2805
|
+
};
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2728
2808
|
PuppetClient.prototype.tagGroupList = function tagGroupList(requestMessage, metadata, callback) {
|
|
2729
2809
|
if (arguments.length === 2) {
|
|
2730
2810
|
callback = arguments[1];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package wechaty.puppet;
|
|
3
3
|
|
|
4
|
-
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
-
option java_package="io.github.wechaty.grpc.puppet";
|
|
4
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package = "io.github.wechaty.grpc.puppet";
|
|
6
6
|
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
7
|
|
|
8
8
|
import "google/protobuf/wrappers.proto";
|
|
@@ -27,8 +27,8 @@ message RoomPayloadResponse {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
message RoomAddRequest {
|
|
30
|
-
string id
|
|
31
|
-
string contact_id
|
|
30
|
+
string id = 1;
|
|
31
|
+
string contact_id = 2;
|
|
32
32
|
bool invite_only = 3;
|
|
33
33
|
}
|
|
34
34
|
message RoomAddResponse {}
|
|
@@ -42,15 +42,16 @@ message RoomAvatarResponse {
|
|
|
42
42
|
|
|
43
43
|
message RoomCreateRequest {
|
|
44
44
|
repeated string contact_ids = 1;
|
|
45
|
-
string
|
|
45
|
+
string topic = 2;
|
|
46
46
|
}
|
|
47
47
|
message RoomCreateResponse {
|
|
48
48
|
string id = 1;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
message RoomDelRequest {
|
|
52
|
-
string
|
|
53
|
-
string
|
|
52
|
+
string id = 1;
|
|
53
|
+
string contact_id = 2 [deprecated = true]; // Deprecated, will be removed after bot updated
|
|
54
|
+
repeated string contact_ids = 3;
|
|
54
55
|
}
|
|
55
56
|
message RoomDelResponse {}
|
|
56
57
|
|
|
@@ -60,13 +61,13 @@ message RoomQuitRequest {
|
|
|
60
61
|
message RoomQuitResponse {}
|
|
61
62
|
|
|
62
63
|
message RoomTopicRequest {
|
|
63
|
-
string
|
|
64
|
+
string id = 1;
|
|
64
65
|
google.protobuf.StringValue topic_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
65
|
-
optional
|
|
66
|
+
optional string topic = 3;
|
|
66
67
|
}
|
|
67
68
|
message RoomTopicResponse {
|
|
68
69
|
google.protobuf.StringValue topic_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
69
|
-
string
|
|
70
|
+
string topic = 2;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
message RoomQRCodeRequest {
|
|
@@ -77,12 +78,12 @@ message RoomQRCodeResponse {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
message RoomAnnounceRequest {
|
|
80
|
-
string
|
|
81
|
+
string id = 1;
|
|
81
82
|
google.protobuf.StringValue text_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
82
|
-
optional
|
|
83
|
+
optional string text = 3;
|
|
83
84
|
}
|
|
84
85
|
message RoomAnnounceResponse {
|
|
85
86
|
google.protobuf.StringValue text_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
86
|
-
string
|
|
87
|
+
string text = 2;
|
|
87
88
|
}
|
|
88
89
|
|
|
@@ -17,24 +17,28 @@ message TagPayload {
|
|
|
17
17
|
TagType type = 4;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
message TagIdentifier {
|
|
21
|
+
string id = 1;
|
|
22
|
+
string group_id = 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
message TagGroupPayload {
|
|
21
|
-
string
|
|
22
|
-
string
|
|
26
|
+
string id = 1;
|
|
27
|
+
string name = 2;
|
|
28
|
+
TagType type = 3;
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
message TagContactTagAddRequest {
|
|
26
|
-
|
|
27
|
-
string
|
|
28
|
-
string contact_id = 3;
|
|
32
|
+
repeated TagIdentifier tags = 1;
|
|
33
|
+
repeated string contact_ids = 2;
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
message TagContactTagAddResponse {
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
message TagContactTagRemoveRequest {
|
|
35
|
-
|
|
36
|
-
string
|
|
37
|
-
string contact_id = 3;
|
|
40
|
+
repeated TagIdentifier tags = 1;
|
|
41
|
+
repeated string contact_ids = 2;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
message TagContactTagRemoveResponse {
|
|
@@ -45,7 +49,7 @@ message TagGroupAddRequest {
|
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
message TagGroupAddResponse {
|
|
48
|
-
|
|
52
|
+
string tag_group_id = 1;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
message TagGroupDeleteRequest {
|
|
@@ -56,17 +60,16 @@ message TagGroupDeleteResponse {
|
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
message TagTagAddRequest {
|
|
59
|
-
string
|
|
60
|
-
string
|
|
63
|
+
string tag_name = 1;
|
|
64
|
+
string tag_group_id = 2;
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
message TagTagAddResponse {
|
|
64
|
-
|
|
68
|
+
TagIdentifier tag = 1;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
message TagTagDeleteRequest {
|
|
68
|
-
|
|
69
|
-
string tag_id = 2;
|
|
72
|
+
TagIdentifier tag = 1;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
message TagTagDeleteResponse {
|
|
@@ -76,7 +79,7 @@ message TagGroupListRequest {
|
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
message TagGroupListResponse {
|
|
79
|
-
repeated
|
|
82
|
+
repeated string tag_group_ids = 1;
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
message TagGroupTagListRequest {
|
|
@@ -84,14 +87,14 @@ message TagGroupTagListRequest {
|
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
message TagGroupTagListResponse {
|
|
87
|
-
repeated
|
|
90
|
+
repeated TagIdentifier tags = 1;
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
message TagTagListRequest {
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
message TagTagListResponse {
|
|
94
|
-
repeated
|
|
97
|
+
repeated TagIdentifier tags = 1;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
message TagContactTagListRequest {
|
|
@@ -99,14 +102,29 @@ message TagContactTagListRequest {
|
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
message TagContactTagListResponse {
|
|
102
|
-
repeated
|
|
105
|
+
repeated TagIdentifier tags = 1;
|
|
103
106
|
}
|
|
104
107
|
|
|
105
108
|
message TagTagContactListRequest {
|
|
106
|
-
|
|
107
|
-
string tag_id = 2;
|
|
109
|
+
TagIdentifier tag = 1;
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
message TagTagContactListResponse {
|
|
111
|
-
repeated string
|
|
113
|
+
repeated string contact_ids = 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message TagGroupPayloadRequest {
|
|
117
|
+
string group_id = 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message TagGroupPayloadResponse {
|
|
121
|
+
TagGroupPayload payload = 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message TagPayloadRequest {
|
|
125
|
+
TagIdentifier tag = 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message TagPayloadResponse {
|
|
129
|
+
TagPayload payload = 1;
|
|
112
130
|
}
|
|
@@ -488,43 +488,63 @@ service Puppet {
|
|
|
488
488
|
|
|
489
489
|
rpc TagContactTagAdd (puppet.TagContactTagAddRequest) returns (puppet.TagContactTagAddResponse) {
|
|
490
490
|
option (google.api.http) = {
|
|
491
|
-
|
|
491
|
+
post: "/tag/addContactTag"
|
|
492
|
+
body: "*"
|
|
492
493
|
};
|
|
493
494
|
}
|
|
494
495
|
|
|
495
496
|
rpc TagContactTagRemove (puppet.TagContactTagRemoveRequest) returns (puppet.TagContactTagRemoveResponse) {
|
|
496
497
|
option (google.api.http) = {
|
|
497
|
-
|
|
498
|
+
post: "/tag/removeContactTag"
|
|
499
|
+
body: "*"
|
|
498
500
|
};
|
|
499
501
|
}
|
|
500
502
|
|
|
501
503
|
rpc TagGroupAdd (puppet.TagGroupAddRequest) returns (puppet.TagGroupAddResponse) {
|
|
502
504
|
option (google.api.http) = {
|
|
503
|
-
|
|
505
|
+
post: "/tagGroup/add"
|
|
506
|
+
body: "*"
|
|
504
507
|
};
|
|
505
508
|
}
|
|
506
509
|
|
|
507
510
|
rpc TagGroupDelete (puppet.TagGroupDeleteRequest) returns (puppet.TagGroupDeleteResponse) {
|
|
508
511
|
option (google.api.http) = {
|
|
509
|
-
|
|
512
|
+
post: "/tagGroup/delete"
|
|
513
|
+
body: "*"
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
rpc TagGroupPayload (puppet.TagGroupPayloadRequest) returns (puppet.TagGroupPayloadResponse) {
|
|
518
|
+
option (google.api.http) = {
|
|
519
|
+
post: "/tagGroup/payload"
|
|
520
|
+
body: "*"
|
|
510
521
|
};
|
|
511
522
|
}
|
|
512
523
|
|
|
513
524
|
rpc TagTagAdd (puppet.TagTagAddRequest) returns (puppet.TagTagAddResponse) {
|
|
514
525
|
option (google.api.http) = {
|
|
515
|
-
|
|
526
|
+
post: "/tag/add"
|
|
527
|
+
body: "*"
|
|
516
528
|
};
|
|
517
529
|
}
|
|
518
530
|
|
|
519
531
|
rpc TagTagDelete (puppet.TagTagDeleteRequest) returns (puppet.TagTagDeleteResponse) {
|
|
520
532
|
option (google.api.http) = {
|
|
521
|
-
|
|
533
|
+
post: "/tag/delete"
|
|
534
|
+
body: "*"
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
rpc TagPayload (puppet.TagPayloadRequest) returns (puppet.TagPayloadResponse) {
|
|
539
|
+
option (google.api.http) = {
|
|
540
|
+
post: "/tag/payload"
|
|
541
|
+
body: "*"
|
|
522
542
|
};
|
|
523
543
|
}
|
|
524
544
|
|
|
525
545
|
rpc TagGroupList (puppet.TagGroupListRequest) returns (puppet.TagGroupListResponse) {
|
|
526
546
|
option (google.api.http) = {
|
|
527
|
-
get: "/
|
|
547
|
+
get: "/tagGroup/list"
|
|
528
548
|
};
|
|
529
549
|
}
|
|
530
550
|
|
|
@@ -536,7 +556,7 @@ service Puppet {
|
|
|
536
556
|
|
|
537
557
|
rpc TagTagList (puppet.TagTagListRequest) returns (puppet.TagTagListResponse) {
|
|
538
558
|
option (google.api.http) = {
|
|
539
|
-
get: "/tag/
|
|
559
|
+
get: "/tag/list"
|
|
540
560
|
};
|
|
541
561
|
}
|
|
542
562
|
|
|
@@ -548,7 +568,7 @@ service Puppet {
|
|
|
548
568
|
|
|
549
569
|
rpc TagTagContactList (puppet.TagTagContactListRequest) returns (puppet.TagTagContactListResponse) {
|
|
550
570
|
option (google.api.http) = {
|
|
551
|
-
get: "/tag/{
|
|
571
|
+
get: "/tag/{tag.group_id}/{tag.id}/contacts"
|
|
552
572
|
};
|
|
553
573
|
}
|
|
554
574
|
/**
|