@juzi/wechaty-grpc 1.0.62 → 1.0.64
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/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/examples/auth/raw-https/client.js.map +1 -1
- package/dist/cjs/examples/auth/server.js +5 -6
- package/dist/cjs/examples/auth/server.js.map +1 -1
- package/dist/cjs/examples/client.js +2 -1
- package/dist/cjs/examples/client.js.map +1 -1
- package/dist/cjs/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.js +338 -0
- package/dist/cjs/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/call_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +19 -8
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +330 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +218 -84
- package/dist/cjs/out/wechaty/puppet.swagger.json +186 -5
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +77 -1
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/cjs/proto/wechaty/puppet/call.proto +28 -0
- package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -1
- package/dist/cjs/proto/wechaty/puppet/message.proto +11 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +17 -1
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +7 -6
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/tests/health-check.spec.js +2 -2
- package/dist/cjs/tests/health-check.spec.js.map +1 -1
- package/dist/cjs/tests/integration.spec.js.map +1 -1
- package/dist/cjs/tests/nullable.spec.js +4 -0
- package/dist/cjs/tests/nullable.spec.js.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +15 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/examples/auth/raw-https/client.js.map +1 -1
- package/dist/esm/examples/auth/server.js +2 -3
- package/dist/esm/examples/auth/server.js.map +1 -1
- package/dist/esm/examples/client.js +2 -1
- package/dist/esm/examples/client.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/dist/esm/out/wechaty/puppet/call_pb.js +338 -0
- package/dist/esm/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/call_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/dist/esm/out/wechaty/puppet/channel_pb.js +19 -8
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +330 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +218 -84
- package/dist/esm/out/wechaty/puppet.swagger.json +186 -5
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +77 -1
- package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet_pb.js +0 -2
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/esm/proto/wechaty/puppet/call.proto +28 -0
- package/dist/esm/proto/wechaty/puppet/channel.proto +8 -1
- package/dist/esm/proto/wechaty/puppet/message.proto +11 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +17 -1
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +7 -6
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/tests/health-check.spec.js +2 -2
- package/dist/esm/tests/health-check.spec.js.map +1 -1
- package/dist/esm/tests/integration.spec.js.map +1 -1
- package/dist/esm/tests/nullable.spec.js +4 -0
- package/dist/esm/tests/nullable.spec.js.map +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +15 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/out/wechaty/puppet/call_pb.js +338 -0
- package/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/call_pb_service.js +3 -0
- package/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/out/wechaty/puppet/channel_pb.js +19 -8
- package/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/out/wechaty/puppet/message_pb.js +330 -1
- package/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/out/wechaty/puppet/room_pb.js +331 -0
- package/out/wechaty/puppet.openapi.yaml +218 -84
- package/out/wechaty/puppet.swagger.json +186 -5
- package/out/wechaty/puppet_grpc_pb.d.ts +51 -1
- package/out/wechaty/puppet_grpc_pb.js +77 -1
- package/out/wechaty/puppet_pb.d.ts +0 -1
- package/out/wechaty/puppet_pb.js +0 -2
- package/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/out/wechaty/puppet_pb_service.js +120 -0
- package/package.json +7 -6
- package/src/package-json.ts +7 -6
|
@@ -375,6 +375,15 @@ Puppet.MessageChannel = {
|
|
|
375
375
|
responseType: wechaty_puppet_message_pb.MessageChannelResponse
|
|
376
376
|
};
|
|
377
377
|
|
|
378
|
+
Puppet.MessageCallRecord = {
|
|
379
|
+
methodName: "MessageCallRecord",
|
|
380
|
+
service: Puppet,
|
|
381
|
+
requestStream: false,
|
|
382
|
+
responseStream: false,
|
|
383
|
+
requestType: wechaty_puppet_message_pb.MessageCallRecordRequest,
|
|
384
|
+
responseType: wechaty_puppet_message_pb.MessageCallRecordlResponse
|
|
385
|
+
};
|
|
386
|
+
|
|
378
387
|
Puppet.MessageRecall = {
|
|
379
388
|
methodName: "MessageRecall",
|
|
380
389
|
service: Puppet,
|
|
@@ -609,6 +618,24 @@ Puppet.RoomPermission = {
|
|
|
609
618
|
responseType: wechaty_puppet_room_pb.RoomPermissionResponse
|
|
610
619
|
};
|
|
611
620
|
|
|
621
|
+
Puppet.RoomAddAdmins = {
|
|
622
|
+
methodName: "RoomAddAdmins",
|
|
623
|
+
service: Puppet,
|
|
624
|
+
requestStream: false,
|
|
625
|
+
responseStream: false,
|
|
626
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
627
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
Puppet.RoomDelAdmins = {
|
|
631
|
+
methodName: "RoomDelAdmins",
|
|
632
|
+
service: Puppet,
|
|
633
|
+
requestStream: false,
|
|
634
|
+
responseStream: false,
|
|
635
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
636
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse
|
|
637
|
+
};
|
|
638
|
+
|
|
612
639
|
Puppet.RoomMemberPayload = {
|
|
613
640
|
methodName: "RoomMemberPayload",
|
|
614
641
|
service: Puppet,
|
|
@@ -2076,6 +2103,37 @@ PuppetClient.prototype.messageChannel = function messageChannel(requestMessage,
|
|
|
2076
2103
|
};
|
|
2077
2104
|
};
|
|
2078
2105
|
|
|
2106
|
+
PuppetClient.prototype.messageCallRecord = function messageCallRecord(requestMessage, metadata, callback) {
|
|
2107
|
+
if (arguments.length === 2) {
|
|
2108
|
+
callback = arguments[1];
|
|
2109
|
+
}
|
|
2110
|
+
var client = grpc.unary(Puppet.MessageCallRecord, {
|
|
2111
|
+
request: requestMessage,
|
|
2112
|
+
host: this.serviceHost,
|
|
2113
|
+
metadata: metadata,
|
|
2114
|
+
transport: this.options.transport,
|
|
2115
|
+
debug: this.options.debug,
|
|
2116
|
+
onEnd: function (response) {
|
|
2117
|
+
if (callback) {
|
|
2118
|
+
if (response.status !== grpc.Code.OK) {
|
|
2119
|
+
var err = new Error(response.statusMessage);
|
|
2120
|
+
err.code = response.status;
|
|
2121
|
+
err.metadata = response.trailers;
|
|
2122
|
+
callback(err, null);
|
|
2123
|
+
} else {
|
|
2124
|
+
callback(null, response.message);
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
});
|
|
2129
|
+
return {
|
|
2130
|
+
cancel: function () {
|
|
2131
|
+
callback = null;
|
|
2132
|
+
client.close();
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
};
|
|
2136
|
+
|
|
2079
2137
|
PuppetClient.prototype.messageRecall = function messageRecall(requestMessage, metadata, callback) {
|
|
2080
2138
|
if (arguments.length === 2) {
|
|
2081
2139
|
callback = arguments[1];
|
|
@@ -2882,6 +2940,68 @@ PuppetClient.prototype.roomPermission = function roomPermission(requestMessage,
|
|
|
2882
2940
|
};
|
|
2883
2941
|
};
|
|
2884
2942
|
|
|
2943
|
+
PuppetClient.prototype.roomAddAdmins = function roomAddAdmins(requestMessage, metadata, callback) {
|
|
2944
|
+
if (arguments.length === 2) {
|
|
2945
|
+
callback = arguments[1];
|
|
2946
|
+
}
|
|
2947
|
+
var client = grpc.unary(Puppet.RoomAddAdmins, {
|
|
2948
|
+
request: requestMessage,
|
|
2949
|
+
host: this.serviceHost,
|
|
2950
|
+
metadata: metadata,
|
|
2951
|
+
transport: this.options.transport,
|
|
2952
|
+
debug: this.options.debug,
|
|
2953
|
+
onEnd: function (response) {
|
|
2954
|
+
if (callback) {
|
|
2955
|
+
if (response.status !== grpc.Code.OK) {
|
|
2956
|
+
var err = new Error(response.statusMessage);
|
|
2957
|
+
err.code = response.status;
|
|
2958
|
+
err.metadata = response.trailers;
|
|
2959
|
+
callback(err, null);
|
|
2960
|
+
} else {
|
|
2961
|
+
callback(null, response.message);
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
});
|
|
2966
|
+
return {
|
|
2967
|
+
cancel: function () {
|
|
2968
|
+
callback = null;
|
|
2969
|
+
client.close();
|
|
2970
|
+
}
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2973
|
+
|
|
2974
|
+
PuppetClient.prototype.roomDelAdmins = function roomDelAdmins(requestMessage, metadata, callback) {
|
|
2975
|
+
if (arguments.length === 2) {
|
|
2976
|
+
callback = arguments[1];
|
|
2977
|
+
}
|
|
2978
|
+
var client = grpc.unary(Puppet.RoomDelAdmins, {
|
|
2979
|
+
request: requestMessage,
|
|
2980
|
+
host: this.serviceHost,
|
|
2981
|
+
metadata: metadata,
|
|
2982
|
+
transport: this.options.transport,
|
|
2983
|
+
debug: this.options.debug,
|
|
2984
|
+
onEnd: function (response) {
|
|
2985
|
+
if (callback) {
|
|
2986
|
+
if (response.status !== grpc.Code.OK) {
|
|
2987
|
+
var err = new Error(response.statusMessage);
|
|
2988
|
+
err.code = response.status;
|
|
2989
|
+
err.metadata = response.trailers;
|
|
2990
|
+
callback(err, null);
|
|
2991
|
+
} else {
|
|
2992
|
+
callback(null, response.message);
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
});
|
|
2997
|
+
return {
|
|
2998
|
+
cancel: function () {
|
|
2999
|
+
callback = null;
|
|
3000
|
+
client.close();
|
|
3001
|
+
}
|
|
3002
|
+
};
|
|
3003
|
+
};
|
|
3004
|
+
|
|
2885
3005
|
PuppetClient.prototype.roomMemberPayload = function roomMemberPayload(requestMessage, metadata, callback) {
|
|
2886
3006
|
if (arguments.length === 2) {
|
|
2887
3007
|
callback = arguments[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzi/wechaty-grpc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
4
4
|
"description": "gRPC for Wechaty",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@grpc/grpc-js": "^1.3.7",
|
|
60
60
|
"google-protobuf": "^3.18.0",
|
|
61
|
-
"stronger-typed-streams": "^0.2.0"
|
|
62
|
-
"typescript": "^4.7.3"
|
|
61
|
+
"stronger-typed-streams": "^0.2.0"
|
|
63
62
|
},
|
|
64
63
|
"devDependencies": {
|
|
65
|
-
"@chatie/eslint-config": "^0.
|
|
64
|
+
"@chatie/eslint-config": "^1.0.4",
|
|
66
65
|
"@chatie/semver": "^0.4.7",
|
|
67
|
-
"@chatie/tsconfig": "^
|
|
66
|
+
"@chatie/tsconfig": "^4.6.3",
|
|
67
|
+
"@swc/core": "1.3.39",
|
|
68
68
|
"@types/google-protobuf": "^3.15.5",
|
|
69
69
|
"@types/protobufjs": "^6.0.0",
|
|
70
70
|
"cross-env": "^7.0.3",
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"request": "^2.88.2",
|
|
78
78
|
"shx": "^0.3.3",
|
|
79
79
|
"ts-protoc-gen": "^0.15.0",
|
|
80
|
-
"tstest": "^0.7.3"
|
|
80
|
+
"tstest": "^0.7.3",
|
|
81
|
+
"typescript": "^4.7.3"
|
|
81
82
|
},
|
|
82
83
|
"files": [
|
|
83
84
|
"bin/",
|
package/src/package-json.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { PackageJson } from 'type-fest'
|
|
5
5
|
export const packageJson: PackageJson = {
|
|
6
6
|
"name": "@juzi/wechaty-grpc",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.64",
|
|
8
8
|
"description": "gRPC for Wechaty",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": {
|
|
@@ -62,13 +62,13 @@ export const packageJson: PackageJson = {
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@grpc/grpc-js": "^1.3.7",
|
|
64
64
|
"google-protobuf": "^3.18.0",
|
|
65
|
-
"stronger-typed-streams": "^0.2.0"
|
|
66
|
-
"typescript": "^4.7.3"
|
|
65
|
+
"stronger-typed-streams": "^0.2.0"
|
|
67
66
|
},
|
|
68
67
|
"devDependencies": {
|
|
69
|
-
"@chatie/eslint-config": "^0.
|
|
68
|
+
"@chatie/eslint-config": "^1.0.4",
|
|
70
69
|
"@chatie/semver": "^0.4.7",
|
|
71
|
-
"@chatie/tsconfig": "^
|
|
70
|
+
"@chatie/tsconfig": "^4.6.3",
|
|
71
|
+
"@swc/core": "1.3.39",
|
|
72
72
|
"@types/google-protobuf": "^3.15.5",
|
|
73
73
|
"@types/protobufjs": "^6.0.0",
|
|
74
74
|
"cross-env": "^7.0.3",
|
|
@@ -81,7 +81,8 @@ export const packageJson: PackageJson = {
|
|
|
81
81
|
"request": "^2.88.2",
|
|
82
82
|
"shx": "^0.3.3",
|
|
83
83
|
"ts-protoc-gen": "^0.15.0",
|
|
84
|
-
"tstest": "^0.7.3"
|
|
84
|
+
"tstest": "^0.7.3",
|
|
85
|
+
"typescript": "^4.7.3"
|
|
85
86
|
},
|
|
86
87
|
"files": [
|
|
87
88
|
"bin/",
|