@juzi/wechaty-grpc 1.0.63 → 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.openapi.yaml +164 -86
- package/dist/cjs/out/wechaty/puppet.swagger.json +101 -5
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -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 +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -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.proto +5 -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 +5 -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.openapi.yaml +164 -86
- package/dist/esm/out/wechaty/puppet.swagger.json +101 -5
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -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 +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -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.proto +5 -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 +5 -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.openapi.yaml +164 -86
- package/out/wechaty/puppet.swagger.json +101 -5
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -1
- package/out/wechaty/puppet_grpc_pb.js +33 -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 +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +7 -6
- package/src/package-json.ts +7 -6
|
@@ -10,6 +10,7 @@ import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-progr
|
|
|
10
10
|
import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
|
|
11
11
|
import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
|
|
12
12
|
import * as wechaty_puppet_post_pb from "../../wechaty/puppet/post_pb";
|
|
13
|
+
import * as wechaty_puppet_call_pb from "../../wechaty/puppet/call_pb";
|
|
13
14
|
|
|
14
15
|
export class MessagePayloadRequest extends jspb.Message {
|
|
15
16
|
getId(): string;
|
|
@@ -361,6 +362,48 @@ export namespace MessageChannelResponse {
|
|
|
361
362
|
}
|
|
362
363
|
}
|
|
363
364
|
|
|
365
|
+
export class MessageCallRecordRequest extends jspb.Message {
|
|
366
|
+
getId(): string;
|
|
367
|
+
setId(value: string): void;
|
|
368
|
+
|
|
369
|
+
serializeBinary(): Uint8Array;
|
|
370
|
+
toObject(includeInstance?: boolean): MessageCallRecordRequest.AsObject;
|
|
371
|
+
static toObject(includeInstance: boolean, msg: MessageCallRecordRequest): MessageCallRecordRequest.AsObject;
|
|
372
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
373
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
374
|
+
static serializeBinaryToWriter(message: MessageCallRecordRequest, writer: jspb.BinaryWriter): void;
|
|
375
|
+
static deserializeBinary(bytes: Uint8Array): MessageCallRecordRequest;
|
|
376
|
+
static deserializeBinaryFromReader(message: MessageCallRecordRequest, reader: jspb.BinaryReader): MessageCallRecordRequest;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export namespace MessageCallRecordRequest {
|
|
380
|
+
export type AsObject = {
|
|
381
|
+
id: string,
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export class MessageCallRecordlResponse extends jspb.Message {
|
|
386
|
+
hasChannel(): boolean;
|
|
387
|
+
clearChannel(): void;
|
|
388
|
+
getChannel(): wechaty_puppet_call_pb.CallRecordPayload | undefined;
|
|
389
|
+
setChannel(value?: wechaty_puppet_call_pb.CallRecordPayload): void;
|
|
390
|
+
|
|
391
|
+
serializeBinary(): Uint8Array;
|
|
392
|
+
toObject(includeInstance?: boolean): MessageCallRecordlResponse.AsObject;
|
|
393
|
+
static toObject(includeInstance: boolean, msg: MessageCallRecordlResponse): MessageCallRecordlResponse.AsObject;
|
|
394
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
395
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
396
|
+
static serializeBinaryToWriter(message: MessageCallRecordlResponse, writer: jspb.BinaryWriter): void;
|
|
397
|
+
static deserializeBinary(bytes: Uint8Array): MessageCallRecordlResponse;
|
|
398
|
+
static deserializeBinaryFromReader(message: MessageCallRecordlResponse, reader: jspb.BinaryReader): MessageCallRecordlResponse;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export namespace MessageCallRecordlResponse {
|
|
402
|
+
export type AsObject = {
|
|
403
|
+
channel?: wechaty_puppet_call_pb.CallRecordPayload.AsObject,
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
364
407
|
export class MessageSendContactRequest extends jspb.Message {
|
|
365
408
|
getConversationId(): string;
|
|
366
409
|
setConversationId(value: string): void;
|
|
@@ -1085,6 +1128,8 @@ export interface MessageTypeMap {
|
|
|
1085
1128
|
MESSAGE_TYPE_POST: 16;
|
|
1086
1129
|
MESSAGE_TYPE_CHANNEL: 17;
|
|
1087
1130
|
MESSAGE_TYPE_SYSTEM: 18;
|
|
1131
|
+
MESSAGE_TYPE_MARKDOWN: 19;
|
|
1132
|
+
MESSAGE_TYPE_CALL_RECORD: 20;
|
|
1088
1133
|
}
|
|
1089
1134
|
|
|
1090
1135
|
export const MessageType: MessageTypeMap;
|
|
@@ -31,6 +31,8 @@ var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
|
|
|
31
31
|
goog.object.extend(proto, wechaty_puppet_channel_pb);
|
|
32
32
|
var wechaty_puppet_post_pb = require('../../wechaty/puppet/post_pb.js');
|
|
33
33
|
goog.object.extend(proto, wechaty_puppet_post_pb);
|
|
34
|
+
var wechaty_puppet_call_pb = require('../../wechaty/puppet/call_pb.js');
|
|
35
|
+
goog.object.extend(proto, wechaty_puppet_call_pb);
|
|
34
36
|
goog.exportSymbol('proto.wechaty.puppet.BroadcastStatus', null, global);
|
|
35
37
|
goog.exportSymbol('proto.wechaty.puppet.BroadcastTarget', null, global);
|
|
36
38
|
goog.exportSymbol('proto.wechaty.puppet.BroadcastTargetStatus', null, global);
|
|
@@ -40,6 +42,8 @@ goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastStatusRequest', null,
|
|
|
40
42
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastStatusResponse', null, global);
|
|
41
43
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetRequest', null, global);
|
|
42
44
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetResponse', null, global);
|
|
45
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageCallRecordRequest', null, global);
|
|
46
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageCallRecordlResponse', null, global);
|
|
43
47
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelRequest', null, global);
|
|
44
48
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelResponse', null, global);
|
|
45
49
|
goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global);
|
|
@@ -371,6 +375,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
371
375
|
*/
|
|
372
376
|
proto.wechaty.puppet.MessageChannelResponse.displayName = 'proto.wechaty.puppet.MessageChannelResponse';
|
|
373
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Generated by JsPbCodeGenerator.
|
|
380
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
381
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
382
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
383
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
384
|
+
* valid.
|
|
385
|
+
* @extends {jspb.Message}
|
|
386
|
+
* @constructor
|
|
387
|
+
*/
|
|
388
|
+
proto.wechaty.puppet.MessageCallRecordRequest = function(opt_data) {
|
|
389
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
390
|
+
};
|
|
391
|
+
goog.inherits(proto.wechaty.puppet.MessageCallRecordRequest, jspb.Message);
|
|
392
|
+
if (goog.DEBUG && !COMPILED) {
|
|
393
|
+
/**
|
|
394
|
+
* @public
|
|
395
|
+
* @override
|
|
396
|
+
*/
|
|
397
|
+
proto.wechaty.puppet.MessageCallRecordRequest.displayName = 'proto.wechaty.puppet.MessageCallRecordRequest';
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Generated by JsPbCodeGenerator.
|
|
401
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
402
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
403
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
404
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
405
|
+
* valid.
|
|
406
|
+
* @extends {jspb.Message}
|
|
407
|
+
* @constructor
|
|
408
|
+
*/
|
|
409
|
+
proto.wechaty.puppet.MessageCallRecordlResponse = function(opt_data) {
|
|
410
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
411
|
+
};
|
|
412
|
+
goog.inherits(proto.wechaty.puppet.MessageCallRecordlResponse, jspb.Message);
|
|
413
|
+
if (goog.DEBUG && !COMPILED) {
|
|
414
|
+
/**
|
|
415
|
+
* @public
|
|
416
|
+
* @override
|
|
417
|
+
*/
|
|
418
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.displayName = 'proto.wechaty.puppet.MessageCallRecordlResponse';
|
|
419
|
+
}
|
|
374
420
|
/**
|
|
375
421
|
* Generated by JsPbCodeGenerator.
|
|
376
422
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3369,6 +3415,287 @@ proto.wechaty.puppet.MessageChannelResponse.prototype.hasChannel = function() {
|
|
|
3369
3415
|
|
|
3370
3416
|
|
|
3371
3417
|
|
|
3418
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3419
|
+
/**
|
|
3420
|
+
* Creates an object representation of this proto.
|
|
3421
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3422
|
+
* Optional fields that are not set will be set to undefined.
|
|
3423
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3424
|
+
* For the list of reserved names please see:
|
|
3425
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3426
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3427
|
+
* JSPB instance for transitional soy proto support:
|
|
3428
|
+
* http://goto/soy-param-migration
|
|
3429
|
+
* @return {!Object}
|
|
3430
|
+
*/
|
|
3431
|
+
proto.wechaty.puppet.MessageCallRecordRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3432
|
+
return proto.wechaty.puppet.MessageCallRecordRequest.toObject(opt_includeInstance, this);
|
|
3433
|
+
};
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* Static version of the {@see toObject} method.
|
|
3438
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3439
|
+
* the JSPB instance for transitional soy proto support:
|
|
3440
|
+
* http://goto/soy-param-migration
|
|
3441
|
+
* @param {!proto.wechaty.puppet.MessageCallRecordRequest} msg The msg instance to transform.
|
|
3442
|
+
* @return {!Object}
|
|
3443
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3444
|
+
*/
|
|
3445
|
+
proto.wechaty.puppet.MessageCallRecordRequest.toObject = function(includeInstance, msg) {
|
|
3446
|
+
var f, obj = {
|
|
3447
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3448
|
+
};
|
|
3449
|
+
|
|
3450
|
+
if (includeInstance) {
|
|
3451
|
+
obj.$jspbMessageInstance = msg;
|
|
3452
|
+
}
|
|
3453
|
+
return obj;
|
|
3454
|
+
};
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
/**
|
|
3459
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3460
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3461
|
+
* @return {!proto.wechaty.puppet.MessageCallRecordRequest}
|
|
3462
|
+
*/
|
|
3463
|
+
proto.wechaty.puppet.MessageCallRecordRequest.deserializeBinary = function(bytes) {
|
|
3464
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3465
|
+
var msg = new proto.wechaty.puppet.MessageCallRecordRequest;
|
|
3466
|
+
return proto.wechaty.puppet.MessageCallRecordRequest.deserializeBinaryFromReader(msg, reader);
|
|
3467
|
+
};
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
/**
|
|
3471
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3472
|
+
* given reader into the given message object.
|
|
3473
|
+
* @param {!proto.wechaty.puppet.MessageCallRecordRequest} msg The message object to deserialize into.
|
|
3474
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3475
|
+
* @return {!proto.wechaty.puppet.MessageCallRecordRequest}
|
|
3476
|
+
*/
|
|
3477
|
+
proto.wechaty.puppet.MessageCallRecordRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3478
|
+
while (reader.nextField()) {
|
|
3479
|
+
if (reader.isEndGroup()) {
|
|
3480
|
+
break;
|
|
3481
|
+
}
|
|
3482
|
+
var field = reader.getFieldNumber();
|
|
3483
|
+
switch (field) {
|
|
3484
|
+
case 1:
|
|
3485
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3486
|
+
msg.setId(value);
|
|
3487
|
+
break;
|
|
3488
|
+
default:
|
|
3489
|
+
reader.skipField();
|
|
3490
|
+
break;
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
return msg;
|
|
3494
|
+
};
|
|
3495
|
+
|
|
3496
|
+
|
|
3497
|
+
/**
|
|
3498
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3499
|
+
* @return {!Uint8Array}
|
|
3500
|
+
*/
|
|
3501
|
+
proto.wechaty.puppet.MessageCallRecordRequest.prototype.serializeBinary = function() {
|
|
3502
|
+
var writer = new jspb.BinaryWriter();
|
|
3503
|
+
proto.wechaty.puppet.MessageCallRecordRequest.serializeBinaryToWriter(this, writer);
|
|
3504
|
+
return writer.getResultBuffer();
|
|
3505
|
+
};
|
|
3506
|
+
|
|
3507
|
+
|
|
3508
|
+
/**
|
|
3509
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3510
|
+
* format), writing to the given BinaryWriter.
|
|
3511
|
+
* @param {!proto.wechaty.puppet.MessageCallRecordRequest} message
|
|
3512
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3513
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3514
|
+
*/
|
|
3515
|
+
proto.wechaty.puppet.MessageCallRecordRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3516
|
+
var f = undefined;
|
|
3517
|
+
f = message.getId();
|
|
3518
|
+
if (f.length > 0) {
|
|
3519
|
+
writer.writeString(
|
|
3520
|
+
1,
|
|
3521
|
+
f
|
|
3522
|
+
);
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
|
|
3526
|
+
|
|
3527
|
+
/**
|
|
3528
|
+
* optional string id = 1;
|
|
3529
|
+
* @return {string}
|
|
3530
|
+
*/
|
|
3531
|
+
proto.wechaty.puppet.MessageCallRecordRequest.prototype.getId = function() {
|
|
3532
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3533
|
+
};
|
|
3534
|
+
|
|
3535
|
+
|
|
3536
|
+
/**
|
|
3537
|
+
* @param {string} value
|
|
3538
|
+
* @return {!proto.wechaty.puppet.MessageCallRecordRequest} returns this
|
|
3539
|
+
*/
|
|
3540
|
+
proto.wechaty.puppet.MessageCallRecordRequest.prototype.setId = function(value) {
|
|
3541
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3542
|
+
};
|
|
3543
|
+
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
|
|
3548
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3549
|
+
/**
|
|
3550
|
+
* Creates an object representation of this proto.
|
|
3551
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3552
|
+
* Optional fields that are not set will be set to undefined.
|
|
3553
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3554
|
+
* For the list of reserved names please see:
|
|
3555
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3556
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3557
|
+
* JSPB instance for transitional soy proto support:
|
|
3558
|
+
* http://goto/soy-param-migration
|
|
3559
|
+
* @return {!Object}
|
|
3560
|
+
*/
|
|
3561
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3562
|
+
return proto.wechaty.puppet.MessageCallRecordlResponse.toObject(opt_includeInstance, this);
|
|
3563
|
+
};
|
|
3564
|
+
|
|
3565
|
+
|
|
3566
|
+
/**
|
|
3567
|
+
* Static version of the {@see toObject} method.
|
|
3568
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3569
|
+
* the JSPB instance for transitional soy proto support:
|
|
3570
|
+
* http://goto/soy-param-migration
|
|
3571
|
+
* @param {!proto.wechaty.puppet.MessageCallRecordlResponse} msg The msg instance to transform.
|
|
3572
|
+
* @return {!Object}
|
|
3573
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3574
|
+
*/
|
|
3575
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.toObject = function(includeInstance, msg) {
|
|
3576
|
+
var f, obj = {
|
|
3577
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_call_pb.CallRecordPayload.toObject(includeInstance, f)
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3580
|
+
if (includeInstance) {
|
|
3581
|
+
obj.$jspbMessageInstance = msg;
|
|
3582
|
+
}
|
|
3583
|
+
return obj;
|
|
3584
|
+
};
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3590
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3591
|
+
* @return {!proto.wechaty.puppet.MessageCallRecordlResponse}
|
|
3592
|
+
*/
|
|
3593
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.deserializeBinary = function(bytes) {
|
|
3594
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3595
|
+
var msg = new proto.wechaty.puppet.MessageCallRecordlResponse;
|
|
3596
|
+
return proto.wechaty.puppet.MessageCallRecordlResponse.deserializeBinaryFromReader(msg, reader);
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3602
|
+
* given reader into the given message object.
|
|
3603
|
+
* @param {!proto.wechaty.puppet.MessageCallRecordlResponse} msg The message object to deserialize into.
|
|
3604
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3605
|
+
* @return {!proto.wechaty.puppet.MessageCallRecordlResponse}
|
|
3606
|
+
*/
|
|
3607
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3608
|
+
while (reader.nextField()) {
|
|
3609
|
+
if (reader.isEndGroup()) {
|
|
3610
|
+
break;
|
|
3611
|
+
}
|
|
3612
|
+
var field = reader.getFieldNumber();
|
|
3613
|
+
switch (field) {
|
|
3614
|
+
case 1:
|
|
3615
|
+
var value = new wechaty_puppet_call_pb.CallRecordPayload;
|
|
3616
|
+
reader.readMessage(value,wechaty_puppet_call_pb.CallRecordPayload.deserializeBinaryFromReader);
|
|
3617
|
+
msg.setChannel(value);
|
|
3618
|
+
break;
|
|
3619
|
+
default:
|
|
3620
|
+
reader.skipField();
|
|
3621
|
+
break;
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
return msg;
|
|
3625
|
+
};
|
|
3626
|
+
|
|
3627
|
+
|
|
3628
|
+
/**
|
|
3629
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3630
|
+
* @return {!Uint8Array}
|
|
3631
|
+
*/
|
|
3632
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.prototype.serializeBinary = function() {
|
|
3633
|
+
var writer = new jspb.BinaryWriter();
|
|
3634
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.serializeBinaryToWriter(this, writer);
|
|
3635
|
+
return writer.getResultBuffer();
|
|
3636
|
+
};
|
|
3637
|
+
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3641
|
+
* format), writing to the given BinaryWriter.
|
|
3642
|
+
* @param {!proto.wechaty.puppet.MessageCallRecordlResponse} message
|
|
3643
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3644
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3645
|
+
*/
|
|
3646
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3647
|
+
var f = undefined;
|
|
3648
|
+
f = message.getChannel();
|
|
3649
|
+
if (f != null) {
|
|
3650
|
+
writer.writeMessage(
|
|
3651
|
+
1,
|
|
3652
|
+
f,
|
|
3653
|
+
wechaty_puppet_call_pb.CallRecordPayload.serializeBinaryToWriter
|
|
3654
|
+
);
|
|
3655
|
+
}
|
|
3656
|
+
};
|
|
3657
|
+
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
* optional CallRecordPayload channel = 1;
|
|
3661
|
+
* @return {?proto.wechaty.puppet.CallRecordPayload}
|
|
3662
|
+
*/
|
|
3663
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.prototype.getChannel = function() {
|
|
3664
|
+
return /** @type{?proto.wechaty.puppet.CallRecordPayload} */ (
|
|
3665
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_call_pb.CallRecordPayload, 1));
|
|
3666
|
+
};
|
|
3667
|
+
|
|
3668
|
+
|
|
3669
|
+
/**
|
|
3670
|
+
* @param {?proto.wechaty.puppet.CallRecordPayload|undefined} value
|
|
3671
|
+
* @return {!proto.wechaty.puppet.MessageCallRecordlResponse} returns this
|
|
3672
|
+
*/
|
|
3673
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.prototype.setChannel = function(value) {
|
|
3674
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3675
|
+
};
|
|
3676
|
+
|
|
3677
|
+
|
|
3678
|
+
/**
|
|
3679
|
+
* Clears the message field making it undefined.
|
|
3680
|
+
* @return {!proto.wechaty.puppet.MessageCallRecordlResponse} returns this
|
|
3681
|
+
*/
|
|
3682
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.prototype.clearChannel = function() {
|
|
3683
|
+
return this.setChannel(undefined);
|
|
3684
|
+
};
|
|
3685
|
+
|
|
3686
|
+
|
|
3687
|
+
/**
|
|
3688
|
+
* Returns whether this field is set.
|
|
3689
|
+
* @return {boolean}
|
|
3690
|
+
*/
|
|
3691
|
+
proto.wechaty.puppet.MessageCallRecordlResponse.prototype.hasChannel = function() {
|
|
3692
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3693
|
+
};
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
|
|
3697
|
+
|
|
3698
|
+
|
|
3372
3699
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3373
3700
|
/**
|
|
3374
3701
|
* Creates an object representation of this proto.
|
|
@@ -8216,7 +8543,9 @@ proto.wechaty.puppet.MessageType = {
|
|
|
8216
8543
|
MESSAGE_TYPE_VIDEO: 15,
|
|
8217
8544
|
MESSAGE_TYPE_POST: 16,
|
|
8218
8545
|
MESSAGE_TYPE_CHANNEL: 17,
|
|
8219
|
-
MESSAGE_TYPE_SYSTEM: 18
|
|
8546
|
+
MESSAGE_TYPE_SYSTEM: 18,
|
|
8547
|
+
MESSAGE_TYPE_MARKDOWN: 19,
|
|
8548
|
+
MESSAGE_TYPE_CALL_RECORD: 20
|
|
8220
8549
|
};
|
|
8221
8550
|
|
|
8222
8551
|
/**
|