@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,48 @@
|
|
|
1
|
+
// source: google/api/annotations.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
|
+
|
|
18
|
+
var google_api_http_pb = require('../../google/api/http_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_http_pb);
|
|
20
|
+
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
21
|
+
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
22
|
+
goog.exportSymbol('proto.google.api.http', null, global);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A tuple of {field number, class constructor} for the extension
|
|
26
|
+
* field named `http`.
|
|
27
|
+
* @type {!jspb.ExtensionFieldInfo<!proto.google.api.HttpRule>}
|
|
28
|
+
*/
|
|
29
|
+
proto.google.api.http = new jspb.ExtensionFieldInfo(
|
|
30
|
+
72295728,
|
|
31
|
+
{http: 0},
|
|
32
|
+
google_api_http_pb.HttpRule,
|
|
33
|
+
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
|
|
34
|
+
google_api_http_pb.HttpRule.toObject),
|
|
35
|
+
0);
|
|
36
|
+
|
|
37
|
+
google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(
|
|
38
|
+
proto.google.api.http,
|
|
39
|
+
jspb.BinaryReader.prototype.readMessage,
|
|
40
|
+
jspb.BinaryWriter.prototype.writeMessage,
|
|
41
|
+
google_api_http_pb.HttpRule.serializeBinaryToWriter,
|
|
42
|
+
google_api_http_pb.HttpRule.deserializeBinaryFromReader,
|
|
43
|
+
false);
|
|
44
|
+
// This registers the extension field with the extended class, so that
|
|
45
|
+
// toObject() will function correctly.
|
|
46
|
+
google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
|
|
47
|
+
|
|
48
|
+
goog.object.extend(exports, proto.google.api);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// package: grpc.health.v1
|
|
2
|
+
// file: google/api/health_check/v1/health_check.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as google_api_health_check_v1_health_check_pb from "../../../../google/api/health_check/v1/health_check_pb";
|
|
9
|
+
|
|
10
|
+
interface IHealthService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
check: IHealthService_ICheck;
|
|
12
|
+
watch: IHealthService_IWatch;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface IHealthService_ICheck extends grpc.MethodDefinition<google_api_health_check_v1_health_check_pb.HealthCheckRequest, google_api_health_check_v1_health_check_pb.HealthCheckResponse> {
|
|
16
|
+
path: "/grpc.health.v1.Health/Check";
|
|
17
|
+
requestStream: false;
|
|
18
|
+
responseStream: false;
|
|
19
|
+
requestSerialize: grpc.serialize<google_api_health_check_v1_health_check_pb.HealthCheckRequest>;
|
|
20
|
+
requestDeserialize: grpc.deserialize<google_api_health_check_v1_health_check_pb.HealthCheckRequest>;
|
|
21
|
+
responseSerialize: grpc.serialize<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
22
|
+
responseDeserialize: grpc.deserialize<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
23
|
+
}
|
|
24
|
+
interface IHealthService_IWatch extends grpc.MethodDefinition<google_api_health_check_v1_health_check_pb.HealthCheckRequest, google_api_health_check_v1_health_check_pb.HealthCheckResponse> {
|
|
25
|
+
path: "/grpc.health.v1.Health/Watch";
|
|
26
|
+
requestStream: false;
|
|
27
|
+
responseStream: true;
|
|
28
|
+
requestSerialize: grpc.serialize<google_api_health_check_v1_health_check_pb.HealthCheckRequest>;
|
|
29
|
+
requestDeserialize: grpc.deserialize<google_api_health_check_v1_health_check_pb.HealthCheckRequest>;
|
|
30
|
+
responseSerialize: grpc.serialize<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
31
|
+
responseDeserialize: grpc.deserialize<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const HealthService: IHealthService;
|
|
35
|
+
|
|
36
|
+
export interface IHealthServer extends grpc.UntypedServiceImplementation {
|
|
37
|
+
check: grpc.handleUnaryCall<google_api_health_check_v1_health_check_pb.HealthCheckRequest, google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
38
|
+
watch: grpc.handleServerStreamingCall<google_api_health_check_v1_health_check_pb.HealthCheckRequest, google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IHealthClient {
|
|
42
|
+
check(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, callback: (error: grpc.ServiceError | null, response: google_api_health_check_v1_health_check_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
|
|
43
|
+
check(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_api_health_check_v1_health_check_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
|
|
44
|
+
check(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_api_health_check_v1_health_check_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
|
|
45
|
+
watch(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
46
|
+
watch(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class HealthClient extends grpc.Client implements IHealthClient {
|
|
50
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
51
|
+
public check(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, callback: (error: grpc.ServiceError | null, response: google_api_health_check_v1_health_check_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
|
|
52
|
+
public check(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_api_health_check_v1_health_check_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
|
|
53
|
+
public check(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_api_health_check_v1_health_check_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
|
|
54
|
+
public watch(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
55
|
+
public watch(request: google_api_health_check_v1_health_check_pb.HealthCheckRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
// Original file comments:
|
|
4
|
+
// Copyright 2015 The gRPC Authors
|
|
5
|
+
//
|
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
// you may not use this file except in compliance with the License.
|
|
8
|
+
// You may obtain a copy of the License at
|
|
9
|
+
//
|
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
//
|
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
// See the License for the specific language governing permissions and
|
|
16
|
+
// limitations under the License.
|
|
17
|
+
//
|
|
18
|
+
// The canonical version of this proto can be found at
|
|
19
|
+
// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
|
|
20
|
+
//
|
|
21
|
+
'use strict';
|
|
22
|
+
var grpc = require('@grpc/grpc-js');
|
|
23
|
+
var google_api_health_check_v1_health_check_pb = require('../../../../google/api/health_check/v1/health_check_pb.js');
|
|
24
|
+
|
|
25
|
+
function serialize_grpc_health_v1_HealthCheckRequest(arg) {
|
|
26
|
+
if (!(arg instanceof google_api_health_check_v1_health_check_pb.HealthCheckRequest)) {
|
|
27
|
+
throw new Error('Expected argument of type grpc.health.v1.HealthCheckRequest');
|
|
28
|
+
}
|
|
29
|
+
return Buffer.from(arg.serializeBinary());
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function deserialize_grpc_health_v1_HealthCheckRequest(buffer_arg) {
|
|
33
|
+
return google_api_health_check_v1_health_check_pb.HealthCheckRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function serialize_grpc_health_v1_HealthCheckResponse(arg) {
|
|
37
|
+
if (!(arg instanceof google_api_health_check_v1_health_check_pb.HealthCheckResponse)) {
|
|
38
|
+
throw new Error('Expected argument of type grpc.health.v1.HealthCheckResponse');
|
|
39
|
+
}
|
|
40
|
+
return Buffer.from(arg.serializeBinary());
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function deserialize_grpc_health_v1_HealthCheckResponse(buffer_arg) {
|
|
44
|
+
return google_api_health_check_v1_health_check_pb.HealthCheckResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
var HealthService = exports.HealthService = {
|
|
49
|
+
// If the requested service is unknown, the call will fail with status
|
|
50
|
+
// NOT_FOUND.
|
|
51
|
+
check: {
|
|
52
|
+
path: '/grpc.health.v1.Health/Check',
|
|
53
|
+
requestStream: false,
|
|
54
|
+
responseStream: false,
|
|
55
|
+
requestType: google_api_health_check_v1_health_check_pb.HealthCheckRequest,
|
|
56
|
+
responseType: google_api_health_check_v1_health_check_pb.HealthCheckResponse,
|
|
57
|
+
requestSerialize: serialize_grpc_health_v1_HealthCheckRequest,
|
|
58
|
+
requestDeserialize: deserialize_grpc_health_v1_HealthCheckRequest,
|
|
59
|
+
responseSerialize: serialize_grpc_health_v1_HealthCheckResponse,
|
|
60
|
+
responseDeserialize: deserialize_grpc_health_v1_HealthCheckResponse,
|
|
61
|
+
},
|
|
62
|
+
// Performs a watch for the serving status of the requested service.
|
|
63
|
+
// The server will immediately send back a message indicating the current
|
|
64
|
+
// serving status. It will then subsequently send a new message whenever
|
|
65
|
+
// the service's serving status changes.
|
|
66
|
+
//
|
|
67
|
+
// If the requested service is unknown when the call is received, the
|
|
68
|
+
// server will send a message setting the serving status to
|
|
69
|
+
// SERVICE_UNKNOWN but will *not* terminate the call. If at some
|
|
70
|
+
// future point, the serving status of the service becomes known, the
|
|
71
|
+
// server will send a new message with the service's serving status.
|
|
72
|
+
//
|
|
73
|
+
// If the call terminates with status UNIMPLEMENTED, then clients
|
|
74
|
+
// should assume this method is not supported and should not retry the
|
|
75
|
+
// call. If the call terminates with any other status (including OK),
|
|
76
|
+
// clients should retry the call with appropriate exponential backoff.
|
|
77
|
+
watch: {
|
|
78
|
+
path: '/grpc.health.v1.Health/Watch',
|
|
79
|
+
requestStream: false,
|
|
80
|
+
responseStream: true,
|
|
81
|
+
requestType: google_api_health_check_v1_health_check_pb.HealthCheckRequest,
|
|
82
|
+
responseType: google_api_health_check_v1_health_check_pb.HealthCheckResponse,
|
|
83
|
+
requestSerialize: serialize_grpc_health_v1_HealthCheckRequest,
|
|
84
|
+
requestDeserialize: deserialize_grpc_health_v1_HealthCheckRequest,
|
|
85
|
+
responseSerialize: serialize_grpc_health_v1_HealthCheckResponse,
|
|
86
|
+
responseDeserialize: deserialize_grpc_health_v1_HealthCheckResponse,
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
exports.HealthClient = grpc.makeGenericClientConstructor(HealthService);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// package: grpc.health.v1
|
|
2
|
+
// file: google/api/health_check/v1/health_check.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class HealthCheckRequest extends jspb.Message {
|
|
7
|
+
getService(): string;
|
|
8
|
+
setService(value: string): void;
|
|
9
|
+
|
|
10
|
+
serializeBinary(): Uint8Array;
|
|
11
|
+
toObject(includeInstance?: boolean): HealthCheckRequest.AsObject;
|
|
12
|
+
static toObject(includeInstance: boolean, msg: HealthCheckRequest): HealthCheckRequest.AsObject;
|
|
13
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
14
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
15
|
+
static serializeBinaryToWriter(message: HealthCheckRequest, writer: jspb.BinaryWriter): void;
|
|
16
|
+
static deserializeBinary(bytes: Uint8Array): HealthCheckRequest;
|
|
17
|
+
static deserializeBinaryFromReader(message: HealthCheckRequest, reader: jspb.BinaryReader): HealthCheckRequest;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export namespace HealthCheckRequest {
|
|
21
|
+
export type AsObject = {
|
|
22
|
+
service: string,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class HealthCheckResponse extends jspb.Message {
|
|
27
|
+
getStatus(): HealthCheckResponse.ServingStatusMap[keyof HealthCheckResponse.ServingStatusMap];
|
|
28
|
+
setStatus(value: HealthCheckResponse.ServingStatusMap[keyof HealthCheckResponse.ServingStatusMap]): void;
|
|
29
|
+
|
|
30
|
+
serializeBinary(): Uint8Array;
|
|
31
|
+
toObject(includeInstance?: boolean): HealthCheckResponse.AsObject;
|
|
32
|
+
static toObject(includeInstance: boolean, msg: HealthCheckResponse): HealthCheckResponse.AsObject;
|
|
33
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
34
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
35
|
+
static serializeBinaryToWriter(message: HealthCheckResponse, writer: jspb.BinaryWriter): void;
|
|
36
|
+
static deserializeBinary(bytes: Uint8Array): HealthCheckResponse;
|
|
37
|
+
static deserializeBinaryFromReader(message: HealthCheckResponse, reader: jspb.BinaryReader): HealthCheckResponse;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace HealthCheckResponse {
|
|
41
|
+
export type AsObject = {
|
|
42
|
+
status: HealthCheckResponse.ServingStatusMap[keyof HealthCheckResponse.ServingStatusMap],
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ServingStatusMap {
|
|
46
|
+
UNKNOWN: 0;
|
|
47
|
+
SERVING: 1;
|
|
48
|
+
NOT_SERVING: 2;
|
|
49
|
+
SERVICE_UNKNOWN: 3;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const ServingStatus: ServingStatusMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
// source: google/api/health_check/v1/health_check.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
|
+
|
|
18
|
+
goog.exportSymbol('proto.grpc.health.v1.HealthCheckRequest', null, global);
|
|
19
|
+
goog.exportSymbol('proto.grpc.health.v1.HealthCheckResponse', null, global);
|
|
20
|
+
goog.exportSymbol('proto.grpc.health.v1.HealthCheckResponse.ServingStatus', null, global);
|
|
21
|
+
/**
|
|
22
|
+
* Generated by JsPbCodeGenerator.
|
|
23
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
24
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
25
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
26
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
27
|
+
* valid.
|
|
28
|
+
* @extends {jspb.Message}
|
|
29
|
+
* @constructor
|
|
30
|
+
*/
|
|
31
|
+
proto.grpc.health.v1.HealthCheckRequest = function(opt_data) {
|
|
32
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
33
|
+
};
|
|
34
|
+
goog.inherits(proto.grpc.health.v1.HealthCheckRequest, jspb.Message);
|
|
35
|
+
if (goog.DEBUG && !COMPILED) {
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
* @override
|
|
39
|
+
*/
|
|
40
|
+
proto.grpc.health.v1.HealthCheckRequest.displayName = 'proto.grpc.health.v1.HealthCheckRequest';
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Generated by JsPbCodeGenerator.
|
|
44
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
45
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
46
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
47
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
48
|
+
* valid.
|
|
49
|
+
* @extends {jspb.Message}
|
|
50
|
+
* @constructor
|
|
51
|
+
*/
|
|
52
|
+
proto.grpc.health.v1.HealthCheckResponse = function(opt_data) {
|
|
53
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
54
|
+
};
|
|
55
|
+
goog.inherits(proto.grpc.health.v1.HealthCheckResponse, jspb.Message);
|
|
56
|
+
if (goog.DEBUG && !COMPILED) {
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* @override
|
|
60
|
+
*/
|
|
61
|
+
proto.grpc.health.v1.HealthCheckResponse.displayName = 'proto.grpc.health.v1.HealthCheckResponse';
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
67
|
+
/**
|
|
68
|
+
* Creates an object representation of this proto.
|
|
69
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
70
|
+
* Optional fields that are not set will be set to undefined.
|
|
71
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
72
|
+
* For the list of reserved names please see:
|
|
73
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
74
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
75
|
+
* JSPB instance for transitional soy proto support:
|
|
76
|
+
* http://goto/soy-param-migration
|
|
77
|
+
* @return {!Object}
|
|
78
|
+
*/
|
|
79
|
+
proto.grpc.health.v1.HealthCheckRequest.prototype.toObject = function(opt_includeInstance) {
|
|
80
|
+
return proto.grpc.health.v1.HealthCheckRequest.toObject(opt_includeInstance, this);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Static version of the {@see toObject} method.
|
|
86
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
87
|
+
* the JSPB instance for transitional soy proto support:
|
|
88
|
+
* http://goto/soy-param-migration
|
|
89
|
+
* @param {!proto.grpc.health.v1.HealthCheckRequest} msg The msg instance to transform.
|
|
90
|
+
* @return {!Object}
|
|
91
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92
|
+
*/
|
|
93
|
+
proto.grpc.health.v1.HealthCheckRequest.toObject = function(includeInstance, msg) {
|
|
94
|
+
var f, obj = {
|
|
95
|
+
service: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
if (includeInstance) {
|
|
99
|
+
obj.$jspbMessageInstance = msg;
|
|
100
|
+
}
|
|
101
|
+
return obj;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Deserializes binary data (in protobuf wire format).
|
|
108
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
109
|
+
* @return {!proto.grpc.health.v1.HealthCheckRequest}
|
|
110
|
+
*/
|
|
111
|
+
proto.grpc.health.v1.HealthCheckRequest.deserializeBinary = function(bytes) {
|
|
112
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113
|
+
var msg = new proto.grpc.health.v1.HealthCheckRequest;
|
|
114
|
+
return proto.grpc.health.v1.HealthCheckRequest.deserializeBinaryFromReader(msg, reader);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
120
|
+
* given reader into the given message object.
|
|
121
|
+
* @param {!proto.grpc.health.v1.HealthCheckRequest} msg The message object to deserialize into.
|
|
122
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
123
|
+
* @return {!proto.grpc.health.v1.HealthCheckRequest}
|
|
124
|
+
*/
|
|
125
|
+
proto.grpc.health.v1.HealthCheckRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
126
|
+
while (reader.nextField()) {
|
|
127
|
+
if (reader.isEndGroup()) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
var field = reader.getFieldNumber();
|
|
131
|
+
switch (field) {
|
|
132
|
+
case 1:
|
|
133
|
+
var value = /** @type {string} */ (reader.readString());
|
|
134
|
+
msg.setService(value);
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
reader.skipField();
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return msg;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
147
|
+
* @return {!Uint8Array}
|
|
148
|
+
*/
|
|
149
|
+
proto.grpc.health.v1.HealthCheckRequest.prototype.serializeBinary = function() {
|
|
150
|
+
var writer = new jspb.BinaryWriter();
|
|
151
|
+
proto.grpc.health.v1.HealthCheckRequest.serializeBinaryToWriter(this, writer);
|
|
152
|
+
return writer.getResultBuffer();
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
158
|
+
* format), writing to the given BinaryWriter.
|
|
159
|
+
* @param {!proto.grpc.health.v1.HealthCheckRequest} message
|
|
160
|
+
* @param {!jspb.BinaryWriter} writer
|
|
161
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
162
|
+
*/
|
|
163
|
+
proto.grpc.health.v1.HealthCheckRequest.serializeBinaryToWriter = function(message, writer) {
|
|
164
|
+
var f = undefined;
|
|
165
|
+
f = message.getService();
|
|
166
|
+
if (f.length > 0) {
|
|
167
|
+
writer.writeString(
|
|
168
|
+
1,
|
|
169
|
+
f
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* optional string service = 1;
|
|
177
|
+
* @return {string}
|
|
178
|
+
*/
|
|
179
|
+
proto.grpc.health.v1.HealthCheckRequest.prototype.getService = function() {
|
|
180
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @param {string} value
|
|
186
|
+
* @return {!proto.grpc.health.v1.HealthCheckRequest} returns this
|
|
187
|
+
*/
|
|
188
|
+
proto.grpc.health.v1.HealthCheckRequest.prototype.setService = function(value) {
|
|
189
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
197
|
+
/**
|
|
198
|
+
* Creates an object representation of this proto.
|
|
199
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
200
|
+
* Optional fields that are not set will be set to undefined.
|
|
201
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
202
|
+
* For the list of reserved names please see:
|
|
203
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
204
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
205
|
+
* JSPB instance for transitional soy proto support:
|
|
206
|
+
* http://goto/soy-param-migration
|
|
207
|
+
* @return {!Object}
|
|
208
|
+
*/
|
|
209
|
+
proto.grpc.health.v1.HealthCheckResponse.prototype.toObject = function(opt_includeInstance) {
|
|
210
|
+
return proto.grpc.health.v1.HealthCheckResponse.toObject(opt_includeInstance, this);
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Static version of the {@see toObject} method.
|
|
216
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
217
|
+
* the JSPB instance for transitional soy proto support:
|
|
218
|
+
* http://goto/soy-param-migration
|
|
219
|
+
* @param {!proto.grpc.health.v1.HealthCheckResponse} msg The msg instance to transform.
|
|
220
|
+
* @return {!Object}
|
|
221
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
222
|
+
*/
|
|
223
|
+
proto.grpc.health.v1.HealthCheckResponse.toObject = function(includeInstance, msg) {
|
|
224
|
+
var f, obj = {
|
|
225
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
if (includeInstance) {
|
|
229
|
+
obj.$jspbMessageInstance = msg;
|
|
230
|
+
}
|
|
231
|
+
return obj;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Deserializes binary data (in protobuf wire format).
|
|
238
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
239
|
+
* @return {!proto.grpc.health.v1.HealthCheckResponse}
|
|
240
|
+
*/
|
|
241
|
+
proto.grpc.health.v1.HealthCheckResponse.deserializeBinary = function(bytes) {
|
|
242
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
243
|
+
var msg = new proto.grpc.health.v1.HealthCheckResponse;
|
|
244
|
+
return proto.grpc.health.v1.HealthCheckResponse.deserializeBinaryFromReader(msg, reader);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
250
|
+
* given reader into the given message object.
|
|
251
|
+
* @param {!proto.grpc.health.v1.HealthCheckResponse} msg The message object to deserialize into.
|
|
252
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
253
|
+
* @return {!proto.grpc.health.v1.HealthCheckResponse}
|
|
254
|
+
*/
|
|
255
|
+
proto.grpc.health.v1.HealthCheckResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
256
|
+
while (reader.nextField()) {
|
|
257
|
+
if (reader.isEndGroup()) {
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
var field = reader.getFieldNumber();
|
|
261
|
+
switch (field) {
|
|
262
|
+
case 1:
|
|
263
|
+
var value = /** @type {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus} */ (reader.readEnum());
|
|
264
|
+
msg.setStatus(value);
|
|
265
|
+
break;
|
|
266
|
+
default:
|
|
267
|
+
reader.skipField();
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return msg;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
277
|
+
* @return {!Uint8Array}
|
|
278
|
+
*/
|
|
279
|
+
proto.grpc.health.v1.HealthCheckResponse.prototype.serializeBinary = function() {
|
|
280
|
+
var writer = new jspb.BinaryWriter();
|
|
281
|
+
proto.grpc.health.v1.HealthCheckResponse.serializeBinaryToWriter(this, writer);
|
|
282
|
+
return writer.getResultBuffer();
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
288
|
+
* format), writing to the given BinaryWriter.
|
|
289
|
+
* @param {!proto.grpc.health.v1.HealthCheckResponse} message
|
|
290
|
+
* @param {!jspb.BinaryWriter} writer
|
|
291
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
292
|
+
*/
|
|
293
|
+
proto.grpc.health.v1.HealthCheckResponse.serializeBinaryToWriter = function(message, writer) {
|
|
294
|
+
var f = undefined;
|
|
295
|
+
f = message.getStatus();
|
|
296
|
+
if (f !== 0.0) {
|
|
297
|
+
writer.writeEnum(
|
|
298
|
+
1,
|
|
299
|
+
f
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @enum {number}
|
|
307
|
+
*/
|
|
308
|
+
proto.grpc.health.v1.HealthCheckResponse.ServingStatus = {
|
|
309
|
+
UNKNOWN: 0,
|
|
310
|
+
SERVING: 1,
|
|
311
|
+
NOT_SERVING: 2,
|
|
312
|
+
SERVICE_UNKNOWN: 3
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* optional ServingStatus status = 1;
|
|
317
|
+
* @return {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus}
|
|
318
|
+
*/
|
|
319
|
+
proto.grpc.health.v1.HealthCheckResponse.prototype.getStatus = function() {
|
|
320
|
+
return /** @type {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @param {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus} value
|
|
326
|
+
* @return {!proto.grpc.health.v1.HealthCheckResponse} returns this
|
|
327
|
+
*/
|
|
328
|
+
proto.grpc.health.v1.HealthCheckResponse.prototype.setStatus = function(value) {
|
|
329
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
goog.object.extend(exports, proto.grpc.health.v1);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// package: grpc.health.v1
|
|
2
|
+
// file: google/api/health_check/v1/health_check.proto
|
|
3
|
+
|
|
4
|
+
import * as google_api_health_check_v1_health_check_pb from "../../../../google/api/health_check/v1/health_check_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type HealthCheck = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof Health;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof google_api_health_check_v1_health_check_pb.HealthCheckRequest;
|
|
13
|
+
readonly responseType: typeof google_api_health_check_v1_health_check_pb.HealthCheckResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type HealthWatch = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof Health;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: true;
|
|
21
|
+
readonly requestType: typeof google_api_health_check_v1_health_check_pb.HealthCheckRequest;
|
|
22
|
+
readonly responseType: typeof google_api_health_check_v1_health_check_pb.HealthCheckResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export class Health {
|
|
26
|
+
static readonly serviceName: string;
|
|
27
|
+
static readonly Check: HealthCheck;
|
|
28
|
+
static readonly Watch: HealthWatch;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
32
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
33
|
+
|
|
34
|
+
interface UnaryResponse {
|
|
35
|
+
cancel(): void;
|
|
36
|
+
}
|
|
37
|
+
interface ResponseStream<T> {
|
|
38
|
+
cancel(): void;
|
|
39
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
40
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
41
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
42
|
+
}
|
|
43
|
+
interface RequestStream<T> {
|
|
44
|
+
write(message: T): RequestStream<T>;
|
|
45
|
+
end(): void;
|
|
46
|
+
cancel(): void;
|
|
47
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
48
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
49
|
+
}
|
|
50
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
51
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
52
|
+
end(): void;
|
|
53
|
+
cancel(): void;
|
|
54
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
55
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
56
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class HealthClient {
|
|
60
|
+
readonly serviceHost: string;
|
|
61
|
+
|
|
62
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
63
|
+
check(
|
|
64
|
+
requestMessage: google_api_health_check_v1_health_check_pb.HealthCheckRequest,
|
|
65
|
+
metadata: grpc.Metadata,
|
|
66
|
+
callback: (error: ServiceError|null, responseMessage: google_api_health_check_v1_health_check_pb.HealthCheckResponse|null) => void
|
|
67
|
+
): UnaryResponse;
|
|
68
|
+
check(
|
|
69
|
+
requestMessage: google_api_health_check_v1_health_check_pb.HealthCheckRequest,
|
|
70
|
+
callback: (error: ServiceError|null, responseMessage: google_api_health_check_v1_health_check_pb.HealthCheckResponse|null) => void
|
|
71
|
+
): UnaryResponse;
|
|
72
|
+
watch(requestMessage: google_api_health_check_v1_health_check_pb.HealthCheckRequest, metadata?: grpc.Metadata): ResponseStream<google_api_health_check_v1_health_check_pb.HealthCheckResponse>;
|
|
73
|
+
}
|
|
74
|
+
|