@juzi/wechaty-grpc 1.0.0

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 (636) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +351 -0
  3. package/dist/cjs/commonjs/README.md +15 -0
  4. package/dist/cjs/commonjs/code-root.cjs +10 -0
  5. package/dist/cjs/commonjs/code-root.cjs.d.ts +1 -0
  6. package/dist/cjs/commonjs/code-root.spec.ts +9 -0
  7. package/dist/cjs/commonjs/generated/google.cjs +9 -0
  8. package/dist/cjs/commonjs/generated/google.cjs.d.ts +2 -0
  9. package/dist/cjs/commonjs/generated/google.spec.ts +13 -0
  10. package/dist/cjs/commonjs/generated/puppet.cjs +39 -0
  11. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +42 -0
  12. package/dist/cjs/commonjs/generated/puppet.spec.ts +19 -0
  13. package/dist/cjs/commonjs/package.json +1 -0
  14. package/dist/cjs/examples/auth/client.d.ts +3 -0
  15. package/dist/cjs/examples/auth/client.d.ts.map +1 -0
  16. package/dist/cjs/examples/auth/client.js +52 -0
  17. package/dist/cjs/examples/auth/client.js.map +1 -0
  18. package/dist/cjs/examples/auth/raw-https/client.d.ts +2 -0
  19. package/dist/cjs/examples/auth/raw-https/client.d.ts.map +1 -0
  20. package/dist/cjs/examples/auth/raw-https/client.js +21 -0
  21. package/dist/cjs/examples/auth/raw-https/client.js.map +1 -0
  22. package/dist/cjs/examples/auth/raw-https/server.d.ts +2 -0
  23. package/dist/cjs/examples/auth/raw-https/server.d.ts.map +1 -0
  24. package/dist/cjs/examples/auth/raw-https/server.js +18 -0
  25. package/dist/cjs/examples/auth/raw-https/server.js.map +1 -0
  26. package/dist/cjs/examples/auth/server.d.ts +2 -0
  27. package/dist/cjs/examples/auth/server.d.ts.map +1 -0
  28. package/dist/cjs/examples/auth/server.js +117 -0
  29. package/dist/cjs/examples/auth/server.js.map +1 -0
  30. package/dist/cjs/examples/client.d.ts +5 -0
  31. package/dist/cjs/examples/client.d.ts.map +1 -0
  32. package/dist/cjs/examples/client.js +83 -0
  33. package/dist/cjs/examples/client.js.map +1 -0
  34. package/dist/cjs/examples/promisify.d.ts +49 -0
  35. package/dist/cjs/examples/promisify.d.ts.map +1 -0
  36. package/dist/cjs/examples/promisify.js +6 -0
  37. package/dist/cjs/examples/promisify.js.map +1 -0
  38. package/dist/cjs/examples/server.d.ts +2 -0
  39. package/dist/cjs/examples/server.d.ts.map +1 -0
  40. package/dist/cjs/examples/server.js +83 -0
  41. package/dist/cjs/examples/server.js.map +1 -0
  42. package/dist/cjs/out/google/api/annotations_grpc_pb.js +1 -0
  43. package/dist/cjs/out/google/api/annotations_pb.d.ts +9 -0
  44. package/dist/cjs/out/google/api/annotations_pb.js +48 -0
  45. package/dist/cjs/out/google/api/annotations_pb_service.d.ts +3 -0
  46. package/dist/cjs/out/google/api/annotations_pb_service.js +3 -0
  47. package/dist/cjs/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
  48. package/dist/cjs/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
  49. package/dist/cjs/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
  50. package/dist/cjs/out/google/api/health_check/v1/health_check_pb.js +333 -0
  51. package/dist/cjs/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
  52. package/dist/cjs/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
  53. package/dist/cjs/out/google/api/http_grpc_pb.js +1 -0
  54. package/dist/cjs/out/google/api/http_pb.d.ts +136 -0
  55. package/dist/cjs/out/google/api/http_pb.js +1006 -0
  56. package/dist/cjs/out/google/api/http_pb_service.d.ts +3 -0
  57. package/dist/cjs/out/google/api/http_pb_service.js +3 -0
  58. package/dist/cjs/out/package.json +1 -0
  59. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
  60. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
  61. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
  62. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  63. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  64. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
  65. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
  66. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
  67. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  68. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  69. package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
  70. package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
  71. package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +1368 -0
  72. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
  73. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +3 -0
  74. package/dist/cjs/out/wechaty/puppet/base_grpc_pb.js +1 -0
  75. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +224 -0
  76. package/dist/cjs/out/wechaty/puppet/base_pb.js +1624 -0
  77. package/dist/cjs/out/wechaty/puppet/base_pb_service.d.ts +3 -0
  78. package/dist/cjs/out/wechaty/puppet/base_pb_service.js +3 -0
  79. package/dist/cjs/out/wechaty/puppet/contact_grpc_pb.js +1 -0
  80. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +535 -0
  81. package/dist/cjs/out/wechaty/puppet/contact_pb.js +4013 -0
  82. package/dist/cjs/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
  83. package/dist/cjs/out/wechaty/puppet/contact_pb_service.js +3 -0
  84. package/dist/cjs/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
  85. package/dist/cjs/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
  86. package/dist/cjs/out/wechaty/puppet/download-upload_pb.js +674 -0
  87. package/dist/cjs/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
  88. package/dist/cjs/out/wechaty/puppet/download-upload_pb_service.js +3 -0
  89. package/dist/cjs/out/wechaty/puppet/event_grpc_pb.js +1 -0
  90. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +67 -0
  91. package/dist/cjs/out/wechaty/puppet/event_pb.js +347 -0
  92. package/dist/cjs/out/wechaty/puppet/event_pb_service.d.ts +3 -0
  93. package/dist/cjs/out/wechaty/puppet/event_pb_service.js +3 -0
  94. package/dist/cjs/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
  95. package/dist/cjs/out/wechaty/puppet/friendship_pb.d.ts +293 -0
  96. package/dist/cjs/out/wechaty/puppet/friendship_pb.js +2060 -0
  97. package/dist/cjs/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
  98. package/dist/cjs/out/wechaty/puppet/friendship_pb_service.js +3 -0
  99. package/dist/cjs/out/wechaty/puppet/image_grpc_pb.js +1 -0
  100. package/dist/cjs/out/wechaty/puppet/image_pb.d.ts +14 -0
  101. package/dist/cjs/out/wechaty/puppet/image_pb.js +29 -0
  102. package/dist/cjs/out/wechaty/puppet/image_pb_service.d.ts +3 -0
  103. package/dist/cjs/out/wechaty/puppet/image_pb_service.js +3 -0
  104. package/dist/cjs/out/wechaty/puppet/location_grpc_pb.js +1 -0
  105. package/dist/cjs/out/wechaty/puppet/location_pb.d.ts +41 -0
  106. package/dist/cjs/out/wechaty/puppet/location_pb.js +290 -0
  107. package/dist/cjs/out/wechaty/puppet/location_pb_service.d.ts +3 -0
  108. package/dist/cjs/out/wechaty/puppet/location_pb_service.js +3 -0
  109. package/dist/cjs/out/wechaty/puppet/message_grpc_pb.js +1 -0
  110. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +773 -0
  111. package/dist/cjs/out/wechaty/puppet/message_pb.js +5777 -0
  112. package/dist/cjs/out/wechaty/puppet/message_pb_service.d.ts +3 -0
  113. package/dist/cjs/out/wechaty/puppet/message_pb_service.js +3 -0
  114. package/dist/cjs/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
  115. package/dist/cjs/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
  116. package/dist/cjs/out/wechaty/puppet/mini-program_pb.js +410 -0
  117. package/dist/cjs/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
  118. package/dist/cjs/out/wechaty/puppet/mini-program_pb_service.js +3 -0
  119. package/dist/cjs/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
  120. package/dist/cjs/out/wechaty/puppet/referrer_pb.d.ts +29 -0
  121. package/dist/cjs/out/wechaty/puppet/referrer_pb.js +200 -0
  122. package/dist/cjs/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
  123. package/dist/cjs/out/wechaty/puppet/referrer_pb_service.js +3 -0
  124. package/dist/cjs/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
  125. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
  126. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +999 -0
  127. package/dist/cjs/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
  128. package/dist/cjs/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
  129. package/dist/cjs/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
  130. package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +107 -0
  131. package/dist/cjs/out/wechaty/puppet/room-member_pb.js +802 -0
  132. package/dist/cjs/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
  133. package/dist/cjs/out/wechaty/puppet/room-member_pb_service.js +3 -0
  134. package/dist/cjs/out/wechaty/puppet/room_grpc_pb.js +1 -0
  135. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +474 -0
  136. package/dist/cjs/out/wechaty/puppet/room_pb.js +3641 -0
  137. package/dist/cjs/out/wechaty/puppet/room_pb_service.d.ts +3 -0
  138. package/dist/cjs/out/wechaty/puppet/room_pb_service.js +3 -0
  139. package/dist/cjs/out/wechaty/puppet/tag_grpc_pb.js +1 -0
  140. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +170 -0
  141. package/dist/cjs/out/wechaty/puppet/tag_pb.js +1286 -0
  142. package/dist/cjs/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
  143. package/dist/cjs/out/wechaty/puppet/tag_pb_service.js +3 -0
  144. package/dist/cjs/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
  145. package/dist/cjs/out/wechaty/puppet/url-link_pb.d.ts +37 -0
  146. package/dist/cjs/out/wechaty/puppet/url-link_pb.js +260 -0
  147. package/dist/cjs/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
  148. package/dist/cjs/out/wechaty/puppet/url-link_pb_service.js +3 -0
  149. package/dist/cjs/out/wechaty/puppet.openapi.yaml +2386 -0
  150. package/dist/cjs/out/wechaty/puppet.swagger.json +3419 -0
  151. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
  152. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +2079 -0
  153. package/dist/cjs/out/wechaty/puppet_pb.d.ts +18 -0
  154. package/dist/cjs/out/wechaty/puppet_pb.js +43 -0
  155. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +1166 -0
  156. package/dist/cjs/out/wechaty/puppet_pb_service.js +2524 -0
  157. package/dist/cjs/package.json +3 -0
  158. package/dist/cjs/proto/wechaty/deprecated/file-box.proto +61 -0
  159. package/dist/cjs/proto/wechaty/puppet/base.proto +46 -0
  160. package/dist/cjs/proto/wechaty/puppet/contact.proto +122 -0
  161. package/dist/cjs/proto/wechaty/puppet/download-upload.proto +19 -0
  162. package/dist/cjs/proto/wechaty/puppet/event.proto +38 -0
  163. package/dist/cjs/proto/wechaty/puppet/friendship.proto +106 -0
  164. package/dist/cjs/proto/wechaty/puppet/image.proto +13 -0
  165. package/dist/cjs/proto/wechaty/puppet/location.proto +14 -0
  166. package/dist/cjs/proto/wechaty/puppet/message.proto +230 -0
  167. package/dist/cjs/proto/wechaty/puppet/mini-program.proto +18 -0
  168. package/dist/cjs/proto/wechaty/puppet/referrer.proto +16 -0
  169. package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +51 -0
  170. package/dist/cjs/proto/wechaty/puppet/room-member.proto +25 -0
  171. package/dist/cjs/proto/wechaty/puppet/room.proto +87 -0
  172. package/dist/cjs/proto/wechaty/puppet/tag.proto +43 -0
  173. package/dist/cjs/proto/wechaty/puppet/url-link.proto +13 -0
  174. package/dist/cjs/proto/wechaty/puppet.proto +505 -0
  175. package/dist/cjs/src/chunk-transformer.d.ts +24 -0
  176. package/dist/cjs/src/chunk-transformer.d.ts.map +1 -0
  177. package/dist/cjs/src/chunk-transformer.js +36 -0
  178. package/dist/cjs/src/chunk-transformer.js.map +1 -0
  179. package/dist/cjs/src/chunk-transformer.spec.d.ts +3 -0
  180. package/dist/cjs/src/chunk-transformer.spec.d.ts.map +1 -0
  181. package/dist/cjs/src/chunk-transformer.spec.js +9 -0
  182. package/dist/cjs/src/chunk-transformer.spec.js.map +1 -0
  183. package/dist/cjs/src/cjs.d.ts +5 -0
  184. package/dist/cjs/src/cjs.d.ts.map +1 -0
  185. package/dist/cjs/src/cjs.js +13 -0
  186. package/dist/cjs/src/cjs.js.map +1 -0
  187. package/dist/cjs/src/cjs.spec.d.ts +3 -0
  188. package/dist/cjs/src/cjs.spec.d.ts.map +1 -0
  189. package/dist/cjs/src/cjs.spec.js +27 -0
  190. package/dist/cjs/src/cjs.spec.js.map +1 -0
  191. package/dist/cjs/src/config.d.ts +12 -0
  192. package/dist/cjs/src/config.d.ts.map +1 -0
  193. package/dist/cjs/src/config.js +12 -0
  194. package/dist/cjs/src/config.js.map +1 -0
  195. package/dist/cjs/src/google.d.ts +8 -0
  196. package/dist/cjs/src/google.d.ts.map +1 -0
  197. package/dist/cjs/src/google.js +15 -0
  198. package/dist/cjs/src/google.js.map +1 -0
  199. package/dist/cjs/src/google.spec.d.ts +3 -0
  200. package/dist/cjs/src/google.spec.d.ts.map +1 -0
  201. package/dist/cjs/src/google.spec.js +11 -0
  202. package/dist/cjs/src/google.spec.js.map +1 -0
  203. package/dist/cjs/src/mod.d.ts +9 -0
  204. package/dist/cjs/src/mod.d.ts.map +1 -0
  205. package/dist/cjs/src/mod.js +44 -0
  206. package/dist/cjs/src/mod.js.map +1 -0
  207. package/dist/cjs/src/mod.spec.d.ts +3 -0
  208. package/dist/cjs/src/mod.spec.d.ts.map +1 -0
  209. package/dist/cjs/src/mod.spec.js +22 -0
  210. package/dist/cjs/src/mod.spec.js.map +1 -0
  211. package/dist/cjs/src/openapi.d.ts +4 -0
  212. package/dist/cjs/src/openapi.d.ts.map +1 -0
  213. package/dist/cjs/src/openapi.js +21 -0
  214. package/dist/cjs/src/openapi.js.map +1 -0
  215. package/dist/cjs/src/openapi.spec.d.ts +3 -0
  216. package/dist/cjs/src/openapi.spec.d.ts.map +1 -0
  217. package/dist/cjs/src/openapi.spec.js +20 -0
  218. package/dist/cjs/src/openapi.spec.js.map +1 -0
  219. package/dist/cjs/src/package-json.d.ts +6 -0
  220. package/dist/cjs/src/package-json.d.ts.map +1 -0
  221. package/dist/cjs/src/package-json.js +97 -0
  222. package/dist/cjs/src/package-json.js.map +1 -0
  223. package/dist/cjs/src/package-json.spec.d.ts +3 -0
  224. package/dist/cjs/src/package-json.spec.d.ts.map +1 -0
  225. package/dist/cjs/src/package-json.spec.js +10 -0
  226. package/dist/cjs/src/package-json.spec.js.map +1 -0
  227. package/dist/cjs/src/proto.d.ts +4 -0
  228. package/dist/cjs/src/proto.d.ts.map +1 -0
  229. package/dist/cjs/src/proto.js +25 -0
  230. package/dist/cjs/src/proto.js.map +1 -0
  231. package/dist/cjs/src/proto.spec.d.ts +3 -0
  232. package/dist/cjs/src/proto.spec.d.ts.map +1 -0
  233. package/dist/cjs/src/proto.spec.js +13 -0
  234. package/dist/cjs/src/proto.spec.js.map +1 -0
  235. package/dist/cjs/tests/health-check.spec.d.ts +3 -0
  236. package/dist/cjs/tests/health-check.spec.d.ts.map +1 -0
  237. package/dist/cjs/tests/health-check.spec.js +70 -0
  238. package/dist/cjs/tests/health-check.spec.js.map +1 -0
  239. package/dist/cjs/tests/integration.spec.d.ts +3 -0
  240. package/dist/cjs/tests/integration.spec.d.ts.map +1 -0
  241. package/dist/cjs/tests/integration.spec.js +111 -0
  242. package/dist/cjs/tests/integration.spec.js.map +1 -0
  243. package/dist/cjs/tests/nullable.spec.d.ts +3 -0
  244. package/dist/cjs/tests/nullable.spec.d.ts.map +1 -0
  245. package/dist/cjs/tests/nullable.spec.js +90 -0
  246. package/dist/cjs/tests/nullable.spec.js.map +1 -0
  247. package/dist/cjs/tests/puppet-server-impl.d.ts +8 -0
  248. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -0
  249. package/dist/cjs/tests/puppet-server-impl.js +310 -0
  250. package/dist/cjs/tests/puppet-server-impl.js.map +1 -0
  251. package/dist/cjs/tests/streaming.spec.d.ts +3 -0
  252. package/dist/cjs/tests/streaming.spec.d.ts.map +1 -0
  253. package/dist/cjs/tests/streaming.spec.js +8 -0
  254. package/dist/cjs/tests/streaming.spec.js.map +1 -0
  255. package/dist/esm/commonjs/README.md +15 -0
  256. package/dist/esm/commonjs/code-root.cjs +10 -0
  257. package/dist/esm/commonjs/code-root.cjs.d.ts +1 -0
  258. package/dist/esm/commonjs/code-root.spec.ts +9 -0
  259. package/dist/esm/commonjs/generated/google.cjs +9 -0
  260. package/dist/esm/commonjs/generated/google.cjs.d.ts +2 -0
  261. package/dist/esm/commonjs/generated/google.spec.ts +13 -0
  262. package/dist/esm/commonjs/generated/puppet.cjs +39 -0
  263. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +42 -0
  264. package/dist/esm/commonjs/generated/puppet.spec.ts +19 -0
  265. package/dist/esm/commonjs/package.json +1 -0
  266. package/dist/esm/examples/auth/client.d.ts +3 -0
  267. package/dist/esm/examples/auth/client.d.ts.map +1 -0
  268. package/dist/esm/examples/auth/client.js +45 -0
  269. package/dist/esm/examples/auth/client.js.map +1 -0
  270. package/dist/esm/examples/auth/raw-https/client.d.ts +2 -0
  271. package/dist/esm/examples/auth/raw-https/client.d.ts.map +1 -0
  272. package/dist/esm/examples/auth/raw-https/client.js +16 -0
  273. package/dist/esm/examples/auth/raw-https/client.js.map +1 -0
  274. package/dist/esm/examples/auth/raw-https/server.d.ts +2 -0
  275. package/dist/esm/examples/auth/raw-https/server.d.ts.map +1 -0
  276. package/dist/esm/examples/auth/raw-https/server.js +13 -0
  277. package/dist/esm/examples/auth/raw-https/server.js.map +1 -0
  278. package/dist/esm/examples/auth/server.d.ts +2 -0
  279. package/dist/esm/examples/auth/server.d.ts.map +1 -0
  280. package/dist/esm/examples/auth/server.js +112 -0
  281. package/dist/esm/examples/auth/server.js.map +1 -0
  282. package/dist/esm/examples/client.d.ts +5 -0
  283. package/dist/esm/examples/client.d.ts.map +1 -0
  284. package/dist/esm/examples/client.js +77 -0
  285. package/dist/esm/examples/client.js.map +1 -0
  286. package/dist/esm/examples/promisify.d.ts +49 -0
  287. package/dist/esm/examples/promisify.d.ts.map +1 -0
  288. package/dist/esm/examples/promisify.js +3 -0
  289. package/dist/esm/examples/promisify.js.map +1 -0
  290. package/dist/esm/examples/server.d.ts +2 -0
  291. package/dist/esm/examples/server.d.ts.map +1 -0
  292. package/dist/esm/examples/server.js +78 -0
  293. package/dist/esm/examples/server.js.map +1 -0
  294. package/dist/esm/out/google/api/annotations_grpc_pb.js +1 -0
  295. package/dist/esm/out/google/api/annotations_pb.d.ts +9 -0
  296. package/dist/esm/out/google/api/annotations_pb.js +48 -0
  297. package/dist/esm/out/google/api/annotations_pb_service.d.ts +3 -0
  298. package/dist/esm/out/google/api/annotations_pb_service.js +3 -0
  299. package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
  300. package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
  301. package/dist/esm/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
  302. package/dist/esm/out/google/api/health_check/v1/health_check_pb.js +333 -0
  303. package/dist/esm/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
  304. package/dist/esm/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
  305. package/dist/esm/out/google/api/http_grpc_pb.js +1 -0
  306. package/dist/esm/out/google/api/http_pb.d.ts +136 -0
  307. package/dist/esm/out/google/api/http_pb.js +1006 -0
  308. package/dist/esm/out/google/api/http_pb_service.d.ts +3 -0
  309. package/dist/esm/out/google/api/http_pb_service.js +3 -0
  310. package/dist/esm/out/package.json +1 -0
  311. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
  312. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
  313. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
  314. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  315. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  316. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
  317. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
  318. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
  319. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  320. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  321. package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
  322. package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
  323. package/dist/esm/out/wechaty/deprecated/file-box_pb.js +1368 -0
  324. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
  325. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +3 -0
  326. package/dist/esm/out/wechaty/puppet/base_grpc_pb.js +1 -0
  327. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +224 -0
  328. package/dist/esm/out/wechaty/puppet/base_pb.js +1624 -0
  329. package/dist/esm/out/wechaty/puppet/base_pb_service.d.ts +3 -0
  330. package/dist/esm/out/wechaty/puppet/base_pb_service.js +3 -0
  331. package/dist/esm/out/wechaty/puppet/contact_grpc_pb.js +1 -0
  332. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +535 -0
  333. package/dist/esm/out/wechaty/puppet/contact_pb.js +4013 -0
  334. package/dist/esm/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
  335. package/dist/esm/out/wechaty/puppet/contact_pb_service.js +3 -0
  336. package/dist/esm/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
  337. package/dist/esm/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
  338. package/dist/esm/out/wechaty/puppet/download-upload_pb.js +674 -0
  339. package/dist/esm/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
  340. package/dist/esm/out/wechaty/puppet/download-upload_pb_service.js +3 -0
  341. package/dist/esm/out/wechaty/puppet/event_grpc_pb.js +1 -0
  342. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +67 -0
  343. package/dist/esm/out/wechaty/puppet/event_pb.js +347 -0
  344. package/dist/esm/out/wechaty/puppet/event_pb_service.d.ts +3 -0
  345. package/dist/esm/out/wechaty/puppet/event_pb_service.js +3 -0
  346. package/dist/esm/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
  347. package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +293 -0
  348. package/dist/esm/out/wechaty/puppet/friendship_pb.js +2060 -0
  349. package/dist/esm/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
  350. package/dist/esm/out/wechaty/puppet/friendship_pb_service.js +3 -0
  351. package/dist/esm/out/wechaty/puppet/image_grpc_pb.js +1 -0
  352. package/dist/esm/out/wechaty/puppet/image_pb.d.ts +14 -0
  353. package/dist/esm/out/wechaty/puppet/image_pb.js +29 -0
  354. package/dist/esm/out/wechaty/puppet/image_pb_service.d.ts +3 -0
  355. package/dist/esm/out/wechaty/puppet/image_pb_service.js +3 -0
  356. package/dist/esm/out/wechaty/puppet/location_grpc_pb.js +1 -0
  357. package/dist/esm/out/wechaty/puppet/location_pb.d.ts +41 -0
  358. package/dist/esm/out/wechaty/puppet/location_pb.js +290 -0
  359. package/dist/esm/out/wechaty/puppet/location_pb_service.d.ts +3 -0
  360. package/dist/esm/out/wechaty/puppet/location_pb_service.js +3 -0
  361. package/dist/esm/out/wechaty/puppet/message_grpc_pb.js +1 -0
  362. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +773 -0
  363. package/dist/esm/out/wechaty/puppet/message_pb.js +5777 -0
  364. package/dist/esm/out/wechaty/puppet/message_pb_service.d.ts +3 -0
  365. package/dist/esm/out/wechaty/puppet/message_pb_service.js +3 -0
  366. package/dist/esm/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
  367. package/dist/esm/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
  368. package/dist/esm/out/wechaty/puppet/mini-program_pb.js +410 -0
  369. package/dist/esm/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
  370. package/dist/esm/out/wechaty/puppet/mini-program_pb_service.js +3 -0
  371. package/dist/esm/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
  372. package/dist/esm/out/wechaty/puppet/referrer_pb.d.ts +29 -0
  373. package/dist/esm/out/wechaty/puppet/referrer_pb.js +200 -0
  374. package/dist/esm/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
  375. package/dist/esm/out/wechaty/puppet/referrer_pb_service.js +3 -0
  376. package/dist/esm/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
  377. package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
  378. package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +999 -0
  379. package/dist/esm/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
  380. package/dist/esm/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
  381. package/dist/esm/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
  382. package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +107 -0
  383. package/dist/esm/out/wechaty/puppet/room-member_pb.js +802 -0
  384. package/dist/esm/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
  385. package/dist/esm/out/wechaty/puppet/room-member_pb_service.js +3 -0
  386. package/dist/esm/out/wechaty/puppet/room_grpc_pb.js +1 -0
  387. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +474 -0
  388. package/dist/esm/out/wechaty/puppet/room_pb.js +3641 -0
  389. package/dist/esm/out/wechaty/puppet/room_pb_service.d.ts +3 -0
  390. package/dist/esm/out/wechaty/puppet/room_pb_service.js +3 -0
  391. package/dist/esm/out/wechaty/puppet/tag_grpc_pb.js +1 -0
  392. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +170 -0
  393. package/dist/esm/out/wechaty/puppet/tag_pb.js +1286 -0
  394. package/dist/esm/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
  395. package/dist/esm/out/wechaty/puppet/tag_pb_service.js +3 -0
  396. package/dist/esm/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
  397. package/dist/esm/out/wechaty/puppet/url-link_pb.d.ts +37 -0
  398. package/dist/esm/out/wechaty/puppet/url-link_pb.js +260 -0
  399. package/dist/esm/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
  400. package/dist/esm/out/wechaty/puppet/url-link_pb_service.js +3 -0
  401. package/dist/esm/out/wechaty/puppet.openapi.yaml +2386 -0
  402. package/dist/esm/out/wechaty/puppet.swagger.json +3419 -0
  403. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
  404. package/dist/esm/out/wechaty/puppet_grpc_pb.js +2079 -0
  405. package/dist/esm/out/wechaty/puppet_pb.d.ts +18 -0
  406. package/dist/esm/out/wechaty/puppet_pb.js +43 -0
  407. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +1166 -0
  408. package/dist/esm/out/wechaty/puppet_pb_service.js +2524 -0
  409. package/dist/esm/proto/wechaty/deprecated/file-box.proto +61 -0
  410. package/dist/esm/proto/wechaty/puppet/base.proto +46 -0
  411. package/dist/esm/proto/wechaty/puppet/contact.proto +122 -0
  412. package/dist/esm/proto/wechaty/puppet/download-upload.proto +19 -0
  413. package/dist/esm/proto/wechaty/puppet/event.proto +38 -0
  414. package/dist/esm/proto/wechaty/puppet/friendship.proto +106 -0
  415. package/dist/esm/proto/wechaty/puppet/image.proto +13 -0
  416. package/dist/esm/proto/wechaty/puppet/location.proto +14 -0
  417. package/dist/esm/proto/wechaty/puppet/message.proto +230 -0
  418. package/dist/esm/proto/wechaty/puppet/mini-program.proto +18 -0
  419. package/dist/esm/proto/wechaty/puppet/referrer.proto +16 -0
  420. package/dist/esm/proto/wechaty/puppet/room-invitation.proto +51 -0
  421. package/dist/esm/proto/wechaty/puppet/room-member.proto +25 -0
  422. package/dist/esm/proto/wechaty/puppet/room.proto +87 -0
  423. package/dist/esm/proto/wechaty/puppet/tag.proto +43 -0
  424. package/dist/esm/proto/wechaty/puppet/url-link.proto +13 -0
  425. package/dist/esm/proto/wechaty/puppet.proto +505 -0
  426. package/dist/esm/src/chunk-transformer.d.ts +24 -0
  427. package/dist/esm/src/chunk-transformer.d.ts.map +1 -0
  428. package/dist/esm/src/chunk-transformer.js +32 -0
  429. package/dist/esm/src/chunk-transformer.js.map +1 -0
  430. package/dist/esm/src/chunk-transformer.spec.d.ts +3 -0
  431. package/dist/esm/src/chunk-transformer.spec.d.ts.map +1 -0
  432. package/dist/esm/src/chunk-transformer.spec.js +7 -0
  433. package/dist/esm/src/chunk-transformer.spec.js.map +1 -0
  434. package/dist/esm/src/cjs.d.ts +5 -0
  435. package/dist/esm/src/cjs.d.ts.map +1 -0
  436. package/dist/esm/src/cjs.js +5 -0
  437. package/dist/esm/src/cjs.js.map +1 -0
  438. package/dist/esm/src/cjs.spec.d.ts +3 -0
  439. package/dist/esm/src/cjs.spec.d.ts.map +1 -0
  440. package/dist/esm/src/cjs.spec.js +25 -0
  441. package/dist/esm/src/cjs.spec.js.map +1 -0
  442. package/dist/esm/src/config.d.ts +12 -0
  443. package/dist/esm/src/config.d.ts.map +1 -0
  444. package/dist/esm/src/config.js +9 -0
  445. package/dist/esm/src/config.js.map +1 -0
  446. package/dist/esm/src/google.d.ts +8 -0
  447. package/dist/esm/src/google.d.ts.map +1 -0
  448. package/dist/esm/src/google.js +8 -0
  449. package/dist/esm/src/google.js.map +1 -0
  450. package/dist/esm/src/google.spec.d.ts +3 -0
  451. package/dist/esm/src/google.spec.d.ts.map +1 -0
  452. package/dist/esm/src/google.spec.js +9 -0
  453. package/dist/esm/src/google.spec.js.map +1 -0
  454. package/dist/esm/src/mod.d.ts +9 -0
  455. package/dist/esm/src/mod.d.ts.map +1 -0
  456. package/dist/esm/src/mod.js +9 -0
  457. package/dist/esm/src/mod.js.map +1 -0
  458. package/dist/esm/src/mod.spec.d.ts +3 -0
  459. package/dist/esm/src/mod.spec.d.ts.map +1 -0
  460. package/dist/esm/src/mod.spec.js +20 -0
  461. package/dist/esm/src/mod.spec.js.map +1 -0
  462. package/dist/esm/src/openapi.d.ts +4 -0
  463. package/dist/esm/src/openapi.d.ts.map +1 -0
  464. package/dist/esm/src/openapi.js +15 -0
  465. package/dist/esm/src/openapi.js.map +1 -0
  466. package/dist/esm/src/openapi.spec.d.ts +3 -0
  467. package/dist/esm/src/openapi.spec.d.ts.map +1 -0
  468. package/dist/esm/src/openapi.spec.js +18 -0
  469. package/dist/esm/src/openapi.spec.js.map +1 -0
  470. package/dist/esm/src/package-json.d.ts +6 -0
  471. package/dist/esm/src/package-json.d.ts.map +1 -0
  472. package/dist/esm/src/package-json.js +94 -0
  473. package/dist/esm/src/package-json.js.map +1 -0
  474. package/dist/esm/src/package-json.spec.d.ts +3 -0
  475. package/dist/esm/src/package-json.spec.d.ts.map +1 -0
  476. package/dist/esm/src/package-json.spec.js +8 -0
  477. package/dist/esm/src/package-json.spec.js.map +1 -0
  478. package/dist/esm/src/proto.d.ts +4 -0
  479. package/dist/esm/src/proto.d.ts.map +1 -0
  480. package/dist/esm/src/proto.js +19 -0
  481. package/dist/esm/src/proto.js.map +1 -0
  482. package/dist/esm/src/proto.spec.d.ts +3 -0
  483. package/dist/esm/src/proto.spec.d.ts.map +1 -0
  484. package/dist/esm/src/proto.spec.js +11 -0
  485. package/dist/esm/src/proto.spec.js.map +1 -0
  486. package/dist/esm/tests/health-check.spec.d.ts +3 -0
  487. package/dist/esm/tests/health-check.spec.d.ts.map +1 -0
  488. package/dist/esm/tests/health-check.spec.js +68 -0
  489. package/dist/esm/tests/health-check.spec.js.map +1 -0
  490. package/dist/esm/tests/integration.spec.d.ts +3 -0
  491. package/dist/esm/tests/integration.spec.d.ts.map +1 -0
  492. package/dist/esm/tests/integration.spec.js +106 -0
  493. package/dist/esm/tests/integration.spec.js.map +1 -0
  494. package/dist/esm/tests/nullable.spec.d.ts +3 -0
  495. package/dist/esm/tests/nullable.spec.d.ts.map +1 -0
  496. package/dist/esm/tests/nullable.spec.js +85 -0
  497. package/dist/esm/tests/nullable.spec.js.map +1 -0
  498. package/dist/esm/tests/puppet-server-impl.d.ts +8 -0
  499. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -0
  500. package/dist/esm/tests/puppet-server-impl.js +307 -0
  501. package/dist/esm/tests/puppet-server-impl.js.map +1 -0
  502. package/dist/esm/tests/streaming.spec.d.ts +3 -0
  503. package/dist/esm/tests/streaming.spec.d.ts.map +1 -0
  504. package/dist/esm/tests/streaming.spec.js +6 -0
  505. package/dist/esm/tests/streaming.spec.js.map +1 -0
  506. package/out/google/api/annotations_grpc_pb.js +1 -0
  507. package/out/google/api/annotations_pb.d.ts +9 -0
  508. package/out/google/api/annotations_pb.js +48 -0
  509. package/out/google/api/annotations_pb_service.d.ts +3 -0
  510. package/out/google/api/annotations_pb_service.js +3 -0
  511. package/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
  512. package/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
  513. package/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
  514. package/out/google/api/health_check/v1/health_check_pb.js +333 -0
  515. package/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
  516. package/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
  517. package/out/google/api/http_grpc_pb.js +1 -0
  518. package/out/google/api/http_pb.d.ts +136 -0
  519. package/out/google/api/http_pb.js +1006 -0
  520. package/out/google/api/http_pb_service.d.ts +3 -0
  521. package/out/google/api/http_pb_service.js +3 -0
  522. package/out/package.json +1 -0
  523. package/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
  524. package/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
  525. package/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
  526. package/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  527. package/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  528. package/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
  529. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
  530. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
  531. package/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  532. package/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  533. package/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
  534. package/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
  535. package/out/wechaty/deprecated/file-box_pb.js +1368 -0
  536. package/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
  537. package/out/wechaty/deprecated/file-box_pb_service.js +3 -0
  538. package/out/wechaty/puppet/base_grpc_pb.js +1 -0
  539. package/out/wechaty/puppet/base_pb.d.ts +224 -0
  540. package/out/wechaty/puppet/base_pb.js +1624 -0
  541. package/out/wechaty/puppet/base_pb_service.d.ts +3 -0
  542. package/out/wechaty/puppet/base_pb_service.js +3 -0
  543. package/out/wechaty/puppet/contact_grpc_pb.js +1 -0
  544. package/out/wechaty/puppet/contact_pb.d.ts +535 -0
  545. package/out/wechaty/puppet/contact_pb.js +4013 -0
  546. package/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
  547. package/out/wechaty/puppet/contact_pb_service.js +3 -0
  548. package/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
  549. package/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
  550. package/out/wechaty/puppet/download-upload_pb.js +674 -0
  551. package/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
  552. package/out/wechaty/puppet/download-upload_pb_service.js +3 -0
  553. package/out/wechaty/puppet/event_grpc_pb.js +1 -0
  554. package/out/wechaty/puppet/event_pb.d.ts +67 -0
  555. package/out/wechaty/puppet/event_pb.js +347 -0
  556. package/out/wechaty/puppet/event_pb_service.d.ts +3 -0
  557. package/out/wechaty/puppet/event_pb_service.js +3 -0
  558. package/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
  559. package/out/wechaty/puppet/friendship_pb.d.ts +293 -0
  560. package/out/wechaty/puppet/friendship_pb.js +2060 -0
  561. package/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
  562. package/out/wechaty/puppet/friendship_pb_service.js +3 -0
  563. package/out/wechaty/puppet/image_grpc_pb.js +1 -0
  564. package/out/wechaty/puppet/image_pb.d.ts +14 -0
  565. package/out/wechaty/puppet/image_pb.js +29 -0
  566. package/out/wechaty/puppet/image_pb_service.d.ts +3 -0
  567. package/out/wechaty/puppet/image_pb_service.js +3 -0
  568. package/out/wechaty/puppet/location_grpc_pb.js +1 -0
  569. package/out/wechaty/puppet/location_pb.d.ts +41 -0
  570. package/out/wechaty/puppet/location_pb.js +290 -0
  571. package/out/wechaty/puppet/location_pb_service.d.ts +3 -0
  572. package/out/wechaty/puppet/location_pb_service.js +3 -0
  573. package/out/wechaty/puppet/message_grpc_pb.js +1 -0
  574. package/out/wechaty/puppet/message_pb.d.ts +773 -0
  575. package/out/wechaty/puppet/message_pb.js +5777 -0
  576. package/out/wechaty/puppet/message_pb_service.d.ts +3 -0
  577. package/out/wechaty/puppet/message_pb_service.js +3 -0
  578. package/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
  579. package/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
  580. package/out/wechaty/puppet/mini-program_pb.js +410 -0
  581. package/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
  582. package/out/wechaty/puppet/mini-program_pb_service.js +3 -0
  583. package/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
  584. package/out/wechaty/puppet/referrer_pb.d.ts +29 -0
  585. package/out/wechaty/puppet/referrer_pb.js +200 -0
  586. package/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
  587. package/out/wechaty/puppet/referrer_pb_service.js +3 -0
  588. package/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
  589. package/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
  590. package/out/wechaty/puppet/room-invitation_pb.js +999 -0
  591. package/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
  592. package/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
  593. package/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
  594. package/out/wechaty/puppet/room-member_pb.d.ts +107 -0
  595. package/out/wechaty/puppet/room-member_pb.js +802 -0
  596. package/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
  597. package/out/wechaty/puppet/room-member_pb_service.js +3 -0
  598. package/out/wechaty/puppet/room_grpc_pb.js +1 -0
  599. package/out/wechaty/puppet/room_pb.d.ts +474 -0
  600. package/out/wechaty/puppet/room_pb.js +3641 -0
  601. package/out/wechaty/puppet/room_pb_service.d.ts +3 -0
  602. package/out/wechaty/puppet/room_pb_service.js +3 -0
  603. package/out/wechaty/puppet/tag_grpc_pb.js +1 -0
  604. package/out/wechaty/puppet/tag_pb.d.ts +170 -0
  605. package/out/wechaty/puppet/tag_pb.js +1286 -0
  606. package/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
  607. package/out/wechaty/puppet/tag_pb_service.js +3 -0
  608. package/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
  609. package/out/wechaty/puppet/url-link_pb.d.ts +37 -0
  610. package/out/wechaty/puppet/url-link_pb.js +260 -0
  611. package/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
  612. package/out/wechaty/puppet/url-link_pb_service.js +3 -0
  613. package/out/wechaty/puppet.openapi.yaml +2386 -0
  614. package/out/wechaty/puppet.swagger.json +3419 -0
  615. package/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
  616. package/out/wechaty/puppet_grpc_pb.js +2079 -0
  617. package/out/wechaty/puppet_pb.d.ts +18 -0
  618. package/out/wechaty/puppet_pb.js +43 -0
  619. package/out/wechaty/puppet_pb_service.d.ts +1166 -0
  620. package/out/wechaty/puppet_pb_service.js +2524 -0
  621. package/package.json +93 -0
  622. package/src/chunk-transformer.spec.ts +18 -0
  623. package/src/chunk-transformer.ts +58 -0
  624. package/src/cjs.spec.ts +36 -0
  625. package/src/cjs.ts +10 -0
  626. package/src/config.ts +19 -0
  627. package/src/google.spec.ts +13 -0
  628. package/src/google.ts +10 -0
  629. package/src/mod.spec.ts +30 -0
  630. package/src/mod.ts +31 -0
  631. package/src/openapi.spec.ts +22 -0
  632. package/src/openapi.ts +30 -0
  633. package/src/package-json.spec.ts +10 -0
  634. package/src/package-json.ts +97 -0
  635. package/src/proto.spec.ts +16 -0
  636. package/src/proto.ts +34 -0
@@ -0,0 +1,3419 @@
1
+ {
2
+ "swagger": "2.0",
3
+ "info": {
4
+ "title": "Wechaty Puppet Service OpenAPI Specification",
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.0",
7
+ "contact": {
8
+ "name": "Wechaty",
9
+ "url": "https://github.com/wechaty/openapi",
10
+ "email": "wechaty@chatie.io"
11
+ },
12
+ "license": {
13
+ "name": "Apache-2.0",
14
+ "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
15
+ }
16
+ },
17
+ "tags": [
18
+ {
19
+ "name": "Puppet"
20
+ }
21
+ ],
22
+ "consumes": [
23
+ "application/json"
24
+ ],
25
+ "produces": [
26
+ "application/json"
27
+ ],
28
+ "paths": {
29
+ "/contacts": {
30
+ "get": {
31
+ "summary": "*\nHuan(202002): consider changing response to a stream in the future for better performance",
32
+ "operationId": "Puppet_ContactList",
33
+ "responses": {
34
+ "200": {
35
+ "description": "A successful response.",
36
+ "schema": {
37
+ "$ref": "#/definitions/puppetContactListResponse"
38
+ }
39
+ },
40
+ "default": {
41
+ "description": "An unexpected error response.",
42
+ "schema": {
43
+ "$ref": "#/definitions/rpcStatus"
44
+ }
45
+ }
46
+ },
47
+ "tags": [
48
+ "Puppet"
49
+ ]
50
+ }
51
+ },
52
+ "/contacts/-/tags/{id}": {
53
+ "delete": {
54
+ "summary": "*\nOperate Sub-Collections\n https://cloud.google.com/apis/design/design_patterns#list_sub-collections",
55
+ "operationId": "Puppet_TagContactDelete",
56
+ "responses": {
57
+ "200": {
58
+ "description": "A successful response.",
59
+ "schema": {
60
+ "$ref": "#/definitions/puppetTagContactDeleteResponse"
61
+ }
62
+ },
63
+ "default": {
64
+ "description": "An unexpected error response.",
65
+ "schema": {
66
+ "$ref": "#/definitions/rpcStatus"
67
+ }
68
+ }
69
+ },
70
+ "parameters": [
71
+ {
72
+ "name": "id",
73
+ "in": "path",
74
+ "required": true,
75
+ "type": "string"
76
+ }
77
+ ],
78
+ "tags": [
79
+ "Puppet"
80
+ ]
81
+ }
82
+ },
83
+ "/contacts/self/name/{name}": {
84
+ "put": {
85
+ "operationId": "Puppet_ContactSelfName",
86
+ "responses": {
87
+ "200": {
88
+ "description": "A successful response.",
89
+ "schema": {
90
+ "$ref": "#/definitions/puppetContactSelfNameResponse"
91
+ }
92
+ },
93
+ "default": {
94
+ "description": "An unexpected error response.",
95
+ "schema": {
96
+ "$ref": "#/definitions/rpcStatus"
97
+ }
98
+ }
99
+ },
100
+ "parameters": [
101
+ {
102
+ "name": "name",
103
+ "in": "path",
104
+ "required": true,
105
+ "type": "string"
106
+ }
107
+ ],
108
+ "tags": [
109
+ "Puppet"
110
+ ]
111
+ }
112
+ },
113
+ "/contacts/self/qrcode": {
114
+ "get": {
115
+ "summary": "*",
116
+ "description": "Contact Self",
117
+ "operationId": "Puppet_ContactSelfQRCode",
118
+ "responses": {
119
+ "200": {
120
+ "description": "A successful response.",
121
+ "schema": {
122
+ "$ref": "#/definitions/puppetContactSelfQRCodeResponse"
123
+ }
124
+ },
125
+ "default": {
126
+ "description": "An unexpected error response.",
127
+ "schema": {
128
+ "$ref": "#/definitions/rpcStatus"
129
+ }
130
+ }
131
+ },
132
+ "tags": [
133
+ "Puppet"
134
+ ]
135
+ }
136
+ },
137
+ "/contacts/self/signature": {
138
+ "put": {
139
+ "operationId": "Puppet_ContactSelfSignature",
140
+ "responses": {
141
+ "200": {
142
+ "description": "A successful response.",
143
+ "schema": {
144
+ "$ref": "#/definitions/puppetContactSelfSignatureResponse"
145
+ }
146
+ },
147
+ "default": {
148
+ "description": "An unexpected error response.",
149
+ "schema": {
150
+ "$ref": "#/definitions/rpcStatus"
151
+ }
152
+ }
153
+ },
154
+ "parameters": [
155
+ {
156
+ "name": "body",
157
+ "in": "body",
158
+ "required": true,
159
+ "schema": {
160
+ "$ref": "#/definitions/puppetContactSelfSignatureRequest"
161
+ }
162
+ }
163
+ ],
164
+ "tags": [
165
+ "Puppet"
166
+ ]
167
+ }
168
+ },
169
+ "/contacts/{contactId}/corporation-remark": {
170
+ "put": {
171
+ "operationId": "Puppet_ContactCorporationRemark",
172
+ "responses": {
173
+ "200": {
174
+ "description": "A successful response.",
175
+ "schema": {
176
+ "$ref": "#/definitions/puppetContactCorporationRemarkResponse"
177
+ }
178
+ },
179
+ "default": {
180
+ "description": "An unexpected error response.",
181
+ "schema": {
182
+ "$ref": "#/definitions/rpcStatus"
183
+ }
184
+ }
185
+ },
186
+ "parameters": [
187
+ {
188
+ "name": "contactId",
189
+ "in": "path",
190
+ "required": true,
191
+ "type": "string"
192
+ },
193
+ {
194
+ "name": "body",
195
+ "in": "body",
196
+ "required": true,
197
+ "schema": {
198
+ "type": "object",
199
+ "properties": {
200
+ "corporationRemarkStringValueDeprecated": {
201
+ "type": "string"
202
+ },
203
+ "corporationRemark": {
204
+ "type": "string"
205
+ }
206
+ }
207
+ }
208
+ }
209
+ ],
210
+ "tags": [
211
+ "Puppet"
212
+ ]
213
+ }
214
+ },
215
+ "/contacts/{contactId}/description": {
216
+ "put": {
217
+ "operationId": "Puppet_ContactDescription",
218
+ "responses": {
219
+ "200": {
220
+ "description": "A successful response.",
221
+ "schema": {
222
+ "$ref": "#/definitions/puppetContactDescriptionResponse"
223
+ }
224
+ },
225
+ "default": {
226
+ "description": "An unexpected error response.",
227
+ "schema": {
228
+ "$ref": "#/definitions/rpcStatus"
229
+ }
230
+ }
231
+ },
232
+ "parameters": [
233
+ {
234
+ "name": "contactId",
235
+ "in": "path",
236
+ "required": true,
237
+ "type": "string"
238
+ },
239
+ {
240
+ "name": "body",
241
+ "in": "body",
242
+ "required": true,
243
+ "schema": {
244
+ "type": "object",
245
+ "properties": {
246
+ "descriptionStringValueDeprecated": {
247
+ "type": "string"
248
+ },
249
+ "description": {
250
+ "type": "string"
251
+ }
252
+ }
253
+ }
254
+ }
255
+ ],
256
+ "tags": [
257
+ "Puppet"
258
+ ]
259
+ }
260
+ },
261
+ "/contacts/{contactId}/phone": {
262
+ "put": {
263
+ "operationId": "Puppet_ContactPhone",
264
+ "responses": {
265
+ "200": {
266
+ "description": "A successful response.",
267
+ "schema": {
268
+ "$ref": "#/definitions/puppetContactPhoneResponse"
269
+ }
270
+ },
271
+ "default": {
272
+ "description": "An unexpected error response.",
273
+ "schema": {
274
+ "$ref": "#/definitions/rpcStatus"
275
+ }
276
+ }
277
+ },
278
+ "parameters": [
279
+ {
280
+ "name": "contactId",
281
+ "in": "path",
282
+ "required": true,
283
+ "type": "string"
284
+ },
285
+ {
286
+ "name": "body",
287
+ "in": "body",
288
+ "required": true,
289
+ "schema": {
290
+ "type": "object",
291
+ "properties": {
292
+ "phones": {
293
+ "type": "array",
294
+ "items": {
295
+ "type": "string"
296
+ }
297
+ }
298
+ }
299
+ }
300
+ }
301
+ ],
302
+ "tags": [
303
+ "Puppet"
304
+ ]
305
+ }
306
+ },
307
+ "/contacts/{contactId}/tags": {
308
+ "get": {
309
+ "operationId": "Puppet_TagContactList",
310
+ "responses": {
311
+ "200": {
312
+ "description": "A successful response.",
313
+ "schema": {
314
+ "$ref": "#/definitions/puppetTagContactListResponse"
315
+ }
316
+ },
317
+ "default": {
318
+ "description": "An unexpected error response.",
319
+ "schema": {
320
+ "$ref": "#/definitions/rpcStatus"
321
+ }
322
+ }
323
+ },
324
+ "parameters": [
325
+ {
326
+ "name": "contactId",
327
+ "in": "path",
328
+ "required": true,
329
+ "type": "string"
330
+ },
331
+ {
332
+ "name": "contactIdStringValueDeprecated",
333
+ "description": "@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields",
334
+ "in": "query",
335
+ "required": false,
336
+ "type": "string"
337
+ }
338
+ ],
339
+ "tags": [
340
+ "Puppet"
341
+ ]
342
+ }
343
+ },
344
+ "/contacts/{contactId}/tags/{id}": {
345
+ "delete": {
346
+ "operationId": "Puppet_TagContactRemove",
347
+ "responses": {
348
+ "200": {
349
+ "description": "A successful response.",
350
+ "schema": {
351
+ "$ref": "#/definitions/puppetTagContactRemoveResponse"
352
+ }
353
+ },
354
+ "default": {
355
+ "description": "An unexpected error response.",
356
+ "schema": {
357
+ "$ref": "#/definitions/rpcStatus"
358
+ }
359
+ }
360
+ },
361
+ "parameters": [
362
+ {
363
+ "name": "contactId",
364
+ "in": "path",
365
+ "required": true,
366
+ "type": "string"
367
+ },
368
+ {
369
+ "name": "id",
370
+ "in": "path",
371
+ "required": true,
372
+ "type": "string"
373
+ }
374
+ ],
375
+ "tags": [
376
+ "Puppet"
377
+ ]
378
+ },
379
+ "put": {
380
+ "summary": "*",
381
+ "description": "Tag",
382
+ "operationId": "Puppet_TagContactAdd",
383
+ "responses": {
384
+ "200": {
385
+ "description": "A successful response.",
386
+ "schema": {
387
+ "$ref": "#/definitions/puppetTagContactAddResponse"
388
+ }
389
+ },
390
+ "default": {
391
+ "description": "An unexpected error response.",
392
+ "schema": {
393
+ "$ref": "#/definitions/rpcStatus"
394
+ }
395
+ }
396
+ },
397
+ "parameters": [
398
+ {
399
+ "name": "contactId",
400
+ "in": "path",
401
+ "required": true,
402
+ "type": "string"
403
+ },
404
+ {
405
+ "name": "id",
406
+ "in": "path",
407
+ "required": true,
408
+ "type": "string"
409
+ }
410
+ ],
411
+ "tags": [
412
+ "Puppet"
413
+ ]
414
+ }
415
+ },
416
+ "/contacts/{id}": {
417
+ "get": {
418
+ "summary": "Get a contact payload",
419
+ "description": "Contact",
420
+ "operationId": "contactPayload",
421
+ "responses": {
422
+ "200": {
423
+ "description": "Contact payload",
424
+ "schema": {
425
+ "$ref": "#/definitions/puppetContactPayloadResponse"
426
+ }
427
+ },
428
+ "default": {
429
+ "description": "An unexpected error response.",
430
+ "schema": {
431
+ "$ref": "#/definitions/rpcStatus"
432
+ }
433
+ }
434
+ },
435
+ "parameters": [
436
+ {
437
+ "name": "id",
438
+ "in": "path",
439
+ "required": true,
440
+ "type": "string"
441
+ }
442
+ ],
443
+ "tags": [
444
+ "contact"
445
+ ]
446
+ }
447
+ },
448
+ "/contacts/{id}/alias": {
449
+ "put": {
450
+ "operationId": "Puppet_ContactAlias",
451
+ "responses": {
452
+ "200": {
453
+ "description": "A successful response.",
454
+ "schema": {
455
+ "$ref": "#/definitions/puppetContactAliasResponse"
456
+ }
457
+ },
458
+ "default": {
459
+ "description": "An unexpected error response.",
460
+ "schema": {
461
+ "$ref": "#/definitions/rpcStatus"
462
+ }
463
+ }
464
+ },
465
+ "parameters": [
466
+ {
467
+ "name": "id",
468
+ "in": "path",
469
+ "required": true,
470
+ "type": "string"
471
+ },
472
+ {
473
+ "name": "body",
474
+ "in": "body",
475
+ "required": true,
476
+ "schema": {
477
+ "type": "object",
478
+ "properties": {
479
+ "aliasStringValueDeprecated": {
480
+ "type": "string",
481
+ "title": "nullable"
482
+ },
483
+ "alias": {
484
+ "type": "string"
485
+ }
486
+ }
487
+ }
488
+ }
489
+ ],
490
+ "tags": [
491
+ "Puppet"
492
+ ]
493
+ }
494
+ },
495
+ "/contacts/{id}/avatar": {
496
+ "get": {
497
+ "operationId": "Puppet_ContactAvatar",
498
+ "responses": {
499
+ "200": {
500
+ "description": "A successful response.",
501
+ "schema": {
502
+ "$ref": "#/definitions/puppetContactAvatarResponse"
503
+ }
504
+ },
505
+ "default": {
506
+ "description": "An unexpected error response.",
507
+ "schema": {
508
+ "$ref": "#/definitions/rpcStatus"
509
+ }
510
+ }
511
+ },
512
+ "parameters": [
513
+ {
514
+ "name": "id",
515
+ "in": "path",
516
+ "required": true,
517
+ "type": "string"
518
+ },
519
+ {
520
+ "name": "fileboxStringValueDeprecated",
521
+ "in": "query",
522
+ "required": false,
523
+ "type": "string"
524
+ },
525
+ {
526
+ "name": "fileBox",
527
+ "in": "query",
528
+ "required": false,
529
+ "type": "string"
530
+ }
531
+ ],
532
+ "tags": [
533
+ "Puppet"
534
+ ]
535
+ }
536
+ },
537
+ "/contacts/{id}/dirty/{type}": {
538
+ "put": {
539
+ "operationId": "Puppet_DirtyPayload2",
540
+ "responses": {
541
+ "200": {
542
+ "description": "A successful response.",
543
+ "schema": {
544
+ "$ref": "#/definitions/puppetDirtyPayloadResponse"
545
+ }
546
+ },
547
+ "default": {
548
+ "description": "An unexpected error response.",
549
+ "schema": {
550
+ "$ref": "#/definitions/rpcStatus"
551
+ }
552
+ }
553
+ },
554
+ "parameters": [
555
+ {
556
+ "name": "id",
557
+ "in": "path",
558
+ "required": true,
559
+ "type": "string"
560
+ },
561
+ {
562
+ "name": "type",
563
+ "in": "path",
564
+ "required": true,
565
+ "type": "string",
566
+ "enum": [
567
+ "PAYLOAD_TYPE_UNSPECIFIED",
568
+ "PAYLOAD_TYPE_MESSAGE",
569
+ "PAYLOAD_TYPE_CONTACT",
570
+ "PAYLOAD_TYPE_ROOM",
571
+ "PAYLOAD_TYPE_ROOM_MEMBER",
572
+ "PAYLOAD_TYPE_FRIENDSHIP"
573
+ ],
574
+ "pattern": "PAYLOADTYPECONTACT"
575
+ }
576
+ ],
577
+ "tags": [
578
+ "Puppet"
579
+ ]
580
+ }
581
+ },
582
+ "/conversations/{conversationId}/contact": {
583
+ "post": {
584
+ "operationId": "Puppet_MessageSendContact",
585
+ "responses": {
586
+ "200": {
587
+ "description": "A successful response.",
588
+ "schema": {
589
+ "$ref": "#/definitions/puppetMessageSendContactResponse"
590
+ }
591
+ },
592
+ "default": {
593
+ "description": "An unexpected error response.",
594
+ "schema": {
595
+ "$ref": "#/definitions/rpcStatus"
596
+ }
597
+ }
598
+ },
599
+ "parameters": [
600
+ {
601
+ "name": "conversationId",
602
+ "in": "path",
603
+ "required": true,
604
+ "type": "string"
605
+ },
606
+ {
607
+ "name": "body",
608
+ "in": "body",
609
+ "required": true,
610
+ "schema": {
611
+ "type": "object",
612
+ "properties": {
613
+ "contactId": {
614
+ "type": "string"
615
+ }
616
+ }
617
+ }
618
+ }
619
+ ],
620
+ "tags": [
621
+ "Puppet"
622
+ ]
623
+ }
624
+ },
625
+ "/conversations/{conversationId}/forward/{messageId}": {
626
+ "post": {
627
+ "operationId": "Puppet_MessageForward2",
628
+ "responses": {
629
+ "200": {
630
+ "description": "A successful response.",
631
+ "schema": {
632
+ "$ref": "#/definitions/puppetMessageForwardResponse"
633
+ }
634
+ },
635
+ "default": {
636
+ "description": "An unexpected error response.",
637
+ "schema": {
638
+ "$ref": "#/definitions/rpcStatus"
639
+ }
640
+ }
641
+ },
642
+ "parameters": [
643
+ {
644
+ "name": "conversationId",
645
+ "in": "path",
646
+ "required": true,
647
+ "type": "string"
648
+ },
649
+ {
650
+ "name": "messageId",
651
+ "in": "path",
652
+ "required": true,
653
+ "type": "string"
654
+ }
655
+ ],
656
+ "tags": [
657
+ "Puppet"
658
+ ]
659
+ }
660
+ },
661
+ "/conversations/{conversationId}/location": {
662
+ "post": {
663
+ "operationId": "Puppet_MessageSendLocation",
664
+ "responses": {
665
+ "200": {
666
+ "description": "A successful response.",
667
+ "schema": {
668
+ "$ref": "#/definitions/puppetMessageSendLocationResponse"
669
+ }
670
+ },
671
+ "default": {
672
+ "description": "An unexpected error response.",
673
+ "schema": {
674
+ "$ref": "#/definitions/rpcStatus"
675
+ }
676
+ }
677
+ },
678
+ "parameters": [
679
+ {
680
+ "name": "conversationId",
681
+ "in": "path",
682
+ "required": true,
683
+ "type": "string"
684
+ },
685
+ {
686
+ "name": "body",
687
+ "in": "body",
688
+ "required": true,
689
+ "schema": {
690
+ "type": "object",
691
+ "properties": {
692
+ "location": {
693
+ "$ref": "#/definitions/puppetLocationPayload"
694
+ }
695
+ }
696
+ }
697
+ }
698
+ ],
699
+ "tags": [
700
+ "Puppet"
701
+ ]
702
+ }
703
+ },
704
+ "/conversations/{conversationId}/mini-program": {
705
+ "post": {
706
+ "operationId": "Puppet_MessageSendMiniProgram",
707
+ "responses": {
708
+ "200": {
709
+ "description": "A successful response.",
710
+ "schema": {
711
+ "$ref": "#/definitions/puppetMessageSendMiniProgramResponse"
712
+ }
713
+ },
714
+ "default": {
715
+ "description": "An unexpected error response.",
716
+ "schema": {
717
+ "$ref": "#/definitions/rpcStatus"
718
+ }
719
+ }
720
+ },
721
+ "parameters": [
722
+ {
723
+ "name": "conversationId",
724
+ "in": "path",
725
+ "required": true,
726
+ "type": "string"
727
+ },
728
+ {
729
+ "name": "body",
730
+ "in": "body",
731
+ "required": true,
732
+ "schema": {
733
+ "type": "object",
734
+ "properties": {
735
+ "miniProgramDeprecated": {
736
+ "type": "string",
737
+ "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
738
+ },
739
+ "miniProgram": {
740
+ "$ref": "#/definitions/puppetMiniProgramPayload"
741
+ }
742
+ }
743
+ }
744
+ }
745
+ ],
746
+ "tags": [
747
+ "Puppet"
748
+ ]
749
+ }
750
+ },
751
+ "/conversations/{conversationId}/text": {
752
+ "post": {
753
+ "operationId": "Puppet_MessageSendText",
754
+ "responses": {
755
+ "200": {
756
+ "description": "A successful response.",
757
+ "schema": {
758
+ "$ref": "#/definitions/puppetMessageSendTextResponse"
759
+ }
760
+ },
761
+ "default": {
762
+ "description": "An unexpected error response.",
763
+ "schema": {
764
+ "$ref": "#/definitions/rpcStatus"
765
+ }
766
+ }
767
+ },
768
+ "parameters": [
769
+ {
770
+ "name": "conversationId",
771
+ "in": "path",
772
+ "required": true,
773
+ "type": "string"
774
+ },
775
+ {
776
+ "name": "body",
777
+ "in": "body",
778
+ "required": true,
779
+ "schema": {
780
+ "type": "object",
781
+ "properties": {
782
+ "text": {
783
+ "type": "string"
784
+ },
785
+ "mentionalIds": {
786
+ "type": "array",
787
+ "items": {
788
+ "type": "string"
789
+ },
790
+ "title": "Huan(202011) FIXME: Issue #99\nhttps://github.com/wechaty/grpc/issues/99"
791
+ }
792
+ }
793
+ }
794
+ }
795
+ ],
796
+ "tags": [
797
+ "Puppet"
798
+ ]
799
+ }
800
+ },
801
+ "/conversations/{conversationId}/url-link": {
802
+ "post": {
803
+ "operationId": "Puppet_MessageSendUrl",
804
+ "responses": {
805
+ "200": {
806
+ "description": "A successful response.",
807
+ "schema": {
808
+ "$ref": "#/definitions/puppetMessageSendUrlResponse"
809
+ }
810
+ },
811
+ "default": {
812
+ "description": "An unexpected error response.",
813
+ "schema": {
814
+ "$ref": "#/definitions/rpcStatus"
815
+ }
816
+ }
817
+ },
818
+ "parameters": [
819
+ {
820
+ "name": "conversationId",
821
+ "in": "path",
822
+ "required": true,
823
+ "type": "string"
824
+ },
825
+ {
826
+ "name": "body",
827
+ "in": "body",
828
+ "required": true,
829
+ "schema": {
830
+ "type": "object",
831
+ "properties": {
832
+ "urlLinkDeprecated": {
833
+ "type": "string",
834
+ "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
835
+ },
836
+ "urlLink": {
837
+ "$ref": "#/definitions/puppetUrlLinkPayload"
838
+ }
839
+ }
840
+ }
841
+ }
842
+ ],
843
+ "tags": [
844
+ "Puppet"
845
+ ]
846
+ }
847
+ },
848
+ "/ding": {
849
+ "post": {
850
+ "operationId": "Puppet_Ding",
851
+ "responses": {
852
+ "200": {
853
+ "description": "A successful response.",
854
+ "schema": {
855
+ "$ref": "#/definitions/puppetDingResponse"
856
+ }
857
+ },
858
+ "default": {
859
+ "description": "An unexpected error response.",
860
+ "schema": {
861
+ "$ref": "#/definitions/rpcStatus"
862
+ }
863
+ }
864
+ },
865
+ "parameters": [
866
+ {
867
+ "name": "body",
868
+ "in": "body",
869
+ "required": true,
870
+ "schema": {
871
+ "$ref": "#/definitions/puppetDingRequest"
872
+ }
873
+ }
874
+ ],
875
+ "tags": [
876
+ "Puppet"
877
+ ]
878
+ }
879
+ },
880
+ "/download/{id}": {
881
+ "get": {
882
+ "summary": "*\nFile/Blob download & upload",
883
+ "operationId": "Puppet_Download",
884
+ "responses": {
885
+ "200": {
886
+ "description": "A successful response.(streaming responses)",
887
+ "schema": {
888
+ "type": "object",
889
+ "properties": {
890
+ "result": {
891
+ "$ref": "#/definitions/puppetDownloadResponse"
892
+ },
893
+ "error": {
894
+ "$ref": "#/definitions/rpcStatus"
895
+ }
896
+ },
897
+ "title": "Stream result of puppetDownloadResponse"
898
+ }
899
+ },
900
+ "default": {
901
+ "description": "An unexpected error response.",
902
+ "schema": {
903
+ "$ref": "#/definitions/rpcStatus"
904
+ }
905
+ }
906
+ },
907
+ "parameters": [
908
+ {
909
+ "name": "id",
910
+ "in": "path",
911
+ "required": true,
912
+ "type": "string"
913
+ }
914
+ ],
915
+ "tags": [
916
+ "Puppet"
917
+ ]
918
+ }
919
+ },
920
+ "/events": {
921
+ "get": {
922
+ "summary": "*",
923
+ "description": "Event - Server Stream",
924
+ "operationId": "Puppet_Event",
925
+ "responses": {
926
+ "200": {
927
+ "description": "A successful response.(streaming responses)",
928
+ "schema": {
929
+ "type": "object",
930
+ "properties": {
931
+ "result": {
932
+ "$ref": "#/definitions/puppetEventResponse"
933
+ },
934
+ "error": {
935
+ "$ref": "#/definitions/rpcStatus"
936
+ }
937
+ },
938
+ "title": "Stream result of puppetEventResponse"
939
+ }
940
+ },
941
+ "default": {
942
+ "description": "An unexpected error response.",
943
+ "schema": {
944
+ "$ref": "#/definitions/rpcStatus"
945
+ }
946
+ }
947
+ },
948
+ "tags": [
949
+ "Puppet"
950
+ ]
951
+ }
952
+ },
953
+ "/friendship/accept/{id}": {
954
+ "put": {
955
+ "operationId": "Puppet_FriendshipAccept",
956
+ "responses": {
957
+ "200": {
958
+ "description": "A successful response.",
959
+ "schema": {
960
+ "$ref": "#/definitions/puppetFriendshipAcceptResponse"
961
+ }
962
+ },
963
+ "default": {
964
+ "description": "An unexpected error response.",
965
+ "schema": {
966
+ "$ref": "#/definitions/rpcStatus"
967
+ }
968
+ }
969
+ },
970
+ "parameters": [
971
+ {
972
+ "name": "id",
973
+ "in": "path",
974
+ "required": true,
975
+ "type": "string"
976
+ }
977
+ ],
978
+ "tags": [
979
+ "Puppet"
980
+ ]
981
+ }
982
+ },
983
+ "/friendship/add/{contactId}": {
984
+ "put": {
985
+ "operationId": "Puppet_FriendshipAdd",
986
+ "responses": {
987
+ "200": {
988
+ "description": "A successful response.",
989
+ "schema": {
990
+ "$ref": "#/definitions/puppetFriendshipAddResponse"
991
+ }
992
+ },
993
+ "default": {
994
+ "description": "An unexpected error response.",
995
+ "schema": {
996
+ "$ref": "#/definitions/rpcStatus"
997
+ }
998
+ }
999
+ },
1000
+ "parameters": [
1001
+ {
1002
+ "name": "contactId",
1003
+ "in": "path",
1004
+ "required": true,
1005
+ "type": "string"
1006
+ },
1007
+ {
1008
+ "name": "body",
1009
+ "in": "body",
1010
+ "required": true,
1011
+ "schema": {
1012
+ "type": "object",
1013
+ "properties": {
1014
+ "hello": {
1015
+ "type": "string"
1016
+ },
1017
+ "sourceRoomIdStringValueDeprecated": {
1018
+ "type": "string"
1019
+ },
1020
+ "sourceContactIdStringValueDeprecated": {
1021
+ "type": "string"
1022
+ },
1023
+ "referrer": {
1024
+ "$ref": "#/definitions/puppetReferrer"
1025
+ }
1026
+ }
1027
+ }
1028
+ }
1029
+ ],
1030
+ "tags": [
1031
+ "Puppet"
1032
+ ]
1033
+ }
1034
+ },
1035
+ "/friendship/search/handle/{weixin}": {
1036
+ "get": {
1037
+ "operationId": "Puppet_FriendshipSearchHandle",
1038
+ "responses": {
1039
+ "200": {
1040
+ "description": "A successful response.",
1041
+ "schema": {
1042
+ "$ref": "#/definitions/puppetFriendshipSearchHandleResponse"
1043
+ }
1044
+ },
1045
+ "default": {
1046
+ "description": "An unexpected error response.",
1047
+ "schema": {
1048
+ "$ref": "#/definitions/rpcStatus"
1049
+ }
1050
+ }
1051
+ },
1052
+ "parameters": [
1053
+ {
1054
+ "name": "weixin",
1055
+ "description": "*\nHuan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.\n so we can just rename `weixin` to `handle` here.\n\n(Huan(20220329): use `weixin` for now, until we upgrade to v2.0\n the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`\n which will causing a breaking change.\n @link https://github.com/wechaty/getting-started/issues/254\n\nTODO: rename `weixin` to `handle` in v2.0.0",
1056
+ "in": "path",
1057
+ "required": true,
1058
+ "type": "string"
1059
+ }
1060
+ ],
1061
+ "tags": [
1062
+ "Puppet"
1063
+ ]
1064
+ }
1065
+ },
1066
+ "/friendship/search/phone/{phone}": {
1067
+ "get": {
1068
+ "operationId": "Puppet_FriendshipSearchPhone",
1069
+ "responses": {
1070
+ "200": {
1071
+ "description": "A successful response.",
1072
+ "schema": {
1073
+ "$ref": "#/definitions/puppetFriendshipSearchPhoneResponse"
1074
+ }
1075
+ },
1076
+ "default": {
1077
+ "description": "An unexpected error response.",
1078
+ "schema": {
1079
+ "$ref": "#/definitions/rpcStatus"
1080
+ }
1081
+ }
1082
+ },
1083
+ "parameters": [
1084
+ {
1085
+ "name": "phone",
1086
+ "in": "path",
1087
+ "required": true,
1088
+ "type": "string"
1089
+ }
1090
+ ],
1091
+ "tags": [
1092
+ "Puppet"
1093
+ ]
1094
+ }
1095
+ },
1096
+ "/friendship/{id}": {
1097
+ "get": {
1098
+ "summary": "*",
1099
+ "description": "Friendship",
1100
+ "operationId": "Puppet_FriendshipPayload",
1101
+ "responses": {
1102
+ "200": {
1103
+ "description": "A successful response.",
1104
+ "schema": {
1105
+ "$ref": "#/definitions/puppetFriendshipPayloadResponse"
1106
+ }
1107
+ },
1108
+ "default": {
1109
+ "description": "An unexpected error response.",
1110
+ "schema": {
1111
+ "$ref": "#/definitions/rpcStatus"
1112
+ }
1113
+ }
1114
+ },
1115
+ "parameters": [
1116
+ {
1117
+ "name": "id",
1118
+ "in": "path",
1119
+ "required": true,
1120
+ "type": "string"
1121
+ },
1122
+ {
1123
+ "name": "payloadStringValueDeprecated",
1124
+ "description": "*\nHuan(202003):\n What's the reason we need belowing payload?\n We should remove it if possible.",
1125
+ "in": "query",
1126
+ "required": false,
1127
+ "type": "string"
1128
+ },
1129
+ {
1130
+ "name": "payload",
1131
+ "in": "query",
1132
+ "required": false,
1133
+ "type": "string"
1134
+ }
1135
+ ],
1136
+ "tags": [
1137
+ "Puppet"
1138
+ ]
1139
+ }
1140
+ },
1141
+ "/friendships/{id}/dirty/{type}": {
1142
+ "put": {
1143
+ "operationId": "Puppet_DirtyPayload5",
1144
+ "responses": {
1145
+ "200": {
1146
+ "description": "A successful response.",
1147
+ "schema": {
1148
+ "$ref": "#/definitions/puppetDirtyPayloadResponse"
1149
+ }
1150
+ },
1151
+ "default": {
1152
+ "description": "An unexpected error response.",
1153
+ "schema": {
1154
+ "$ref": "#/definitions/rpcStatus"
1155
+ }
1156
+ }
1157
+ },
1158
+ "parameters": [
1159
+ {
1160
+ "name": "id",
1161
+ "in": "path",
1162
+ "required": true,
1163
+ "type": "string"
1164
+ },
1165
+ {
1166
+ "name": "type",
1167
+ "in": "path",
1168
+ "required": true,
1169
+ "type": "string",
1170
+ "enum": [
1171
+ "PAYLOAD_TYPE_UNSPECIFIED",
1172
+ "PAYLOAD_TYPE_MESSAGE",
1173
+ "PAYLOAD_TYPE_CONTACT",
1174
+ "PAYLOAD_TYPE_ROOM",
1175
+ "PAYLOAD_TYPE_ROOM_MEMBER",
1176
+ "PAYLOAD_TYPE_FRIENDSHIP"
1177
+ ],
1178
+ "pattern": "PAYLOADTYPEFRIENDSHIP"
1179
+ }
1180
+ ],
1181
+ "tags": [
1182
+ "Puppet"
1183
+ ]
1184
+ }
1185
+ },
1186
+ "/logout": {
1187
+ "put": {
1188
+ "operationId": "Puppet_Logout",
1189
+ "responses": {
1190
+ "200": {
1191
+ "description": "A successful response.",
1192
+ "schema": {
1193
+ "$ref": "#/definitions/puppetLogoutResponse"
1194
+ }
1195
+ },
1196
+ "default": {
1197
+ "description": "An unexpected error response.",
1198
+ "schema": {
1199
+ "$ref": "#/definitions/rpcStatus"
1200
+ }
1201
+ }
1202
+ },
1203
+ "tags": [
1204
+ "Puppet"
1205
+ ]
1206
+ }
1207
+ },
1208
+ "/message/{id}": {
1209
+ "get": {
1210
+ "operationId": "Puppet_MessagePayload",
1211
+ "responses": {
1212
+ "200": {
1213
+ "description": "A successful response.",
1214
+ "schema": {
1215
+ "$ref": "#/definitions/puppetMessagePayloadResponse"
1216
+ }
1217
+ },
1218
+ "default": {
1219
+ "description": "An unexpected error response.",
1220
+ "schema": {
1221
+ "$ref": "#/definitions/rpcStatus"
1222
+ }
1223
+ }
1224
+ },
1225
+ "parameters": [
1226
+ {
1227
+ "name": "id",
1228
+ "in": "path",
1229
+ "required": true,
1230
+ "type": "string"
1231
+ }
1232
+ ],
1233
+ "tags": [
1234
+ "Puppet"
1235
+ ]
1236
+ }
1237
+ },
1238
+ "/message/{id}/contact": {
1239
+ "get": {
1240
+ "operationId": "Puppet_MessageContact",
1241
+ "responses": {
1242
+ "200": {
1243
+ "description": "A successful response.",
1244
+ "schema": {
1245
+ "$ref": "#/definitions/puppetMessageContactResponse"
1246
+ }
1247
+ },
1248
+ "default": {
1249
+ "description": "An unexpected error response.",
1250
+ "schema": {
1251
+ "$ref": "#/definitions/rpcStatus"
1252
+ }
1253
+ }
1254
+ },
1255
+ "parameters": [
1256
+ {
1257
+ "name": "id",
1258
+ "in": "path",
1259
+ "required": true,
1260
+ "type": "string"
1261
+ }
1262
+ ],
1263
+ "tags": [
1264
+ "Puppet"
1265
+ ]
1266
+ }
1267
+ },
1268
+ "/message/{id}/dirty/{type}": {
1269
+ "put": {
1270
+ "operationId": "Puppet_DirtyPayload",
1271
+ "responses": {
1272
+ "200": {
1273
+ "description": "A successful response.",
1274
+ "schema": {
1275
+ "$ref": "#/definitions/puppetDirtyPayloadResponse"
1276
+ }
1277
+ },
1278
+ "default": {
1279
+ "description": "An unexpected error response.",
1280
+ "schema": {
1281
+ "$ref": "#/definitions/rpcStatus"
1282
+ }
1283
+ }
1284
+ },
1285
+ "parameters": [
1286
+ {
1287
+ "name": "id",
1288
+ "in": "path",
1289
+ "required": true,
1290
+ "type": "string"
1291
+ },
1292
+ {
1293
+ "name": "type",
1294
+ "in": "path",
1295
+ "required": true,
1296
+ "type": "string",
1297
+ "enum": [
1298
+ "PAYLOAD_TYPE_UNSPECIFIED",
1299
+ "PAYLOAD_TYPE_MESSAGE",
1300
+ "PAYLOAD_TYPE_CONTACT",
1301
+ "PAYLOAD_TYPE_ROOM",
1302
+ "PAYLOAD_TYPE_ROOM_MEMBER",
1303
+ "PAYLOAD_TYPE_FRIENDSHIP"
1304
+ ],
1305
+ "pattern": "PAYLOADTYPEMESSAGE"
1306
+ }
1307
+ ],
1308
+ "tags": [
1309
+ "Puppet"
1310
+ ]
1311
+ }
1312
+ },
1313
+ "/message/{id}/location": {
1314
+ "get": {
1315
+ "operationId": "Puppet_MessageLocation",
1316
+ "responses": {
1317
+ "200": {
1318
+ "description": "A successful response.",
1319
+ "schema": {
1320
+ "$ref": "#/definitions/puppetMessageLocationResponse"
1321
+ }
1322
+ },
1323
+ "default": {
1324
+ "description": "An unexpected error response.",
1325
+ "schema": {
1326
+ "$ref": "#/definitions/rpcStatus"
1327
+ }
1328
+ }
1329
+ },
1330
+ "parameters": [
1331
+ {
1332
+ "name": "id",
1333
+ "in": "path",
1334
+ "required": true,
1335
+ "type": "string"
1336
+ }
1337
+ ],
1338
+ "tags": [
1339
+ "Puppet"
1340
+ ]
1341
+ }
1342
+ },
1343
+ "/message/{id}/mini-program": {
1344
+ "get": {
1345
+ "operationId": "Puppet_MessageMiniProgram",
1346
+ "responses": {
1347
+ "200": {
1348
+ "description": "A successful response.",
1349
+ "schema": {
1350
+ "$ref": "#/definitions/puppetMessageMiniProgramResponse"
1351
+ }
1352
+ },
1353
+ "default": {
1354
+ "description": "An unexpected error response.",
1355
+ "schema": {
1356
+ "$ref": "#/definitions/rpcStatus"
1357
+ }
1358
+ }
1359
+ },
1360
+ "parameters": [
1361
+ {
1362
+ "name": "id",
1363
+ "in": "path",
1364
+ "required": true,
1365
+ "type": "string"
1366
+ }
1367
+ ],
1368
+ "tags": [
1369
+ "Puppet"
1370
+ ]
1371
+ }
1372
+ },
1373
+ "/message/{id}/recall": {
1374
+ "put": {
1375
+ "operationId": "Puppet_MessageRecall",
1376
+ "responses": {
1377
+ "200": {
1378
+ "description": "A successful response.",
1379
+ "schema": {
1380
+ "$ref": "#/definitions/puppetMessageRecallResponse"
1381
+ }
1382
+ },
1383
+ "default": {
1384
+ "description": "An unexpected error response.",
1385
+ "schema": {
1386
+ "$ref": "#/definitions/rpcStatus"
1387
+ }
1388
+ }
1389
+ },
1390
+ "parameters": [
1391
+ {
1392
+ "name": "id",
1393
+ "in": "path",
1394
+ "required": true,
1395
+ "type": "string"
1396
+ }
1397
+ ],
1398
+ "tags": [
1399
+ "Puppet"
1400
+ ]
1401
+ }
1402
+ },
1403
+ "/message/{id}/url-link": {
1404
+ "get": {
1405
+ "operationId": "Puppet_MessageUrl",
1406
+ "responses": {
1407
+ "200": {
1408
+ "description": "A successful response.",
1409
+ "schema": {
1410
+ "$ref": "#/definitions/puppetMessageUrlResponse"
1411
+ }
1412
+ },
1413
+ "default": {
1414
+ "description": "An unexpected error response.",
1415
+ "schema": {
1416
+ "$ref": "#/definitions/rpcStatus"
1417
+ }
1418
+ }
1419
+ },
1420
+ "parameters": [
1421
+ {
1422
+ "name": "id",
1423
+ "in": "path",
1424
+ "required": true,
1425
+ "type": "string"
1426
+ }
1427
+ ],
1428
+ "tags": [
1429
+ "Puppet"
1430
+ ]
1431
+ }
1432
+ },
1433
+ "/messages/{messageId}/forward/{conversationId}": {
1434
+ "post": {
1435
+ "operationId": "Puppet_MessageForward",
1436
+ "responses": {
1437
+ "200": {
1438
+ "description": "A successful response.",
1439
+ "schema": {
1440
+ "$ref": "#/definitions/puppetMessageForwardResponse"
1441
+ }
1442
+ },
1443
+ "default": {
1444
+ "description": "An unexpected error response.",
1445
+ "schema": {
1446
+ "$ref": "#/definitions/rpcStatus"
1447
+ }
1448
+ }
1449
+ },
1450
+ "parameters": [
1451
+ {
1452
+ "name": "messageId",
1453
+ "in": "path",
1454
+ "required": true,
1455
+ "type": "string"
1456
+ },
1457
+ {
1458
+ "name": "conversationId",
1459
+ "in": "path",
1460
+ "required": true,
1461
+ "type": "string"
1462
+ }
1463
+ ],
1464
+ "tags": [
1465
+ "Puppet"
1466
+ ]
1467
+ }
1468
+ },
1469
+ "/room-invitations/{id}": {
1470
+ "get": {
1471
+ "summary": "*",
1472
+ "description": "Room Invitation",
1473
+ "operationId": "Puppet_RoomInvitationPayload",
1474
+ "responses": {
1475
+ "200": {
1476
+ "description": "A successful response.",
1477
+ "schema": {
1478
+ "$ref": "#/definitions/puppetRoomInvitationPayloadResponse"
1479
+ }
1480
+ },
1481
+ "default": {
1482
+ "description": "An unexpected error response.",
1483
+ "schema": {
1484
+ "$ref": "#/definitions/rpcStatus"
1485
+ }
1486
+ }
1487
+ },
1488
+ "parameters": [
1489
+ {
1490
+ "name": "id",
1491
+ "in": "path",
1492
+ "required": true,
1493
+ "type": "string"
1494
+ },
1495
+ {
1496
+ "name": "payloadStringValueDeprecated",
1497
+ "description": "*\nHuan(202002): `payload` should be removed.\n The puppet server should take the responsibilities\n for storing the unaccepted friend-request payload.\n\n@deprecated: use payload instead.\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields",
1498
+ "in": "query",
1499
+ "required": false,
1500
+ "type": "string"
1501
+ },
1502
+ {
1503
+ "name": "payload",
1504
+ "in": "query",
1505
+ "required": false,
1506
+ "type": "string"
1507
+ }
1508
+ ],
1509
+ "tags": [
1510
+ "Puppet"
1511
+ ]
1512
+ }
1513
+ },
1514
+ "/room-invitations/{id}/accept": {
1515
+ "put": {
1516
+ "operationId": "Puppet_RoomInvitationAccept",
1517
+ "responses": {
1518
+ "200": {
1519
+ "description": "A successful response.",
1520
+ "schema": {
1521
+ "$ref": "#/definitions/puppetRoomInvitationAcceptResponse"
1522
+ }
1523
+ },
1524
+ "default": {
1525
+ "description": "An unexpected error response.",
1526
+ "schema": {
1527
+ "$ref": "#/definitions/rpcStatus"
1528
+ }
1529
+ }
1530
+ },
1531
+ "parameters": [
1532
+ {
1533
+ "name": "id",
1534
+ "in": "path",
1535
+ "required": true,
1536
+ "type": "string"
1537
+ }
1538
+ ],
1539
+ "tags": [
1540
+ "Puppet"
1541
+ ]
1542
+ }
1543
+ },
1544
+ "/rooms": {
1545
+ "get": {
1546
+ "operationId": "Puppet_RoomList",
1547
+ "responses": {
1548
+ "200": {
1549
+ "description": "A successful response.",
1550
+ "schema": {
1551
+ "$ref": "#/definitions/puppetRoomListResponse"
1552
+ }
1553
+ },
1554
+ "default": {
1555
+ "description": "An unexpected error response.",
1556
+ "schema": {
1557
+ "$ref": "#/definitions/rpcStatus"
1558
+ }
1559
+ }
1560
+ },
1561
+ "tags": [
1562
+ "Puppet"
1563
+ ]
1564
+ },
1565
+ "post": {
1566
+ "operationId": "Puppet_RoomCreate",
1567
+ "responses": {
1568
+ "200": {
1569
+ "description": "A successful response.",
1570
+ "schema": {
1571
+ "$ref": "#/definitions/puppetRoomCreateResponse"
1572
+ }
1573
+ },
1574
+ "default": {
1575
+ "description": "An unexpected error response.",
1576
+ "schema": {
1577
+ "$ref": "#/definitions/rpcStatus"
1578
+ }
1579
+ }
1580
+ },
1581
+ "parameters": [
1582
+ {
1583
+ "name": "body",
1584
+ "in": "body",
1585
+ "required": true,
1586
+ "schema": {
1587
+ "$ref": "#/definitions/puppetRoomCreateRequest"
1588
+ }
1589
+ }
1590
+ ],
1591
+ "tags": [
1592
+ "Puppet"
1593
+ ]
1594
+ }
1595
+ },
1596
+ "/rooms/{id}": {
1597
+ "get": {
1598
+ "summary": "*",
1599
+ "description": "Room",
1600
+ "operationId": "Puppet_RoomPayload",
1601
+ "responses": {
1602
+ "200": {
1603
+ "description": "A successful response.",
1604
+ "schema": {
1605
+ "$ref": "#/definitions/puppetRoomPayloadResponse"
1606
+ }
1607
+ },
1608
+ "default": {
1609
+ "description": "An unexpected error response.",
1610
+ "schema": {
1611
+ "$ref": "#/definitions/rpcStatus"
1612
+ }
1613
+ }
1614
+ },
1615
+ "parameters": [
1616
+ {
1617
+ "name": "id",
1618
+ "in": "path",
1619
+ "required": true,
1620
+ "type": "string"
1621
+ }
1622
+ ],
1623
+ "tags": [
1624
+ "Puppet"
1625
+ ]
1626
+ },
1627
+ "delete": {
1628
+ "operationId": "Puppet_RoomQuit",
1629
+ "responses": {
1630
+ "200": {
1631
+ "description": "A successful response.",
1632
+ "schema": {
1633
+ "$ref": "#/definitions/puppetRoomQuitResponse"
1634
+ }
1635
+ },
1636
+ "default": {
1637
+ "description": "An unexpected error response.",
1638
+ "schema": {
1639
+ "$ref": "#/definitions/rpcStatus"
1640
+ }
1641
+ }
1642
+ },
1643
+ "parameters": [
1644
+ {
1645
+ "name": "id",
1646
+ "in": "path",
1647
+ "required": true,
1648
+ "type": "string"
1649
+ }
1650
+ ],
1651
+ "tags": [
1652
+ "Puppet"
1653
+ ]
1654
+ }
1655
+ },
1656
+ "/rooms/{id}/add/{contactId}": {
1657
+ "put": {
1658
+ "operationId": "Puppet_RoomAdd",
1659
+ "responses": {
1660
+ "200": {
1661
+ "description": "A successful response.",
1662
+ "schema": {
1663
+ "$ref": "#/definitions/puppetRoomAddResponse"
1664
+ }
1665
+ },
1666
+ "default": {
1667
+ "description": "An unexpected error response.",
1668
+ "schema": {
1669
+ "$ref": "#/definitions/rpcStatus"
1670
+ }
1671
+ }
1672
+ },
1673
+ "parameters": [
1674
+ {
1675
+ "name": "id",
1676
+ "in": "path",
1677
+ "required": true,
1678
+ "type": "string"
1679
+ },
1680
+ {
1681
+ "name": "contactId",
1682
+ "in": "path",
1683
+ "required": true,
1684
+ "type": "string"
1685
+ },
1686
+ {
1687
+ "name": "inviteOnly",
1688
+ "in": "query",
1689
+ "required": false,
1690
+ "type": "boolean"
1691
+ }
1692
+ ],
1693
+ "tags": [
1694
+ "Puppet"
1695
+ ]
1696
+ }
1697
+ },
1698
+ "/rooms/{id}/announcement": {
1699
+ "get": {
1700
+ "operationId": "Puppet_RoomAnnounce",
1701
+ "responses": {
1702
+ "200": {
1703
+ "description": "A successful response.",
1704
+ "schema": {
1705
+ "$ref": "#/definitions/puppetRoomAnnounceResponse"
1706
+ }
1707
+ },
1708
+ "default": {
1709
+ "description": "An unexpected error response.",
1710
+ "schema": {
1711
+ "$ref": "#/definitions/rpcStatus"
1712
+ }
1713
+ }
1714
+ },
1715
+ "parameters": [
1716
+ {
1717
+ "name": "id",
1718
+ "in": "path",
1719
+ "required": true,
1720
+ "type": "string"
1721
+ },
1722
+ {
1723
+ "name": "textStringValueDeprecated",
1724
+ "in": "query",
1725
+ "required": false,
1726
+ "type": "string"
1727
+ },
1728
+ {
1729
+ "name": "text",
1730
+ "in": "query",
1731
+ "required": false,
1732
+ "type": "string"
1733
+ }
1734
+ ],
1735
+ "tags": [
1736
+ "Puppet"
1737
+ ]
1738
+ },
1739
+ "put": {
1740
+ "operationId": "Puppet_RoomAnnounce2",
1741
+ "responses": {
1742
+ "200": {
1743
+ "description": "A successful response.",
1744
+ "schema": {
1745
+ "$ref": "#/definitions/puppetRoomAnnounceResponse"
1746
+ }
1747
+ },
1748
+ "default": {
1749
+ "description": "An unexpected error response.",
1750
+ "schema": {
1751
+ "$ref": "#/definitions/rpcStatus"
1752
+ }
1753
+ }
1754
+ },
1755
+ "parameters": [
1756
+ {
1757
+ "name": "id",
1758
+ "in": "path",
1759
+ "required": true,
1760
+ "type": "string"
1761
+ },
1762
+ {
1763
+ "name": "body",
1764
+ "in": "body",
1765
+ "required": true,
1766
+ "schema": {
1767
+ "type": "object",
1768
+ "properties": {
1769
+ "textStringValueDeprecated": {
1770
+ "type": "string"
1771
+ },
1772
+ "text": {
1773
+ "type": "string"
1774
+ }
1775
+ }
1776
+ }
1777
+ }
1778
+ ],
1779
+ "tags": [
1780
+ "Puppet"
1781
+ ]
1782
+ }
1783
+ },
1784
+ "/rooms/{id}/avatar": {
1785
+ "get": {
1786
+ "operationId": "Puppet_RoomAvatar",
1787
+ "responses": {
1788
+ "200": {
1789
+ "description": "A successful response.",
1790
+ "schema": {
1791
+ "$ref": "#/definitions/puppetRoomAvatarResponse"
1792
+ }
1793
+ },
1794
+ "default": {
1795
+ "description": "An unexpected error response.",
1796
+ "schema": {
1797
+ "$ref": "#/definitions/rpcStatus"
1798
+ }
1799
+ }
1800
+ },
1801
+ "parameters": [
1802
+ {
1803
+ "name": "id",
1804
+ "in": "path",
1805
+ "required": true,
1806
+ "type": "string"
1807
+ }
1808
+ ],
1809
+ "tags": [
1810
+ "Puppet"
1811
+ ]
1812
+ }
1813
+ },
1814
+ "/rooms/{id}/dirty/members/{type}": {
1815
+ "put": {
1816
+ "operationId": "Puppet_DirtyPayload4",
1817
+ "responses": {
1818
+ "200": {
1819
+ "description": "A successful response.",
1820
+ "schema": {
1821
+ "$ref": "#/definitions/puppetDirtyPayloadResponse"
1822
+ }
1823
+ },
1824
+ "default": {
1825
+ "description": "An unexpected error response.",
1826
+ "schema": {
1827
+ "$ref": "#/definitions/rpcStatus"
1828
+ }
1829
+ }
1830
+ },
1831
+ "parameters": [
1832
+ {
1833
+ "name": "id",
1834
+ "in": "path",
1835
+ "required": true,
1836
+ "type": "string"
1837
+ },
1838
+ {
1839
+ "name": "type",
1840
+ "in": "path",
1841
+ "required": true,
1842
+ "type": "string",
1843
+ "enum": [
1844
+ "PAYLOAD_TYPE_UNSPECIFIED",
1845
+ "PAYLOAD_TYPE_MESSAGE",
1846
+ "PAYLOAD_TYPE_CONTACT",
1847
+ "PAYLOAD_TYPE_ROOM",
1848
+ "PAYLOAD_TYPE_ROOM_MEMBER",
1849
+ "PAYLOAD_TYPE_FRIENDSHIP"
1850
+ ],
1851
+ "pattern": "PAYLOADTYPEROOMMEMBER"
1852
+ }
1853
+ ],
1854
+ "tags": [
1855
+ "Puppet"
1856
+ ]
1857
+ }
1858
+ },
1859
+ "/rooms/{id}/dirty/{type}": {
1860
+ "put": {
1861
+ "operationId": "Puppet_DirtyPayload3",
1862
+ "responses": {
1863
+ "200": {
1864
+ "description": "A successful response.",
1865
+ "schema": {
1866
+ "$ref": "#/definitions/puppetDirtyPayloadResponse"
1867
+ }
1868
+ },
1869
+ "default": {
1870
+ "description": "An unexpected error response.",
1871
+ "schema": {
1872
+ "$ref": "#/definitions/rpcStatus"
1873
+ }
1874
+ }
1875
+ },
1876
+ "parameters": [
1877
+ {
1878
+ "name": "id",
1879
+ "in": "path",
1880
+ "required": true,
1881
+ "type": "string"
1882
+ },
1883
+ {
1884
+ "name": "type",
1885
+ "in": "path",
1886
+ "required": true,
1887
+ "type": "string",
1888
+ "enum": [
1889
+ "PAYLOAD_TYPE_UNSPECIFIED",
1890
+ "PAYLOAD_TYPE_MESSAGE",
1891
+ "PAYLOAD_TYPE_CONTACT",
1892
+ "PAYLOAD_TYPE_ROOM",
1893
+ "PAYLOAD_TYPE_ROOM_MEMBER",
1894
+ "PAYLOAD_TYPE_FRIENDSHIP"
1895
+ ],
1896
+ "pattern": "PAYLOADTYPEROOM"
1897
+ }
1898
+ ],
1899
+ "tags": [
1900
+ "Puppet"
1901
+ ]
1902
+ }
1903
+ },
1904
+ "/rooms/{id}/member/{contactId}": {
1905
+ "delete": {
1906
+ "operationId": "Puppet_RoomDel",
1907
+ "responses": {
1908
+ "200": {
1909
+ "description": "A successful response.",
1910
+ "schema": {
1911
+ "$ref": "#/definitions/puppetRoomDelResponse"
1912
+ }
1913
+ },
1914
+ "default": {
1915
+ "description": "An unexpected error response.",
1916
+ "schema": {
1917
+ "$ref": "#/definitions/rpcStatus"
1918
+ }
1919
+ }
1920
+ },
1921
+ "parameters": [
1922
+ {
1923
+ "name": "id",
1924
+ "in": "path",
1925
+ "required": true,
1926
+ "type": "string"
1927
+ },
1928
+ {
1929
+ "name": "contactId",
1930
+ "in": "path",
1931
+ "required": true,
1932
+ "type": "string"
1933
+ }
1934
+ ],
1935
+ "tags": [
1936
+ "Puppet"
1937
+ ]
1938
+ }
1939
+ },
1940
+ "/rooms/{id}/members": {
1941
+ "get": {
1942
+ "operationId": "Puppet_RoomMemberList",
1943
+ "responses": {
1944
+ "200": {
1945
+ "description": "A successful response.",
1946
+ "schema": {
1947
+ "$ref": "#/definitions/puppetRoomMemberListResponse"
1948
+ }
1949
+ },
1950
+ "default": {
1951
+ "description": "An unexpected error response.",
1952
+ "schema": {
1953
+ "$ref": "#/definitions/rpcStatus"
1954
+ }
1955
+ }
1956
+ },
1957
+ "parameters": [
1958
+ {
1959
+ "name": "id",
1960
+ "in": "path",
1961
+ "required": true,
1962
+ "type": "string"
1963
+ }
1964
+ ],
1965
+ "tags": [
1966
+ "Puppet"
1967
+ ]
1968
+ }
1969
+ },
1970
+ "/rooms/{id}/members/{memberId}": {
1971
+ "get": {
1972
+ "summary": "*",
1973
+ "description": "Room Member",
1974
+ "operationId": "Puppet_RoomMemberPayload",
1975
+ "responses": {
1976
+ "200": {
1977
+ "description": "A successful response.",
1978
+ "schema": {
1979
+ "$ref": "#/definitions/puppetRoomMemberPayloadResponse"
1980
+ }
1981
+ },
1982
+ "default": {
1983
+ "description": "An unexpected error response.",
1984
+ "schema": {
1985
+ "$ref": "#/definitions/rpcStatus"
1986
+ }
1987
+ }
1988
+ },
1989
+ "parameters": [
1990
+ {
1991
+ "name": "id",
1992
+ "in": "path",
1993
+ "required": true,
1994
+ "type": "string"
1995
+ },
1996
+ {
1997
+ "name": "memberId",
1998
+ "in": "path",
1999
+ "required": true,
2000
+ "type": "string"
2001
+ }
2002
+ ],
2003
+ "tags": [
2004
+ "Puppet"
2005
+ ]
2006
+ }
2007
+ },
2008
+ "/rooms/{id}/qrcode": {
2009
+ "get": {
2010
+ "operationId": "Puppet_RoomQRCode",
2011
+ "responses": {
2012
+ "200": {
2013
+ "description": "A successful response.",
2014
+ "schema": {
2015
+ "$ref": "#/definitions/puppetRoomQRCodeResponse"
2016
+ }
2017
+ },
2018
+ "default": {
2019
+ "description": "An unexpected error response.",
2020
+ "schema": {
2021
+ "$ref": "#/definitions/rpcStatus"
2022
+ }
2023
+ }
2024
+ },
2025
+ "parameters": [
2026
+ {
2027
+ "name": "id",
2028
+ "in": "path",
2029
+ "required": true,
2030
+ "type": "string"
2031
+ }
2032
+ ],
2033
+ "tags": [
2034
+ "Puppet"
2035
+ ]
2036
+ }
2037
+ },
2038
+ "/rooms/{id}/topic": {
2039
+ "get": {
2040
+ "operationId": "Puppet_RoomTopic",
2041
+ "responses": {
2042
+ "200": {
2043
+ "description": "A successful response.",
2044
+ "schema": {
2045
+ "$ref": "#/definitions/puppetRoomTopicResponse"
2046
+ }
2047
+ },
2048
+ "default": {
2049
+ "description": "An unexpected error response.",
2050
+ "schema": {
2051
+ "$ref": "#/definitions/rpcStatus"
2052
+ }
2053
+ }
2054
+ },
2055
+ "parameters": [
2056
+ {
2057
+ "name": "id",
2058
+ "in": "path",
2059
+ "required": true,
2060
+ "type": "string"
2061
+ },
2062
+ {
2063
+ "name": "topicStringValueDeprecated",
2064
+ "in": "query",
2065
+ "required": false,
2066
+ "type": "string"
2067
+ },
2068
+ {
2069
+ "name": "topic",
2070
+ "in": "query",
2071
+ "required": false,
2072
+ "type": "string"
2073
+ }
2074
+ ],
2075
+ "tags": [
2076
+ "Puppet"
2077
+ ]
2078
+ }
2079
+ },
2080
+ "/start": {
2081
+ "put": {
2082
+ "summary": "*",
2083
+ "description": "Base",
2084
+ "operationId": "Puppet_Start",
2085
+ "responses": {
2086
+ "200": {
2087
+ "description": "A successful response.",
2088
+ "schema": {
2089
+ "$ref": "#/definitions/puppetStartResponse"
2090
+ }
2091
+ },
2092
+ "default": {
2093
+ "description": "An unexpected error response.",
2094
+ "schema": {
2095
+ "$ref": "#/definitions/rpcStatus"
2096
+ }
2097
+ }
2098
+ },
2099
+ "tags": [
2100
+ "Puppet"
2101
+ ]
2102
+ }
2103
+ },
2104
+ "/stop": {
2105
+ "put": {
2106
+ "operationId": "Puppet_Stop",
2107
+ "responses": {
2108
+ "200": {
2109
+ "description": "A successful response.",
2110
+ "schema": {
2111
+ "$ref": "#/definitions/puppetStopResponse"
2112
+ }
2113
+ },
2114
+ "default": {
2115
+ "description": "An unexpected error response.",
2116
+ "schema": {
2117
+ "$ref": "#/definitions/rpcStatus"
2118
+ }
2119
+ }
2120
+ },
2121
+ "tags": [
2122
+ "Puppet"
2123
+ ]
2124
+ }
2125
+ },
2126
+ "/upload": {
2127
+ "post": {
2128
+ "operationId": "Puppet_Upload",
2129
+ "responses": {
2130
+ "200": {
2131
+ "description": "A successful response.",
2132
+ "schema": {
2133
+ "$ref": "#/definitions/puppetUploadResponse"
2134
+ }
2135
+ },
2136
+ "default": {
2137
+ "description": "An unexpected error response.",
2138
+ "schema": {
2139
+ "$ref": "#/definitions/rpcStatus"
2140
+ }
2141
+ }
2142
+ },
2143
+ "parameters": [
2144
+ {
2145
+ "name": "body",
2146
+ "description": " (streaming inputs)",
2147
+ "in": "body",
2148
+ "required": true,
2149
+ "schema": {
2150
+ "$ref": "#/definitions/puppetUploadRequest"
2151
+ }
2152
+ }
2153
+ ],
2154
+ "tags": [
2155
+ "Puppet"
2156
+ ]
2157
+ }
2158
+ },
2159
+ "/version": {
2160
+ "get": {
2161
+ "operationId": "Puppet_Version",
2162
+ "responses": {
2163
+ "200": {
2164
+ "description": "A successful response.",
2165
+ "schema": {
2166
+ "$ref": "#/definitions/puppetVersionResponse"
2167
+ }
2168
+ },
2169
+ "default": {
2170
+ "description": "An unexpected error response.",
2171
+ "schema": {
2172
+ "$ref": "#/definitions/rpcStatus"
2173
+ }
2174
+ }
2175
+ },
2176
+ "tags": [
2177
+ "Puppet"
2178
+ ]
2179
+ }
2180
+ },
2181
+ "/wechaty.Puppet/FriendshipSearchWeixin": {
2182
+ "post": {
2183
+ "summary": "*\nHuan(202203): https://github.com/wechaty/puppet/issues/181\n@deprecated use FriendshipSearchHandle instead, will be removed in v3.0",
2184
+ "operationId": "Puppet_FriendshipSearchWeixin",
2185
+ "responses": {
2186
+ "200": {
2187
+ "description": "A successful response.",
2188
+ "schema": {
2189
+ "$ref": "#/definitions/puppetFriendshipSearchHandleResponse"
2190
+ }
2191
+ },
2192
+ "default": {
2193
+ "description": "An unexpected error response.",
2194
+ "schema": {
2195
+ "$ref": "#/definitions/rpcStatus"
2196
+ }
2197
+ }
2198
+ },
2199
+ "parameters": [
2200
+ {
2201
+ "name": "body",
2202
+ "in": "body",
2203
+ "required": true,
2204
+ "schema": {
2205
+ "$ref": "#/definitions/puppetFriendshipSearchHandleRequest"
2206
+ }
2207
+ }
2208
+ ],
2209
+ "tags": [
2210
+ "Puppet"
2211
+ ]
2212
+ }
2213
+ },
2214
+ "/wechaty.Puppet/MessageFile": {
2215
+ "post": {
2216
+ "operationId": "Puppet_MessageFile",
2217
+ "responses": {
2218
+ "200": {
2219
+ "description": "A successful response.",
2220
+ "schema": {
2221
+ "$ref": "#/definitions/puppetMessageFileResponse"
2222
+ }
2223
+ },
2224
+ "default": {
2225
+ "description": "An unexpected error response.",
2226
+ "schema": {
2227
+ "$ref": "#/definitions/rpcStatus"
2228
+ }
2229
+ }
2230
+ },
2231
+ "parameters": [
2232
+ {
2233
+ "name": "body",
2234
+ "in": "body",
2235
+ "required": true,
2236
+ "schema": {
2237
+ "$ref": "#/definitions/puppetMessageFileRequest"
2238
+ }
2239
+ }
2240
+ ],
2241
+ "tags": [
2242
+ "Puppet"
2243
+ ]
2244
+ }
2245
+ },
2246
+ "/wechaty.Puppet/MessageFileStream": {
2247
+ "post": {
2248
+ "summary": "*\nDeprecated: will be removed after Dec 31, 2022",
2249
+ "operationId": "Puppet_MessageFileStream",
2250
+ "responses": {
2251
+ "200": {
2252
+ "description": "A successful response.(streaming responses)",
2253
+ "schema": {
2254
+ "type": "object",
2255
+ "properties": {
2256
+ "result": {
2257
+ "$ref": "#/definitions/puppetMessageFileStreamResponse"
2258
+ },
2259
+ "error": {
2260
+ "$ref": "#/definitions/rpcStatus"
2261
+ }
2262
+ },
2263
+ "title": "Stream result of puppetMessageFileStreamResponse"
2264
+ }
2265
+ },
2266
+ "default": {
2267
+ "description": "An unexpected error response.",
2268
+ "schema": {
2269
+ "$ref": "#/definitions/rpcStatus"
2270
+ }
2271
+ }
2272
+ },
2273
+ "parameters": [
2274
+ {
2275
+ "name": "body",
2276
+ "in": "body",
2277
+ "required": true,
2278
+ "schema": {
2279
+ "$ref": "#/definitions/puppetMessageFileStreamRequest"
2280
+ }
2281
+ }
2282
+ ],
2283
+ "tags": [
2284
+ "Puppet"
2285
+ ]
2286
+ }
2287
+ },
2288
+ "/wechaty.Puppet/MessageImage": {
2289
+ "post": {
2290
+ "operationId": "Puppet_MessageImage",
2291
+ "responses": {
2292
+ "200": {
2293
+ "description": "A successful response.",
2294
+ "schema": {
2295
+ "$ref": "#/definitions/puppetMessageImageResponse"
2296
+ }
2297
+ },
2298
+ "default": {
2299
+ "description": "An unexpected error response.",
2300
+ "schema": {
2301
+ "$ref": "#/definitions/rpcStatus"
2302
+ }
2303
+ }
2304
+ },
2305
+ "parameters": [
2306
+ {
2307
+ "name": "body",
2308
+ "in": "body",
2309
+ "required": true,
2310
+ "schema": {
2311
+ "$ref": "#/definitions/puppetMessageImageRequest"
2312
+ }
2313
+ }
2314
+ ],
2315
+ "tags": [
2316
+ "Puppet"
2317
+ ]
2318
+ }
2319
+ },
2320
+ "/wechaty.Puppet/MessageImageStream": {
2321
+ "post": {
2322
+ "operationId": "Puppet_MessageImageStream",
2323
+ "responses": {
2324
+ "200": {
2325
+ "description": "A successful response.(streaming responses)",
2326
+ "schema": {
2327
+ "type": "object",
2328
+ "properties": {
2329
+ "result": {
2330
+ "$ref": "#/definitions/puppetMessageImageStreamResponse"
2331
+ },
2332
+ "error": {
2333
+ "$ref": "#/definitions/rpcStatus"
2334
+ }
2335
+ },
2336
+ "title": "Stream result of puppetMessageImageStreamResponse"
2337
+ }
2338
+ },
2339
+ "default": {
2340
+ "description": "An unexpected error response.",
2341
+ "schema": {
2342
+ "$ref": "#/definitions/rpcStatus"
2343
+ }
2344
+ }
2345
+ },
2346
+ "parameters": [
2347
+ {
2348
+ "name": "body",
2349
+ "in": "body",
2350
+ "required": true,
2351
+ "schema": {
2352
+ "$ref": "#/definitions/puppetMessageImageStreamRequest"
2353
+ }
2354
+ }
2355
+ ],
2356
+ "tags": [
2357
+ "Puppet"
2358
+ ]
2359
+ }
2360
+ },
2361
+ "/wechaty.Puppet/MessageSendFile": {
2362
+ "post": {
2363
+ "operationId": "Puppet_MessageSendFile",
2364
+ "responses": {
2365
+ "200": {
2366
+ "description": "A successful response.",
2367
+ "schema": {
2368
+ "$ref": "#/definitions/puppetMessageSendFileResponse"
2369
+ }
2370
+ },
2371
+ "default": {
2372
+ "description": "An unexpected error response.",
2373
+ "schema": {
2374
+ "$ref": "#/definitions/rpcStatus"
2375
+ }
2376
+ }
2377
+ },
2378
+ "parameters": [
2379
+ {
2380
+ "name": "body",
2381
+ "in": "body",
2382
+ "required": true,
2383
+ "schema": {
2384
+ "$ref": "#/definitions/puppetMessageSendFileRequest"
2385
+ }
2386
+ }
2387
+ ],
2388
+ "tags": [
2389
+ "Puppet"
2390
+ ]
2391
+ }
2392
+ },
2393
+ "/wechaty.Puppet/MessageSendFileStream": {
2394
+ "post": {
2395
+ "operationId": "Puppet_MessageSendFileStream",
2396
+ "responses": {
2397
+ "200": {
2398
+ "description": "A successful response.",
2399
+ "schema": {
2400
+ "$ref": "#/definitions/puppetMessageSendFileStreamResponse"
2401
+ }
2402
+ },
2403
+ "default": {
2404
+ "description": "An unexpected error response.",
2405
+ "schema": {
2406
+ "$ref": "#/definitions/rpcStatus"
2407
+ }
2408
+ }
2409
+ },
2410
+ "parameters": [
2411
+ {
2412
+ "name": "body",
2413
+ "description": " (streaming inputs)",
2414
+ "in": "body",
2415
+ "required": true,
2416
+ "schema": {
2417
+ "$ref": "#/definitions/puppetMessageSendFileStreamRequest"
2418
+ }
2419
+ }
2420
+ ],
2421
+ "tags": [
2422
+ "Puppet"
2423
+ ]
2424
+ }
2425
+ }
2426
+ },
2427
+ "definitions": {
2428
+ "protobufAny": {
2429
+ "type": "object",
2430
+ "properties": {
2431
+ "@type": {
2432
+ "type": "string"
2433
+ }
2434
+ },
2435
+ "additionalProperties": {}
2436
+ },
2437
+ "puppetContactAliasResponse": {
2438
+ "type": "object",
2439
+ "properties": {
2440
+ "aliasStringValueDeprecated": {
2441
+ "type": "string"
2442
+ },
2443
+ "alias": {
2444
+ "type": "string"
2445
+ }
2446
+ }
2447
+ },
2448
+ "puppetContactAvatarResponse": {
2449
+ "type": "object",
2450
+ "properties": {
2451
+ "fileboxStringValueDeprecated": {
2452
+ "type": "string"
2453
+ },
2454
+ "fileBox": {
2455
+ "type": "string"
2456
+ }
2457
+ }
2458
+ },
2459
+ "puppetContactCorporationRemarkResponse": {
2460
+ "type": "object"
2461
+ },
2462
+ "puppetContactDescriptionResponse": {
2463
+ "type": "object"
2464
+ },
2465
+ "puppetContactGender": {
2466
+ "type": "string",
2467
+ "enum": [
2468
+ "CONTACT_GENDER_UNSPECIFIED",
2469
+ "CONTACT_GENDER_MALE",
2470
+ "CONTACT_GENDER_FEMALE"
2471
+ ],
2472
+ "default": "CONTACT_GENDER_UNSPECIFIED"
2473
+ },
2474
+ "puppetContactListResponse": {
2475
+ "type": "object",
2476
+ "properties": {
2477
+ "ids": {
2478
+ "type": "array",
2479
+ "items": {
2480
+ "type": "string"
2481
+ }
2482
+ }
2483
+ }
2484
+ },
2485
+ "puppetContactPayloadResponse": {
2486
+ "type": "object",
2487
+ "properties": {
2488
+ "id": {
2489
+ "type": "string"
2490
+ },
2491
+ "gender": {
2492
+ "$ref": "#/definitions/puppetContactGender"
2493
+ },
2494
+ "type": {
2495
+ "$ref": "#/definitions/puppetContactType"
2496
+ },
2497
+ "name": {
2498
+ "type": "string"
2499
+ },
2500
+ "avatar": {
2501
+ "type": "string"
2502
+ },
2503
+ "address": {
2504
+ "type": "string"
2505
+ },
2506
+ "alias": {
2507
+ "type": "string"
2508
+ },
2509
+ "city": {
2510
+ "type": "string"
2511
+ },
2512
+ "friend": {
2513
+ "type": "boolean"
2514
+ },
2515
+ "province": {
2516
+ "type": "string"
2517
+ },
2518
+ "signature": {
2519
+ "type": "string"
2520
+ },
2521
+ "star": {
2522
+ "type": "boolean"
2523
+ },
2524
+ "weixin": {
2525
+ "type": "string",
2526
+ "description": "*\nHuan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.\n so we can just rename `weixin` to `handle` here.\n\n(Huan(20220329): use `weixin` for now, until we upgrade to v2.0\n the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`\n which will causing a breaking change.\n @link https://github.com/wechaty/getting-started/issues/254\n\nTODO: rename `weixin` to `handle` in v2.0.0"
2527
+ },
2528
+ "corporation": {
2529
+ "type": "string"
2530
+ },
2531
+ "title": {
2532
+ "type": "string"
2533
+ },
2534
+ "description": {
2535
+ "type": "string"
2536
+ },
2537
+ "coworker": {
2538
+ "type": "boolean"
2539
+ },
2540
+ "phones": {
2541
+ "type": "array",
2542
+ "items": {
2543
+ "type": "string"
2544
+ }
2545
+ }
2546
+ }
2547
+ },
2548
+ "puppetContactPhoneResponse": {
2549
+ "type": "object",
2550
+ "properties": {
2551
+ "phones": {
2552
+ "type": "array",
2553
+ "items": {
2554
+ "type": "string"
2555
+ }
2556
+ }
2557
+ }
2558
+ },
2559
+ "puppetContactSelfNameResponse": {
2560
+ "type": "object"
2561
+ },
2562
+ "puppetContactSelfQRCodeResponse": {
2563
+ "type": "object",
2564
+ "properties": {
2565
+ "qrcode": {
2566
+ "type": "string"
2567
+ }
2568
+ }
2569
+ },
2570
+ "puppetContactSelfSignatureRequest": {
2571
+ "type": "object",
2572
+ "properties": {
2573
+ "signature": {
2574
+ "type": "string"
2575
+ }
2576
+ }
2577
+ },
2578
+ "puppetContactSelfSignatureResponse": {
2579
+ "type": "object"
2580
+ },
2581
+ "puppetContactType": {
2582
+ "type": "string",
2583
+ "enum": [
2584
+ "CONTACT_TYPE_UNSPECIFIED",
2585
+ "CONTACT_TYPE_PERSONAL",
2586
+ "CONTACT_TYPE_OFFICIAL",
2587
+ "CONTACT_TYPE_CORPORATION"
2588
+ ],
2589
+ "default": "CONTACT_TYPE_UNSPECIFIED"
2590
+ },
2591
+ "puppetDingRequest": {
2592
+ "type": "object",
2593
+ "properties": {
2594
+ "data": {
2595
+ "type": "string"
2596
+ }
2597
+ }
2598
+ },
2599
+ "puppetDingResponse": {
2600
+ "type": "object"
2601
+ },
2602
+ "puppetDirtyPayloadResponse": {
2603
+ "type": "object"
2604
+ },
2605
+ "puppetDownloadResponse": {
2606
+ "type": "object",
2607
+ "properties": {
2608
+ "chunk": {
2609
+ "type": "string",
2610
+ "format": "byte"
2611
+ }
2612
+ }
2613
+ },
2614
+ "puppetEventResponse": {
2615
+ "type": "object",
2616
+ "properties": {
2617
+ "type": {
2618
+ "$ref": "#/definitions/puppetEventType"
2619
+ },
2620
+ "payload": {
2621
+ "type": "string",
2622
+ "title": "TODO: Huan(202002) consider to use a PB Map?"
2623
+ }
2624
+ }
2625
+ },
2626
+ "puppetEventType": {
2627
+ "type": "string",
2628
+ "enum": [
2629
+ "EVENT_TYPE_UNSPECIFIED",
2630
+ "EVENT_TYPE_HEARTBEAT",
2631
+ "EVENT_TYPE_MESSAGE",
2632
+ "EVENT_TYPE_DONG",
2633
+ "EVENT_TYPE_POST",
2634
+ "EVENT_TYPE_ERROR",
2635
+ "EVENT_TYPE_FRIENDSHIP",
2636
+ "EVENT_TYPE_ROOM_INVITE",
2637
+ "EVENT_TYPE_ROOM_JOIN",
2638
+ "EVENT_TYPE_ROOM_LEAVE",
2639
+ "EVENT_TYPE_ROOM_TOPIC",
2640
+ "EVENT_TYPE_SCAN",
2641
+ "EVENT_TYPE_READY",
2642
+ "EVENT_TYPE_RESET",
2643
+ "EVENT_TYPE_LOGIN",
2644
+ "EVENT_TYPE_LOGOUT",
2645
+ "EVENT_TYPE_DIRTY"
2646
+ ],
2647
+ "default": "EVENT_TYPE_UNSPECIFIED"
2648
+ },
2649
+ "puppetFileBoxChunk": {
2650
+ "type": "object",
2651
+ "properties": {
2652
+ "data": {
2653
+ "type": "string",
2654
+ "format": "byte",
2655
+ "title": "oneof payload {"
2656
+ },
2657
+ "name": {
2658
+ "type": "string"
2659
+ }
2660
+ }
2661
+ },
2662
+ "puppetFriendshipAcceptResponse": {
2663
+ "type": "object"
2664
+ },
2665
+ "puppetFriendshipAddResponse": {
2666
+ "type": "object"
2667
+ },
2668
+ "puppetFriendshipPayloadResponse": {
2669
+ "type": "object",
2670
+ "properties": {
2671
+ "id": {
2672
+ "type": "string"
2673
+ },
2674
+ "contactId": {
2675
+ "type": "string"
2676
+ },
2677
+ "hello": {
2678
+ "type": "string"
2679
+ },
2680
+ "type": {
2681
+ "$ref": "#/definitions/puppetFriendshipType"
2682
+ },
2683
+ "stranger": {
2684
+ "type": "string"
2685
+ },
2686
+ "ticket": {
2687
+ "type": "string"
2688
+ },
2689
+ "scene": {
2690
+ "$ref": "#/definitions/puppetFriendshipSceneType"
2691
+ }
2692
+ }
2693
+ },
2694
+ "puppetFriendshipSceneType": {
2695
+ "type": "string",
2696
+ "enum": [
2697
+ "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED",
2698
+ "FRIENDSHIP_SCENE_TYPE_QQ",
2699
+ "FRIENDSHIP_SCENE_TYPE_EMAIL",
2700
+ "FRIENDSHIP_SCENE_TYPE_WEIXIN",
2701
+ "FRIENDSHIP_SCENE_TYPE_QQTBD",
2702
+ "FRIENDSHIP_SCENE_TYPE_ROOM",
2703
+ "FRIENDSHIP_SCENE_TYPE_PHONE",
2704
+ "FRIENDSHIP_SCENE_TYPE_CARD",
2705
+ "FRIENDSHIP_SCENE_TYPE_LOCATION",
2706
+ "FRIENDSHIP_SCENE_TYPE_BOTTLE",
2707
+ "FRIENDSHIP_SCENE_TYPE_SHAKING",
2708
+ "FRIENDSHIP_SCENE_TYPE_QRCODE"
2709
+ ],
2710
+ "default": "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED"
2711
+ },
2712
+ "puppetFriendshipSearchHandleRequest": {
2713
+ "type": "object",
2714
+ "properties": {
2715
+ "weixin": {
2716
+ "type": "string",
2717
+ "description": "*\nHuan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.\n so we can just rename `weixin` to `handle` here.\n\n(Huan(20220329): use `weixin` for now, until we upgrade to v2.0\n the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`\n which will causing a breaking change.\n @link https://github.com/wechaty/getting-started/issues/254\n\nTODO: rename `weixin` to `handle` in v2.0.0"
2718
+ }
2719
+ },
2720
+ "description": "*\nHuan(202003): we just rename the payload message because gRPC only care about the message structure\n (and as long as we keep consistent with the old structure).\n\n @link https://github.com/wechaty/grpc/pull/173\n\nRename:\n 1. `FriendshipSearchWeixinRequest` -> `FriendshipSearchHandleRequest`\n 2. `FriendshipSearchWeixinReqsponse` -> `FriendshipSearchHandleResponse`"
2721
+ },
2722
+ "puppetFriendshipSearchHandleResponse": {
2723
+ "type": "object",
2724
+ "properties": {
2725
+ "contactIdStringValueDeprecated": {
2726
+ "type": "string",
2727
+ "title": "nullable"
2728
+ },
2729
+ "contactId": {
2730
+ "type": "string"
2731
+ }
2732
+ }
2733
+ },
2734
+ "puppetFriendshipSearchPhoneResponse": {
2735
+ "type": "object",
2736
+ "properties": {
2737
+ "contactIdStringValueDeprecated": {
2738
+ "type": "string",
2739
+ "title": "nullable"
2740
+ },
2741
+ "contactId": {
2742
+ "type": "string"
2743
+ }
2744
+ }
2745
+ },
2746
+ "puppetFriendshipType": {
2747
+ "type": "string",
2748
+ "enum": [
2749
+ "FRIENDSHIP_TYPE_UNSPECIFIED",
2750
+ "FRIENDSHIP_TYPE_CONFIRM",
2751
+ "FRIENDSHIP_TYPE_RECEIVE",
2752
+ "FRIENDSHIP_TYPE_VERIFY"
2753
+ ],
2754
+ "default": "FRIENDSHIP_TYPE_UNSPECIFIED"
2755
+ },
2756
+ "puppetImageType": {
2757
+ "type": "string",
2758
+ "enum": [
2759
+ "IMAGE_TYPE_UNSPECIFIED",
2760
+ "IMAGE_TYPE_THUMBNAIL",
2761
+ "IMAGE_TYPE_HD",
2762
+ "IMAGE_TYPE_ARTWORK"
2763
+ ],
2764
+ "default": "IMAGE_TYPE_UNSPECIFIED"
2765
+ },
2766
+ "puppetLocationPayload": {
2767
+ "type": "object",
2768
+ "properties": {
2769
+ "accuracy": {
2770
+ "type": "number",
2771
+ "format": "float"
2772
+ },
2773
+ "address": {
2774
+ "type": "string"
2775
+ },
2776
+ "latitude": {
2777
+ "type": "number",
2778
+ "format": "double"
2779
+ },
2780
+ "longitude": {
2781
+ "type": "number",
2782
+ "format": "double"
2783
+ },
2784
+ "name": {
2785
+ "type": "string"
2786
+ }
2787
+ }
2788
+ },
2789
+ "puppetLogoutResponse": {
2790
+ "type": "object"
2791
+ },
2792
+ "puppetMessageContactResponse": {
2793
+ "type": "object",
2794
+ "properties": {
2795
+ "id": {
2796
+ "type": "string"
2797
+ }
2798
+ }
2799
+ },
2800
+ "puppetMessageFileRequest": {
2801
+ "type": "object",
2802
+ "properties": {
2803
+ "id": {
2804
+ "type": "string"
2805
+ }
2806
+ }
2807
+ },
2808
+ "puppetMessageFileResponse": {
2809
+ "type": "object",
2810
+ "properties": {
2811
+ "fileBox": {
2812
+ "type": "string"
2813
+ }
2814
+ }
2815
+ },
2816
+ "puppetMessageFileStreamRequest": {
2817
+ "type": "object",
2818
+ "properties": {
2819
+ "id": {
2820
+ "type": "string"
2821
+ }
2822
+ }
2823
+ },
2824
+ "puppetMessageFileStreamResponse": {
2825
+ "type": "object",
2826
+ "properties": {
2827
+ "fileBoxChunk": {
2828
+ "$ref": "#/definitions/puppetFileBoxChunk"
2829
+ }
2830
+ }
2831
+ },
2832
+ "puppetMessageForwardResponse": {
2833
+ "type": "object",
2834
+ "properties": {
2835
+ "idStringValueDeprecated": {
2836
+ "type": "string",
2837
+ "title": "*\n@deprecated: use payload instead.\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
2838
+ },
2839
+ "id": {
2840
+ "type": "string"
2841
+ }
2842
+ }
2843
+ },
2844
+ "puppetMessageImageRequest": {
2845
+ "type": "object",
2846
+ "properties": {
2847
+ "id": {
2848
+ "type": "string"
2849
+ },
2850
+ "type": {
2851
+ "$ref": "#/definitions/puppetImageType"
2852
+ }
2853
+ }
2854
+ },
2855
+ "puppetMessageImageResponse": {
2856
+ "type": "object",
2857
+ "properties": {
2858
+ "fileBox": {
2859
+ "type": "string"
2860
+ }
2861
+ }
2862
+ },
2863
+ "puppetMessageImageStreamRequest": {
2864
+ "type": "object",
2865
+ "properties": {
2866
+ "id": {
2867
+ "type": "string"
2868
+ },
2869
+ "type": {
2870
+ "$ref": "#/definitions/puppetImageType"
2871
+ }
2872
+ }
2873
+ },
2874
+ "puppetMessageImageStreamResponse": {
2875
+ "type": "object",
2876
+ "properties": {
2877
+ "fileBoxChunk": {
2878
+ "$ref": "#/definitions/puppetFileBoxChunk"
2879
+ }
2880
+ }
2881
+ },
2882
+ "puppetMessageLocationResponse": {
2883
+ "type": "object",
2884
+ "properties": {
2885
+ "location": {
2886
+ "$ref": "#/definitions/puppetLocationPayload"
2887
+ }
2888
+ }
2889
+ },
2890
+ "puppetMessageMiniProgramResponse": {
2891
+ "type": "object",
2892
+ "properties": {
2893
+ "miniProgramDeprecated": {
2894
+ "type": "string",
2895
+ "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
2896
+ },
2897
+ "miniProgram": {
2898
+ "$ref": "#/definitions/puppetMiniProgramPayload"
2899
+ }
2900
+ }
2901
+ },
2902
+ "puppetMessagePayloadResponse": {
2903
+ "type": "object",
2904
+ "properties": {
2905
+ "id": {
2906
+ "type": "string"
2907
+ },
2908
+ "filename": {
2909
+ "type": "string"
2910
+ },
2911
+ "text": {
2912
+ "type": "string"
2913
+ },
2914
+ "timestampDeprecated": {
2915
+ "type": "string",
2916
+ "format": "uint64",
2917
+ "title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
2918
+ },
2919
+ "type": {
2920
+ "$ref": "#/definitions/puppetMessageType"
2921
+ },
2922
+ "talkerId": {
2923
+ "type": "string"
2924
+ },
2925
+ "roomId": {
2926
+ "type": "string"
2927
+ },
2928
+ "listenerId": {
2929
+ "type": "string"
2930
+ },
2931
+ "mentionIds": {
2932
+ "type": "array",
2933
+ "items": {
2934
+ "type": "string"
2935
+ }
2936
+ },
2937
+ "receiveTime": {
2938
+ "type": "string",
2939
+ "format": "date-time"
2940
+ }
2941
+ }
2942
+ },
2943
+ "puppetMessageRecallResponse": {
2944
+ "type": "object",
2945
+ "properties": {
2946
+ "success": {
2947
+ "type": "boolean"
2948
+ }
2949
+ }
2950
+ },
2951
+ "puppetMessageSendContactResponse": {
2952
+ "type": "object",
2953
+ "properties": {
2954
+ "idStringValueDeprecated": {
2955
+ "type": "string",
2956
+ "title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
2957
+ },
2958
+ "id": {
2959
+ "type": "string"
2960
+ }
2961
+ }
2962
+ },
2963
+ "puppetMessageSendFileRequest": {
2964
+ "type": "object",
2965
+ "properties": {
2966
+ "conversationId": {
2967
+ "type": "string"
2968
+ },
2969
+ "fileBox": {
2970
+ "type": "string"
2971
+ }
2972
+ }
2973
+ },
2974
+ "puppetMessageSendFileResponse": {
2975
+ "type": "object",
2976
+ "properties": {
2977
+ "idStringValueDeprecated": {
2978
+ "type": "string",
2979
+ "title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
2980
+ },
2981
+ "id": {
2982
+ "type": "string"
2983
+ }
2984
+ }
2985
+ },
2986
+ "puppetMessageSendFileStreamRequest": {
2987
+ "type": "object",
2988
+ "properties": {
2989
+ "conversationId": {
2990
+ "type": "string",
2991
+ "title": "oneof payload {"
2992
+ },
2993
+ "fileBoxChunk": {
2994
+ "$ref": "#/definitions/puppetFileBoxChunk"
2995
+ }
2996
+ }
2997
+ },
2998
+ "puppetMessageSendFileStreamResponse": {
2999
+ "type": "object",
3000
+ "properties": {
3001
+ "idStringValueDeprecated": {
3002
+ "type": "string",
3003
+ "title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
3004
+ },
3005
+ "id": {
3006
+ "type": "string"
3007
+ }
3008
+ }
3009
+ },
3010
+ "puppetMessageSendLocationResponse": {
3011
+ "type": "object",
3012
+ "properties": {
3013
+ "id": {
3014
+ "type": "string",
3015
+ "title": "*\nHuan(202110): we will not use wrappers any more by following the Google Style Guide:\n If not using optional would add complexity or ambiguity, then use optional primitive fields,\n Wrapper types must not be used going forward.\n — Optional Primitive Fields (https://cloud.google.com/apis/design/design_patterns.md#optional-primitive-fields)"
3016
+ }
3017
+ }
3018
+ },
3019
+ "puppetMessageSendMiniProgramResponse": {
3020
+ "type": "object",
3021
+ "properties": {
3022
+ "idStringValueDeprecated": {
3023
+ "type": "string",
3024
+ "title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
3025
+ },
3026
+ "id": {
3027
+ "type": "string"
3028
+ }
3029
+ }
3030
+ },
3031
+ "puppetMessageSendTextResponse": {
3032
+ "type": "object",
3033
+ "properties": {
3034
+ "idStringValueDeprecated": {
3035
+ "type": "string",
3036
+ "title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
3037
+ },
3038
+ "id": {
3039
+ "type": "string"
3040
+ }
3041
+ }
3042
+ },
3043
+ "puppetMessageSendUrlResponse": {
3044
+ "type": "object",
3045
+ "properties": {
3046
+ "idStringValueDeprecated": {
3047
+ "type": "string",
3048
+ "title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
3049
+ },
3050
+ "id": {
3051
+ "type": "string"
3052
+ }
3053
+ }
3054
+ },
3055
+ "puppetMessageType": {
3056
+ "type": "string",
3057
+ "enum": [
3058
+ "MESSAGE_TYPE_UNSPECIFIED",
3059
+ "MESSAGE_TYPE_ATTACHMENT",
3060
+ "MESSAGE_TYPE_AUDIO",
3061
+ "MESSAGE_TYPE_CONTACT",
3062
+ "MESSAGE_TYPE_EMOTICON",
3063
+ "MESSAGE_TYPE_IMAGE",
3064
+ "MESSAGE_TYPE_TEXT",
3065
+ "MESSAGE_TYPE_VIDEO",
3066
+ "MESSAGE_TYPE_CHAT_HISTORY",
3067
+ "MESSAGE_TYPE_LOCATION",
3068
+ "MESSAGE_TYPE_MINI_PROGRAM",
3069
+ "MESSAGE_TYPE_TRANSFER",
3070
+ "MESSAGE_TYPE_RED_ENVELOPE",
3071
+ "MESSAGE_TYPE_RECALLED",
3072
+ "MESSAGE_TYPE_URL"
3073
+ ],
3074
+ "default": "MESSAGE_TYPE_UNSPECIFIED"
3075
+ },
3076
+ "puppetMessageUrlResponse": {
3077
+ "type": "object",
3078
+ "properties": {
3079
+ "urlLinkDeprecated": {
3080
+ "type": "string",
3081
+ "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
3082
+ },
3083
+ "urlLink": {
3084
+ "$ref": "#/definitions/puppetUrlLinkPayload"
3085
+ }
3086
+ }
3087
+ },
3088
+ "puppetMiniProgramPayload": {
3089
+ "type": "object",
3090
+ "properties": {
3091
+ "appid": {
3092
+ "type": "string"
3093
+ },
3094
+ "description": {
3095
+ "type": "string"
3096
+ },
3097
+ "pagePath": {
3098
+ "type": "string"
3099
+ },
3100
+ "iconUrl": {
3101
+ "type": "string"
3102
+ },
3103
+ "shareId": {
3104
+ "type": "string"
3105
+ },
3106
+ "thumbUrl": {
3107
+ "type": "string"
3108
+ },
3109
+ "title": {
3110
+ "type": "string"
3111
+ },
3112
+ "username": {
3113
+ "type": "string"
3114
+ },
3115
+ "thumbKey": {
3116
+ "type": "string"
3117
+ }
3118
+ }
3119
+ },
3120
+ "puppetPayloadType": {
3121
+ "type": "string",
3122
+ "enum": [
3123
+ "PAYLOAD_TYPE_UNSPECIFIED",
3124
+ "PAYLOAD_TYPE_MESSAGE",
3125
+ "PAYLOAD_TYPE_CONTACT",
3126
+ "PAYLOAD_TYPE_ROOM",
3127
+ "PAYLOAD_TYPE_ROOM_MEMBER",
3128
+ "PAYLOAD_TYPE_FRIENDSHIP"
3129
+ ],
3130
+ "default": "PAYLOAD_TYPE_UNSPECIFIED"
3131
+ },
3132
+ "puppetReferrer": {
3133
+ "type": "object",
3134
+ "properties": {
3135
+ "contactId": {
3136
+ "type": "string"
3137
+ },
3138
+ "roomId": {
3139
+ "type": "string"
3140
+ }
3141
+ },
3142
+ "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"
3143
+ },
3144
+ "puppetRoomAddResponse": {
3145
+ "type": "object"
3146
+ },
3147
+ "puppetRoomAnnounceResponse": {
3148
+ "type": "object",
3149
+ "properties": {
3150
+ "textStringValueDeprecated": {
3151
+ "type": "string"
3152
+ },
3153
+ "text": {
3154
+ "type": "string"
3155
+ }
3156
+ }
3157
+ },
3158
+ "puppetRoomAvatarResponse": {
3159
+ "type": "object",
3160
+ "properties": {
3161
+ "fileBox": {
3162
+ "type": "string"
3163
+ }
3164
+ }
3165
+ },
3166
+ "puppetRoomCreateRequest": {
3167
+ "type": "object",
3168
+ "properties": {
3169
+ "contactIds": {
3170
+ "type": "array",
3171
+ "items": {
3172
+ "type": "string"
3173
+ }
3174
+ },
3175
+ "topic": {
3176
+ "type": "string"
3177
+ }
3178
+ }
3179
+ },
3180
+ "puppetRoomCreateResponse": {
3181
+ "type": "object",
3182
+ "properties": {
3183
+ "id": {
3184
+ "type": "string"
3185
+ }
3186
+ }
3187
+ },
3188
+ "puppetRoomDelResponse": {
3189
+ "type": "object"
3190
+ },
3191
+ "puppetRoomInvitationAcceptResponse": {
3192
+ "type": "object"
3193
+ },
3194
+ "puppetRoomInvitationPayloadResponse": {
3195
+ "type": "object",
3196
+ "properties": {
3197
+ "id": {
3198
+ "type": "string"
3199
+ },
3200
+ "inviterId": {
3201
+ "type": "string"
3202
+ },
3203
+ "topic": {
3204
+ "type": "string"
3205
+ },
3206
+ "memberCount": {
3207
+ "type": "integer",
3208
+ "format": "int32"
3209
+ },
3210
+ "memberIds": {
3211
+ "type": "array",
3212
+ "items": {
3213
+ "type": "string"
3214
+ }
3215
+ },
3216
+ "timestampUint64Deprecated": {
3217
+ "type": "string",
3218
+ "format": "uint64",
3219
+ "title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
3220
+ },
3221
+ "avatar": {
3222
+ "type": "string"
3223
+ },
3224
+ "invitation": {
3225
+ "type": "string"
3226
+ },
3227
+ "receiverId": {
3228
+ "type": "string"
3229
+ },
3230
+ "receiveTime": {
3231
+ "type": "string",
3232
+ "format": "date-time"
3233
+ }
3234
+ }
3235
+ },
3236
+ "puppetRoomListResponse": {
3237
+ "type": "object",
3238
+ "properties": {
3239
+ "ids": {
3240
+ "type": "array",
3241
+ "items": {
3242
+ "type": "string"
3243
+ }
3244
+ }
3245
+ }
3246
+ },
3247
+ "puppetRoomMemberListResponse": {
3248
+ "type": "object",
3249
+ "properties": {
3250
+ "memberIds": {
3251
+ "type": "array",
3252
+ "items": {
3253
+ "type": "string"
3254
+ }
3255
+ }
3256
+ }
3257
+ },
3258
+ "puppetRoomMemberPayloadResponse": {
3259
+ "type": "object",
3260
+ "properties": {
3261
+ "id": {
3262
+ "type": "string"
3263
+ },
3264
+ "roomAlias": {
3265
+ "type": "string"
3266
+ },
3267
+ "inviterId": {
3268
+ "type": "string"
3269
+ },
3270
+ "avatar": {
3271
+ "type": "string"
3272
+ },
3273
+ "name": {
3274
+ "type": "string"
3275
+ }
3276
+ }
3277
+ },
3278
+ "puppetRoomPayloadResponse": {
3279
+ "type": "object",
3280
+ "properties": {
3281
+ "id": {
3282
+ "type": "string"
3283
+ },
3284
+ "topic": {
3285
+ "type": "string"
3286
+ },
3287
+ "avatar": {
3288
+ "type": "string"
3289
+ },
3290
+ "ownerId": {
3291
+ "type": "string"
3292
+ },
3293
+ "adminIds": {
3294
+ "type": "array",
3295
+ "items": {
3296
+ "type": "string"
3297
+ }
3298
+ },
3299
+ "memberIds": {
3300
+ "type": "array",
3301
+ "items": {
3302
+ "type": "string"
3303
+ }
3304
+ },
3305
+ "handle": {
3306
+ "type": "string"
3307
+ }
3308
+ }
3309
+ },
3310
+ "puppetRoomQRCodeResponse": {
3311
+ "type": "object",
3312
+ "properties": {
3313
+ "qrcode": {
3314
+ "type": "string"
3315
+ }
3316
+ }
3317
+ },
3318
+ "puppetRoomQuitResponse": {
3319
+ "type": "object"
3320
+ },
3321
+ "puppetRoomTopicResponse": {
3322
+ "type": "object",
3323
+ "properties": {
3324
+ "topicStringValueDeprecated": {
3325
+ "type": "string"
3326
+ },
3327
+ "topic": {
3328
+ "type": "string"
3329
+ }
3330
+ }
3331
+ },
3332
+ "puppetStartResponse": {
3333
+ "type": "object"
3334
+ },
3335
+ "puppetStopResponse": {
3336
+ "type": "object"
3337
+ },
3338
+ "puppetTagContactAddResponse": {
3339
+ "type": "object"
3340
+ },
3341
+ "puppetTagContactDeleteResponse": {
3342
+ "type": "object"
3343
+ },
3344
+ "puppetTagContactListResponse": {
3345
+ "type": "object",
3346
+ "properties": {
3347
+ "ids": {
3348
+ "type": "array",
3349
+ "items": {
3350
+ "type": "string"
3351
+ }
3352
+ }
3353
+ }
3354
+ },
3355
+ "puppetTagContactRemoveResponse": {
3356
+ "type": "object"
3357
+ },
3358
+ "puppetUploadRequest": {
3359
+ "type": "object",
3360
+ "properties": {
3361
+ "chunk": {
3362
+ "type": "string",
3363
+ "format": "byte"
3364
+ }
3365
+ }
3366
+ },
3367
+ "puppetUploadResponse": {
3368
+ "type": "object",
3369
+ "properties": {
3370
+ "id": {
3371
+ "type": "string"
3372
+ }
3373
+ }
3374
+ },
3375
+ "puppetUrlLinkPayload": {
3376
+ "type": "object",
3377
+ "properties": {
3378
+ "description": {
3379
+ "type": "string"
3380
+ },
3381
+ "thumbnailUrl": {
3382
+ "type": "string"
3383
+ },
3384
+ "title": {
3385
+ "type": "string"
3386
+ },
3387
+ "url": {
3388
+ "type": "string"
3389
+ }
3390
+ }
3391
+ },
3392
+ "puppetVersionResponse": {
3393
+ "type": "object",
3394
+ "properties": {
3395
+ "version": {
3396
+ "type": "string"
3397
+ }
3398
+ }
3399
+ },
3400
+ "rpcStatus": {
3401
+ "type": "object",
3402
+ "properties": {
3403
+ "code": {
3404
+ "type": "integer",
3405
+ "format": "int32"
3406
+ },
3407
+ "message": {
3408
+ "type": "string"
3409
+ },
3410
+ "details": {
3411
+ "type": "array",
3412
+ "items": {
3413
+ "$ref": "#/definitions/protobufAny"
3414
+ }
3415
+ }
3416
+ }
3417
+ }
3418
+ }
3419
+ }