@juzi/wechaty-grpc 1.0.51 → 1.0.53
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/contact_pb.d.ts +12 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +97 -1
- package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +31 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +41 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +10 -2
- package/dist/cjs/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -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 +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +12 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +97 -1
- package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +31 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +41 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +10 -2
- package/dist/esm/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -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 +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +12 -0
- package/out/wechaty/puppet/contact_pb.js +97 -1
- package/out/wechaty/puppet/moment_pb.d.ts +36 -0
- package/out/wechaty/puppet/moment_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +31 -1
- package/out/wechaty/puppet.swagger.json +41 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -100,6 +100,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
100
100
|
tagContactTagList: IPuppetService_ITagContactTagList;
|
|
101
101
|
tagTagContactList: IPuppetService_ITagTagContactList;
|
|
102
102
|
momentPublish: IPuppetService_ImomentPublish;
|
|
103
|
+
momentUnpublish: IPuppetService_IMomentUnpublish;
|
|
103
104
|
postTap: IPuppetService_IpostTap;
|
|
104
105
|
momentSignature: IPuppetService_ImomentSignature;
|
|
105
106
|
momentCoverage: IPuppetService_ImomentCoverage;
|
|
@@ -803,6 +804,15 @@ interface IPuppetService_ImomentPublish extends grpc.MethodDefinition<wechaty_pu
|
|
|
803
804
|
responseSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
804
805
|
responseDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
805
806
|
}
|
|
807
|
+
interface IPuppetService_IMomentUnpublish extends grpc.MethodDefinition<wechaty_puppet_moment_pb.MomentUnpublishRequest, wechaty_puppet_moment_pb.MomentUnpublishResponse> {
|
|
808
|
+
path: "/wechaty.Puppet/MomentUnpublish";
|
|
809
|
+
requestStream: false;
|
|
810
|
+
responseStream: false;
|
|
811
|
+
requestSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentUnpublishRequest>;
|
|
812
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentUnpublishRequest>;
|
|
813
|
+
responseSerialize: grpc.serialize<wechaty_puppet_moment_pb.MomentUnpublishResponse>;
|
|
814
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_moment_pb.MomentUnpublishResponse>;
|
|
815
|
+
}
|
|
806
816
|
interface IPuppetService_IpostTap extends grpc.MethodDefinition<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse> {
|
|
807
817
|
path: "/wechaty.Puppet/postTap";
|
|
808
818
|
requestStream: false;
|
|
@@ -956,6 +966,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
956
966
|
tagContactTagList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagContactTagListRequest, wechaty_puppet_tag_pb.TagContactTagListResponse>;
|
|
957
967
|
tagTagContactList: grpc.handleUnaryCall<wechaty_puppet_tag_pb.TagTagContactListRequest, wechaty_puppet_tag_pb.TagTagContactListResponse>;
|
|
958
968
|
momentPublish: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentPublishRequest, wechaty_puppet_moment_pb.MomentPublishResponse>;
|
|
969
|
+
momentUnpublish: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentUnpublishRequest, wechaty_puppet_moment_pb.MomentUnpublishResponse>;
|
|
959
970
|
postTap: grpc.handleUnaryCall<wechaty_puppet_post_pb.PostTapRequest, wechaty_puppet_post_pb.PostTapResponse>;
|
|
960
971
|
momentSignature: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentSignatureRequest, wechaty_puppet_moment_pb.MomentSignatureResponse>;
|
|
961
972
|
momentCoverage: grpc.handleUnaryCall<wechaty_puppet_moment_pb.MomentCoverageRequest, wechaty_puppet_moment_pb.MomentCoverageResponse>;
|
|
@@ -1197,6 +1208,9 @@ export interface IPuppetClient {
|
|
|
1197
1208
|
momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1198
1209
|
momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1199
1210
|
momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1211
|
+
momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1212
|
+
momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1213
|
+
momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1200
1214
|
postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1201
1215
|
postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1202
1216
|
postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1455,6 +1469,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1455
1469
|
public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1456
1470
|
public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1457
1471
|
public momentPublish(request: wechaty_puppet_moment_pb.MomentPublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentPublishResponse) => void): grpc.ClientUnaryCall;
|
|
1472
|
+
public momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1473
|
+
public momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1474
|
+
public momentUnpublish(request: wechaty_puppet_moment_pb.MomentUnpublishRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_moment_pb.MomentUnpublishResponse) => void): grpc.ClientUnaryCall;
|
|
1458
1475
|
public postTap(request: wechaty_puppet_post_pb.PostTapRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1459
1476
|
public postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
1460
1477
|
public postTap(request: wechaty_puppet_post_pb.PostTapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_post_pb.PostTapResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1087,6 +1087,28 @@ function deserialize_wechaty_puppet_MomentSignatureResponse(buffer_arg) {
|
|
|
1087
1087
|
return wechaty_puppet_moment_pb.MomentSignatureResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
+
function serialize_wechaty_puppet_MomentUnpublishRequest(arg) {
|
|
1091
|
+
if (!(arg instanceof wechaty_puppet_moment_pb.MomentUnpublishRequest)) {
|
|
1092
|
+
throw new Error('Expected argument of type wechaty.puppet.MomentUnpublishRequest');
|
|
1093
|
+
}
|
|
1094
|
+
return Buffer.from(arg.serializeBinary());
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
function deserialize_wechaty_puppet_MomentUnpublishRequest(buffer_arg) {
|
|
1098
|
+
return wechaty_puppet_moment_pb.MomentUnpublishRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
function serialize_wechaty_puppet_MomentUnpublishResponse(arg) {
|
|
1102
|
+
if (!(arg instanceof wechaty_puppet_moment_pb.MomentUnpublishResponse)) {
|
|
1103
|
+
throw new Error('Expected argument of type wechaty.puppet.MomentUnpublishResponse');
|
|
1104
|
+
}
|
|
1105
|
+
return Buffer.from(arg.serializeBinary());
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
function deserialize_wechaty_puppet_MomentUnpublishResponse(buffer_arg) {
|
|
1109
|
+
return wechaty_puppet_moment_pb.MomentUnpublishResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1090
1112
|
function serialize_wechaty_puppet_MomentVisibleListRequest(arg) {
|
|
1091
1113
|
if (!(arg instanceof wechaty_puppet_moment_pb.MomentVisibleListRequest)) {
|
|
1092
1114
|
throw new Error('Expected argument of type wechaty.puppet.MomentVisibleListRequest');
|
|
@@ -2784,6 +2806,17 @@ momentPublish: {
|
|
|
2784
2806
|
responseSerialize: serialize_wechaty_puppet_MomentPublishResponse,
|
|
2785
2807
|
responseDeserialize: deserialize_wechaty_puppet_MomentPublishResponse,
|
|
2786
2808
|
},
|
|
2809
|
+
momentUnpublish: {
|
|
2810
|
+
path: '/wechaty.Puppet/MomentUnpublish',
|
|
2811
|
+
requestStream: false,
|
|
2812
|
+
responseStream: false,
|
|
2813
|
+
requestType: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
2814
|
+
responseType: wechaty_puppet_moment_pb.MomentUnpublishResponse,
|
|
2815
|
+
requestSerialize: serialize_wechaty_puppet_MomentUnpublishRequest,
|
|
2816
|
+
requestDeserialize: deserialize_wechaty_puppet_MomentUnpublishRequest,
|
|
2817
|
+
responseSerialize: serialize_wechaty_puppet_MomentUnpublishResponse,
|
|
2818
|
+
responseDeserialize: deserialize_wechaty_puppet_MomentUnpublishResponse,
|
|
2819
|
+
},
|
|
2787
2820
|
postTap: {
|
|
2788
2821
|
path: '/wechaty.Puppet/postTap',
|
|
2789
2822
|
requestStream: false,
|
|
@@ -710,6 +710,15 @@ type PuppetmomentPublish = {
|
|
|
710
710
|
readonly responseType: typeof wechaty_puppet_moment_pb.MomentPublishResponse;
|
|
711
711
|
};
|
|
712
712
|
|
|
713
|
+
type PuppetMomentUnpublish = {
|
|
714
|
+
readonly methodName: string;
|
|
715
|
+
readonly service: typeof Puppet;
|
|
716
|
+
readonly requestStream: false;
|
|
717
|
+
readonly responseStream: false;
|
|
718
|
+
readonly requestType: typeof wechaty_puppet_moment_pb.MomentUnpublishRequest;
|
|
719
|
+
readonly responseType: typeof wechaty_puppet_moment_pb.MomentUnpublishResponse;
|
|
720
|
+
};
|
|
721
|
+
|
|
713
722
|
type PuppetpostTap = {
|
|
714
723
|
readonly methodName: string;
|
|
715
724
|
readonly service: typeof Puppet;
|
|
@@ -861,6 +870,7 @@ export class Puppet {
|
|
|
861
870
|
static readonly TagContactTagList: PuppetTagContactTagList;
|
|
862
871
|
static readonly TagTagContactList: PuppetTagTagContactList;
|
|
863
872
|
static readonly momentPublish: PuppetmomentPublish;
|
|
873
|
+
static readonly MomentUnpublish: PuppetMomentUnpublish;
|
|
864
874
|
static readonly postTap: PuppetpostTap;
|
|
865
875
|
static readonly momentSignature: PuppetmomentSignature;
|
|
866
876
|
static readonly momentCoverage: PuppetmomentCoverage;
|
|
@@ -1588,6 +1598,15 @@ export class PuppetClient {
|
|
|
1588
1598
|
requestMessage: wechaty_puppet_moment_pb.MomentPublishRequest,
|
|
1589
1599
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentPublishResponse|null) => void
|
|
1590
1600
|
): UnaryResponse;
|
|
1601
|
+
momentUnpublish(
|
|
1602
|
+
requestMessage: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
1603
|
+
metadata: grpc.Metadata,
|
|
1604
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentUnpublishResponse|null) => void
|
|
1605
|
+
): UnaryResponse;
|
|
1606
|
+
momentUnpublish(
|
|
1607
|
+
requestMessage: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
1608
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentUnpublishResponse|null) => void
|
|
1609
|
+
): UnaryResponse;
|
|
1591
1610
|
postTap(
|
|
1592
1611
|
requestMessage: wechaty_puppet_post_pb.PostTapRequest,
|
|
1593
1612
|
metadata: grpc.Metadata,
|
|
@@ -716,6 +716,15 @@ Puppet.momentPublish = {
|
|
|
716
716
|
responseType: wechaty_puppet_moment_pb.MomentPublishResponse
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
+
Puppet.MomentUnpublish = {
|
|
720
|
+
methodName: "MomentUnpublish",
|
|
721
|
+
service: Puppet,
|
|
722
|
+
requestStream: false,
|
|
723
|
+
responseStream: false,
|
|
724
|
+
requestType: wechaty_puppet_moment_pb.MomentUnpublishRequest,
|
|
725
|
+
responseType: wechaty_puppet_moment_pb.MomentUnpublishResponse
|
|
726
|
+
};
|
|
727
|
+
|
|
719
728
|
Puppet.postTap = {
|
|
720
729
|
methodName: "postTap",
|
|
721
730
|
service: Puppet,
|
|
@@ -3190,6 +3199,37 @@ PuppetClient.prototype.momentPublish = function momentPublish(requestMessage, me
|
|
|
3190
3199
|
};
|
|
3191
3200
|
};
|
|
3192
3201
|
|
|
3202
|
+
PuppetClient.prototype.momentUnpublish = function momentUnpublish(requestMessage, metadata, callback) {
|
|
3203
|
+
if (arguments.length === 2) {
|
|
3204
|
+
callback = arguments[1];
|
|
3205
|
+
}
|
|
3206
|
+
var client = grpc.unary(Puppet.MomentUnpublish, {
|
|
3207
|
+
request: requestMessage,
|
|
3208
|
+
host: this.serviceHost,
|
|
3209
|
+
metadata: metadata,
|
|
3210
|
+
transport: this.options.transport,
|
|
3211
|
+
debug: this.options.debug,
|
|
3212
|
+
onEnd: function (response) {
|
|
3213
|
+
if (callback) {
|
|
3214
|
+
if (response.status !== grpc.Code.OK) {
|
|
3215
|
+
var err = new Error(response.statusMessage);
|
|
3216
|
+
err.code = response.status;
|
|
3217
|
+
err.metadata = response.trailers;
|
|
3218
|
+
callback(err, null);
|
|
3219
|
+
} else {
|
|
3220
|
+
callback(null, response.message);
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
});
|
|
3225
|
+
return {
|
|
3226
|
+
cancel: function () {
|
|
3227
|
+
callback = null;
|
|
3228
|
+
client.close();
|
|
3229
|
+
}
|
|
3230
|
+
};
|
|
3231
|
+
};
|
|
3232
|
+
|
|
3193
3233
|
PuppetClient.prototype.postTap = function postTap(requestMessage, metadata, callback) {
|
|
3194
3234
|
if (arguments.length === 2) {
|
|
3195
3235
|
callback = arguments[1];
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED