@juzi/wechaty-grpc 1.0.7 → 1.0.10

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.
Files changed (65) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  2. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
  3. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
  4. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +3315 -0
  5. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
  6. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
  7. package/dist/cjs/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  8. package/dist/cjs/out/wechaty/puppet/friendship_pb.js +3 -1
  9. package/dist/cjs/out/wechaty/puppet.openapi.yaml +259 -1
  10. package/dist/cjs/out/wechaty/puppet.swagger.json +387 -2
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +154 -0
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +303 -0
  13. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  14. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  15. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +172 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.js +361 -0
  17. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +90 -0
  18. package/dist/cjs/proto/wechaty/puppet/friendship.proto +2 -0
  19. package/dist/cjs/proto/wechaty/puppet.proto +60 -0
  20. package/dist/cjs/src/package-json.js +1 -1
  21. package/dist/cjs/src/package-json.js.map +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.js +45 -0
  24. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  25. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  26. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
  27. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
  28. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +3315 -0
  29. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
  30. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
  31. package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  32. package/dist/esm/out/wechaty/puppet/friendship_pb.js +3 -1
  33. package/dist/esm/out/wechaty/puppet.openapi.yaml +259 -1
  34. package/dist/esm/out/wechaty/puppet.swagger.json +387 -2
  35. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +154 -0
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.js +303 -0
  37. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  38. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  39. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +172 -0
  40. package/dist/esm/out/wechaty/puppet_pb_service.js +361 -0
  41. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +90 -0
  42. package/dist/esm/proto/wechaty/puppet/friendship.proto +2 -0
  43. package/dist/esm/proto/wechaty/puppet.proto +60 -0
  44. package/dist/esm/src/package-json.js +1 -1
  45. package/dist/esm/src/package-json.js.map +1 -1
  46. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  47. package/dist/esm/tests/puppet-server-impl.js +45 -0
  48. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  49. package/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
  50. package/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
  51. package/out/wechaty/puppet/corp-tag_pb.js +3315 -0
  52. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
  53. package/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
  54. package/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  55. package/out/wechaty/puppet/friendship_pb.js +3 -1
  56. package/out/wechaty/puppet.openapi.yaml +259 -1
  57. package/out/wechaty/puppet.swagger.json +387 -2
  58. package/out/wechaty/puppet_grpc_pb.d.ts +154 -0
  59. package/out/wechaty/puppet_grpc_pb.js +303 -0
  60. package/out/wechaty/puppet_pb.d.ts +1 -0
  61. package/out/wechaty/puppet_pb.js +2 -0
  62. package/out/wechaty/puppet_pb_service.d.ts +172 -0
  63. package/out/wechaty/puppet_pb_service.js +361 -0
  64. package/package.json +1 -1
  65. package/src/package-json.ts +1 -1
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/corp-tag.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/corp-tag.proto
3
+
@@ -270,6 +270,8 @@ export interface FriendshipTypeMap {
270
270
  FRIENDSHIP_TYPE_CONFIRM: 1;
271
271
  FRIENDSHIP_TYPE_RECEIVE: 2;
272
272
  FRIENDSHIP_TYPE_VERIFY: 3;
273
+ FRIENDSHIP_TYPE_DELETE: 4;
274
+ FRIENDSHIP_TYPE_REMOVED: 5;
273
275
  }
274
276
 
275
277
  export const FriendshipType: FriendshipTypeMap;
@@ -2036,7 +2036,9 @@ proto.wechaty.puppet.FriendshipType = {
2036
2036
  FRIENDSHIP_TYPE_UNSPECIFIED: 0,
2037
2037
  FRIENDSHIP_TYPE_CONFIRM: 1,
2038
2038
  FRIENDSHIP_TYPE_RECEIVE: 2,
2039
- FRIENDSHIP_TYPE_VERIFY: 3
2039
+ FRIENDSHIP_TYPE_VERIFY: 3,
2040
+ FRIENDSHIP_TYPE_DELETE: 4,
2041
+ FRIENDSHIP_TYPE_REMOVED: 5
2040
2042
  };
2041
2043
 
2042
2044
  /**
@@ -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.7
12
+ version: 1.0.10
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -121,6 +121,78 @@ paths:
121
121
  $ref: '#/definitions/puppetContactSelfSignatureRequest'
122
122
  tags:
123
123
  - Puppet
124
+ '/contacts/{contactId}/corp-tag/tags':
125
+ get:
126
+ operationId: Puppet_CorpTagContactTagList
127
+ responses:
128
+ '200':
129
+ description: A successful response.
130
+ schema:
131
+ $ref: '#/definitions/puppetCorpTagContactTagListResponse'
132
+ default:
133
+ description: An unexpected error response.
134
+ schema:
135
+ $ref: '#/definitions/rpcStatus'
136
+ parameters:
137
+ - name: contactId
138
+ in: path
139
+ required: true
140
+ type: string
141
+ tags:
142
+ - Puppet
143
+ '/contacts/{contactId}/corp-tag/tags/{corpTagId}':
144
+ delete:
145
+ operationId: Puppet_CorpTagContactTagRemove
146
+ responses:
147
+ '200':
148
+ description: A successful response.
149
+ schema:
150
+ $ref: '#/definitions/puppetCorpTagContactTagRemoveResponse'
151
+ default:
152
+ description: An unexpected error response.
153
+ schema:
154
+ $ref: '#/definitions/rpcStatus'
155
+ parameters:
156
+ - name: contactId
157
+ in: path
158
+ required: true
159
+ type: string
160
+ - name: corpTagId
161
+ in: path
162
+ required: true
163
+ type: string
164
+ - name: corpTagGroupId
165
+ in: query
166
+ required: false
167
+ type: string
168
+ tags:
169
+ - Puppet
170
+ put:
171
+ operationId: Puppet_CorpTagContactTagAdd
172
+ responses:
173
+ '200':
174
+ description: A successful response.
175
+ schema:
176
+ $ref: '#/definitions/puppetCorpTagContactTagAddResponse'
177
+ default:
178
+ description: An unexpected error response.
179
+ schema:
180
+ $ref: '#/definitions/rpcStatus'
181
+ parameters:
182
+ - name: contactId
183
+ in: path
184
+ required: true
185
+ type: string
186
+ - name: corpTagId
187
+ in: path
188
+ required: true
189
+ type: string
190
+ - name: corpTagGroupId
191
+ in: query
192
+ required: false
193
+ type: string
194
+ tags:
195
+ - Puppet
124
196
  '/contacts/{contactId}/corporation-remark':
125
197
  put:
126
198
  operationId: Puppet_ContactCorporationRemark
@@ -598,6 +670,123 @@ paths:
598
670
  $ref: '#/definitions/puppetUrlLinkPayload'
599
671
  tags:
600
672
  - Puppet
673
+ /corp-tag/groups:
674
+ get:
675
+ operationId: Puppet_CorpTagGroupList
676
+ responses:
677
+ '200':
678
+ description: A successful response.
679
+ schema:
680
+ $ref: '#/definitions/puppetCorpTagGroupListResponse'
681
+ default:
682
+ description: An unexpected error response.
683
+ schema:
684
+ $ref: '#/definitions/rpcStatus'
685
+ tags:
686
+ - Puppet
687
+ '/corp-tag/groups/{corpTagGroupId}':
688
+ get:
689
+ operationId: Puppet_CorpTagTagList
690
+ responses:
691
+ '200':
692
+ description: A successful response.
693
+ schema:
694
+ $ref: '#/definitions/puppetCorpTagTagListResponse'
695
+ default:
696
+ description: An unexpected error response.
697
+ schema:
698
+ $ref: '#/definitions/rpcStatus'
699
+ parameters:
700
+ - name: corpTagGroupId
701
+ in: path
702
+ required: true
703
+ type: string
704
+ tags:
705
+ - Puppet
706
+ '/corp-tags/groups/{corpTagGroupId}':
707
+ delete:
708
+ operationId: Puppet_CorpTagGroupDelete
709
+ responses:
710
+ '200':
711
+ description: A successful response.
712
+ schema:
713
+ $ref: '#/definitions/puppetCorpTagGroupDeleteResponse'
714
+ default:
715
+ description: An unexpected error response.
716
+ schema:
717
+ $ref: '#/definitions/rpcStatus'
718
+ parameters:
719
+ - name: corpTagGroupId
720
+ in: path
721
+ required: true
722
+ type: string
723
+ tags:
724
+ - Puppet
725
+ '/corp-tags/groups/{corpTagGroupId}/tags/{corpTagId}':
726
+ delete:
727
+ operationId: Puppet_CorpTagTagDelete
728
+ responses:
729
+ '200':
730
+ description: A successful response.
731
+ schema:
732
+ $ref: '#/definitions/puppetCorpTagTagDeleteResponse'
733
+ default:
734
+ description: An unexpected error response.
735
+ schema:
736
+ $ref: '#/definitions/rpcStatus'
737
+ parameters:
738
+ - name: corpTagGroupId
739
+ in: path
740
+ required: true
741
+ type: string
742
+ - name: corpTagId
743
+ in: path
744
+ required: true
745
+ type: string
746
+ tags:
747
+ - Puppet
748
+ '/corp-tags/groups/{corpTagGroupId}/tags/{corpTagName}':
749
+ put:
750
+ operationId: Puppet_CorpTagTagAdd
751
+ responses:
752
+ '200':
753
+ description: A successful response.
754
+ schema:
755
+ $ref: '#/definitions/puppetCorpTagTagAddResponse'
756
+ default:
757
+ description: An unexpected error response.
758
+ schema:
759
+ $ref: '#/definitions/rpcStatus'
760
+ parameters:
761
+ - name: corpTagGroupId
762
+ in: path
763
+ required: true
764
+ type: string
765
+ - name: corpTagName
766
+ in: path
767
+ required: true
768
+ type: string
769
+ tags:
770
+ - Puppet
771
+ '/corp-tags/groups/{corpTagGroupName}':
772
+ put:
773
+ operationId: Puppet_CorpTagGroupAdd
774
+ responses:
775
+ '200':
776
+ description: A successful response.
777
+ schema:
778
+ $ref: '#/definitions/puppetCorpTagGroupAddResponse'
779
+ default:
780
+ description: An unexpected error response.
781
+ schema:
782
+ $ref: '#/definitions/rpcStatus'
783
+ parameters:
784
+ - name: corpTagGroupName
785
+ in: path
786
+ required: true
787
+ type: string
788
+ tags:
789
+ - Puppet
601
790
  /currentUser:
602
791
  get:
603
792
  operationId: Puppet_CurrentUser
@@ -1558,6 +1747,18 @@ paths:
1558
1747
  $ref: '#/definitions/rpcStatus'
1559
1748
  parameters:
1560
1749
  - name: body
1750
+ description: >-
1751
+ *
1752
+
1753
+ Huan(202003): we just rename the payload message because gRPC only
1754
+ care about the message structure
1755
+ (and as long as we keep consistent with the old structure).
1756
+
1757
+ @link https://github.com/wechaty/grpc/pull/173
1758
+
1759
+ Rename:
1760
+ 1. `FriendshipSearchWeixinRequest` -> `FriendshipSearchHandleRequest`
1761
+ 2. `FriendshipSearchWeixinReqsponse` -> `FriendshipSearchHandleResponse`
1561
1762
  in: body
1562
1763
  required: true
1563
1764
  schema:
@@ -1844,6 +2045,61 @@ definitions:
1844
2045
  - CONTACT_TYPE_OFFICIAL
1845
2046
  - CONTACT_TYPE_CORPORATION
1846
2047
  default: CONTACT_TYPE_UNSPECIFIED
2048
+ puppetCorpTagContactTagAddResponse:
2049
+ type: object
2050
+ puppetCorpTagContactTagListResponse:
2051
+ type: object
2052
+ properties:
2053
+ payloads:
2054
+ type: array
2055
+ items:
2056
+ $ref: '#/definitions/puppetCorpTagPayload'
2057
+ puppetCorpTagContactTagRemoveResponse:
2058
+ type: object
2059
+ puppetCorpTagGroupAddResponse:
2060
+ type: object
2061
+ properties:
2062
+ payload:
2063
+ $ref: '#/definitions/puppetCorpTagGroupPayload'
2064
+ puppetCorpTagGroupDeleteResponse:
2065
+ type: object
2066
+ puppetCorpTagGroupListResponse:
2067
+ type: object
2068
+ properties:
2069
+ payloads:
2070
+ type: array
2071
+ items:
2072
+ $ref: '#/definitions/puppetCorpTagGroupPayload'
2073
+ puppetCorpTagGroupPayload:
2074
+ type: object
2075
+ properties:
2076
+ id:
2077
+ type: string
2078
+ name:
2079
+ type: string
2080
+ puppetCorpTagPayload:
2081
+ type: object
2082
+ properties:
2083
+ id:
2084
+ type: string
2085
+ name:
2086
+ type: string
2087
+ groupId:
2088
+ type: string
2089
+ puppetCorpTagTagAddResponse:
2090
+ type: object
2091
+ properties:
2092
+ payload:
2093
+ $ref: '#/definitions/puppetCorpTagPayload'
2094
+ puppetCorpTagTagDeleteResponse:
2095
+ type: object
2096
+ puppetCorpTagTagListResponse:
2097
+ type: object
2098
+ properties:
2099
+ payloads:
2100
+ type: array
2101
+ items:
2102
+ $ref: '#/definitions/puppetCorpTagPayload'
1847
2103
  puppetCurrentUserResponse:
1848
2104
  type: object
1849
2105
  properties:
@@ -1992,6 +2248,8 @@ definitions:
1992
2248
  - FRIENDSHIP_TYPE_CONFIRM
1993
2249
  - FRIENDSHIP_TYPE_RECEIVE
1994
2250
  - FRIENDSHIP_TYPE_VERIFY
2251
+ - FRIENDSHIP_TYPE_DELETE
2252
+ - FRIENDSHIP_TYPE_REMOVED
1995
2253
  default: FRIENDSHIP_TYPE_UNSPECIFIED
1996
2254
  puppetImageType:
1997
2255
  type: string