@juzi/wechaty-grpc 1.0.17 → 1.0.19
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 +128 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +953 -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 +348 -0
- package/dist/cjs/out/wechaty/puppet/post_pb.js +2508 -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.openapi.yaml +286 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +444 -1
- 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 +135 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +282 -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 +33 -0
- package/dist/cjs/proto/wechaty/puppet/post.proto +91 -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 +6 -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 +128 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.js +953 -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 +348 -0
- package/dist/esm/out/wechaty/puppet/post_pb.js +2508 -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.openapi.yaml +286 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +444 -1
- 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 +135 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +282 -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 +33 -0
- package/dist/esm/proto/wechaty/puppet/post.proto +91 -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 +6 -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 +128 -0
- package/out/wechaty/puppet/moment_pb.js +953 -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 +348 -0
- package/out/wechaty/puppet/post_pb.js +2508 -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.openapi.yaml +286 -1
- package/out/wechaty/puppet.swagger.json +444 -1
- 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 +135 -0
- package/out/wechaty/puppet_pb_service.js +282 -0
- package/package.json +1 -1
- package/src/package-json.ts +2 -2
|
@@ -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.19
|
|
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/coverage:
|
|
1002
|
+
post:
|
|
1003
|
+
operationId: Puppet_momentCoverage
|
|
1004
|
+
responses:
|
|
1005
|
+
'200':
|
|
1006
|
+
description: A successful response.
|
|
1007
|
+
schema:
|
|
1008
|
+
$ref: '#/definitions/puppetMomentCoverageResponse'
|
|
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/puppetMomentCoverageRequest'
|
|
1019
|
+
tags:
|
|
1020
|
+
- Puppet
|
|
1021
|
+
/moment/publish:
|
|
1022
|
+
post:
|
|
1023
|
+
operationId: Puppet_momentPublish
|
|
1024
|
+
responses:
|
|
1025
|
+
'200':
|
|
1026
|
+
description: A successful response.
|
|
1027
|
+
schema:
|
|
1028
|
+
$ref: '#/definitions/puppetMomentPublishResponse'
|
|
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/puppetMomentPublishRequest'
|
|
1039
|
+
tags:
|
|
1040
|
+
- Puppet
|
|
1041
|
+
/moment/signature:
|
|
1042
|
+
post:
|
|
1043
|
+
operationId: Puppet_momentSignature
|
|
1044
|
+
responses:
|
|
1045
|
+
'200':
|
|
1046
|
+
description: A successful response.
|
|
1047
|
+
schema:
|
|
1048
|
+
$ref: '#/definitions/puppetMomentSignatureResponse'
|
|
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/puppetMomentSignatureRequest'
|
|
1059
|
+
tags:
|
|
1060
|
+
- Puppet
|
|
1061
|
+
/post/comment:
|
|
1062
|
+
post:
|
|
1063
|
+
operationId: Puppet_postComment
|
|
1064
|
+
responses:
|
|
1065
|
+
'200':
|
|
1066
|
+
description: A successful response.
|
|
1067
|
+
schema:
|
|
1068
|
+
$ref: '#/definitions/puppetPostCommentResponse'
|
|
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/puppetPostCommentRequest'
|
|
1079
|
+
tags:
|
|
1080
|
+
- Puppet
|
|
1081
|
+
/post/like:
|
|
1082
|
+
post:
|
|
1083
|
+
operationId: Puppet_postLike
|
|
1084
|
+
responses:
|
|
1085
|
+
'200':
|
|
1086
|
+
description: A successful response.
|
|
1087
|
+
schema:
|
|
1088
|
+
$ref: '#/definitions/puppetPostLikeResponse'
|
|
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/puppetPostLikeRequest'
|
|
1099
|
+
tags:
|
|
1100
|
+
- Puppet
|
|
1101
|
+
/post/payload:
|
|
1102
|
+
post:
|
|
1103
|
+
operationId: Puppet_postPayload
|
|
1104
|
+
responses:
|
|
1105
|
+
'200':
|
|
1106
|
+
description: A successful response.
|
|
1107
|
+
schema:
|
|
1108
|
+
$ref: '#/definitions/puppetPostPayloadResponse'
|
|
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/puppetPostPayloadRequest'
|
|
1119
|
+
tags:
|
|
1120
|
+
- Puppet
|
|
1121
|
+
/post/sayable:
|
|
1122
|
+
post:
|
|
1123
|
+
operationId: Puppet_postPayloadSayable
|
|
1124
|
+
responses:
|
|
1125
|
+
'200':
|
|
1126
|
+
description: A successful response.
|
|
1127
|
+
schema:
|
|
1128
|
+
$ref: '#/definitions/puppetPostPayloadSayableResponse'
|
|
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/puppetPostPayloadSayableRequest'
|
|
1139
|
+
tags:
|
|
1140
|
+
- Puppet
|
|
1001
1141
|
'/room-invitations/{id}':
|
|
1002
1142
|
get:
|
|
1003
1143
|
summary: '*'
|
|
@@ -2489,6 +2629,36 @@ definitions:
|
|
|
2489
2629
|
type: string
|
|
2490
2630
|
thumbKey:
|
|
2491
2631
|
type: string
|
|
2632
|
+
puppetMomentCoverageRequest:
|
|
2633
|
+
type: object
|
|
2634
|
+
properties:
|
|
2635
|
+
fileBox:
|
|
2636
|
+
type: string
|
|
2637
|
+
puppetMomentCoverageResponse:
|
|
2638
|
+
type: object
|
|
2639
|
+
properties:
|
|
2640
|
+
fileBox:
|
|
2641
|
+
type: string
|
|
2642
|
+
puppetMomentPublishRequest:
|
|
2643
|
+
type: object
|
|
2644
|
+
properties:
|
|
2645
|
+
post:
|
|
2646
|
+
$ref: '#/definitions/puppetPostPayloadClient'
|
|
2647
|
+
puppetMomentPublishResponse:
|
|
2648
|
+
type: object
|
|
2649
|
+
properties:
|
|
2650
|
+
momentId:
|
|
2651
|
+
type: string
|
|
2652
|
+
puppetMomentSignatureRequest:
|
|
2653
|
+
type: object
|
|
2654
|
+
properties:
|
|
2655
|
+
text:
|
|
2656
|
+
type: string
|
|
2657
|
+
puppetMomentSignatureResponse:
|
|
2658
|
+
type: object
|
|
2659
|
+
properties:
|
|
2660
|
+
text:
|
|
2661
|
+
type: string
|
|
2492
2662
|
puppetPayloadType:
|
|
2493
2663
|
type: string
|
|
2494
2664
|
enum:
|
|
@@ -2501,6 +2671,113 @@ definitions:
|
|
|
2501
2671
|
- PAYLOAD_TYPE_TAG
|
|
2502
2672
|
- PAYLOAD_TYPE_TAG_GROUP
|
|
2503
2673
|
default: PAYLOAD_TYPE_UNSPECIFIED
|
|
2674
|
+
puppetPostCommentRequest:
|
|
2675
|
+
type: object
|
|
2676
|
+
properties:
|
|
2677
|
+
postId:
|
|
2678
|
+
type: string
|
|
2679
|
+
text:
|
|
2680
|
+
type: string
|
|
2681
|
+
mentionId:
|
|
2682
|
+
type: string
|
|
2683
|
+
puppetPostCommentResponse:
|
|
2684
|
+
type: object
|
|
2685
|
+
properties:
|
|
2686
|
+
commentId:
|
|
2687
|
+
type: string
|
|
2688
|
+
puppetPostLikeRequest:
|
|
2689
|
+
type: object
|
|
2690
|
+
properties:
|
|
2691
|
+
postId:
|
|
2692
|
+
type: string
|
|
2693
|
+
puppetPostLikeResponse:
|
|
2694
|
+
type: object
|
|
2695
|
+
puppetPostPayloadClient:
|
|
2696
|
+
type: object
|
|
2697
|
+
properties:
|
|
2698
|
+
parentId:
|
|
2699
|
+
type: string
|
|
2700
|
+
rootId:
|
|
2701
|
+
type: string
|
|
2702
|
+
type:
|
|
2703
|
+
$ref: '#/definitions/puppetPostType'
|
|
2704
|
+
sayableList:
|
|
2705
|
+
type: array
|
|
2706
|
+
items:
|
|
2707
|
+
$ref: '#/definitions/puppetPostSayable'
|
|
2708
|
+
puppetPostPayloadRequest:
|
|
2709
|
+
type: object
|
|
2710
|
+
properties:
|
|
2711
|
+
postId:
|
|
2712
|
+
type: string
|
|
2713
|
+
puppetPostPayloadResponse:
|
|
2714
|
+
type: object
|
|
2715
|
+
properties:
|
|
2716
|
+
post:
|
|
2717
|
+
$ref: '#/definitions/puppetPostPayloadServer'
|
|
2718
|
+
puppetPostPayloadSayableRequest:
|
|
2719
|
+
type: object
|
|
2720
|
+
properties:
|
|
2721
|
+
postId:
|
|
2722
|
+
type: string
|
|
2723
|
+
sayableId:
|
|
2724
|
+
type: string
|
|
2725
|
+
puppetPostPayloadSayableResponse:
|
|
2726
|
+
type: object
|
|
2727
|
+
properties:
|
|
2728
|
+
sayable:
|
|
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:
|