@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
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2018-now Huan LI (李卓桓) <zixia@zixia.net>
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
<img src="docs/images/wechaty-grpc-logo.svg" width="400" />
|
|
5
|
+
<br />
|
|
6
|
+
<h1>Wechaty gRPC</h1>
|
|
7
|
+
<p>
|
|
8
|
+
gRPC Service & Protocol Buffers for Wechaty Puppet
|
|
9
|
+
</p>
|
|
10
|
+
<a href="https://github.com/wechaty/grpc/issues
|
|
11
|
+
"><img src="https://img.shields.io/github/issues/wechaty/grpc?style=flat-square" /></a>
|
|
12
|
+
<a href="https://github.com/wechaty/grpc/network/members"><img src="https://img.shields.io/github/forks/wechaty/grpc?style=flat-square" /></a>
|
|
13
|
+
<a href="https://github.com/wechaty/grpc/stargazers"><img src="https://img.shields.io/github/stars/wechaty/grpc?style=flat-square" /></a>
|
|
14
|
+
<a href="https://github.com/wechaty/grpc/blob/master/LICENSE"><img src="https://img.shields.io/github/license/wechaty/grpc?style=flat-square" /></a>
|
|
15
|
+
<a href="https://github.com/Chatie/tsconfig/issues/16"><img src="https://img.shields.io/badge/ES-Modules-brightgreen" /></a>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div align="center">
|
|
19
|
+
|
|
20
|
+
[](https://github.com/wechaty/grpc/actions/workflows/node.yml)
|
|
21
|
+
[](https://github.com/wechaty/grpc/actions/workflows/csharp.yml)
|
|
22
|
+
[](https://github.com/wechaty/grpc/actions/workflows/go.yml)
|
|
23
|
+
[](https://github.com/wechaty/grpc/actions/workflows/java.yml)
|
|
24
|
+
[](https://github.com/wechaty/grpc/actions/workflows/php.yml)
|
|
25
|
+
[](https://github.com/wechaty/grpc/actions/workflows/python.yml)
|
|
26
|
+
|
|
27
|
+
[](https://www.npmjs.com/package/wechaty-grpc)
|
|
28
|
+
[](https://pypi.org/project/chatie-grpc/)
|
|
29
|
+
[](https://mvnrepository.com/artifact/io.github.wechaty/grpc)
|
|
30
|
+
[](https://packagist.org/packages/wechaty/php-grpc)
|
|
31
|
+
[](https://nodejs.org/)
|
|
32
|
+
[](https://www.python.org/downloads/release/python-370/)
|
|
33
|
+
[](https://pkg.go.dev/github.com/wechaty/grpc/go/wechaty)
|
|
34
|
+
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<details open="open">
|
|
38
|
+
<summary>Table of Contents</summary>
|
|
39
|
+
<ol>
|
|
40
|
+
<li>
|
|
41
|
+
<a href="#About">About</a>
|
|
42
|
+
</li>
|
|
43
|
+
<li>
|
|
44
|
+
<a href="#Usage">Usage</a>
|
|
45
|
+
<ul>
|
|
46
|
+
<li><a href="#Nodejs">Node.js</a></li>
|
|
47
|
+
<li><a href="#Python">Python</a></li>
|
|
48
|
+
<li><a href="#Go">Go</a></li>
|
|
49
|
+
<li><a href="#Java">Java</a></li>
|
|
50
|
+
<li><a href="#PHP">PHP</a></li>
|
|
51
|
+
<li><a href="#CSharp">CSharp</a></li>
|
|
52
|
+
</ul>
|
|
53
|
+
</li>
|
|
54
|
+
<li>
|
|
55
|
+
<a href="#Development">Development</a>
|
|
56
|
+
<ul>
|
|
57
|
+
<li><a href="#Debug">Debug</a></li>
|
|
58
|
+
<li><a href="#Build">Build</a></li>
|
|
59
|
+
<li><a href="#Generate-Stubs">Generate Stubs</a></li>
|
|
60
|
+
</ul>
|
|
61
|
+
</li>
|
|
62
|
+
<li><a href="#OpenAPI">OpenAPI</a></li>
|
|
63
|
+
<li><a href="#gRPC-Web">gRPC Web</a></li>
|
|
64
|
+
<li><a href="#Resources">Resources</a></li>
|
|
65
|
+
<li><a href="#Contributing">Contributing</a></li>
|
|
66
|
+
<li><a href="#Maintainer">Maintainer</a></li>
|
|
67
|
+
<li><a href="#Copyright--License">Copyright & License</a></li>
|
|
68
|
+
</ol>
|
|
69
|
+
|
|
70
|
+
## About
|
|
71
|
+
|
|
72
|
+
gRPC is a modern open-source high-performance Remote Procedure Call (RPC) framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking, and authentication. It is also applicable in the last mile of distributed computing to connect devices, mobile applications, and browsers to backend services.
|
|
73
|
+
|
|
74
|
+
## Usage
|
|
75
|
+
|
|
76
|
+
### Node.js
|
|
77
|
+
|
|
78
|
+
[wechaty-grpc@NPM](https://www.npmjs.com/package/wechaty-grpc)
|
|
79
|
+
|
|
80
|
+
**Docs:**
|
|
81
|
+
|
|
82
|
+
- <https://paka.dev/npm/wechaty-grpc>
|
|
83
|
+
- <https://wechaty.github.io/grpc/>
|
|
84
|
+
|
|
85
|
+
**Maintainer:**
|
|
86
|
+
|
|
87
|
+
- [@huan](https://github.com/huan) - Huan LI (李卓桓)
|
|
88
|
+
|
|
89
|
+
### Python
|
|
90
|
+
|
|
91
|
+
[chatie-grpc@PyPI](https://pypi.org/project/chatie-grpc)
|
|
92
|
+
|
|
93
|
+
**Maintainer:**
|
|
94
|
+
|
|
95
|
+
- [@wj-Mcat](https://github.com/wj-Mcat) - Jingjing WU (吴京京)
|
|
96
|
+
|
|
97
|
+
### Go
|
|
98
|
+
|
|
99
|
+
[github.com/wechaty/go-grpc](https://github.com/wechaty/go-grpc)
|
|
100
|
+
|
|
101
|
+
**Maintainer:**
|
|
102
|
+
|
|
103
|
+
- [@dchaofei](https://github.com/dchaofei) - Chaofei DING (丁超飞)
|
|
104
|
+
|
|
105
|
+
### Java
|
|
106
|
+
|
|
107
|
+
[https://mvnrepository.com/artifact/io.github.wechaty/grpc](https://mvnrepository.com/artifact/io.github.wechaty/grpc)
|
|
108
|
+
|
|
109
|
+
**Maven:**
|
|
110
|
+
|
|
111
|
+
```xml
|
|
112
|
+
<dependency>
|
|
113
|
+
<groupId>io.github.wechaty</groupId>
|
|
114
|
+
<version>0.11.25</version>
|
|
115
|
+
<artifactId>grpc</artifactId>
|
|
116
|
+
</dependency>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**Gradle:**
|
|
120
|
+
|
|
121
|
+
```groovy
|
|
122
|
+
compile 'io.github.wechaty:grpc:0.11.25'
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Maintainer:**
|
|
126
|
+
|
|
127
|
+
- [@diaozxin007](https://github.com/diaozxin007) - Zhengxin DIAO (刁政欣)
|
|
128
|
+
|
|
129
|
+
### PHP
|
|
130
|
+
|
|
131
|
+
[github.com/wechaty/php-grpc](https://github.comwechaty/php-grpc)
|
|
132
|
+
|
|
133
|
+
**Maintainer:**
|
|
134
|
+
|
|
135
|
+
- [@zhangchunsheng](https://github.com/zhangchunsheng) - Chunsheng ZHANG (张春生)
|
|
136
|
+
|
|
137
|
+
### CSharp
|
|
138
|
+
|
|
139
|
+
[Wechaty.Grpc @ Nuget](https://www.nuget.org/packages/Wechaty.Grpc)
|
|
140
|
+
|
|
141
|
+
**Maintainer:**
|
|
142
|
+
|
|
143
|
+
- [@Darren](https://github.com/jesn) - Darren (郑波)
|
|
144
|
+
|
|
145
|
+
## Development
|
|
146
|
+
|
|
147
|
+
### Debug
|
|
148
|
+
|
|
149
|
+
- [GUI Client for GRPC Services](https://github.com/uw-labs/bloomrpc) - BloomRPC aims to give the simplest and efficient developer experience for exploring and querying your GRPC services. (Inspired by Postman and GraphQL Playground)
|
|
150
|
+
- [A gRPC CLI interface for easy testing against gRPC servers with Node.js REPL](https://github.com/njpatel/grpcc)
|
|
151
|
+
|
|
152
|
+
```shell
|
|
153
|
+
grpcc --proto ./service/myservice.proto --address 127.0.0.1:3466
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Build
|
|
157
|
+
|
|
158
|
+
```shell
|
|
159
|
+
./scripts/install-protoc.sh
|
|
160
|
+
npm install
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
> <https://github.com/google/protobuf/releases/latest>
|
|
164
|
+
|
|
165
|
+
### Generate Stubs
|
|
166
|
+
|
|
167
|
+
```shell
|
|
168
|
+
npm run generate
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
#### 1. JS for Protocol Buffer
|
|
172
|
+
|
|
173
|
+
```shell
|
|
174
|
+
protoc \
|
|
175
|
+
--js_out="import_style=commonjs,binary:${OUT_DIR}"
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
> <https://github.com/google/protobuf/releases/latest>
|
|
179
|
+
|
|
180
|
+
#### 2. JS for gRPC Stubs
|
|
181
|
+
|
|
182
|
+
```shell
|
|
183
|
+
protoc \
|
|
184
|
+
--plugin="protoc-gen-grpc=`which grpc_tools_node_protoc_plugin`" \
|
|
185
|
+
--grpc_out="${OUT_DIR}"
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
> <https://www.npmjs.com/package/grpc-tools>
|
|
189
|
+
|
|
190
|
+
#### 3. TypeScript Typing Definations for Protocol Buffer & gRPC Stubs
|
|
191
|
+
|
|
192
|
+
```shell
|
|
193
|
+
protoc \
|
|
194
|
+
--plugin="protoc-gen-grpc=node_modules/grpc_tools_node_protoc_ts/bin/protoc-gen-ts" \
|
|
195
|
+
--grpc_out="${OUT_DIR}"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
> <https://github.com/agreatfool/grpc_tools_node_protoc_ts>
|
|
199
|
+
|
|
200
|
+
#### 4. JS & TS for gRPC Web
|
|
201
|
+
|
|
202
|
+
```shell
|
|
203
|
+
protoc \
|
|
204
|
+
--plugin="protoc-gen-ts=node_modules/ts-protoc-gen/bin/protoc-gen-ts" \
|
|
205
|
+
--ts_out="service=true:${OUT_DIR}"
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
> <https://github.com/improbable-eng/ts-protoc-gen>
|
|
209
|
+
|
|
210
|
+
### Naming conventions & Style Guide
|
|
211
|
+
|
|
212
|
+
1. [Google Cloud APIs - Naming conventions](https://cloud.google.com/apis/design/naming_convention)
|
|
213
|
+
1. [Protocol Buffers - Developer Guide - Style Guide](https://developers.google.com/protocol-buffers/docs/style)
|
|
214
|
+
|
|
215
|
+
## OpenAPI
|
|
216
|
+
|
|
217
|
+
Learn more about the RESTful API service for Wechaty from [Wechaty OpenAPI](https://github.com/wechaty/openapi).
|
|
218
|
+
|
|
219
|
+
## gRPC Web
|
|
220
|
+
|
|
221
|
+
- [gRPC-Web ReactJS client, Golang Server](https://github.com/longfellowone/grpcwebtest)
|
|
222
|
+
|
|
223
|
+
## RESOURCES
|
|
224
|
+
|
|
225
|
+
### Documentation
|
|
226
|
+
|
|
227
|
+
- [Protocol Buffers Language Guide (proto3)](https://developers.google.com/protocol-buffers/docs/proto3)
|
|
228
|
+
- [Google Protocol Buffers Style Guide](https://developers.google.com/protocol-buffers/docs/style)
|
|
229
|
+
- [Protocol Buffers for TypeScript with Decorators](https://github.com/protobufjs/protobuf.js#using-decorators)
|
|
230
|
+
- [Troubleshooting gRPC](https://github.com/grpc/grpc/blob/master/TROUBLESHOOTING.md)
|
|
231
|
+
- [gRPC environment variables](https://github.com/grpc/grpc/blob/master/doc/environment_variables.md)
|
|
232
|
+
- [How to Interact With and Debug a gRPC Server](https://medium.com/@EdgePress/how-to-interact-with-and-debug-a-grpc-server-c4bc30ddeb0b)
|
|
233
|
+
|
|
234
|
+
### Links
|
|
235
|
+
|
|
236
|
+
- [探讨gRPC的Node技术生态及实现工具](https://xenojoshua.com/2018/02/grpc-node-ecosystem/)
|
|
237
|
+
- [gRPC Basics - Node.js](https://grpc.io/docs/tutorials/basic/node.html)
|
|
238
|
+
- [Building a gRPC service with Node.js](https://codelabs.developers.google.com/codelabs/cloud-grpc/)
|
|
239
|
+
- [gRPC in 3 minutes (Node.js)](https://github.com/grpc/grpc/tree/master/examples/node)
|
|
240
|
+
- [Listen gRPC and HTTP requests on the same port](https://medium.com/@drgarcia1986/listen-grpc-and-http-requests-on-the-same-port-263c40cb45ff)
|
|
241
|
+
- [gRPC to JSON proxy generator following the gRPC HTTP spec](https://github.com/grpc-ecosystem/grpc-gateway)
|
|
242
|
+
- [如何在 Node.js 中更优雅地使用 gRPC:grpc-helper](https://github.com/xizhibei/blog/issues/86)
|
|
243
|
+
- [Comparing OpenAPI With gRPC](https://dzone.com/articles/comparing-openapi-with-grpc)
|
|
244
|
+
|
|
245
|
+
#### Protocol Buffer
|
|
246
|
+
|
|
247
|
+
Thanks to the ecosystem of gRPC, we can generate OpenAPI Specification from our gRPC proto definitions automatically.
|
|
248
|
+
|
|
249
|
+
We are using [gRPC to JSON proxy generator following the gRPC HTTP spec](https://github.com/grpc-ecosystem/grpc-gateway) as the OpenAPI Specification generator ([protoc-gen-openapiv2](https://github.com/grpc-ecosystem/grpc-gateway/tree/master/protoc-gen-openapiv2)), and using [Like grpc-gateway, but written in node and dynamic](https://github.com/konsumer/grpc-dynamic-gateway) project to serve an HTTP RESTful API to gRPC proxy.
|
|
250
|
+
|
|
251
|
+
<div align="center"><a link="https://github.com/wechaty/openapi"><img src="https://raw.githubusercontent.com/wechaty/grpc/master/docs/images/grpc-gateway-architecture.svg" width="400" /><a></div>
|
|
252
|
+
|
|
253
|
+
> Image credit: [gRPC Gateway](https://grpc-ecosystem.github.io/grpc-gateway/)
|
|
254
|
+
|
|
255
|
+
Learn more about the RESTful API service for Wechaty from [Wechaty OpenAPI](https://github.com/wechaty/openapi).
|
|
256
|
+
|
|
257
|
+
See also:
|
|
258
|
+
|
|
259
|
+
- [AIP-4222 - Routing headers](https://google.aip.dev/client-libraries/4222)
|
|
260
|
+
- [gRPC-Gateway Official Website](https://grpc-ecosystem.github.io/grpc-gateway/)
|
|
261
|
+
|
|
262
|
+
## gRPC Web
|
|
263
|
+
|
|
264
|
+
- [gRPC-Web ReactJS client, Golang Server](https://github.com/longfellowone/grpcwebtest)
|
|
265
|
+
|
|
266
|
+
## Resources
|
|
267
|
+
|
|
268
|
+
Check out [RESOURCES.md](RESOURCES.md) file for learning resources.
|
|
269
|
+
|
|
270
|
+
## Guidelines
|
|
271
|
+
|
|
272
|
+
- [Google Protocol Buffers Style Guide](https://developers.google.com/protocol-buffers/docs/style)
|
|
273
|
+
- [Google Cloud API Naming Conventions](https://cloud.google.com/apis/design/naming_convention)
|
|
274
|
+
- [Google Cloud Cloud API Design Guide](https://cloud.google.com/apis/design/)
|
|
275
|
+
|
|
276
|
+
## Changelog
|
|
277
|
+
|
|
278
|
+
### master v1.0 (Mar 14, 2022)
|
|
279
|
+
|
|
280
|
+
1. v1.0 release
|
|
281
|
+
1. add `post` event
|
|
282
|
+
|
|
283
|
+
### v0.33 (Oct 18, 2021)
|
|
284
|
+
|
|
285
|
+
- ~~[ ] Rename `ENUM` from `CONTACT_GENDER_MALE` to `MALE` ([#110](https://github.com/wechaty/grpc/issues/110))~~
|
|
286
|
+
- [ ] Fix typos
|
|
287
|
+
|
|
288
|
+
### v0.27
|
|
289
|
+
|
|
290
|
+
1. ES Modules support
|
|
291
|
+
1. Export generated protocol buffers class as `puppet`
|
|
292
|
+
|
|
293
|
+
### v0.20 (Feb 21, 2021)
|
|
294
|
+
|
|
295
|
+
1. Rename NPM module name from `@chatie/grpc` to `wechaty-grpc`
|
|
296
|
+
1. Add OpenAPI annotations & generators for supporting <https://github.com/wechaty/openapi>
|
|
297
|
+
1. Code clean.
|
|
298
|
+
|
|
299
|
+
### v0.18 (Oct 15, 2020)
|
|
300
|
+
|
|
301
|
+
- Add new `MessageFileStream` and `MessageImageStream` to replace the `MessageFile` and `MessageImage` method to avoid blocking nodejs event loop when sending large files ([#88](https://github.com/wechaty/grpc/pull/88)) by [@windmemory](https://github.com/windmemory)
|
|
302
|
+
- Add new `MessageSendFileStream` to replace the `MessageSendFile` method to avoid blocking nodejs event loop when sending large files ([#89](https://github.com/wechaty/grpc/pull/89)) by [@windmemory](https://github.com/windmemory)
|
|
303
|
+
|
|
304
|
+
### v0.17 (Aug 5, 2020)
|
|
305
|
+
|
|
306
|
+
- Add PHH Support ([#76](https://github.com/wechaty/grpc/pull/76) [#78](https://github.com/wechaty/grpc/pull/78)) by [@zhangchunsheng](https://github.com/zhangchunsheng)
|
|
307
|
+
- Publish PHP Module at <https://github.com/wechaty/php-grpc>
|
|
308
|
+
|
|
309
|
+
### v0.13 (Apr 19, 2020)
|
|
310
|
+
|
|
311
|
+
- Add Java Support ([#52](https://github.com/wechaty/grpc/issues/52) [#53](https://github.com/wechaty/grpc/issues/53) by [@diaozxin007](https://github.com/diaozxin007))
|
|
312
|
+
- Publish Java Module at [Open Source Project Repository HostingOSSRH-56843 - Release the Chatie/grpc Java Client](https://issues.sonatype.org/browse/OSSRH-56843)
|
|
313
|
+
|
|
314
|
+
### v0.11 (Apr 10, 2020)
|
|
315
|
+
|
|
316
|
+
- Add Go Support ([#50](https://github.com/wechaty/grpc/issues/50) by [@dchaofei](https://github.com/dchaofei))
|
|
317
|
+
- Publish Go Module at <github.com/wechaty/go-grpc>
|
|
318
|
+
|
|
319
|
+
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
|
|
320
|
+
|
|
321
|
+
1. Fork the Project
|
|
322
|
+
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
|
323
|
+
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
|
324
|
+
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
|
325
|
+
5. Open a Pull Request
|
|
326
|
+
|
|
327
|
+
See [CONTRIBUTING.md](http://github.com/wechaty/grpc/blob/master/CONTRIBUTING.md) for more details.
|
|
328
|
+
|
|
329
|
+
## Releases
|
|
330
|
+
|
|
331
|
+
Since its creation in 2016, a number of Wechaty versions have been released. For more information about the release history and the current stable version, you can read the [Wechaty release notes](https://github.com/Wechaty/wechaty/releases) on Github.
|
|
332
|
+
|
|
333
|
+
## Contributors
|
|
334
|
+
|
|
335
|
+
<a href="https://github.com/wechaty/grpc/graphs/contributors">
|
|
336
|
+
<img src="https://contrib.rocks/image?repo=wechaty/grpc" />
|
|
337
|
+
</a>
|
|
338
|
+
|
|
339
|
+
Made with [contrib.rocks](https://contrib.rocks).
|
|
340
|
+
|
|
341
|
+
## Maintainer
|
|
342
|
+
|
|
343
|
+
Wechaty is maintained by [Huan](https://github.com/huan), [Rui](https://github.com/lijiarui), and a community of Open Source Contributors. We are always looking for people to join the Wechaty community to maintain the Wechaty codebase and documentation. You necessarily don't have to be a programmer to contribute to Wechaty. To get started contributing, you can read the [CONTRIBUTING.md](http://github.com/wechaty/grpc/blob/master/CONTRIBUTING.md).
|
|
344
|
+
|
|
345
|
+
## Getting help
|
|
346
|
+
|
|
347
|
+
Wechaty has a community of very helpful contributors on different platforms you can join to get help from. Before joining any of the communities, we recommend that you read our Code of conduct]o that you adhere to our community guidelines. A full list of the different Wechaty communities can be accessed from the [Wechaty community](https://wechaty.js.org/docs/community/) section of this documentation.
|
|
348
|
+
|
|
349
|
+
## Copyright & License
|
|
350
|
+
|
|
351
|
+
Wechaty is an [Open Source Project](https://opensource.com/resources/what-open-source). It is released under [Apache-2.0 license](https://github.com/wechaty/wechaty/blob/master/LICENSE) and the corresponding documentation is released under the [Creative Commons license](https://creativecommons.org/licenses/).
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CommonJS Wrappers
|
|
2
|
+
|
|
3
|
+
Huan(202108): CommonJS wrappers for workaround
|
|
4
|
+
|
|
5
|
+
## package.json
|
|
6
|
+
|
|
7
|
+
It must be exists because the ts-node will require this file for running under CommonJS mode.
|
|
8
|
+
|
|
9
|
+
## `.cjs`
|
|
10
|
+
|
|
11
|
+
`.cjs` is a file that contains CommonJS wrapper code.
|
|
12
|
+
|
|
13
|
+
## `.cjs.d.ts`
|
|
14
|
+
|
|
15
|
+
`.cjs.d.ts` is a file that contains the type definition of the CommonJS wrapper code.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const codeRoot: string
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const googleFileList = [
|
|
2
|
+
'../../out/google/api/health_check/v1/health_check_grpc_pb.js',
|
|
3
|
+
'../../out/google/api/health_check/v1/health_check_pb.js',
|
|
4
|
+
]
|
|
5
|
+
|
|
6
|
+
module.exports = googleFileList.reduce((acc, pkg) => ({
|
|
7
|
+
...acc,
|
|
8
|
+
...require(pkg),
|
|
9
|
+
}), {}) // Huan(202108): must provide a `{}` as the initial value, or it will be `[]`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env -S ts-node --project tsconfig.cjs.json
|
|
2
|
+
|
|
3
|
+
import { test } from 'tstest'
|
|
4
|
+
|
|
5
|
+
import google from './google.cjs'
|
|
6
|
+
|
|
7
|
+
test('CJS: HealthCheckResponse', async t => {
|
|
8
|
+
t.ok(google.HealthCheckResponse, 'should exists "HealthCheckResponse"')
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
test('CJS: ServingStatus.SERVING', async t => {
|
|
12
|
+
t.ok(google.HealthCheckResponse.ServingStatus.SERVING, 'should exists "ServingStatus.SERVING"')
|
|
13
|
+
})
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const puppetFileList = [
|
|
2
|
+
'../../out/wechaty/deprecated/file-box_pb.js',
|
|
3
|
+
|
|
4
|
+
'../../out/wechaty/puppet/base_pb.js',
|
|
5
|
+
'../../out/wechaty/puppet/contact_pb.js',
|
|
6
|
+
'../../out/wechaty/puppet/download-upload_pb.js',
|
|
7
|
+
'../../out/wechaty/puppet/event_pb.js',
|
|
8
|
+
'../../out/wechaty/puppet/friendship_pb.js',
|
|
9
|
+
'../../out/wechaty/puppet/location_pb.js',
|
|
10
|
+
'../../out/wechaty/puppet/message_pb.js',
|
|
11
|
+
'../../out/wechaty/puppet/mini-program_pb.js',
|
|
12
|
+
'../../out/wechaty/puppet/referrer_pb.js',
|
|
13
|
+
'../../out/wechaty/puppet/room_pb.js',
|
|
14
|
+
'../../out/wechaty/puppet/room-invitation_pb.js',
|
|
15
|
+
'../../out/wechaty/puppet/room-member_pb.js',
|
|
16
|
+
'../../out/wechaty/puppet/tag_pb.js',
|
|
17
|
+
'../../out/wechaty/puppet/url-link_pb.js',
|
|
18
|
+
|
|
19
|
+
'../../out/wechaty/puppet_grpc_pb.js',
|
|
20
|
+
'../../out/wechaty/puppet_pb.js',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Huan(202108):
|
|
25
|
+
* if there's a "package.json" file in the `out/` directory,
|
|
26
|
+
* then all the files in the `out/` directory will be treated as one module,
|
|
27
|
+
* which means tht `require` each file under that directory will add methods to the same module.
|
|
28
|
+
*/
|
|
29
|
+
// for (const pkg of pkgs) {
|
|
30
|
+
// console.info('## pkg:', pkg)
|
|
31
|
+
// const module = require(pkg)
|
|
32
|
+
// console.info(Object.keys(module).length)
|
|
33
|
+
// // OOPS! The output number above will be keep increasing
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
module.exports = puppetFileList.reduce((acc, pkg) => ({
|
|
37
|
+
...acc,
|
|
38
|
+
...require(pkg),
|
|
39
|
+
}), {}) // Huan(202108): must provide a `{}` as the initial value, or it will be `[]`
|