@juzi/wechaty-grpc 1.0.61 → 1.0.63
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/base_pb.d.ts +32 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +246 -0
- 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/verify-code_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +144 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +22 -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 +20 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +246 -0
- 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/verify-code_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +144 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +6 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +22 -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 +20 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/out/wechaty/puppet/base_pb.js +246 -0
- package/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/out/wechaty/puppet/room_pb.js +331 -0
- package/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +94 -1
- package/out/wechaty/puppet.swagger.json +144 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/out/wechaty/puppet_grpc_pb.js +99 -0
- package/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/out/wechaty/puppet_pb_service.js +160 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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.63
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -24,6 +24,25 @@ consumes:
|
|
|
24
24
|
produces:
|
|
25
25
|
- application/json
|
|
26
26
|
paths:
|
|
27
|
+
/cancel_verify_code:
|
|
28
|
+
post:
|
|
29
|
+
operationId: Puppet_CancelVerifyCode
|
|
30
|
+
responses:
|
|
31
|
+
'200':
|
|
32
|
+
description: A successful response.
|
|
33
|
+
schema:
|
|
34
|
+
$ref: '#/definitions/puppetCancelVerifyCodeResponse'
|
|
35
|
+
default:
|
|
36
|
+
description: An unexpected error response.
|
|
37
|
+
schema:
|
|
38
|
+
$ref: '#/definitions/rpcStatus'
|
|
39
|
+
parameters:
|
|
40
|
+
- name: id
|
|
41
|
+
in: query
|
|
42
|
+
required: false
|
|
43
|
+
type: string
|
|
44
|
+
tags:
|
|
45
|
+
- Puppet
|
|
27
46
|
'/contact/room/{roomId}/alias/{alias}':
|
|
28
47
|
put:
|
|
29
48
|
operationId: Puppet_ContactSelfRoomAlias
|
|
@@ -1440,6 +1459,20 @@ paths:
|
|
|
1440
1459
|
$ref: '#/definitions/puppetPostPayloadSayableRequest'
|
|
1441
1460
|
tags:
|
|
1442
1461
|
- Puppet
|
|
1462
|
+
/refresh_qr_code:
|
|
1463
|
+
post:
|
|
1464
|
+
operationId: Puppet_RefreshQRCode
|
|
1465
|
+
responses:
|
|
1466
|
+
'200':
|
|
1467
|
+
description: A successful response.
|
|
1468
|
+
schema:
|
|
1469
|
+
$ref: '#/definitions/puppetRefreshQRCodeRequest'
|
|
1470
|
+
default:
|
|
1471
|
+
description: An unexpected error response.
|
|
1472
|
+
schema:
|
|
1473
|
+
$ref: '#/definitions/rpcStatus'
|
|
1474
|
+
tags:
|
|
1475
|
+
- Puppet
|
|
1443
1476
|
'/room-invitations/{id}':
|
|
1444
1477
|
get:
|
|
1445
1478
|
summary: '*'
|
|
@@ -1571,6 +1604,33 @@ paths:
|
|
|
1571
1604
|
type: string
|
|
1572
1605
|
tags:
|
|
1573
1606
|
- Puppet
|
|
1607
|
+
'/rooms/{id}/add/admins/{contactIds}':
|
|
1608
|
+
put:
|
|
1609
|
+
operationId: Puppet_RoomAddAdmins
|
|
1610
|
+
responses:
|
|
1611
|
+
'200':
|
|
1612
|
+
description: A successful response.
|
|
1613
|
+
schema:
|
|
1614
|
+
$ref: '#/definitions/puppetRoomAdminsResponse'
|
|
1615
|
+
default:
|
|
1616
|
+
description: An unexpected error response.
|
|
1617
|
+
schema:
|
|
1618
|
+
$ref: '#/definitions/rpcStatus'
|
|
1619
|
+
parameters:
|
|
1620
|
+
- name: id
|
|
1621
|
+
in: path
|
|
1622
|
+
required: true
|
|
1623
|
+
type: string
|
|
1624
|
+
- name: contactIds
|
|
1625
|
+
in: path
|
|
1626
|
+
required: true
|
|
1627
|
+
type: array
|
|
1628
|
+
items:
|
|
1629
|
+
type: string
|
|
1630
|
+
collectionFormat: csv
|
|
1631
|
+
minItems: 1
|
|
1632
|
+
tags:
|
|
1633
|
+
- Puppet
|
|
1574
1634
|
'/rooms/{id}/add/{contactId}':
|
|
1575
1635
|
put:
|
|
1576
1636
|
operationId: Puppet_RoomAdd
|
|
@@ -1677,6 +1737,33 @@ paths:
|
|
|
1677
1737
|
type: string
|
|
1678
1738
|
tags:
|
|
1679
1739
|
- Puppet
|
|
1740
|
+
'/rooms/{id}/del/admins/{contactIds}':
|
|
1741
|
+
delete:
|
|
1742
|
+
operationId: Puppet_RoomDelAdmins
|
|
1743
|
+
responses:
|
|
1744
|
+
'200':
|
|
1745
|
+
description: A successful response.
|
|
1746
|
+
schema:
|
|
1747
|
+
$ref: '#/definitions/puppetRoomAdminsResponse'
|
|
1748
|
+
default:
|
|
1749
|
+
description: An unexpected error response.
|
|
1750
|
+
schema:
|
|
1751
|
+
$ref: '#/definitions/rpcStatus'
|
|
1752
|
+
parameters:
|
|
1753
|
+
- name: id
|
|
1754
|
+
in: path
|
|
1755
|
+
required: true
|
|
1756
|
+
type: string
|
|
1757
|
+
- name: contactIds
|
|
1758
|
+
in: path
|
|
1759
|
+
required: true
|
|
1760
|
+
type: array
|
|
1761
|
+
items:
|
|
1762
|
+
type: string
|
|
1763
|
+
collectionFormat: csv
|
|
1764
|
+
minItems: 1
|
|
1765
|
+
tags:
|
|
1766
|
+
- Puppet
|
|
1680
1767
|
'/rooms/{id}/dirty/members/{type}':
|
|
1681
1768
|
put:
|
|
1682
1769
|
operationId: Puppet_DirtyPayload4
|
|
@@ -2395,6 +2482,8 @@ definitions:
|
|
|
2395
2482
|
- BROADCAST_TARGET_STATUS_NOT_FRIEND
|
|
2396
2483
|
- BROADCAST_TARGET_STATUS_OCCUPIED
|
|
2397
2484
|
default: BROADCAST_TARGET_STATUS_UNSENT
|
|
2485
|
+
puppetCancelVerifyCodeResponse:
|
|
2486
|
+
type: object
|
|
2398
2487
|
puppetChannelPayload:
|
|
2399
2488
|
type: object
|
|
2400
2489
|
properties:
|
|
@@ -3341,8 +3430,12 @@ definitions:
|
|
|
3341
3430
|
"Referrer" and "Referral" refers to different things. "Referrer" is
|
|
3342
3431
|
something or somebody who refers. "Referral" is the act of referring.
|
|
3343
3432
|
- https://english.stackexchange.com/questions/33135/referrer-versus-referral-versus-referer
|
|
3433
|
+
puppetRefreshQRCodeRequest:
|
|
3434
|
+
type: object
|
|
3344
3435
|
puppetRoomAddResponse:
|
|
3345
3436
|
type: object
|
|
3437
|
+
puppetRoomAdminsResponse:
|
|
3438
|
+
type: object
|
|
3346
3439
|
puppetRoomAnnounceResponse:
|
|
3347
3440
|
type: object
|
|
3348
3441
|
properties:
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Wechaty Puppet Service OpenAPI Specification",
|
|
5
5
|
"description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.63",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -26,6 +26,36 @@
|
|
|
26
26
|
"application/json"
|
|
27
27
|
],
|
|
28
28
|
"paths": {
|
|
29
|
+
"/cancel_verify_code": {
|
|
30
|
+
"post": {
|
|
31
|
+
"operationId": "Puppet_CancelVerifyCode",
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "A successful response.",
|
|
35
|
+
"schema": {
|
|
36
|
+
"$ref": "#/definitions/puppetCancelVerifyCodeResponse"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"default": {
|
|
40
|
+
"description": "An unexpected error response.",
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/definitions/rpcStatus"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"parameters": [
|
|
47
|
+
{
|
|
48
|
+
"name": "id",
|
|
49
|
+
"in": "query",
|
|
50
|
+
"required": false,
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"tags": [
|
|
55
|
+
"Puppet"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
29
59
|
"/contact/room/{roomId}/alias/{alias}": {
|
|
30
60
|
"put": {
|
|
31
61
|
"operationId": "Puppet_ContactSelfRoomAlias",
|
|
@@ -2142,6 +2172,28 @@
|
|
|
2142
2172
|
]
|
|
2143
2173
|
}
|
|
2144
2174
|
},
|
|
2175
|
+
"/refresh_qr_code": {
|
|
2176
|
+
"post": {
|
|
2177
|
+
"operationId": "Puppet_RefreshQRCode",
|
|
2178
|
+
"responses": {
|
|
2179
|
+
"200": {
|
|
2180
|
+
"description": "A successful response.",
|
|
2181
|
+
"schema": {
|
|
2182
|
+
"$ref": "#/definitions/puppetRefreshQRCodeRequest"
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
"default": {
|
|
2186
|
+
"description": "An unexpected error response.",
|
|
2187
|
+
"schema": {
|
|
2188
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
},
|
|
2192
|
+
"tags": [
|
|
2193
|
+
"Puppet"
|
|
2194
|
+
]
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2145
2197
|
"/room-invitations/{id}": {
|
|
2146
2198
|
"get": {
|
|
2147
2199
|
"summary": "*",
|
|
@@ -2329,6 +2381,47 @@
|
|
|
2329
2381
|
]
|
|
2330
2382
|
}
|
|
2331
2383
|
},
|
|
2384
|
+
"/rooms/{id}/add/admins/{contactIds}": {
|
|
2385
|
+
"put": {
|
|
2386
|
+
"operationId": "Puppet_RoomAddAdmins",
|
|
2387
|
+
"responses": {
|
|
2388
|
+
"200": {
|
|
2389
|
+
"description": "A successful response.",
|
|
2390
|
+
"schema": {
|
|
2391
|
+
"$ref": "#/definitions/puppetRoomAdminsResponse"
|
|
2392
|
+
}
|
|
2393
|
+
},
|
|
2394
|
+
"default": {
|
|
2395
|
+
"description": "An unexpected error response.",
|
|
2396
|
+
"schema": {
|
|
2397
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
},
|
|
2401
|
+
"parameters": [
|
|
2402
|
+
{
|
|
2403
|
+
"name": "id",
|
|
2404
|
+
"in": "path",
|
|
2405
|
+
"required": true,
|
|
2406
|
+
"type": "string"
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "contactIds",
|
|
2410
|
+
"in": "path",
|
|
2411
|
+
"required": true,
|
|
2412
|
+
"type": "array",
|
|
2413
|
+
"items": {
|
|
2414
|
+
"type": "string"
|
|
2415
|
+
},
|
|
2416
|
+
"collectionFormat": "csv",
|
|
2417
|
+
"minItems": 1
|
|
2418
|
+
}
|
|
2419
|
+
],
|
|
2420
|
+
"tags": [
|
|
2421
|
+
"Puppet"
|
|
2422
|
+
]
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2332
2425
|
"/rooms/{id}/add/{contactId}": {
|
|
2333
2426
|
"put": {
|
|
2334
2427
|
"operationId": "Puppet_RoomAdd",
|
|
@@ -2492,6 +2585,47 @@
|
|
|
2492
2585
|
]
|
|
2493
2586
|
}
|
|
2494
2587
|
},
|
|
2588
|
+
"/rooms/{id}/del/admins/{contactIds}": {
|
|
2589
|
+
"delete": {
|
|
2590
|
+
"operationId": "Puppet_RoomDelAdmins",
|
|
2591
|
+
"responses": {
|
|
2592
|
+
"200": {
|
|
2593
|
+
"description": "A successful response.",
|
|
2594
|
+
"schema": {
|
|
2595
|
+
"$ref": "#/definitions/puppetRoomAdminsResponse"
|
|
2596
|
+
}
|
|
2597
|
+
},
|
|
2598
|
+
"default": {
|
|
2599
|
+
"description": "An unexpected error response.",
|
|
2600
|
+
"schema": {
|
|
2601
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
},
|
|
2605
|
+
"parameters": [
|
|
2606
|
+
{
|
|
2607
|
+
"name": "id",
|
|
2608
|
+
"in": "path",
|
|
2609
|
+
"required": true,
|
|
2610
|
+
"type": "string"
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
"name": "contactIds",
|
|
2614
|
+
"in": "path",
|
|
2615
|
+
"required": true,
|
|
2616
|
+
"type": "array",
|
|
2617
|
+
"items": {
|
|
2618
|
+
"type": "string"
|
|
2619
|
+
},
|
|
2620
|
+
"collectionFormat": "csv",
|
|
2621
|
+
"minItems": 1
|
|
2622
|
+
}
|
|
2623
|
+
],
|
|
2624
|
+
"tags": [
|
|
2625
|
+
"Puppet"
|
|
2626
|
+
]
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2495
2629
|
"/rooms/{id}/dirty/members/{type}": {
|
|
2496
2630
|
"put": {
|
|
2497
2631
|
"operationId": "Puppet_DirtyPayload4",
|
|
@@ -3573,6 +3707,9 @@
|
|
|
3573
3707
|
],
|
|
3574
3708
|
"default": "BROADCAST_TARGET_STATUS_UNSENT"
|
|
3575
3709
|
},
|
|
3710
|
+
"puppetCancelVerifyCodeResponse": {
|
|
3711
|
+
"type": "object"
|
|
3712
|
+
},
|
|
3576
3713
|
"puppetChannelPayload": {
|
|
3577
3714
|
"type": "object",
|
|
3578
3715
|
"properties": {
|
|
@@ -4727,9 +4864,15 @@
|
|
|
4727
4864
|
},
|
|
4728
4865
|
"title": "*\n\"Referrer\" and \"Referral\" refers to different things. \"Referrer\" is something or somebody who refers. \"Referral\" is the act of referring.\n - https://english.stackexchange.com/questions/33135/referrer-versus-referral-versus-referer"
|
|
4729
4866
|
},
|
|
4867
|
+
"puppetRefreshQRCodeRequest": {
|
|
4868
|
+
"type": "object"
|
|
4869
|
+
},
|
|
4730
4870
|
"puppetRoomAddResponse": {
|
|
4731
4871
|
"type": "object"
|
|
4732
4872
|
},
|
|
4873
|
+
"puppetRoomAdminsResponse": {
|
|
4874
|
+
"type": "object"
|
|
4875
|
+
},
|
|
4733
4876
|
"puppetRoomAnnounceResponse": {
|
|
4734
4877
|
"type": "object",
|
|
4735
4878
|
"properties": {
|
|
@@ -31,6 +31,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
31
31
|
currentUser: IPuppetService_ICurrentUser;
|
|
32
32
|
version: IPuppetService_IVersion;
|
|
33
33
|
enterVerifyCode: IPuppetService_IEnterVerifyCode;
|
|
34
|
+
cancelVerifyCode: IPuppetService_ICancelVerifyCode;
|
|
35
|
+
refreshQRCode: IPuppetService_IRefreshQRCode;
|
|
34
36
|
event: IPuppetService_IEvent;
|
|
35
37
|
dirtyPayload: IPuppetService_IDirtyPayload;
|
|
36
38
|
contactSelfQRCode: IPuppetService_IContactSelfQRCode;
|
|
@@ -87,6 +89,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
87
89
|
roomAnnounce: IPuppetService_IRoomAnnounce;
|
|
88
90
|
roomOwnerTransfer: IPuppetService_IRoomOwnerTransfer;
|
|
89
91
|
roomPermission: IPuppetService_IRoomPermission;
|
|
92
|
+
roomAddAdmins: IPuppetService_IRoomAddAdmins;
|
|
93
|
+
roomDelAdmins: IPuppetService_IRoomDelAdmins;
|
|
90
94
|
roomMemberPayload: IPuppetService_IRoomMemberPayload;
|
|
91
95
|
roomMemberList: IPuppetService_IRoomMemberList;
|
|
92
96
|
roomInvitationPayload: IPuppetService_IRoomInvitationPayload;
|
|
@@ -179,6 +183,24 @@ interface IPuppetService_IEnterVerifyCode extends grpc.MethodDefinition<wechaty_
|
|
|
179
183
|
responseSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
180
184
|
responseDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
181
185
|
}
|
|
186
|
+
interface IPuppetService_ICancelVerifyCode extends grpc.MethodDefinition<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse> {
|
|
187
|
+
path: "/wechaty.Puppet/CancelVerifyCode";
|
|
188
|
+
requestStream: false;
|
|
189
|
+
responseStream: false;
|
|
190
|
+
requestSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest>;
|
|
191
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest>;
|
|
192
|
+
responseSerialize: grpc.serialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse>;
|
|
193
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse>;
|
|
194
|
+
}
|
|
195
|
+
interface IPuppetService_IRefreshQRCode extends grpc.MethodDefinition<wechaty_puppet_base_pb.RefreshQRCodeRequest, wechaty_puppet_base_pb.RefreshQRCodeRequest> {
|
|
196
|
+
path: "/wechaty.Puppet/RefreshQRCode";
|
|
197
|
+
requestStream: false;
|
|
198
|
+
responseStream: false;
|
|
199
|
+
requestSerialize: grpc.serialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
200
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
201
|
+
responseSerialize: grpc.serialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
202
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
203
|
+
}
|
|
182
204
|
interface IPuppetService_IEvent extends grpc.MethodDefinition<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse> {
|
|
183
205
|
path: "/wechaty.Puppet/Event";
|
|
184
206
|
requestStream: false;
|
|
@@ -683,6 +705,24 @@ interface IPuppetService_IRoomPermission extends grpc.MethodDefinition<wechaty_p
|
|
|
683
705
|
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
684
706
|
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
685
707
|
}
|
|
708
|
+
interface IPuppetService_IRoomAddAdmins extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse> {
|
|
709
|
+
path: "/wechaty.Puppet/RoomAddAdmins";
|
|
710
|
+
requestStream: false;
|
|
711
|
+
responseStream: false;
|
|
712
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
713
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
714
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
715
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
716
|
+
}
|
|
717
|
+
interface IPuppetService_IRoomDelAdmins extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse> {
|
|
718
|
+
path: "/wechaty.Puppet/RoomDelAdmins";
|
|
719
|
+
requestStream: false;
|
|
720
|
+
responseStream: false;
|
|
721
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
722
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
723
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
724
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
725
|
+
}
|
|
686
726
|
interface IPuppetService_IRoomMemberPayload extends grpc.MethodDefinition<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse> {
|
|
687
727
|
path: "/wechaty.Puppet/RoomMemberPayload";
|
|
688
728
|
requestStream: false;
|
|
@@ -937,6 +977,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
937
977
|
currentUser: grpc.handleUnaryCall<wechaty_puppet_base_pb.CurrentUserRequest, wechaty_puppet_base_pb.CurrentUserResponse>;
|
|
938
978
|
version: grpc.handleUnaryCall<wechaty_puppet_base_pb.VersionRequest, wechaty_puppet_base_pb.VersionResponse>;
|
|
939
979
|
enterVerifyCode: grpc.handleUnaryCall<wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse>;
|
|
980
|
+
cancelVerifyCode: grpc.handleUnaryCall<wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse>;
|
|
981
|
+
refreshQRCode: grpc.handleUnaryCall<wechaty_puppet_base_pb.RefreshQRCodeRequest, wechaty_puppet_base_pb.RefreshQRCodeRequest>;
|
|
940
982
|
event: grpc.handleServerStreamingCall<wechaty_puppet_event_pb.EventRequest, wechaty_puppet_event_pb.EventResponse>;
|
|
941
983
|
dirtyPayload: grpc.handleUnaryCall<wechaty_puppet_base_pb.DirtyPayloadRequest, wechaty_puppet_base_pb.DirtyPayloadResponse>;
|
|
942
984
|
contactSelfQRCode: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfQRCodeRequest, wechaty_puppet_contact_pb.ContactSelfQRCodeResponse>;
|
|
@@ -993,6 +1035,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
993
1035
|
roomAnnounce: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAnnounceRequest, wechaty_puppet_room_pb.RoomAnnounceResponse>;
|
|
994
1036
|
roomOwnerTransfer: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomOwnerTransferRequest, wechaty_puppet_room_pb.RoomOwnerTransferResponse>;
|
|
995
1037
|
roomPermission: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPermissionRequest, wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
1038
|
+
roomAddAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
1039
|
+
roomDelAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
996
1040
|
roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
|
|
997
1041
|
roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
|
|
998
1042
|
roomInvitationPayload: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse>;
|
|
@@ -1044,6 +1088,12 @@ export interface IPuppetClient {
|
|
|
1044
1088
|
enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1045
1089
|
enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1046
1090
|
enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1091
|
+
cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1092
|
+
cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1093
|
+
cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1094
|
+
refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1095
|
+
refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1096
|
+
refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1047
1097
|
event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1048
1098
|
event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1049
1099
|
dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1211,6 +1261,12 @@ export interface IPuppetClient {
|
|
|
1211
1261
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1212
1262
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1213
1263
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1264
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1265
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1266
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1267
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1268
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1269
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1214
1270
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1215
1271
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1216
1272
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1317,6 +1373,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1317
1373
|
public enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1318
1374
|
public enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1319
1375
|
public enterVerifyCode(request: wechaty_puppet_verify_code_pb.EnterVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.EnterVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1376
|
+
public cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1377
|
+
public cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1378
|
+
public cancelVerifyCode(request: wechaty_puppet_verify_code_pb.CancelVerifyCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_verify_code_pb.CancelVerifyCodeResponse) => void): grpc.ClientUnaryCall;
|
|
1379
|
+
public refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1380
|
+
public refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1381
|
+
public refreshQRCode(request: wechaty_puppet_base_pb.RefreshQRCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.RefreshQRCodeRequest) => void): grpc.ClientUnaryCall;
|
|
1320
1382
|
public event(request: wechaty_puppet_event_pb.EventRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1321
1383
|
public event(request: wechaty_puppet_event_pb.EventRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_event_pb.EventResponse>;
|
|
1322
1384
|
public dirtyPayload(request: wechaty_puppet_base_pb.DirtyPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.DirtyPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1484,6 +1546,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1484
1546
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1485
1547
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1486
1548
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1549
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1550
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1551
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1552
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1553
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1554
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1487
1555
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1488
1556
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1489
1557
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -32,6 +32,28 @@ var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
|
|
|
32
32
|
var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
|
|
33
33
|
var wechaty_puppet_verify$code_pb = require('../wechaty/puppet/verify-code_pb.js');
|
|
34
34
|
|
|
35
|
+
function serialize_wechaty_puppet_CancelVerifyCodeRequest(arg) {
|
|
36
|
+
if (!(arg instanceof wechaty_puppet_verify$code_pb.CancelVerifyCodeRequest)) {
|
|
37
|
+
throw new Error('Expected argument of type wechaty.puppet.CancelVerifyCodeRequest');
|
|
38
|
+
}
|
|
39
|
+
return Buffer.from(arg.serializeBinary());
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function deserialize_wechaty_puppet_CancelVerifyCodeRequest(buffer_arg) {
|
|
43
|
+
return wechaty_puppet_verify$code_pb.CancelVerifyCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function serialize_wechaty_puppet_CancelVerifyCodeResponse(arg) {
|
|
47
|
+
if (!(arg instanceof wechaty_puppet_verify$code_pb.CancelVerifyCodeResponse)) {
|
|
48
|
+
throw new Error('Expected argument of type wechaty.puppet.CancelVerifyCodeResponse');
|
|
49
|
+
}
|
|
50
|
+
return Buffer.from(arg.serializeBinary());
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function deserialize_wechaty_puppet_CancelVerifyCodeResponse(buffer_arg) {
|
|
54
|
+
return wechaty_puppet_verify$code_pb.CancelVerifyCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
55
|
+
}
|
|
56
|
+
|
|
35
57
|
function serialize_wechaty_puppet_ContactAliasRequest(arg) {
|
|
36
58
|
if (!(arg instanceof wechaty_puppet_contact_pb.ContactAliasRequest)) {
|
|
37
59
|
throw new Error('Expected argument of type wechaty.puppet.ContactAliasRequest');
|
|
@@ -1242,6 +1264,17 @@ function deserialize_wechaty_puppet_PostTapResponse(buffer_arg) {
|
|
|
1242
1264
|
return wechaty_puppet_post_pb.PostTapResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1243
1265
|
}
|
|
1244
1266
|
|
|
1267
|
+
function serialize_wechaty_puppet_RefreshQRCodeRequest(arg) {
|
|
1268
|
+
if (!(arg instanceof wechaty_puppet_base_pb.RefreshQRCodeRequest)) {
|
|
1269
|
+
throw new Error('Expected argument of type wechaty.puppet.RefreshQRCodeRequest');
|
|
1270
|
+
}
|
|
1271
|
+
return Buffer.from(arg.serializeBinary());
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
function deserialize_wechaty_puppet_RefreshQRCodeRequest(buffer_arg) {
|
|
1275
|
+
return wechaty_puppet_base_pb.RefreshQRCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1245
1278
|
function serialize_wechaty_puppet_RoomAddRequest(arg) {
|
|
1246
1279
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomAddRequest)) {
|
|
1247
1280
|
throw new Error('Expected argument of type wechaty.puppet.RoomAddRequest');
|
|
@@ -1264,6 +1297,28 @@ function deserialize_wechaty_puppet_RoomAddResponse(buffer_arg) {
|
|
|
1264
1297
|
return wechaty_puppet_room_pb.RoomAddResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1265
1298
|
}
|
|
1266
1299
|
|
|
1300
|
+
function serialize_wechaty_puppet_RoomAdminsRequest(arg) {
|
|
1301
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomAdminsRequest)) {
|
|
1302
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomAdminsRequest');
|
|
1303
|
+
}
|
|
1304
|
+
return Buffer.from(arg.serializeBinary());
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
function deserialize_wechaty_puppet_RoomAdminsRequest(buffer_arg) {
|
|
1308
|
+
return wechaty_puppet_room_pb.RoomAdminsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
function serialize_wechaty_puppet_RoomAdminsResponse(arg) {
|
|
1312
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomAdminsResponse)) {
|
|
1313
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomAdminsResponse');
|
|
1314
|
+
}
|
|
1315
|
+
return Buffer.from(arg.serializeBinary());
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
function deserialize_wechaty_puppet_RoomAdminsResponse(buffer_arg) {
|
|
1319
|
+
return wechaty_puppet_room_pb.RoomAdminsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1267
1322
|
function serialize_wechaty_puppet_RoomAnnounceRequest(arg) {
|
|
1268
1323
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomAnnounceRequest)) {
|
|
1269
1324
|
throw new Error('Expected argument of type wechaty.puppet.RoomAnnounceRequest');
|
|
@@ -2073,6 +2128,28 @@ start: {
|
|
|
2073
2128
|
responseSerialize: serialize_wechaty_puppet_EnterVerifyCodeResponse,
|
|
2074
2129
|
responseDeserialize: deserialize_wechaty_puppet_EnterVerifyCodeResponse,
|
|
2075
2130
|
},
|
|
2131
|
+
cancelVerifyCode: {
|
|
2132
|
+
path: '/wechaty.Puppet/CancelVerifyCode',
|
|
2133
|
+
requestStream: false,
|
|
2134
|
+
responseStream: false,
|
|
2135
|
+
requestType: wechaty_puppet_verify$code_pb.CancelVerifyCodeRequest,
|
|
2136
|
+
responseType: wechaty_puppet_verify$code_pb.CancelVerifyCodeResponse,
|
|
2137
|
+
requestSerialize: serialize_wechaty_puppet_CancelVerifyCodeRequest,
|
|
2138
|
+
requestDeserialize: deserialize_wechaty_puppet_CancelVerifyCodeRequest,
|
|
2139
|
+
responseSerialize: serialize_wechaty_puppet_CancelVerifyCodeResponse,
|
|
2140
|
+
responseDeserialize: deserialize_wechaty_puppet_CancelVerifyCodeResponse,
|
|
2141
|
+
},
|
|
2142
|
+
refreshQRCode: {
|
|
2143
|
+
path: '/wechaty.Puppet/RefreshQRCode',
|
|
2144
|
+
requestStream: false,
|
|
2145
|
+
responseStream: false,
|
|
2146
|
+
requestType: wechaty_puppet_base_pb.RefreshQRCodeRequest,
|
|
2147
|
+
responseType: wechaty_puppet_base_pb.RefreshQRCodeRequest,
|
|
2148
|
+
requestSerialize: serialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2149
|
+
requestDeserialize: deserialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2150
|
+
responseSerialize: serialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2151
|
+
responseDeserialize: deserialize_wechaty_puppet_RefreshQRCodeRequest,
|
|
2152
|
+
},
|
|
2076
2153
|
// *
|
|
2077
2154
|
//
|
|
2078
2155
|
// Event - Server Stream
|
|
@@ -2723,6 +2800,28 @@ roomPayload: {
|
|
|
2723
2800
|
responseSerialize: serialize_wechaty_puppet_RoomPermissionResponse,
|
|
2724
2801
|
responseDeserialize: deserialize_wechaty_puppet_RoomPermissionResponse,
|
|
2725
2802
|
},
|
|
2803
|
+
roomAddAdmins: {
|
|
2804
|
+
path: '/wechaty.Puppet/RoomAddAdmins',
|
|
2805
|
+
requestStream: false,
|
|
2806
|
+
responseStream: false,
|
|
2807
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
2808
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse,
|
|
2809
|
+
requestSerialize: serialize_wechaty_puppet_RoomAdminsRequest,
|
|
2810
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomAdminsRequest,
|
|
2811
|
+
responseSerialize: serialize_wechaty_puppet_RoomAdminsResponse,
|
|
2812
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomAdminsResponse,
|
|
2813
|
+
},
|
|
2814
|
+
roomDelAdmins: {
|
|
2815
|
+
path: '/wechaty.Puppet/RoomDelAdmins',
|
|
2816
|
+
requestStream: false,
|
|
2817
|
+
responseStream: false,
|
|
2818
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
2819
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse,
|
|
2820
|
+
requestSerialize: serialize_wechaty_puppet_RoomAdminsRequest,
|
|
2821
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomAdminsRequest,
|
|
2822
|
+
responseSerialize: serialize_wechaty_puppet_RoomAdminsResponse,
|
|
2823
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomAdminsResponse,
|
|
2824
|
+
},
|
|
2726
2825
|
// *
|
|
2727
2826
|
//
|
|
2728
2827
|
// Room Member
|