@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.
- package/LICENSE +201 -0
- package/README.md +351 -0
- package/dist/cjs/commonjs/README.md +15 -0
- package/dist/cjs/commonjs/code-root.cjs +10 -0
- package/dist/cjs/commonjs/code-root.cjs.d.ts +1 -0
- package/dist/cjs/commonjs/code-root.spec.ts +9 -0
- package/dist/cjs/commonjs/generated/google.cjs +9 -0
- package/dist/cjs/commonjs/generated/google.cjs.d.ts +2 -0
- package/dist/cjs/commonjs/generated/google.spec.ts +13 -0
- package/dist/cjs/commonjs/generated/puppet.cjs +39 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +42 -0
- package/dist/cjs/commonjs/generated/puppet.spec.ts +19 -0
- package/dist/cjs/commonjs/package.json +1 -0
- package/dist/cjs/examples/auth/client.d.ts +3 -0
- package/dist/cjs/examples/auth/client.d.ts.map +1 -0
- package/dist/cjs/examples/auth/client.js +52 -0
- package/dist/cjs/examples/auth/client.js.map +1 -0
- package/dist/cjs/examples/auth/raw-https/client.d.ts +2 -0
- package/dist/cjs/examples/auth/raw-https/client.d.ts.map +1 -0
- package/dist/cjs/examples/auth/raw-https/client.js +21 -0
- package/dist/cjs/examples/auth/raw-https/client.js.map +1 -0
- package/dist/cjs/examples/auth/raw-https/server.d.ts +2 -0
- package/dist/cjs/examples/auth/raw-https/server.d.ts.map +1 -0
- package/dist/cjs/examples/auth/raw-https/server.js +18 -0
- package/dist/cjs/examples/auth/raw-https/server.js.map +1 -0
- package/dist/cjs/examples/auth/server.d.ts +2 -0
- package/dist/cjs/examples/auth/server.d.ts.map +1 -0
- package/dist/cjs/examples/auth/server.js +117 -0
- package/dist/cjs/examples/auth/server.js.map +1 -0
- package/dist/cjs/examples/client.d.ts +5 -0
- package/dist/cjs/examples/client.d.ts.map +1 -0
- package/dist/cjs/examples/client.js +83 -0
- package/dist/cjs/examples/client.js.map +1 -0
- package/dist/cjs/examples/promisify.d.ts +49 -0
- package/dist/cjs/examples/promisify.d.ts.map +1 -0
- package/dist/cjs/examples/promisify.js +6 -0
- package/dist/cjs/examples/promisify.js.map +1 -0
- package/dist/cjs/examples/server.d.ts +2 -0
- package/dist/cjs/examples/server.d.ts.map +1 -0
- package/dist/cjs/examples/server.js +83 -0
- package/dist/cjs/examples/server.js.map +1 -0
- package/dist/cjs/out/google/api/annotations_grpc_pb.js +1 -0
- package/dist/cjs/out/google/api/annotations_pb.d.ts +9 -0
- package/dist/cjs/out/google/api/annotations_pb.js +48 -0
- package/dist/cjs/out/google/api/annotations_pb_service.d.ts +3 -0
- package/dist/cjs/out/google/api/annotations_pb_service.js +3 -0
- package/dist/cjs/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
- package/dist/cjs/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
- package/dist/cjs/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
- package/dist/cjs/out/google/api/health_check/v1/health_check_pb.js +333 -0
- package/dist/cjs/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
- package/dist/cjs/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
- package/dist/cjs/out/google/api/http_grpc_pb.js +1 -0
- package/dist/cjs/out/google/api/http_pb.d.ts +136 -0
- package/dist/cjs/out/google/api/http_pb.js +1006 -0
- package/dist/cjs/out/google/api/http_pb_service.d.ts +3 -0
- package/dist/cjs/out/google/api/http_pb_service.js +3 -0
- package/dist/cjs/out/package.json +1 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +1368 -0
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/base_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +224 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +1624 -0
- package/dist/cjs/out/wechaty/puppet/base_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/base_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/contact_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +535 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +4013 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
- package/dist/cjs/out/wechaty/puppet/download-upload_pb.js +674 -0
- package/dist/cjs/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/download-upload_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/event_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +67 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +347 -0
- package/dist/cjs/out/wechaty/puppet/event_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/event_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/friendship_pb.d.ts +293 -0
- package/dist/cjs/out/wechaty/puppet/friendship_pb.js +2060 -0
- package/dist/cjs/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/friendship_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/image_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/image_pb.d.ts +14 -0
- package/dist/cjs/out/wechaty/puppet/image_pb.js +29 -0
- package/dist/cjs/out/wechaty/puppet/image_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/image_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/location_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/location_pb.d.ts +41 -0
- package/dist/cjs/out/wechaty/puppet/location_pb.js +290 -0
- package/dist/cjs/out/wechaty/puppet/location_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/location_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/message_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +773 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +5777 -0
- package/dist/cjs/out/wechaty/puppet/message_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/message_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
- package/dist/cjs/out/wechaty/puppet/mini-program_pb.js +410 -0
- package/dist/cjs/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/mini-program_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/referrer_pb.d.ts +29 -0
- package/dist/cjs/out/wechaty/puppet/referrer_pb.js +200 -0
- package/dist/cjs/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/referrer_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +999 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +107 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.js +802 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/room_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +474 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +3641 -0
- package/dist/cjs/out/wechaty/puppet/room_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/room_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/tag_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +170 -0
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +1286 -0
- package/dist/cjs/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/tag_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/url-link_pb.d.ts +37 -0
- package/dist/cjs/out/wechaty/puppet/url-link_pb.js +260 -0
- package/dist/cjs/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/url-link_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +2386 -0
- package/dist/cjs/out/wechaty/puppet.swagger.json +3419 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +2079 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +18 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +43 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +1166 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +2524 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/proto/wechaty/deprecated/file-box.proto +61 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +46 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +122 -0
- package/dist/cjs/proto/wechaty/puppet/download-upload.proto +19 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +38 -0
- package/dist/cjs/proto/wechaty/puppet/friendship.proto +106 -0
- package/dist/cjs/proto/wechaty/puppet/image.proto +13 -0
- package/dist/cjs/proto/wechaty/puppet/location.proto +14 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +230 -0
- package/dist/cjs/proto/wechaty/puppet/mini-program.proto +18 -0
- package/dist/cjs/proto/wechaty/puppet/referrer.proto +16 -0
- package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +51 -0
- package/dist/cjs/proto/wechaty/puppet/room-member.proto +25 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +87 -0
- package/dist/cjs/proto/wechaty/puppet/tag.proto +43 -0
- package/dist/cjs/proto/wechaty/puppet/url-link.proto +13 -0
- package/dist/cjs/proto/wechaty/puppet.proto +505 -0
- package/dist/cjs/src/chunk-transformer.d.ts +24 -0
- package/dist/cjs/src/chunk-transformer.d.ts.map +1 -0
- package/dist/cjs/src/chunk-transformer.js +36 -0
- package/dist/cjs/src/chunk-transformer.js.map +1 -0
- package/dist/cjs/src/chunk-transformer.spec.d.ts +3 -0
- package/dist/cjs/src/chunk-transformer.spec.d.ts.map +1 -0
- package/dist/cjs/src/chunk-transformer.spec.js +9 -0
- package/dist/cjs/src/chunk-transformer.spec.js.map +1 -0
- package/dist/cjs/src/cjs.d.ts +5 -0
- package/dist/cjs/src/cjs.d.ts.map +1 -0
- package/dist/cjs/src/cjs.js +13 -0
- package/dist/cjs/src/cjs.js.map +1 -0
- package/dist/cjs/src/cjs.spec.d.ts +3 -0
- package/dist/cjs/src/cjs.spec.d.ts.map +1 -0
- package/dist/cjs/src/cjs.spec.js +27 -0
- package/dist/cjs/src/cjs.spec.js.map +1 -0
- package/dist/cjs/src/config.d.ts +12 -0
- package/dist/cjs/src/config.d.ts.map +1 -0
- package/dist/cjs/src/config.js +12 -0
- package/dist/cjs/src/config.js.map +1 -0
- package/dist/cjs/src/google.d.ts +8 -0
- package/dist/cjs/src/google.d.ts.map +1 -0
- package/dist/cjs/src/google.js +15 -0
- package/dist/cjs/src/google.js.map +1 -0
- package/dist/cjs/src/google.spec.d.ts +3 -0
- package/dist/cjs/src/google.spec.d.ts.map +1 -0
- package/dist/cjs/src/google.spec.js +11 -0
- package/dist/cjs/src/google.spec.js.map +1 -0
- package/dist/cjs/src/mod.d.ts +9 -0
- package/dist/cjs/src/mod.d.ts.map +1 -0
- package/dist/cjs/src/mod.js +44 -0
- package/dist/cjs/src/mod.js.map +1 -0
- package/dist/cjs/src/mod.spec.d.ts +3 -0
- package/dist/cjs/src/mod.spec.d.ts.map +1 -0
- package/dist/cjs/src/mod.spec.js +22 -0
- package/dist/cjs/src/mod.spec.js.map +1 -0
- package/dist/cjs/src/openapi.d.ts +4 -0
- package/dist/cjs/src/openapi.d.ts.map +1 -0
- package/dist/cjs/src/openapi.js +21 -0
- package/dist/cjs/src/openapi.js.map +1 -0
- package/dist/cjs/src/openapi.spec.d.ts +3 -0
- package/dist/cjs/src/openapi.spec.d.ts.map +1 -0
- package/dist/cjs/src/openapi.spec.js +20 -0
- package/dist/cjs/src/openapi.spec.js.map +1 -0
- package/dist/cjs/src/package-json.d.ts +6 -0
- package/dist/cjs/src/package-json.d.ts.map +1 -0
- package/dist/cjs/src/package-json.js +97 -0
- package/dist/cjs/src/package-json.js.map +1 -0
- package/dist/cjs/src/package-json.spec.d.ts +3 -0
- package/dist/cjs/src/package-json.spec.d.ts.map +1 -0
- package/dist/cjs/src/package-json.spec.js +10 -0
- package/dist/cjs/src/package-json.spec.js.map +1 -0
- package/dist/cjs/src/proto.d.ts +4 -0
- package/dist/cjs/src/proto.d.ts.map +1 -0
- package/dist/cjs/src/proto.js +25 -0
- package/dist/cjs/src/proto.js.map +1 -0
- package/dist/cjs/src/proto.spec.d.ts +3 -0
- package/dist/cjs/src/proto.spec.d.ts.map +1 -0
- package/dist/cjs/src/proto.spec.js +13 -0
- package/dist/cjs/src/proto.spec.js.map +1 -0
- package/dist/cjs/tests/health-check.spec.d.ts +3 -0
- package/dist/cjs/tests/health-check.spec.d.ts.map +1 -0
- package/dist/cjs/tests/health-check.spec.js +70 -0
- package/dist/cjs/tests/health-check.spec.js.map +1 -0
- package/dist/cjs/tests/integration.spec.d.ts +3 -0
- package/dist/cjs/tests/integration.spec.d.ts.map +1 -0
- package/dist/cjs/tests/integration.spec.js +111 -0
- package/dist/cjs/tests/integration.spec.js.map +1 -0
- package/dist/cjs/tests/nullable.spec.d.ts +3 -0
- package/dist/cjs/tests/nullable.spec.d.ts.map +1 -0
- package/dist/cjs/tests/nullable.spec.js +90 -0
- package/dist/cjs/tests/nullable.spec.js.map +1 -0
- package/dist/cjs/tests/puppet-server-impl.d.ts +8 -0
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -0
- package/dist/cjs/tests/puppet-server-impl.js +310 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -0
- package/dist/cjs/tests/streaming.spec.d.ts +3 -0
- package/dist/cjs/tests/streaming.spec.d.ts.map +1 -0
- package/dist/cjs/tests/streaming.spec.js +8 -0
- package/dist/cjs/tests/streaming.spec.js.map +1 -0
- package/dist/esm/commonjs/README.md +15 -0
- package/dist/esm/commonjs/code-root.cjs +10 -0
- package/dist/esm/commonjs/code-root.cjs.d.ts +1 -0
- package/dist/esm/commonjs/code-root.spec.ts +9 -0
- package/dist/esm/commonjs/generated/google.cjs +9 -0
- package/dist/esm/commonjs/generated/google.cjs.d.ts +2 -0
- package/dist/esm/commonjs/generated/google.spec.ts +13 -0
- package/dist/esm/commonjs/generated/puppet.cjs +39 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +42 -0
- package/dist/esm/commonjs/generated/puppet.spec.ts +19 -0
- package/dist/esm/commonjs/package.json +1 -0
- package/dist/esm/examples/auth/client.d.ts +3 -0
- package/dist/esm/examples/auth/client.d.ts.map +1 -0
- package/dist/esm/examples/auth/client.js +45 -0
- package/dist/esm/examples/auth/client.js.map +1 -0
- package/dist/esm/examples/auth/raw-https/client.d.ts +2 -0
- package/dist/esm/examples/auth/raw-https/client.d.ts.map +1 -0
- package/dist/esm/examples/auth/raw-https/client.js +16 -0
- package/dist/esm/examples/auth/raw-https/client.js.map +1 -0
- package/dist/esm/examples/auth/raw-https/server.d.ts +2 -0
- package/dist/esm/examples/auth/raw-https/server.d.ts.map +1 -0
- package/dist/esm/examples/auth/raw-https/server.js +13 -0
- package/dist/esm/examples/auth/raw-https/server.js.map +1 -0
- package/dist/esm/examples/auth/server.d.ts +2 -0
- package/dist/esm/examples/auth/server.d.ts.map +1 -0
- package/dist/esm/examples/auth/server.js +112 -0
- package/dist/esm/examples/auth/server.js.map +1 -0
- package/dist/esm/examples/client.d.ts +5 -0
- package/dist/esm/examples/client.d.ts.map +1 -0
- package/dist/esm/examples/client.js +77 -0
- package/dist/esm/examples/client.js.map +1 -0
- package/dist/esm/examples/promisify.d.ts +49 -0
- package/dist/esm/examples/promisify.d.ts.map +1 -0
- package/dist/esm/examples/promisify.js +3 -0
- package/dist/esm/examples/promisify.js.map +1 -0
- package/dist/esm/examples/server.d.ts +2 -0
- package/dist/esm/examples/server.d.ts.map +1 -0
- package/dist/esm/examples/server.js +78 -0
- package/dist/esm/examples/server.js.map +1 -0
- package/dist/esm/out/google/api/annotations_grpc_pb.js +1 -0
- package/dist/esm/out/google/api/annotations_pb.d.ts +9 -0
- package/dist/esm/out/google/api/annotations_pb.js +48 -0
- package/dist/esm/out/google/api/annotations_pb_service.d.ts +3 -0
- package/dist/esm/out/google/api/annotations_pb_service.js +3 -0
- package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
- package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
- package/dist/esm/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
- package/dist/esm/out/google/api/health_check/v1/health_check_pb.js +333 -0
- package/dist/esm/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
- package/dist/esm/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
- package/dist/esm/out/google/api/http_grpc_pb.js +1 -0
- package/dist/esm/out/google/api/http_pb.d.ts +136 -0
- package/dist/esm/out/google/api/http_pb.js +1006 -0
- package/dist/esm/out/google/api/http_pb_service.d.ts +3 -0
- package/dist/esm/out/google/api/http_pb_service.js +3 -0
- package/dist/esm/out/package.json +1 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
- package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
- package/dist/esm/out/wechaty/deprecated/file-box_pb.js +1368 -0
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/base_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +224 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +1624 -0
- package/dist/esm/out/wechaty/puppet/base_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/base_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/contact_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +535 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +4013 -0
- package/dist/esm/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/contact_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
- package/dist/esm/out/wechaty/puppet/download-upload_pb.js +674 -0
- package/dist/esm/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/download-upload_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/event_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +67 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +347 -0
- package/dist/esm/out/wechaty/puppet/event_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/event_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +293 -0
- package/dist/esm/out/wechaty/puppet/friendship_pb.js +2060 -0
- package/dist/esm/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/friendship_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/image_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/image_pb.d.ts +14 -0
- package/dist/esm/out/wechaty/puppet/image_pb.js +29 -0
- package/dist/esm/out/wechaty/puppet/image_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/image_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/location_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/location_pb.d.ts +41 -0
- package/dist/esm/out/wechaty/puppet/location_pb.js +290 -0
- package/dist/esm/out/wechaty/puppet/location_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/location_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/message_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +773 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +5777 -0
- package/dist/esm/out/wechaty/puppet/message_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/message_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
- package/dist/esm/out/wechaty/puppet/mini-program_pb.js +410 -0
- package/dist/esm/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/mini-program_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/referrer_pb.d.ts +29 -0
- package/dist/esm/out/wechaty/puppet/referrer_pb.js +200 -0
- package/dist/esm/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/referrer_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +999 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +107 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.js +802 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/room_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +474 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +3641 -0
- package/dist/esm/out/wechaty/puppet/room_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/room_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/tag_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +170 -0
- package/dist/esm/out/wechaty/puppet/tag_pb.js +1286 -0
- package/dist/esm/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/tag_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/url-link_pb.d.ts +37 -0
- package/dist/esm/out/wechaty/puppet/url-link_pb.js +260 -0
- package/dist/esm/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/url-link_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +2386 -0
- package/dist/esm/out/wechaty/puppet.swagger.json +3419 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +2079 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +18 -0
- package/dist/esm/out/wechaty/puppet_pb.js +43 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +1166 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +2524 -0
- package/dist/esm/proto/wechaty/deprecated/file-box.proto +61 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +46 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +122 -0
- package/dist/esm/proto/wechaty/puppet/download-upload.proto +19 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +38 -0
- package/dist/esm/proto/wechaty/puppet/friendship.proto +106 -0
- package/dist/esm/proto/wechaty/puppet/image.proto +13 -0
- package/dist/esm/proto/wechaty/puppet/location.proto +14 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +230 -0
- package/dist/esm/proto/wechaty/puppet/mini-program.proto +18 -0
- package/dist/esm/proto/wechaty/puppet/referrer.proto +16 -0
- package/dist/esm/proto/wechaty/puppet/room-invitation.proto +51 -0
- package/dist/esm/proto/wechaty/puppet/room-member.proto +25 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +87 -0
- package/dist/esm/proto/wechaty/puppet/tag.proto +43 -0
- package/dist/esm/proto/wechaty/puppet/url-link.proto +13 -0
- package/dist/esm/proto/wechaty/puppet.proto +505 -0
- package/dist/esm/src/chunk-transformer.d.ts +24 -0
- package/dist/esm/src/chunk-transformer.d.ts.map +1 -0
- package/dist/esm/src/chunk-transformer.js +32 -0
- package/dist/esm/src/chunk-transformer.js.map +1 -0
- package/dist/esm/src/chunk-transformer.spec.d.ts +3 -0
- package/dist/esm/src/chunk-transformer.spec.d.ts.map +1 -0
- package/dist/esm/src/chunk-transformer.spec.js +7 -0
- package/dist/esm/src/chunk-transformer.spec.js.map +1 -0
- package/dist/esm/src/cjs.d.ts +5 -0
- package/dist/esm/src/cjs.d.ts.map +1 -0
- package/dist/esm/src/cjs.js +5 -0
- package/dist/esm/src/cjs.js.map +1 -0
- package/dist/esm/src/cjs.spec.d.ts +3 -0
- package/dist/esm/src/cjs.spec.d.ts.map +1 -0
- package/dist/esm/src/cjs.spec.js +25 -0
- package/dist/esm/src/cjs.spec.js.map +1 -0
- package/dist/esm/src/config.d.ts +12 -0
- package/dist/esm/src/config.d.ts.map +1 -0
- package/dist/esm/src/config.js +9 -0
- package/dist/esm/src/config.js.map +1 -0
- package/dist/esm/src/google.d.ts +8 -0
- package/dist/esm/src/google.d.ts.map +1 -0
- package/dist/esm/src/google.js +8 -0
- package/dist/esm/src/google.js.map +1 -0
- package/dist/esm/src/google.spec.d.ts +3 -0
- package/dist/esm/src/google.spec.d.ts.map +1 -0
- package/dist/esm/src/google.spec.js +9 -0
- package/dist/esm/src/google.spec.js.map +1 -0
- package/dist/esm/src/mod.d.ts +9 -0
- package/dist/esm/src/mod.d.ts.map +1 -0
- package/dist/esm/src/mod.js +9 -0
- package/dist/esm/src/mod.js.map +1 -0
- package/dist/esm/src/mod.spec.d.ts +3 -0
- package/dist/esm/src/mod.spec.d.ts.map +1 -0
- package/dist/esm/src/mod.spec.js +20 -0
- package/dist/esm/src/mod.spec.js.map +1 -0
- package/dist/esm/src/openapi.d.ts +4 -0
- package/dist/esm/src/openapi.d.ts.map +1 -0
- package/dist/esm/src/openapi.js +15 -0
- package/dist/esm/src/openapi.js.map +1 -0
- package/dist/esm/src/openapi.spec.d.ts +3 -0
- package/dist/esm/src/openapi.spec.d.ts.map +1 -0
- package/dist/esm/src/openapi.spec.js +18 -0
- package/dist/esm/src/openapi.spec.js.map +1 -0
- package/dist/esm/src/package-json.d.ts +6 -0
- package/dist/esm/src/package-json.d.ts.map +1 -0
- package/dist/esm/src/package-json.js +94 -0
- package/dist/esm/src/package-json.js.map +1 -0
- package/dist/esm/src/package-json.spec.d.ts +3 -0
- package/dist/esm/src/package-json.spec.d.ts.map +1 -0
- package/dist/esm/src/package-json.spec.js +8 -0
- package/dist/esm/src/package-json.spec.js.map +1 -0
- package/dist/esm/src/proto.d.ts +4 -0
- package/dist/esm/src/proto.d.ts.map +1 -0
- package/dist/esm/src/proto.js +19 -0
- package/dist/esm/src/proto.js.map +1 -0
- package/dist/esm/src/proto.spec.d.ts +3 -0
- package/dist/esm/src/proto.spec.d.ts.map +1 -0
- package/dist/esm/src/proto.spec.js +11 -0
- package/dist/esm/src/proto.spec.js.map +1 -0
- package/dist/esm/tests/health-check.spec.d.ts +3 -0
- package/dist/esm/tests/health-check.spec.d.ts.map +1 -0
- package/dist/esm/tests/health-check.spec.js +68 -0
- package/dist/esm/tests/health-check.spec.js.map +1 -0
- package/dist/esm/tests/integration.spec.d.ts +3 -0
- package/dist/esm/tests/integration.spec.d.ts.map +1 -0
- package/dist/esm/tests/integration.spec.js +106 -0
- package/dist/esm/tests/integration.spec.js.map +1 -0
- package/dist/esm/tests/nullable.spec.d.ts +3 -0
- package/dist/esm/tests/nullable.spec.d.ts.map +1 -0
- package/dist/esm/tests/nullable.spec.js +85 -0
- package/dist/esm/tests/nullable.spec.js.map +1 -0
- package/dist/esm/tests/puppet-server-impl.d.ts +8 -0
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -0
- package/dist/esm/tests/puppet-server-impl.js +307 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -0
- package/dist/esm/tests/streaming.spec.d.ts +3 -0
- package/dist/esm/tests/streaming.spec.d.ts.map +1 -0
- package/dist/esm/tests/streaming.spec.js +6 -0
- package/dist/esm/tests/streaming.spec.js.map +1 -0
- package/out/google/api/annotations_grpc_pb.js +1 -0
- package/out/google/api/annotations_pb.d.ts +9 -0
- package/out/google/api/annotations_pb.js +48 -0
- package/out/google/api/annotations_pb_service.d.ts +3 -0
- package/out/google/api/annotations_pb_service.js +3 -0
- package/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
- package/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
- package/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
- package/out/google/api/health_check/v1/health_check_pb.js +333 -0
- package/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
- package/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
- package/out/google/api/http_grpc_pb.js +1 -0
- package/out/google/api/http_pb.d.ts +136 -0
- package/out/google/api/http_pb.js +1006 -0
- package/out/google/api/http_pb_service.d.ts +3 -0
- package/out/google/api/http_pb_service.js +3 -0
- package/out/package.json +1 -0
- package/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
- package/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
- package/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
- package/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
- package/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
- package/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
- package/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
- package/out/wechaty/deprecated/file-box_pb.js +1368 -0
- package/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
- package/out/wechaty/deprecated/file-box_pb_service.js +3 -0
- package/out/wechaty/puppet/base_grpc_pb.js +1 -0
- package/out/wechaty/puppet/base_pb.d.ts +224 -0
- package/out/wechaty/puppet/base_pb.js +1624 -0
- package/out/wechaty/puppet/base_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/base_pb_service.js +3 -0
- package/out/wechaty/puppet/contact_grpc_pb.js +1 -0
- package/out/wechaty/puppet/contact_pb.d.ts +535 -0
- package/out/wechaty/puppet/contact_pb.js +4013 -0
- package/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/contact_pb_service.js +3 -0
- package/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
- package/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
- package/out/wechaty/puppet/download-upload_pb.js +674 -0
- package/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/download-upload_pb_service.js +3 -0
- package/out/wechaty/puppet/event_grpc_pb.js +1 -0
- package/out/wechaty/puppet/event_pb.d.ts +67 -0
- package/out/wechaty/puppet/event_pb.js +347 -0
- package/out/wechaty/puppet/event_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/event_pb_service.js +3 -0
- package/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
- package/out/wechaty/puppet/friendship_pb.d.ts +293 -0
- package/out/wechaty/puppet/friendship_pb.js +2060 -0
- package/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/friendship_pb_service.js +3 -0
- package/out/wechaty/puppet/image_grpc_pb.js +1 -0
- package/out/wechaty/puppet/image_pb.d.ts +14 -0
- package/out/wechaty/puppet/image_pb.js +29 -0
- package/out/wechaty/puppet/image_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/image_pb_service.js +3 -0
- package/out/wechaty/puppet/location_grpc_pb.js +1 -0
- package/out/wechaty/puppet/location_pb.d.ts +41 -0
- package/out/wechaty/puppet/location_pb.js +290 -0
- package/out/wechaty/puppet/location_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/location_pb_service.js +3 -0
- package/out/wechaty/puppet/message_grpc_pb.js +1 -0
- package/out/wechaty/puppet/message_pb.d.ts +773 -0
- package/out/wechaty/puppet/message_pb.js +5777 -0
- package/out/wechaty/puppet/message_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/message_pb_service.js +3 -0
- package/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
- package/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
- package/out/wechaty/puppet/mini-program_pb.js +410 -0
- package/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/mini-program_pb_service.js +3 -0
- package/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
- package/out/wechaty/puppet/referrer_pb.d.ts +29 -0
- package/out/wechaty/puppet/referrer_pb.js +200 -0
- package/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/referrer_pb_service.js +3 -0
- package/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
- package/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
- package/out/wechaty/puppet/room-invitation_pb.js +999 -0
- package/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
- package/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
- package/out/wechaty/puppet/room-member_pb.d.ts +107 -0
- package/out/wechaty/puppet/room-member_pb.js +802 -0
- package/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/room-member_pb_service.js +3 -0
- package/out/wechaty/puppet/room_grpc_pb.js +1 -0
- package/out/wechaty/puppet/room_pb.d.ts +474 -0
- package/out/wechaty/puppet/room_pb.js +3641 -0
- package/out/wechaty/puppet/room_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/room_pb_service.js +3 -0
- package/out/wechaty/puppet/tag_grpc_pb.js +1 -0
- package/out/wechaty/puppet/tag_pb.d.ts +170 -0
- package/out/wechaty/puppet/tag_pb.js +1286 -0
- package/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/tag_pb_service.js +3 -0
- package/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
- package/out/wechaty/puppet/url-link_pb.d.ts +37 -0
- package/out/wechaty/puppet/url-link_pb.js +260 -0
- package/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/url-link_pb_service.js +3 -0
- package/out/wechaty/puppet.openapi.yaml +2386 -0
- package/out/wechaty/puppet.swagger.json +3419 -0
- package/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
- package/out/wechaty/puppet_grpc_pb.js +2079 -0
- package/out/wechaty/puppet_pb.d.ts +18 -0
- package/out/wechaty/puppet_pb.js +43 -0
- package/out/wechaty/puppet_pb_service.d.ts +1166 -0
- package/out/wechaty/puppet_pb_service.js +2524 -0
- package/package.json +93 -0
- package/src/chunk-transformer.spec.ts +18 -0
- package/src/chunk-transformer.ts +58 -0
- package/src/cjs.spec.ts +36 -0
- package/src/cjs.ts +10 -0
- package/src/config.ts +19 -0
- package/src/google.spec.ts +13 -0
- package/src/google.ts +10 -0
- package/src/mod.spec.ts +30 -0
- package/src/mod.ts +31 -0
- package/src/openapi.spec.ts +22 -0
- package/src/openapi.ts +30 -0
- package/src/package-json.spec.ts +10 -0
- package/src/package-json.ts +97 -0
- package/src/proto.spec.ts +16 -0
- package/src/proto.ts +34 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Huan(202110): Deprecated
|
|
3
|
+
* - use Puppet.Download / Puppet.Upload
|
|
4
|
+
* - use DownloadResponse & UploadRequest to streaming chunks
|
|
5
|
+
*
|
|
6
|
+
* This file will be removed after Dec 31, 2022
|
|
7
|
+
*/
|
|
8
|
+
syntax = "proto3";
|
|
9
|
+
package wechaty.puppet;
|
|
10
|
+
|
|
11
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
12
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
13
|
+
|
|
14
|
+
import "google/protobuf/wrappers.proto";
|
|
15
|
+
import "wechaty/puppet/image.proto";
|
|
16
|
+
|
|
17
|
+
message FileBoxChunk {
|
|
18
|
+
/**
|
|
19
|
+
* Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
20
|
+
* to be confirmed.
|
|
21
|
+
*/
|
|
22
|
+
// oneof payload {
|
|
23
|
+
optional bytes data = 1;
|
|
24
|
+
optional string name = 2;
|
|
25
|
+
// }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message MessageImageStreamRequest {
|
|
29
|
+
string id = 1;
|
|
30
|
+
ImageType type = 2;
|
|
31
|
+
}
|
|
32
|
+
message MessageImageStreamResponse {
|
|
33
|
+
FileBoxChunk file_box_chunk = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message MessageFileStreamRequest {
|
|
37
|
+
string id = 1;
|
|
38
|
+
}
|
|
39
|
+
message MessageFileStreamResponse {
|
|
40
|
+
FileBoxChunk file_box_chunk = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message MessageSendFileStreamRequest {
|
|
44
|
+
/**
|
|
45
|
+
* Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
46
|
+
* to be confirmed.
|
|
47
|
+
*/
|
|
48
|
+
// oneof payload {
|
|
49
|
+
optional string conversation_id = 1;
|
|
50
|
+
optional FileBoxChunk file_box_chunk = 2;
|
|
51
|
+
// };
|
|
52
|
+
}
|
|
53
|
+
message MessageSendFileStreamResponse {
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated:
|
|
56
|
+
* Huan(202109): Wrapper types must not be used going forward.
|
|
57
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
58
|
+
*/
|
|
59
|
+
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
60
|
+
string id = 2;
|
|
61
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package = "io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
enum PayloadType {
|
|
9
|
+
PAYLOAD_TYPE_UNSPECIFIED = 0;
|
|
10
|
+
PAYLOAD_TYPE_MESSAGE = 1;
|
|
11
|
+
PAYLOAD_TYPE_CONTACT = 2;
|
|
12
|
+
PAYLOAD_TYPE_ROOM = 3;
|
|
13
|
+
PAYLOAD_TYPE_ROOM_MEMBER = 4;
|
|
14
|
+
PAYLOAD_TYPE_FRIENDSHIP = 5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message StartRequest {}
|
|
18
|
+
message StartResponse {}
|
|
19
|
+
|
|
20
|
+
message StopRequest {}
|
|
21
|
+
message StopResponse {}
|
|
22
|
+
|
|
23
|
+
message VersionRequest {}
|
|
24
|
+
message VersionResponse {
|
|
25
|
+
string version = 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message LogoutRequest {}
|
|
29
|
+
message LogoutResponse {}
|
|
30
|
+
|
|
31
|
+
message DingRequest {
|
|
32
|
+
string data = 1;
|
|
33
|
+
}
|
|
34
|
+
message DingResponse {
|
|
35
|
+
/**
|
|
36
|
+
* Ding has no return value
|
|
37
|
+
* Puppet should emit a `ding` event when it receives a `ding()` call
|
|
38
|
+
*/
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message DirtyPayloadRequest {
|
|
42
|
+
PayloadType type = 1;
|
|
43
|
+
string id = 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message DirtyPayloadResponse {}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package="io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
|
|
10
|
+
enum ContactGender {
|
|
11
|
+
CONTACT_GENDER_UNSPECIFIED = 0;
|
|
12
|
+
CONTACT_GENDER_MALE = 1;
|
|
13
|
+
CONTACT_GENDER_FEMALE = 2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
enum ContactType {
|
|
17
|
+
CONTACT_TYPE_UNSPECIFIED = 0;
|
|
18
|
+
CONTACT_TYPE_PERSONAL = 1;
|
|
19
|
+
CONTACT_TYPE_OFFICIAL = 2;
|
|
20
|
+
CONTACT_TYPE_CORPORATION = 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message ContactListRequest {}
|
|
24
|
+
message ContactListResponse {
|
|
25
|
+
repeated string ids = 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message ContactPayloadRequest {
|
|
29
|
+
string id = 1;
|
|
30
|
+
}
|
|
31
|
+
message ContactPayloadResponse {
|
|
32
|
+
string id = 1;
|
|
33
|
+
ContactGender gender = 2;
|
|
34
|
+
ContactType type = 3;
|
|
35
|
+
string name = 4;
|
|
36
|
+
string avatar = 5;
|
|
37
|
+
string address = 6;
|
|
38
|
+
string alias = 7;
|
|
39
|
+
string city = 8;
|
|
40
|
+
bool friend = 9;
|
|
41
|
+
string province = 10;
|
|
42
|
+
string signature = 11;
|
|
43
|
+
bool star = 12;
|
|
44
|
+
/**
|
|
45
|
+
* Huan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.
|
|
46
|
+
* so we can just rename `weixin` to `handle` here.
|
|
47
|
+
*
|
|
48
|
+
* (Huan(20220329): use `weixin` for now, until we upgrade to v2.0
|
|
49
|
+
* the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`
|
|
50
|
+
* which will causing a breaking change.
|
|
51
|
+
* @link https://github.com/wechaty/getting-started/issues/254
|
|
52
|
+
*
|
|
53
|
+
* TODO: rename `weixin` to `handle` in v2.0.0
|
|
54
|
+
*/
|
|
55
|
+
string weixin = 13;
|
|
56
|
+
string corporation = 14;
|
|
57
|
+
string title = 15;
|
|
58
|
+
string description = 16;
|
|
59
|
+
bool coworker = 17;
|
|
60
|
+
repeated string phones = 18;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message ContactSelfQRCodeRequest {}
|
|
64
|
+
message ContactSelfQRCodeResponse {
|
|
65
|
+
string qrcode = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message ContactSelfNameRequest {
|
|
69
|
+
string name = 1;
|
|
70
|
+
}
|
|
71
|
+
message ContactSelfNameResponse {}
|
|
72
|
+
|
|
73
|
+
message ContactSelfSignatureRequest {
|
|
74
|
+
string signature = 1;
|
|
75
|
+
}
|
|
76
|
+
message ContactSelfSignatureResponse {}
|
|
77
|
+
|
|
78
|
+
message ContactAliasRequest {
|
|
79
|
+
string id = 1;
|
|
80
|
+
// nullable
|
|
81
|
+
google.protobuf.StringValue alias_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
82
|
+
optional string alias = 3;
|
|
83
|
+
}
|
|
84
|
+
message ContactAliasResponse {
|
|
85
|
+
google.protobuf.StringValue alias_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
86
|
+
string alias = 2;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message ContactAvatarRequest {
|
|
90
|
+
string id = 1;
|
|
91
|
+
google.protobuf.StringValue filebox_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
92
|
+
optional string file_box = 3;
|
|
93
|
+
}
|
|
94
|
+
message ContactAvatarResponse {
|
|
95
|
+
google.protobuf.StringValue filebox_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
96
|
+
string file_box = 2;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message ContactPhoneRequest {
|
|
100
|
+
string contact_id = 1;
|
|
101
|
+
repeated string phones = 2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message ContactPhoneResponse {
|
|
105
|
+
repeated string phones = 2;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message ContactCorporationRemarkRequest {
|
|
109
|
+
string contact_id = 1;
|
|
110
|
+
google.protobuf.StringValue corporation_remark_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
111
|
+
string corporation_remark = 3;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message ContactCorporationRemarkResponse {}
|
|
115
|
+
|
|
116
|
+
message ContactDescriptionRequest {
|
|
117
|
+
string contact_id = 1;
|
|
118
|
+
google.protobuf.StringValue description_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
119
|
+
string description = 3;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message ContactDescriptionResponse {}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
6
|
+
|
|
7
|
+
message UploadRequest {
|
|
8
|
+
bytes chunk = 1;
|
|
9
|
+
}
|
|
10
|
+
message UploadResponse {
|
|
11
|
+
string id = 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message DownloadRequest {
|
|
15
|
+
string id = 1;
|
|
16
|
+
}
|
|
17
|
+
message DownloadResponse {
|
|
18
|
+
bytes chunk = 1;
|
|
19
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package="io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
enum EventType {
|
|
9
|
+
EVENT_TYPE_UNSPECIFIED = 0;
|
|
10
|
+
|
|
11
|
+
EVENT_TYPE_HEARTBEAT = 1;
|
|
12
|
+
EVENT_TYPE_MESSAGE = 2;
|
|
13
|
+
EVENT_TYPE_DONG = 3;
|
|
14
|
+
EVENT_TYPE_POST = 4;
|
|
15
|
+
|
|
16
|
+
reserved 5 to 15;
|
|
17
|
+
|
|
18
|
+
EVENT_TYPE_ERROR = 16;
|
|
19
|
+
EVENT_TYPE_FRIENDSHIP = 17;
|
|
20
|
+
EVENT_TYPE_ROOM_INVITE = 18;
|
|
21
|
+
EVENT_TYPE_ROOM_JOIN = 19;
|
|
22
|
+
EVENT_TYPE_ROOM_LEAVE = 20;
|
|
23
|
+
EVENT_TYPE_ROOM_TOPIC = 21;
|
|
24
|
+
EVENT_TYPE_SCAN = 22;
|
|
25
|
+
EVENT_TYPE_READY = 23;
|
|
26
|
+
EVENT_TYPE_RESET = 24;
|
|
27
|
+
EVENT_TYPE_LOGIN = 25;
|
|
28
|
+
EVENT_TYPE_LOGOUT = 26;
|
|
29
|
+
EVENT_TYPE_DIRTY = 27;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message EventRequest {}
|
|
33
|
+
|
|
34
|
+
message EventResponse {
|
|
35
|
+
EventType type = 1;
|
|
36
|
+
// TODO: Huan(202002) consider to use a PB Map?
|
|
37
|
+
string payload = 2; // JSON.stringify({ ... })
|
|
38
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package="io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
import "wechaty/puppet/referrer.proto";
|
|
10
|
+
|
|
11
|
+
enum FriendshipType {
|
|
12
|
+
FRIENDSHIP_TYPE_UNSPECIFIED = 0;
|
|
13
|
+
FRIENDSHIP_TYPE_CONFIRM = 1;
|
|
14
|
+
FRIENDSHIP_TYPE_RECEIVE = 2;
|
|
15
|
+
FRIENDSHIP_TYPE_VERIFY = 3;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
enum FriendshipSceneType {
|
|
19
|
+
FRIENDSHIP_SCENE_TYPE_UNSPECIFIED = 0;
|
|
20
|
+
|
|
21
|
+
FRIENDSHIP_SCENE_TYPE_QQ = 1;
|
|
22
|
+
FRIENDSHIP_SCENE_TYPE_EMAIL = 2;
|
|
23
|
+
FRIENDSHIP_SCENE_TYPE_WEIXIN = 3;
|
|
24
|
+
FRIENDSHIP_SCENE_TYPE_QQTBD = 12;
|
|
25
|
+
FRIENDSHIP_SCENE_TYPE_ROOM = 14;
|
|
26
|
+
FRIENDSHIP_SCENE_TYPE_PHONE = 15;
|
|
27
|
+
FRIENDSHIP_SCENE_TYPE_CARD = 17;
|
|
28
|
+
FRIENDSHIP_SCENE_TYPE_LOCATION = 18;
|
|
29
|
+
FRIENDSHIP_SCENE_TYPE_BOTTLE = 25;
|
|
30
|
+
FRIENDSHIP_SCENE_TYPE_SHAKING = 29;
|
|
31
|
+
FRIENDSHIP_SCENE_TYPE_QRCODE = 30;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message FriendshipPayloadRequest {
|
|
35
|
+
string id = 1;
|
|
36
|
+
/**
|
|
37
|
+
* Huan(202003):
|
|
38
|
+
* What's the reason we need belowing payload?
|
|
39
|
+
* We should remove it if possible.
|
|
40
|
+
*/
|
|
41
|
+
google.protobuf.StringValue payload_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
42
|
+
string payload = 3;
|
|
43
|
+
}
|
|
44
|
+
message FriendshipPayloadResponse {
|
|
45
|
+
string id = 1;
|
|
46
|
+
string contact_id = 2;
|
|
47
|
+
string hello = 3;
|
|
48
|
+
FriendshipType type = 4;
|
|
49
|
+
string stranger = 5;
|
|
50
|
+
string ticket = 6;
|
|
51
|
+
FriendshipSceneType scene = 7;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message FriendshipSearchPhoneRequest {
|
|
55
|
+
string phone = 1;
|
|
56
|
+
}
|
|
57
|
+
message FriendshipSearchPhoneResponse {
|
|
58
|
+
// nullable
|
|
59
|
+
google.protobuf.StringValue contact_id_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
60
|
+
string contact_id = 2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Huan(202003): we just rename the payload message because gRPC only care about the message structure
|
|
65
|
+
* (and as long as we keep consistent with the old structure).
|
|
66
|
+
*
|
|
67
|
+
* @link https://github.com/wechaty/grpc/pull/173
|
|
68
|
+
*
|
|
69
|
+
* Rename:
|
|
70
|
+
* 1. `FriendshipSearchWeixinRequest` -> `FriendshipSearchHandleRequest`
|
|
71
|
+
* 2. `FriendshipSearchWeixinReqsponse` -> `FriendshipSearchHandleResponse`
|
|
72
|
+
*/
|
|
73
|
+
message FriendshipSearchHandleRequest {
|
|
74
|
+
/**
|
|
75
|
+
* Huan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.
|
|
76
|
+
* so we can just rename `weixin` to `handle` here.
|
|
77
|
+
*
|
|
78
|
+
* (Huan(20220329): use `weixin` for now, until we upgrade to v2.0
|
|
79
|
+
* the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`
|
|
80
|
+
* which will causing a breaking change.
|
|
81
|
+
* @link https://github.com/wechaty/getting-started/issues/254
|
|
82
|
+
*
|
|
83
|
+
* TODO: rename `weixin` to `handle` in v2.0.0
|
|
84
|
+
*/
|
|
85
|
+
string weixin = 1;
|
|
86
|
+
}
|
|
87
|
+
message FriendshipSearchHandleResponse {
|
|
88
|
+
// nullable
|
|
89
|
+
google.protobuf.StringValue contact_id_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
|
|
90
|
+
string contact_id = 2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message FriendshipAddRequest {
|
|
94
|
+
string contact_id = 1;
|
|
95
|
+
string hello = 2;
|
|
96
|
+
google.protobuf.StringValue source_room_id_string_value_deprecated = 3 [deprecated = true]; // Deprecated: will be removed after Dec 31, 2022
|
|
97
|
+
google.protobuf.StringValue source_contact_id_string_value_deprecated = 4 [deprecated = true]; // Deprecated: will be removed after Dec 31, 2022
|
|
98
|
+
Referrer referrer = 5;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message FriendshipAddResponse {}
|
|
102
|
+
|
|
103
|
+
message FriendshipAcceptRequest {
|
|
104
|
+
string id = 1;
|
|
105
|
+
}
|
|
106
|
+
message FriendshipAcceptResponse {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package="io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
enum ImageType {
|
|
9
|
+
IMAGE_TYPE_UNSPECIFIED = 0;
|
|
10
|
+
IMAGE_TYPE_THUMBNAIL = 1;
|
|
11
|
+
IMAGE_TYPE_HD = 2;
|
|
12
|
+
IMAGE_TYPE_ARTWORK = 3;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package = "io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
message LocationPayload {
|
|
9
|
+
float accuracy = 1;
|
|
10
|
+
string address = 2;
|
|
11
|
+
double latitude = 3;
|
|
12
|
+
double longitude = 4;
|
|
13
|
+
string name = 5;
|
|
14
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package="github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package="io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
import "google/protobuf/timestamp.proto";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
* Huan(202109): will be removed after Dec 31, 2022
|
|
13
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
14
|
+
*/
|
|
15
|
+
import "google/protobuf/wrappers.proto";
|
|
16
|
+
|
|
17
|
+
import "wechaty/puppet/image.proto";
|
|
18
|
+
import "wechaty/puppet/location.proto";
|
|
19
|
+
import "wechaty/puppet/mini-program.proto";
|
|
20
|
+
import "wechaty/puppet/url-link.proto";
|
|
21
|
+
|
|
22
|
+
enum MessageType {
|
|
23
|
+
MESSAGE_TYPE_UNSPECIFIED = 0;
|
|
24
|
+
|
|
25
|
+
MESSAGE_TYPE_ATTACHMENT = 1;
|
|
26
|
+
MESSAGE_TYPE_AUDIO = 2;
|
|
27
|
+
MESSAGE_TYPE_CONTACT = 3;
|
|
28
|
+
MESSAGE_TYPE_EMOTICON = 4;
|
|
29
|
+
MESSAGE_TYPE_IMAGE = 5;
|
|
30
|
+
MESSAGE_TYPE_TEXT = 6;
|
|
31
|
+
MESSAGE_TYPE_VIDEO = 7;
|
|
32
|
+
MESSAGE_TYPE_CHAT_HISTORY = 8;
|
|
33
|
+
MESSAGE_TYPE_LOCATION = 9;
|
|
34
|
+
MESSAGE_TYPE_MINI_PROGRAM = 10;
|
|
35
|
+
MESSAGE_TYPE_TRANSFER = 11;
|
|
36
|
+
MESSAGE_TYPE_RED_ENVELOPE = 12;
|
|
37
|
+
MESSAGE_TYPE_RECALLED = 13;
|
|
38
|
+
MESSAGE_TYPE_URL = 14;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message MessagePayloadRequest {
|
|
42
|
+
string id = 1;
|
|
43
|
+
}
|
|
44
|
+
message MessagePayloadResponse {
|
|
45
|
+
string id = 1;
|
|
46
|
+
string filename = 2;
|
|
47
|
+
string text = 3;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated will be removed after Dec 31, 2022
|
|
50
|
+
* Huan(202109): use receive_time(10) instead
|
|
51
|
+
*/
|
|
52
|
+
uint64 timestamp_deprecated = 4 [deprecated = true];
|
|
53
|
+
MessageType type = 5;
|
|
54
|
+
string talker_id = 6;
|
|
55
|
+
string room_id = 7;
|
|
56
|
+
string listener_id = 8;
|
|
57
|
+
repeated string mention_ids = 9;
|
|
58
|
+
google.protobuf.Timestamp receive_time = 10;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message MessageImageRequest {
|
|
62
|
+
string id = 1;
|
|
63
|
+
ImageType type = 2;
|
|
64
|
+
}
|
|
65
|
+
message MessageImageResponse {
|
|
66
|
+
string file_box = 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message MessageContactRequest {
|
|
70
|
+
string id = 1;
|
|
71
|
+
}
|
|
72
|
+
message MessageContactResponse {
|
|
73
|
+
string id = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message MessageFileRequest {
|
|
77
|
+
string id = 1;
|
|
78
|
+
}
|
|
79
|
+
message MessageFileResponse {
|
|
80
|
+
string file_box = 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message MessageMiniProgramRequest {
|
|
84
|
+
string id = 1;
|
|
85
|
+
}
|
|
86
|
+
message MessageMiniProgramResponse {
|
|
87
|
+
/**
|
|
88
|
+
* Huan(202110): We should use payload instead of JSON.stringify string
|
|
89
|
+
* The compatible code will be removed after Dec 31, 2022
|
|
90
|
+
*/
|
|
91
|
+
string mini_program_deprecated = 1 [deprecated = true]; // deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022
|
|
92
|
+
MiniProgramPayload mini_program = 2;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message MessageUrlRequest {
|
|
96
|
+
string id = 1;
|
|
97
|
+
}
|
|
98
|
+
message MessageUrlResponse {
|
|
99
|
+
/**
|
|
100
|
+
* Huan(202110): We should use payload instead of JSON.stringify string
|
|
101
|
+
* The compatible code will be removed after Dec 31, 2022
|
|
102
|
+
*/
|
|
103
|
+
string url_link_deprecated = 1 [deprecated = true]; // deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022
|
|
104
|
+
UrlLinkPayload url_link = 2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message MessageSendContactRequest {
|
|
108
|
+
string conversation_id = 1;
|
|
109
|
+
string contact_id = 2;
|
|
110
|
+
}
|
|
111
|
+
message MessageSendContactResponse {
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated:
|
|
114
|
+
* Huan(202109): Wrapper types must not be used going forward.
|
|
115
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
116
|
+
*/
|
|
117
|
+
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
118
|
+
string id = 2;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message MessageSendFileRequest {
|
|
122
|
+
string conversation_id = 1;
|
|
123
|
+
string file_box = 2;
|
|
124
|
+
}
|
|
125
|
+
message MessageSendFileResponse {
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated:
|
|
128
|
+
* Huan(202109): Wrapper types must not be used going forward.
|
|
129
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
130
|
+
*/
|
|
131
|
+
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
132
|
+
string id = 2;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message MessageSendTextRequest {
|
|
136
|
+
string conversation_id = 1;
|
|
137
|
+
string text = 2;
|
|
138
|
+
|
|
139
|
+
// Huan(202011) FIXME: Issue #99
|
|
140
|
+
// https://github.com/wechaty/grpc/issues/99
|
|
141
|
+
repeated string mentional_ids = 3;
|
|
142
|
+
}
|
|
143
|
+
message MessageSendTextResponse {
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated:
|
|
146
|
+
* Huan(202109): Wrapper types must not be used going forward.
|
|
147
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
148
|
+
*/
|
|
149
|
+
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
150
|
+
string id = 2;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message MessageSendMiniProgramRequest {
|
|
154
|
+
string conversation_id = 1;
|
|
155
|
+
/**
|
|
156
|
+
* Huan(202110): We should use payload instead of JSON.stringify string
|
|
157
|
+
* The compatible code will be removed after Dec 31, 2022
|
|
158
|
+
*/
|
|
159
|
+
string mini_program_deprecated = 2 [deprecated = true]; // deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022
|
|
160
|
+
MiniProgramPayload mini_program = 3;
|
|
161
|
+
}
|
|
162
|
+
message MessageSendMiniProgramResponse {
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated:
|
|
165
|
+
* Huan(202109): Wrapper types must not be used going forward.
|
|
166
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
167
|
+
*/
|
|
168
|
+
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
169
|
+
string id = 2;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
message MessageSendUrlRequest {
|
|
173
|
+
string conversation_id = 1;
|
|
174
|
+
/**
|
|
175
|
+
* Huan(202110): We should use payload instead of JSON.stringify string
|
|
176
|
+
* The compatible code will be removed after Dec 31, 2022
|
|
177
|
+
*/
|
|
178
|
+
string url_link_deprecated = 2 [deprecated = true]; // deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022
|
|
179
|
+
UrlLinkPayload url_link = 3;
|
|
180
|
+
}
|
|
181
|
+
message MessageSendUrlResponse {
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated:
|
|
184
|
+
* Huan(202109): Wrapper types must not be used going forward.
|
|
185
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
186
|
+
*/
|
|
187
|
+
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
188
|
+
string id = 2;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
message MessageRecallRequest {
|
|
192
|
+
string id = 1;
|
|
193
|
+
}
|
|
194
|
+
message MessageRecallResponse {
|
|
195
|
+
bool success = 1;
|
|
196
|
+
}
|
|
197
|
+
message MessageForwardRequest{
|
|
198
|
+
string message_id = 1;
|
|
199
|
+
string conversation_id = 2;
|
|
200
|
+
}
|
|
201
|
+
message MessageForwardResponse {
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated: use payload instead.
|
|
204
|
+
* Huan(202109): Wrapper types must not be used going forward.
|
|
205
|
+
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
206
|
+
*/
|
|
207
|
+
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
208
|
+
string id = 2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
message MessageLocationRequest{
|
|
212
|
+
string id = 1;
|
|
213
|
+
}
|
|
214
|
+
message MessageLocationResponse {
|
|
215
|
+
LocationPayload location = 1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
message MessageSendLocationRequest {
|
|
219
|
+
string conversation_id = 1;
|
|
220
|
+
LocationPayload location = 2;
|
|
221
|
+
}
|
|
222
|
+
message MessageSendLocationResponse {
|
|
223
|
+
/**
|
|
224
|
+
* Huan(202110): we will not use wrappers any more by following the Google Style Guide:
|
|
225
|
+
* If not using optional would add complexity or ambiguity, then use optional primitive fields,
|
|
226
|
+
* Wrapper types must not be used going forward.
|
|
227
|
+
* — Optional Primitive Fields (https://cloud.google.com/apis/design/design_patterns.md#optional-primitive-fields)
|
|
228
|
+
*/
|
|
229
|
+
string id = 1;
|
|
230
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
5
|
+
option java_package = "io.github.wechaty.grpc.puppet";
|
|
6
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
message MiniProgramPayload {
|
|
9
|
+
string appid = 1;
|
|
10
|
+
string description = 2;
|
|
11
|
+
string page_path = 3;
|
|
12
|
+
string icon_url = 4;
|
|
13
|
+
string share_id = 5;
|
|
14
|
+
string thumb_url = 6;
|
|
15
|
+
string title = 7;
|
|
16
|
+
string username = 8;
|
|
17
|
+
string thumb_key = 9;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package wechaty.puppet;
|
|
3
|
+
|
|
4
|
+
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
5
|
+
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
6
|
+
option java_package = "io.github.wechaty.grpc.puppet";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* "Referrer" and "Referral" refers to different things. "Referrer" is something or somebody who refers. "Referral" is the act of referring.
|
|
10
|
+
* - https://english.stackexchange.com/questions/33135/referrer-versus-referral-versus-referer
|
|
11
|
+
*/
|
|
12
|
+
message Referrer {
|
|
13
|
+
string contact_id = 1;
|
|
14
|
+
string room_id = 2;
|
|
15
|
+
}
|
|
16
|
+
|