@juzi/wechaty-grpc 1.0.106 → 1.0.107
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/call_pb.d.ts +54 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.js +420 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +66 -7
- package/dist/cjs/out/wechaty/puppet.swagger.json +74 -7
- 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/call.proto +24 -0
- package/dist/cjs/proto/wechaty/puppet.proto +6 -0
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +2 -1
- package/dist/cjs/src/package-json.js.map +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/call_pb.d.ts +54 -0
- package/dist/esm/out/wechaty/puppet/call_pb.js +420 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +66 -7
- package/dist/esm/out/wechaty/puppet.swagger.json +74 -7
- 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/call.proto +24 -0
- package/dist/esm/proto/wechaty/puppet.proto +6 -0
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +2 -1
- package/dist/esm/src/package-json.js.map +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/call_pb.d.ts +54 -0
- package/out/wechaty/puppet/call_pb.js +420 -0
- package/out/wechaty/puppet.openapi.yaml +66 -7
- package/out/wechaty/puppet.swagger.json +74 -7
- 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 +2 -1
- package/src/package-json.ts +2 -1
|
@@ -92,6 +92,60 @@ export namespace CallInviteResponse {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
export class CallInviteWithMediaRequest extends jspb.Message {
|
|
96
|
+
clearContactIdsList(): void;
|
|
97
|
+
getContactIdsList(): Array<string>;
|
|
98
|
+
setContactIdsList(value: Array<string>): void;
|
|
99
|
+
addContactIds(value: string, index?: number): string;
|
|
100
|
+
|
|
101
|
+
getFileBox(): string;
|
|
102
|
+
setFileBox(value: string): void;
|
|
103
|
+
|
|
104
|
+
getHangupOnFinish(): boolean;
|
|
105
|
+
setHangupOnFinish(value: boolean): void;
|
|
106
|
+
|
|
107
|
+
getHangupDelayMs(): number;
|
|
108
|
+
setHangupDelayMs(value: number): void;
|
|
109
|
+
|
|
110
|
+
serializeBinary(): Uint8Array;
|
|
111
|
+
toObject(includeInstance?: boolean): CallInviteWithMediaRequest.AsObject;
|
|
112
|
+
static toObject(includeInstance: boolean, msg: CallInviteWithMediaRequest): CallInviteWithMediaRequest.AsObject;
|
|
113
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
114
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
115
|
+
static serializeBinaryToWriter(message: CallInviteWithMediaRequest, writer: jspb.BinaryWriter): void;
|
|
116
|
+
static deserializeBinary(bytes: Uint8Array): CallInviteWithMediaRequest;
|
|
117
|
+
static deserializeBinaryFromReader(message: CallInviteWithMediaRequest, reader: jspb.BinaryReader): CallInviteWithMediaRequest;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export namespace CallInviteWithMediaRequest {
|
|
121
|
+
export type AsObject = {
|
|
122
|
+
contactIdsList: Array<string>,
|
|
123
|
+
fileBox: string,
|
|
124
|
+
hangupOnFinish: boolean,
|
|
125
|
+
hangupDelayMs: number,
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class CallInviteWithMediaResponse extends jspb.Message {
|
|
130
|
+
getCallId(): string;
|
|
131
|
+
setCallId(value: string): void;
|
|
132
|
+
|
|
133
|
+
serializeBinary(): Uint8Array;
|
|
134
|
+
toObject(includeInstance?: boolean): CallInviteWithMediaResponse.AsObject;
|
|
135
|
+
static toObject(includeInstance: boolean, msg: CallInviteWithMediaResponse): CallInviteWithMediaResponse.AsObject;
|
|
136
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
137
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
138
|
+
static serializeBinaryToWriter(message: CallInviteWithMediaResponse, writer: jspb.BinaryWriter): void;
|
|
139
|
+
static deserializeBinary(bytes: Uint8Array): CallInviteWithMediaResponse;
|
|
140
|
+
static deserializeBinaryFromReader(message: CallInviteWithMediaResponse, reader: jspb.BinaryReader): CallInviteWithMediaResponse;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export namespace CallInviteWithMediaResponse {
|
|
144
|
+
export type AsObject = {
|
|
145
|
+
callId: string,
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
95
149
|
export class CallAddRequest extends jspb.Message {
|
|
96
150
|
getCallId(): string;
|
|
97
151
|
setCallId(value: string): void;
|
|
@@ -27,6 +27,8 @@ goog.exportSymbol('proto.wechaty.puppet.CallHangupRequest', null, global);
|
|
|
27
27
|
goog.exportSymbol('proto.wechaty.puppet.CallHangupResponse', null, global);
|
|
28
28
|
goog.exportSymbol('proto.wechaty.puppet.CallInviteRequest', null, global);
|
|
29
29
|
goog.exportSymbol('proto.wechaty.puppet.CallInviteResponse', null, global);
|
|
30
|
+
goog.exportSymbol('proto.wechaty.puppet.CallInviteWithMediaRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.wechaty.puppet.CallInviteWithMediaResponse', null, global);
|
|
30
32
|
goog.exportSymbol('proto.wechaty.puppet.CallMediaEndpointRequest', null, global);
|
|
31
33
|
goog.exportSymbol('proto.wechaty.puppet.CallMediaEndpointResponse', null, global);
|
|
32
34
|
goog.exportSymbol('proto.wechaty.puppet.CallPayloadRequest', null, global);
|
|
@@ -99,6 +101,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
99
101
|
*/
|
|
100
102
|
proto.wechaty.puppet.CallInviteResponse.displayName = 'proto.wechaty.puppet.CallInviteResponse';
|
|
101
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Generated by JsPbCodeGenerator.
|
|
106
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
107
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
108
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
109
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
110
|
+
* valid.
|
|
111
|
+
* @extends {jspb.Message}
|
|
112
|
+
* @constructor
|
|
113
|
+
*/
|
|
114
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest = function(opt_data) {
|
|
115
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.CallInviteWithMediaRequest.repeatedFields_, null);
|
|
116
|
+
};
|
|
117
|
+
goog.inherits(proto.wechaty.puppet.CallInviteWithMediaRequest, jspb.Message);
|
|
118
|
+
if (goog.DEBUG && !COMPILED) {
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* @override
|
|
122
|
+
*/
|
|
123
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.displayName = 'proto.wechaty.puppet.CallInviteWithMediaRequest';
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Generated by JsPbCodeGenerator.
|
|
127
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
128
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
129
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
130
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
131
|
+
* valid.
|
|
132
|
+
* @extends {jspb.Message}
|
|
133
|
+
* @constructor
|
|
134
|
+
*/
|
|
135
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse = function(opt_data) {
|
|
136
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
137
|
+
};
|
|
138
|
+
goog.inherits(proto.wechaty.puppet.CallInviteWithMediaResponse, jspb.Message);
|
|
139
|
+
if (goog.DEBUG && !COMPILED) {
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @override
|
|
143
|
+
*/
|
|
144
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.displayName = 'proto.wechaty.puppet.CallInviteWithMediaResponse';
|
|
145
|
+
}
|
|
102
146
|
/**
|
|
103
147
|
* Generated by JsPbCodeGenerator.
|
|
104
148
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1016,6 +1060,382 @@ proto.wechaty.puppet.CallInviteResponse.prototype.setCallId = function(value) {
|
|
|
1016
1060
|
|
|
1017
1061
|
|
|
1018
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* List of repeated fields within this message type.
|
|
1065
|
+
* @private {!Array<number>}
|
|
1066
|
+
* @const
|
|
1067
|
+
*/
|
|
1068
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.repeatedFields_ = [1];
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1073
|
+
/**
|
|
1074
|
+
* Creates an object representation of this proto.
|
|
1075
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1076
|
+
* Optional fields that are not set will be set to undefined.
|
|
1077
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1078
|
+
* For the list of reserved names please see:
|
|
1079
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1080
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1081
|
+
* JSPB instance for transitional soy proto support:
|
|
1082
|
+
* http://goto/soy-param-migration
|
|
1083
|
+
* @return {!Object}
|
|
1084
|
+
*/
|
|
1085
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1086
|
+
return proto.wechaty.puppet.CallInviteWithMediaRequest.toObject(opt_includeInstance, this);
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Static version of the {@see toObject} method.
|
|
1092
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1093
|
+
* the JSPB instance for transitional soy proto support:
|
|
1094
|
+
* http://goto/soy-param-migration
|
|
1095
|
+
* @param {!proto.wechaty.puppet.CallInviteWithMediaRequest} msg The msg instance to transform.
|
|
1096
|
+
* @return {!Object}
|
|
1097
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1098
|
+
*/
|
|
1099
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.toObject = function(includeInstance, msg) {
|
|
1100
|
+
var f, obj = {
|
|
1101
|
+
contactIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1102
|
+
fileBox: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1103
|
+
hangupOnFinish: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
1104
|
+
hangupDelayMs: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
if (includeInstance) {
|
|
1108
|
+
obj.$jspbMessageInstance = msg;
|
|
1109
|
+
}
|
|
1110
|
+
return obj;
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1117
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1118
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest}
|
|
1119
|
+
*/
|
|
1120
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.deserializeBinary = function(bytes) {
|
|
1121
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1122
|
+
var msg = new proto.wechaty.puppet.CallInviteWithMediaRequest;
|
|
1123
|
+
return proto.wechaty.puppet.CallInviteWithMediaRequest.deserializeBinaryFromReader(msg, reader);
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1129
|
+
* given reader into the given message object.
|
|
1130
|
+
* @param {!proto.wechaty.puppet.CallInviteWithMediaRequest} msg The message object to deserialize into.
|
|
1131
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1132
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest}
|
|
1133
|
+
*/
|
|
1134
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1135
|
+
while (reader.nextField()) {
|
|
1136
|
+
if (reader.isEndGroup()) {
|
|
1137
|
+
break;
|
|
1138
|
+
}
|
|
1139
|
+
var field = reader.getFieldNumber();
|
|
1140
|
+
switch (field) {
|
|
1141
|
+
case 1:
|
|
1142
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1143
|
+
msg.addContactIds(value);
|
|
1144
|
+
break;
|
|
1145
|
+
case 2:
|
|
1146
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1147
|
+
msg.setFileBox(value);
|
|
1148
|
+
break;
|
|
1149
|
+
case 3:
|
|
1150
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1151
|
+
msg.setHangupOnFinish(value);
|
|
1152
|
+
break;
|
|
1153
|
+
case 4:
|
|
1154
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1155
|
+
msg.setHangupDelayMs(value);
|
|
1156
|
+
break;
|
|
1157
|
+
default:
|
|
1158
|
+
reader.skipField();
|
|
1159
|
+
break;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
return msg;
|
|
1163
|
+
};
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1168
|
+
* @return {!Uint8Array}
|
|
1169
|
+
*/
|
|
1170
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.serializeBinary = function() {
|
|
1171
|
+
var writer = new jspb.BinaryWriter();
|
|
1172
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.serializeBinaryToWriter(this, writer);
|
|
1173
|
+
return writer.getResultBuffer();
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1179
|
+
* format), writing to the given BinaryWriter.
|
|
1180
|
+
* @param {!proto.wechaty.puppet.CallInviteWithMediaRequest} message
|
|
1181
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1182
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1183
|
+
*/
|
|
1184
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1185
|
+
var f = undefined;
|
|
1186
|
+
f = message.getContactIdsList();
|
|
1187
|
+
if (f.length > 0) {
|
|
1188
|
+
writer.writeRepeatedString(
|
|
1189
|
+
1,
|
|
1190
|
+
f
|
|
1191
|
+
);
|
|
1192
|
+
}
|
|
1193
|
+
f = message.getFileBox();
|
|
1194
|
+
if (f.length > 0) {
|
|
1195
|
+
writer.writeString(
|
|
1196
|
+
2,
|
|
1197
|
+
f
|
|
1198
|
+
);
|
|
1199
|
+
}
|
|
1200
|
+
f = message.getHangupOnFinish();
|
|
1201
|
+
if (f) {
|
|
1202
|
+
writer.writeBool(
|
|
1203
|
+
3,
|
|
1204
|
+
f
|
|
1205
|
+
);
|
|
1206
|
+
}
|
|
1207
|
+
f = message.getHangupDelayMs();
|
|
1208
|
+
if (f !== 0) {
|
|
1209
|
+
writer.writeUint32(
|
|
1210
|
+
4,
|
|
1211
|
+
f
|
|
1212
|
+
);
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* repeated string contact_ids = 1;
|
|
1219
|
+
* @return {!Array<string>}
|
|
1220
|
+
*/
|
|
1221
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getContactIdsList = function() {
|
|
1222
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* @param {!Array<string>} value
|
|
1228
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
|
|
1229
|
+
*/
|
|
1230
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setContactIdsList = function(value) {
|
|
1231
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* @param {string} value
|
|
1237
|
+
* @param {number=} opt_index
|
|
1238
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
|
|
1239
|
+
*/
|
|
1240
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.addContactIds = function(value, opt_index) {
|
|
1241
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Clears the list making it empty but non-null.
|
|
1247
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
|
|
1248
|
+
*/
|
|
1249
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.clearContactIdsList = function() {
|
|
1250
|
+
return this.setContactIdsList([]);
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* optional string file_box = 2;
|
|
1256
|
+
* @return {string}
|
|
1257
|
+
*/
|
|
1258
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getFileBox = function() {
|
|
1259
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* @param {string} value
|
|
1265
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
|
|
1266
|
+
*/
|
|
1267
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setFileBox = function(value) {
|
|
1268
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* optional bool hangup_on_finish = 3;
|
|
1274
|
+
* @return {boolean}
|
|
1275
|
+
*/
|
|
1276
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getHangupOnFinish = function() {
|
|
1277
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* @param {boolean} value
|
|
1283
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
|
|
1284
|
+
*/
|
|
1285
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setHangupOnFinish = function(value) {
|
|
1286
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
1287
|
+
};
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* optional uint32 hangup_delay_ms = 4;
|
|
1292
|
+
* @return {number}
|
|
1293
|
+
*/
|
|
1294
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getHangupDelayMs = function() {
|
|
1295
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* @param {number} value
|
|
1301
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
|
|
1302
|
+
*/
|
|
1303
|
+
proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setHangupDelayMs = function(value) {
|
|
1304
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1312
|
+
/**
|
|
1313
|
+
* Creates an object representation of this proto.
|
|
1314
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1315
|
+
* Optional fields that are not set will be set to undefined.
|
|
1316
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1317
|
+
* For the list of reserved names please see:
|
|
1318
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1319
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1320
|
+
* JSPB instance for transitional soy proto support:
|
|
1321
|
+
* http://goto/soy-param-migration
|
|
1322
|
+
* @return {!Object}
|
|
1323
|
+
*/
|
|
1324
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1325
|
+
return proto.wechaty.puppet.CallInviteWithMediaResponse.toObject(opt_includeInstance, this);
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Static version of the {@see toObject} method.
|
|
1331
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1332
|
+
* the JSPB instance for transitional soy proto support:
|
|
1333
|
+
* http://goto/soy-param-migration
|
|
1334
|
+
* @param {!proto.wechaty.puppet.CallInviteWithMediaResponse} msg The msg instance to transform.
|
|
1335
|
+
* @return {!Object}
|
|
1336
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1337
|
+
*/
|
|
1338
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.toObject = function(includeInstance, msg) {
|
|
1339
|
+
var f, obj = {
|
|
1340
|
+
callId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
if (includeInstance) {
|
|
1344
|
+
obj.$jspbMessageInstance = msg;
|
|
1345
|
+
}
|
|
1346
|
+
return obj;
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1353
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1354
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaResponse}
|
|
1355
|
+
*/
|
|
1356
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.deserializeBinary = function(bytes) {
|
|
1357
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1358
|
+
var msg = new proto.wechaty.puppet.CallInviteWithMediaResponse;
|
|
1359
|
+
return proto.wechaty.puppet.CallInviteWithMediaResponse.deserializeBinaryFromReader(msg, reader);
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1365
|
+
* given reader into the given message object.
|
|
1366
|
+
* @param {!proto.wechaty.puppet.CallInviteWithMediaResponse} msg The message object to deserialize into.
|
|
1367
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1368
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaResponse}
|
|
1369
|
+
*/
|
|
1370
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1371
|
+
while (reader.nextField()) {
|
|
1372
|
+
if (reader.isEndGroup()) {
|
|
1373
|
+
break;
|
|
1374
|
+
}
|
|
1375
|
+
var field = reader.getFieldNumber();
|
|
1376
|
+
switch (field) {
|
|
1377
|
+
case 1:
|
|
1378
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1379
|
+
msg.setCallId(value);
|
|
1380
|
+
break;
|
|
1381
|
+
default:
|
|
1382
|
+
reader.skipField();
|
|
1383
|
+
break;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
return msg;
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1392
|
+
* @return {!Uint8Array}
|
|
1393
|
+
*/
|
|
1394
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.serializeBinary = function() {
|
|
1395
|
+
var writer = new jspb.BinaryWriter();
|
|
1396
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.serializeBinaryToWriter(this, writer);
|
|
1397
|
+
return writer.getResultBuffer();
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1403
|
+
* format), writing to the given BinaryWriter.
|
|
1404
|
+
* @param {!proto.wechaty.puppet.CallInviteWithMediaResponse} message
|
|
1405
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1406
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1407
|
+
*/
|
|
1408
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1409
|
+
var f = undefined;
|
|
1410
|
+
f = message.getCallId();
|
|
1411
|
+
if (f.length > 0) {
|
|
1412
|
+
writer.writeString(
|
|
1413
|
+
1,
|
|
1414
|
+
f
|
|
1415
|
+
);
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* optional string call_id = 1;
|
|
1422
|
+
* @return {string}
|
|
1423
|
+
*/
|
|
1424
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.getCallId = function() {
|
|
1425
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* @param {string} value
|
|
1431
|
+
* @return {!proto.wechaty.puppet.CallInviteWithMediaResponse} returns this
|
|
1432
|
+
*/
|
|
1433
|
+
proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.setCallId = function(value) {
|
|
1434
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1019
1439
|
/**
|
|
1020
1440
|
* List of repeated fields within this message type.
|
|
1021
1441
|
* @private {!Array<number>}
|
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
12
|
+
version: 1.0.107
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -44,6 +44,26 @@ paths:
|
|
|
44
44
|
$ref: '#/definitions/puppetCallInviteRequest'
|
|
45
45
|
tags:
|
|
46
46
|
- Puppet
|
|
47
|
+
/call/invite-with-media:
|
|
48
|
+
post:
|
|
49
|
+
operationId: Puppet_CallInviteWithMedia
|
|
50
|
+
responses:
|
|
51
|
+
'200':
|
|
52
|
+
description: A successful response.
|
|
53
|
+
schema:
|
|
54
|
+
$ref: '#/definitions/puppetCallInviteWithMediaResponse'
|
|
55
|
+
default:
|
|
56
|
+
description: An unexpected error response.
|
|
57
|
+
schema:
|
|
58
|
+
$ref: '#/definitions/rpcStatus'
|
|
59
|
+
parameters:
|
|
60
|
+
- name: body
|
|
61
|
+
in: body
|
|
62
|
+
required: true
|
|
63
|
+
schema:
|
|
64
|
+
$ref: '#/definitions/puppetCallInviteWithMediaRequest'
|
|
65
|
+
tags:
|
|
66
|
+
- Puppet
|
|
47
67
|
/call/{callId}/accept:
|
|
48
68
|
post:
|
|
49
69
|
operationId: Puppet_CallAccept
|
|
@@ -3589,6 +3609,45 @@ definitions:
|
|
|
3589
3609
|
- call_id 由 puppet 实现侧(协议端)生成并经本响应返回,全链路以此关联控制面与媒体旁路;
|
|
3590
3610
|
- 上行 EVENT_TYPE_CALL 事件可能先于本响应到达,客户端须容忍乱序;
|
|
3591
3611
|
- 后续控制 RPC(CallAccept/CallReject/CallCancel/CallHangup)凭此 call_id 引用本通通话。
|
|
3612
|
+
puppetCallInviteWithMediaRequest:
|
|
3613
|
+
type: object
|
|
3614
|
+
properties:
|
|
3615
|
+
contactIds:
|
|
3616
|
+
type: array
|
|
3617
|
+
items:
|
|
3618
|
+
type: string
|
|
3619
|
+
title: >-
|
|
3620
|
+
对齐 CallInviteRequest:单元素 = 1v1,多元素 = 群通话播报(当前无实现支持,实现侧可拒
|
|
3621
|
+
UNIMPLEMENTED)
|
|
3622
|
+
fileBox:
|
|
3623
|
+
type: string
|
|
3624
|
+
title: |-
|
|
3625
|
+
FileBox 序列化串(URL/OSS 形态优先),puppet 侧按内容指纹缓存下载与转码产物;
|
|
3626
|
+
空 = 不播放、仅拨打(接通即视为"播放完成",配合 hangup_on_finish 实现"接通 N 毫秒后自动挂断")
|
|
3627
|
+
hangupOnFinish:
|
|
3628
|
+
type: boolean
|
|
3629
|
+
title: |-
|
|
3630
|
+
播放完成后自动挂断。"播放完成时刻" = 有文件时播放结束、无文件时接通。
|
|
3631
|
+
file_box 为空时必须为 true(否则语义等价 CallInvite,应直接用 CallInvite),实现侧校验。
|
|
3632
|
+
hangupDelayMs:
|
|
3633
|
+
type: integer
|
|
3634
|
+
format: int64
|
|
3635
|
+
title: |-
|
|
3636
|
+
播放完成 → 自动挂断的间隔毫秒数,0 = 立即;仅 hangup_on_finish = true 时生效。
|
|
3637
|
+
有文件时留缓冲防尾音被挂断信令掐掉;无文件时即"接通后 N 毫秒挂断"。
|
|
3638
|
+
title: |-
|
|
3639
|
+
拨打并在接通后自动播放媒体文件(触达/群发场景)。
|
|
3640
|
+
与 CallInvite 的区别:puppet 侧在振铃期间即预下载+转码媒体文件,接通后零延迟起播,
|
|
3641
|
+
播放完成后可按配置自动挂断;业务侧一次 RPC 完成全部编排,无需媒体面连接。
|
|
3642
|
+
未接通(拒接/超时/取消)走正常终态事件,不播放。
|
|
3643
|
+
puppetCallInviteWithMediaResponse:
|
|
3644
|
+
type: object
|
|
3645
|
+
properties:
|
|
3646
|
+
callId:
|
|
3647
|
+
type: string
|
|
3648
|
+
title: |-
|
|
3649
|
+
语义对齐 CallInviteResponse:call_id 由 puppet 实现侧生成,业务侧凭此
|
|
3650
|
+
Cancel/Hangup、关联终态事件与录音产物;事件可能先于本响应到达,须容忍乱序。
|
|
3592
3651
|
puppetCallMediaEndpointResponse:
|
|
3593
3652
|
type: object
|
|
3594
3653
|
properties:
|
|
@@ -3675,7 +3734,7 @@ definitions:
|
|
|
3675
3734
|
- CALL_TYPE_VOICE
|
|
3676
3735
|
- CALL_TYPE_VIDEO
|
|
3677
3736
|
default: CALL_TYPE_UNKNOWN
|
|
3678
|
-
|
|
3737
|
+
description: |-
|
|
3679
3738
|
- CALL_TYPE_UNKNOWN: 不明确
|
|
3680
3739
|
- CALL_TYPE_VOICE: 语音
|
|
3681
3740
|
- CALL_TYPE_VIDEO: 视频
|
|
@@ -4179,7 +4238,7 @@ definitions:
|
|
|
4179
4238
|
- FRIENDSHIP_SCENE_TYPE_SHAKING
|
|
4180
4239
|
- FRIENDSHIP_SCENE_TYPE_QRCODE
|
|
4181
4240
|
default: FRIENDSHIP_SCENE_TYPE_UNSPECIFIED
|
|
4182
|
-
|
|
4241
|
+
description: 事件场景 wxwork中未使用
|
|
4183
4242
|
puppetFriendshipSearchHandleRequest:
|
|
4184
4243
|
type: object
|
|
4185
4244
|
properties:
|
|
@@ -5017,7 +5076,7 @@ definitions:
|
|
|
5017
5076
|
- PAYLOAD_TYPE_WXXD_ORDER
|
|
5018
5077
|
- PAYLOAD_TYPE_CALL
|
|
5019
5078
|
default: PAYLOAD_TYPE_UNSPECIFIED
|
|
5020
|
-
|
|
5079
|
+
description: 数值必须与 @juzi/wechaty-puppet 的 DirtyType 严格一致。
|
|
5021
5080
|
puppetPostPayloadClient:
|
|
5022
5081
|
type: object
|
|
5023
5082
|
properties:
|
|
@@ -5149,7 +5208,7 @@ definitions:
|
|
|
5149
5208
|
- POST_TYPE_TEXT_BUTTON
|
|
5150
5209
|
- POST_TYPE_GOODS_CARD
|
|
5151
5210
|
default: POST_TYPE_UNSPECIFIED
|
|
5152
|
-
|
|
5211
|
+
description: |-
|
|
5153
5212
|
- POST_TYPE_MOMENT: 朋友圈
|
|
5154
5213
|
- POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message
|
|
5155
5214
|
- POST_TYPE_MESSAGE: 消息——富媒体消息
|
|
@@ -5311,7 +5370,7 @@ definitions:
|
|
|
5311
5370
|
- ROOM_MEMBER_JOIN_SCENE_TYPE_QRCODE
|
|
5312
5371
|
- ROOM_MEMBER_JOIN_SCENE_TYPE_OTHER
|
|
5313
5372
|
default: ROOM_MEMBER_JOIN_SCENE_TYPE_UNKNOWN
|
|
5314
|
-
|
|
5373
|
+
description: 类型枚举
|
|
5315
5374
|
puppetRoomMemberListResponse:
|
|
5316
5375
|
type: object
|
|
5317
5376
|
properties:
|
|
@@ -5608,7 +5667,7 @@ definitions:
|
|
|
5608
5667
|
- PERSONAL
|
|
5609
5668
|
- CORPORATION
|
|
5610
5669
|
default: Unspecific
|
|
5611
|
-
|
|
5670
|
+
description: |-
|
|
5612
5671
|
- PERSONAL: 个人标签
|
|
5613
5672
|
- CORPORATION: 企业标签
|
|
5614
5673
|
puppetTapType:
|