@juzi/wechaty-grpc 1.0.16 → 1.0.18
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 +2 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/moment_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +300 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +2272 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/post_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/post_pb.d.ts +176 -0
- package/dist/cjs/out/wechaty/puppet/post_pb.js +1189 -0
- package/dist/cjs/out/wechaty/puppet/post_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/post_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +3 -2
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +3 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +288 -2
- package/dist/cjs/out/wechaty/puppet.swagger.json +446 -2
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +121 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +238 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +4 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +134 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +281 -0
- package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -8
- package/dist/cjs/proto/wechaty/puppet/contact.proto +29 -29
- package/dist/cjs/proto/wechaty/puppet/friendship.proto +14 -14
- package/dist/cjs/proto/wechaty/puppet/location.proto +5 -5
- package/dist/cjs/proto/wechaty/puppet/message.proto +42 -43
- package/dist/cjs/proto/wechaty/puppet/mini-program.proto +9 -9
- package/dist/cjs/proto/wechaty/puppet/moment.proto +66 -0
- package/dist/cjs/proto/wechaty/puppet/post.proto +57 -0
- package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -8
- package/dist/cjs/proto/wechaty/puppet/room-member.proto +4 -4
- package/dist/cjs/proto/wechaty/puppet/room.proto +11 -11
- package/dist/cjs/proto/wechaty/puppet/tag.proto +7 -6
- package/dist/cjs/proto/wechaty/puppet/url-link.proto +4 -4
- package/dist/cjs/proto/wechaty/puppet.proto +58 -0
- package/dist/cjs/src/package-json.js +2 -2
- 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 +35 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +2 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/moment_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +300 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.js +2272 -0
- package/dist/esm/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/moment_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/post_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/post_pb.d.ts +176 -0
- package/dist/esm/out/wechaty/puppet/post_pb.js +1189 -0
- package/dist/esm/out/wechaty/puppet/post_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/post_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +3 -2
- package/dist/esm/out/wechaty/puppet/tag_pb.js +3 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +288 -2
- package/dist/esm/out/wechaty/puppet.swagger.json +446 -2
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +121 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +238 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet_pb.js +4 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +134 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +281 -0
- package/dist/esm/proto/wechaty/puppet/channel.proto +8 -8
- package/dist/esm/proto/wechaty/puppet/contact.proto +29 -29
- package/dist/esm/proto/wechaty/puppet/friendship.proto +14 -14
- package/dist/esm/proto/wechaty/puppet/location.proto +5 -5
- package/dist/esm/proto/wechaty/puppet/message.proto +42 -43
- package/dist/esm/proto/wechaty/puppet/mini-program.proto +9 -9
- package/dist/esm/proto/wechaty/puppet/moment.proto +66 -0
- package/dist/esm/proto/wechaty/puppet/post.proto +57 -0
- package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -8
- package/dist/esm/proto/wechaty/puppet/room-member.proto +4 -4
- package/dist/esm/proto/wechaty/puppet/room.proto +11 -11
- package/dist/esm/proto/wechaty/puppet/tag.proto +7 -6
- package/dist/esm/proto/wechaty/puppet/url-link.proto +4 -4
- package/dist/esm/proto/wechaty/puppet.proto +58 -0
- package/dist/esm/src/package-json.js +2 -2
- 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 +35 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/moment_grpc_pb.js +1 -0
- package/out/wechaty/puppet/moment_pb.d.ts +300 -0
- package/out/wechaty/puppet/moment_pb.js +2272 -0
- package/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/moment_pb_service.js +3 -0
- package/out/wechaty/puppet/post_grpc_pb.js +1 -0
- package/out/wechaty/puppet/post_pb.d.ts +176 -0
- package/out/wechaty/puppet/post_pb.js +1189 -0
- package/out/wechaty/puppet/post_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/post_pb_service.js +3 -0
- package/out/wechaty/puppet/tag_pb.d.ts +3 -2
- package/out/wechaty/puppet/tag_pb.js +3 -2
- package/out/wechaty/puppet.openapi.yaml +288 -2
- package/out/wechaty/puppet.swagger.json +446 -2
- package/out/wechaty/puppet_grpc_pb.d.ts +121 -0
- package/out/wechaty/puppet_grpc_pb.js +238 -0
- package/out/wechaty/puppet_pb.d.ts +2 -0
- package/out/wechaty/puppet_pb.js +4 -0
- package/out/wechaty/puppet_pb_service.d.ts +134 -0
- package/out/wechaty/puppet_pb_service.js +281 -0
- package/package.json +1 -1
- package/src/package-json.ts +2 -2
|
@@ -4604,8 +4604,9 @@ proto.wechaty.puppet.TagPayloadResponse.prototype.hasPayload = function() {
|
|
|
4604
4604
|
* @enum {number}
|
|
4605
4605
|
*/
|
|
4606
4606
|
proto.wechaty.puppet.TagType = {
|
|
4607
|
-
|
|
4608
|
-
|
|
4607
|
+
UNSPECIFIC: 0,
|
|
4608
|
+
PERSONAL: 1,
|
|
4609
|
+
CORPORATION: 2
|
|
4609
4610
|
};
|
|
4610
4611
|
|
|
4611
4612
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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.18
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -998,6 +998,146 @@ paths:
|
|
|
998
998
|
type: string
|
|
999
999
|
tags:
|
|
1000
1000
|
- Puppet
|
|
1001
|
+
/moment/comment:
|
|
1002
|
+
post:
|
|
1003
|
+
operationId: Puppet_momentComment
|
|
1004
|
+
responses:
|
|
1005
|
+
'200':
|
|
1006
|
+
description: A successful response.
|
|
1007
|
+
schema:
|
|
1008
|
+
$ref: '#/definitions/puppetMomentCommentResponse'
|
|
1009
|
+
default:
|
|
1010
|
+
description: An unexpected error response.
|
|
1011
|
+
schema:
|
|
1012
|
+
$ref: '#/definitions/rpcStatus'
|
|
1013
|
+
parameters:
|
|
1014
|
+
- name: body
|
|
1015
|
+
in: body
|
|
1016
|
+
required: true
|
|
1017
|
+
schema:
|
|
1018
|
+
$ref: '#/definitions/puppetMomentCommentRequest'
|
|
1019
|
+
tags:
|
|
1020
|
+
- Puppet
|
|
1021
|
+
/moment/coverage:
|
|
1022
|
+
post:
|
|
1023
|
+
operationId: Puppet_momentCoverage
|
|
1024
|
+
responses:
|
|
1025
|
+
'200':
|
|
1026
|
+
description: A successful response.
|
|
1027
|
+
schema:
|
|
1028
|
+
$ref: '#/definitions/puppetMomentCoverageResponse'
|
|
1029
|
+
default:
|
|
1030
|
+
description: An unexpected error response.
|
|
1031
|
+
schema:
|
|
1032
|
+
$ref: '#/definitions/rpcStatus'
|
|
1033
|
+
parameters:
|
|
1034
|
+
- name: body
|
|
1035
|
+
in: body
|
|
1036
|
+
required: true
|
|
1037
|
+
schema:
|
|
1038
|
+
$ref: '#/definitions/puppetMomentCoverageRequest'
|
|
1039
|
+
tags:
|
|
1040
|
+
- Puppet
|
|
1041
|
+
/moment/like:
|
|
1042
|
+
post:
|
|
1043
|
+
operationId: Puppet_momentLike
|
|
1044
|
+
responses:
|
|
1045
|
+
'200':
|
|
1046
|
+
description: A successful response.
|
|
1047
|
+
schema:
|
|
1048
|
+
$ref: '#/definitions/puppetMomentLikeResponse'
|
|
1049
|
+
default:
|
|
1050
|
+
description: An unexpected error response.
|
|
1051
|
+
schema:
|
|
1052
|
+
$ref: '#/definitions/rpcStatus'
|
|
1053
|
+
parameters:
|
|
1054
|
+
- name: body
|
|
1055
|
+
in: body
|
|
1056
|
+
required: true
|
|
1057
|
+
schema:
|
|
1058
|
+
$ref: '#/definitions/puppetMomentLikeRequest'
|
|
1059
|
+
tags:
|
|
1060
|
+
- Puppet
|
|
1061
|
+
/moment/payload:
|
|
1062
|
+
post:
|
|
1063
|
+
operationId: Puppet_momentPayload
|
|
1064
|
+
responses:
|
|
1065
|
+
'200':
|
|
1066
|
+
description: A successful response.
|
|
1067
|
+
schema:
|
|
1068
|
+
$ref: '#/definitions/puppetMomentPayloadResponse'
|
|
1069
|
+
default:
|
|
1070
|
+
description: An unexpected error response.
|
|
1071
|
+
schema:
|
|
1072
|
+
$ref: '#/definitions/rpcStatus'
|
|
1073
|
+
parameters:
|
|
1074
|
+
- name: body
|
|
1075
|
+
in: body
|
|
1076
|
+
required: true
|
|
1077
|
+
schema:
|
|
1078
|
+
$ref: '#/definitions/puppetMomentPayloadRequest'
|
|
1079
|
+
tags:
|
|
1080
|
+
- Puppet
|
|
1081
|
+
/moment/publish:
|
|
1082
|
+
post:
|
|
1083
|
+
operationId: Puppet_momentPublish
|
|
1084
|
+
responses:
|
|
1085
|
+
'200':
|
|
1086
|
+
description: A successful response.
|
|
1087
|
+
schema:
|
|
1088
|
+
$ref: '#/definitions/puppetMomentPublishResponse'
|
|
1089
|
+
default:
|
|
1090
|
+
description: An unexpected error response.
|
|
1091
|
+
schema:
|
|
1092
|
+
$ref: '#/definitions/rpcStatus'
|
|
1093
|
+
parameters:
|
|
1094
|
+
- name: body
|
|
1095
|
+
in: body
|
|
1096
|
+
required: true
|
|
1097
|
+
schema:
|
|
1098
|
+
$ref: '#/definitions/puppetMomentPublishRequest'
|
|
1099
|
+
tags:
|
|
1100
|
+
- Puppet
|
|
1101
|
+
/moment/sayable:
|
|
1102
|
+
post:
|
|
1103
|
+
operationId: Puppet_momentPayloadSayable
|
|
1104
|
+
responses:
|
|
1105
|
+
'200':
|
|
1106
|
+
description: A successful response.
|
|
1107
|
+
schema:
|
|
1108
|
+
$ref: '#/definitions/puppetMomentPayloadSayableResponse'
|
|
1109
|
+
default:
|
|
1110
|
+
description: An unexpected error response.
|
|
1111
|
+
schema:
|
|
1112
|
+
$ref: '#/definitions/rpcStatus'
|
|
1113
|
+
parameters:
|
|
1114
|
+
- name: body
|
|
1115
|
+
in: body
|
|
1116
|
+
required: true
|
|
1117
|
+
schema:
|
|
1118
|
+
$ref: '#/definitions/puppetMomentPayloadSayableRequest'
|
|
1119
|
+
tags:
|
|
1120
|
+
- Puppet
|
|
1121
|
+
/moment/signature:
|
|
1122
|
+
post:
|
|
1123
|
+
operationId: Puppet_momentSignature
|
|
1124
|
+
responses:
|
|
1125
|
+
'200':
|
|
1126
|
+
description: A successful response.
|
|
1127
|
+
schema:
|
|
1128
|
+
$ref: '#/definitions/puppetMomentSignatureResponse'
|
|
1129
|
+
default:
|
|
1130
|
+
description: An unexpected error response.
|
|
1131
|
+
schema:
|
|
1132
|
+
$ref: '#/definitions/rpcStatus'
|
|
1133
|
+
parameters:
|
|
1134
|
+
- name: body
|
|
1135
|
+
in: body
|
|
1136
|
+
required: true
|
|
1137
|
+
schema:
|
|
1138
|
+
$ref: '#/definitions/puppetMomentSignatureRequest'
|
|
1139
|
+
tags:
|
|
1140
|
+
- Puppet
|
|
1001
1141
|
'/room-invitations/{id}':
|
|
1002
1142
|
get:
|
|
1003
1143
|
summary: '*'
|
|
@@ -2489,6 +2629,79 @@ definitions:
|
|
|
2489
2629
|
type: string
|
|
2490
2630
|
thumbKey:
|
|
2491
2631
|
type: string
|
|
2632
|
+
puppetMomentCommentRequest:
|
|
2633
|
+
type: object
|
|
2634
|
+
properties:
|
|
2635
|
+
momentId:
|
|
2636
|
+
type: string
|
|
2637
|
+
text:
|
|
2638
|
+
type: string
|
|
2639
|
+
mentionId:
|
|
2640
|
+
type: string
|
|
2641
|
+
puppetMomentCommentResponse:
|
|
2642
|
+
type: object
|
|
2643
|
+
properties:
|
|
2644
|
+
commentId:
|
|
2645
|
+
type: string
|
|
2646
|
+
puppetMomentCoverageRequest:
|
|
2647
|
+
type: object
|
|
2648
|
+
properties:
|
|
2649
|
+
fileBox:
|
|
2650
|
+
type: string
|
|
2651
|
+
puppetMomentCoverageResponse:
|
|
2652
|
+
type: object
|
|
2653
|
+
properties:
|
|
2654
|
+
fileBox:
|
|
2655
|
+
type: string
|
|
2656
|
+
puppetMomentLikeRequest:
|
|
2657
|
+
type: object
|
|
2658
|
+
properties:
|
|
2659
|
+
momentId:
|
|
2660
|
+
type: string
|
|
2661
|
+
puppetMomentLikeResponse:
|
|
2662
|
+
type: object
|
|
2663
|
+
puppetMomentPayloadRequest:
|
|
2664
|
+
type: object
|
|
2665
|
+
properties:
|
|
2666
|
+
momentId:
|
|
2667
|
+
type: string
|
|
2668
|
+
puppetMomentPayloadResponse:
|
|
2669
|
+
type: object
|
|
2670
|
+
properties:
|
|
2671
|
+
moment:
|
|
2672
|
+
$ref: '#/definitions/puppetPostPayloadServer'
|
|
2673
|
+
puppetMomentPayloadSayableRequest:
|
|
2674
|
+
type: object
|
|
2675
|
+
properties:
|
|
2676
|
+
momentId:
|
|
2677
|
+
type: string
|
|
2678
|
+
sayableId:
|
|
2679
|
+
type: string
|
|
2680
|
+
puppetMomentPayloadSayableResponse:
|
|
2681
|
+
type: object
|
|
2682
|
+
properties:
|
|
2683
|
+
sayable:
|
|
2684
|
+
$ref: '#/definitions/puppetPostSayable'
|
|
2685
|
+
puppetMomentPublishRequest:
|
|
2686
|
+
type: object
|
|
2687
|
+
properties:
|
|
2688
|
+
post:
|
|
2689
|
+
$ref: '#/definitions/puppetPostPayloadClient'
|
|
2690
|
+
puppetMomentPublishResponse:
|
|
2691
|
+
type: object
|
|
2692
|
+
properties:
|
|
2693
|
+
momentId:
|
|
2694
|
+
type: string
|
|
2695
|
+
puppetMomentSignatureRequest:
|
|
2696
|
+
type: object
|
|
2697
|
+
properties:
|
|
2698
|
+
text:
|
|
2699
|
+
type: string
|
|
2700
|
+
puppetMomentSignatureResponse:
|
|
2701
|
+
type: object
|
|
2702
|
+
properties:
|
|
2703
|
+
text:
|
|
2704
|
+
type: string
|
|
2492
2705
|
puppetPayloadType:
|
|
2493
2706
|
type: string
|
|
2494
2707
|
enum:
|
|
@@ -2501,6 +2714,70 @@ definitions:
|
|
|
2501
2714
|
- PAYLOAD_TYPE_TAG
|
|
2502
2715
|
- PAYLOAD_TYPE_TAG_GROUP
|
|
2503
2716
|
default: PAYLOAD_TYPE_UNSPECIFIED
|
|
2717
|
+
puppetPostPayloadClient:
|
|
2718
|
+
type: object
|
|
2719
|
+
properties:
|
|
2720
|
+
parentId:
|
|
2721
|
+
type: string
|
|
2722
|
+
rootId:
|
|
2723
|
+
type: string
|
|
2724
|
+
type:
|
|
2725
|
+
$ref: '#/definitions/puppetPostType'
|
|
2726
|
+
sayableList:
|
|
2727
|
+
type: array
|
|
2728
|
+
items:
|
|
2729
|
+
$ref: '#/definitions/puppetPostSayable'
|
|
2730
|
+
puppetPostPayloadServer:
|
|
2731
|
+
type: object
|
|
2732
|
+
properties:
|
|
2733
|
+
parentId:
|
|
2734
|
+
type: string
|
|
2735
|
+
rootId:
|
|
2736
|
+
type: string
|
|
2737
|
+
type:
|
|
2738
|
+
$ref: '#/definitions/puppetPostType'
|
|
2739
|
+
sayableList:
|
|
2740
|
+
type: array
|
|
2741
|
+
items:
|
|
2742
|
+
$ref: '#/definitions/puppetPostSayable'
|
|
2743
|
+
contactId:
|
|
2744
|
+
type: string
|
|
2745
|
+
timestamp:
|
|
2746
|
+
type: string
|
|
2747
|
+
format: date-time
|
|
2748
|
+
children:
|
|
2749
|
+
type: integer
|
|
2750
|
+
format: int32
|
|
2751
|
+
title: counters 计数器
|
|
2752
|
+
descendant:
|
|
2753
|
+
type: integer
|
|
2754
|
+
format: int32
|
|
2755
|
+
like:
|
|
2756
|
+
type: integer
|
|
2757
|
+
format: int32
|
|
2758
|
+
puppetPostSayable:
|
|
2759
|
+
type: object
|
|
2760
|
+
properties:
|
|
2761
|
+
type:
|
|
2762
|
+
$ref: '#/definitions/puppetSayableType'
|
|
2763
|
+
id:
|
|
2764
|
+
type: string
|
|
2765
|
+
text:
|
|
2766
|
+
type: string
|
|
2767
|
+
fileBox:
|
|
2768
|
+
type: string
|
|
2769
|
+
urlLink:
|
|
2770
|
+
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2771
|
+
cahnel:
|
|
2772
|
+
$ref: '#/definitions/puppetChannelPayload'
|
|
2773
|
+
puppetPostType:
|
|
2774
|
+
type: string
|
|
2775
|
+
enum:
|
|
2776
|
+
- POST_TYPE_UNSPECIFIED
|
|
2777
|
+
- POST_TYPE_MOMENT
|
|
2778
|
+
- POST_TYPE_CHANNEL
|
|
2779
|
+
- POST_TYPE_MESSAGE
|
|
2780
|
+
default: POST_TYPE_UNSPECIFIED
|
|
2504
2781
|
puppetReferrer:
|
|
2505
2782
|
type: object
|
|
2506
2783
|
properties:
|
|
@@ -2644,6 +2921,14 @@ definitions:
|
|
|
2644
2921
|
type: string
|
|
2645
2922
|
topic:
|
|
2646
2923
|
type: string
|
|
2924
|
+
puppetSayableType:
|
|
2925
|
+
type: string
|
|
2926
|
+
enum:
|
|
2927
|
+
- SAYABLE_TYPE_TEXT
|
|
2928
|
+
- SAYABLE_TYPE_FILE
|
|
2929
|
+
- SAYABLE_TYPE_URL
|
|
2930
|
+
- SAYABLE_TYPE_CHANNEL
|
|
2931
|
+
default: SAYABLE_TYPE_TEXT
|
|
2647
2932
|
puppetStartResponse:
|
|
2648
2933
|
type: object
|
|
2649
2934
|
puppetStopResponse:
|
|
@@ -2788,9 +3073,10 @@ definitions:
|
|
|
2788
3073
|
puppetTagType:
|
|
2789
3074
|
type: string
|
|
2790
3075
|
enum:
|
|
3076
|
+
- Unspecific
|
|
2791
3077
|
- PERSONAL
|
|
2792
3078
|
- CORPORATION
|
|
2793
|
-
default:
|
|
3079
|
+
default: Unspecific
|
|
2794
3080
|
puppetUploadRequest:
|
|
2795
3081
|
type: object
|
|
2796
3082
|
properties:
|