@dxos/protocols 0.1.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 +21 -0
- package/README.md +11 -0
- package/dist/src/codec.test.d.ts +2 -0
- package/dist/src/codec.test.d.ts.map +1 -0
- package/dist/src/codec.test.js +21 -0
- package/dist/src/codec.test.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +23 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/proto/gen/dxos/bot.d.ts +268 -0
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/bot.js +19 -0
- package/dist/src/proto/gen/dxos/bot.js.map +1 -0
- package/dist/src/proto/gen/dxos/client.d.ts +388 -0
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/client.js +15 -0
- package/dist/src/proto/gen/dxos/client.js.map +1 -0
- package/dist/src/proto/gen/dxos/config.d.ts +849 -0
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/config.js +39 -0
- package/dist/src/proto/gen/dxos/config.js.map +1 -0
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +387 -0
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/devtools/host.js +3 -0
- package/dist/src/proto/gen/dxos/devtools/host.js.map +1 -0
- package/dist/src/proto/gen/dxos/devtools/swarmLog.d.ts +50 -0
- package/dist/src/proto/gen/dxos/devtools/swarmLog.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/devtools/swarmLog.js +3 -0
- package/dist/src/proto/gen/dxos/devtools/swarmLog.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +112 -0
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/feed.js +17 -0
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +64 -0
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/metadata.js +3 -0
- package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts +10 -0
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/model/messenger.js +3 -0
- package/dist/src/proto/gen/dxos/echo/model/messenger.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/model/object.d.ts +141 -0
- package/dist/src/proto/gen/dxos/echo/model/object.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/model/object.js +40 -0
- package/dist/src/proto/gen/dxos/echo/model/object.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts +16 -0
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/model/text.js +3 -0
- package/dist/src/proto/gen/dxos/echo/model/text.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/service.d.ts +83 -0
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/service.js +3 -0
- package/dist/src/proto/gen/dxos/echo/service.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +133 -0
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/snapshot.js +3 -0
- package/dist/src/proto/gen/dxos/echo/snapshot.js.map +1 -0
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +20 -0
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/echo/timeframe.js +3 -0
- package/dist/src/proto/gen/dxos/echo/timeframe.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +36 -0
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/auth.js +3 -0
- package/dist/src/proto/gen/dxos/halo/credentials/auth.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +70 -0
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/greet.js +19 -0
- package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts +18 -0
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/identity.js +3 -0
- package/dist/src/proto/gen/dxos/halo/credentials/identity.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts +82 -0
- package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials/party.js +19 -0
- package/dist/src/proto/gen/dxos/halo/credentials/party.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts +272 -0
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/credentials.js +31 -0
- package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts +117 -0
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/invitations.js +16 -0
- package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts +9 -0
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/keyring.js +3 -0
- package/dist/src/proto/gen/dxos/halo/keyring.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +88 -0
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/keys.js +17 -0
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -0
- package/dist/src/proto/gen/dxos/halo/signed.d.ts +64 -0
- package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/halo/signed.js +3 -0
- package/dist/src/proto/gen/dxos/halo/signed.js.map +1 -0
- package/dist/src/proto/gen/dxos/iframe.d.ts +27 -0
- package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/iframe.js +3 -0
- package/dist/src/proto/gen/dxos/iframe.js.map +1 -0
- package/dist/src/proto/gen/dxos/keys.d.ts +15 -0
- package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/keys.js +3 -0
- package/dist/src/proto/gen/dxos/keys.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts +92 -0
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/bridge.js +15 -0
- package/dist/src/proto/gen/dxos/mesh/bridge.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts +15 -0
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/broadcast.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/broadcast.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts +26 -0
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/messaging.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/messaging.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts +28 -0
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/presence.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/presence.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts +27 -0
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/protocol.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/protocol.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts +26 -0
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/replicator.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/replicator.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts +99 -0
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/signal.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/signal.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts +60 -0
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/swarm.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/swarm.js.map +1 -0
- package/dist/src/proto/gen/dxos/registry.d.ts +82 -0
- package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/registry.js +3 -0
- package/dist/src/proto/gen/dxos/registry.js.map +1 -0
- package/dist/src/proto/gen/dxos/rpc.d.ts +94 -0
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/rpc.js +16 -0
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -0
- package/dist/src/proto/gen/dxos/service/publisher.d.ts +39 -0
- package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/service/publisher.js +3 -0
- package/dist/src/proto/gen/dxos/service/publisher.js.map +1 -0
- package/dist/src/proto/gen/dxos/service/scheduler.d.ts +300 -0
- package/dist/src/proto/gen/dxos/service/scheduler.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/service/scheduler.js +16 -0
- package/dist/src/proto/gen/dxos/service/scheduler.js.map +1 -0
- package/dist/src/proto/gen/dxos/type.d.ts +167 -0
- package/dist/src/proto/gen/dxos/type.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/type.js +3 -0
- package/dist/src/proto/gen/dxos/type.js.map +1 -0
- package/dist/src/proto/gen/example/testing/data.d.ts +23 -0
- package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -0
- package/dist/src/proto/gen/example/testing/data.js +3 -0
- package/dist/src/proto/gen/example/testing/data.js.map +1 -0
- package/dist/src/proto/gen/example/testing/rpc.d.ts +67 -0
- package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -0
- package/dist/src/proto/gen/example/testing/rpc.js +3 -0
- package/dist/src/proto/gen/example/testing/rpc.js.map +1 -0
- package/dist/src/proto/gen/google/protobuf.d.ts +38 -0
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -0
- package/dist/src/proto/gen/google/protobuf.js +3 -0
- package/dist/src/proto/gen/google/protobuf.js.map +1 -0
- package/dist/src/proto/gen/index.d.ts +385 -0
- package/dist/src/proto/gen/index.d.ts.map +1 -0
- package/dist/src/proto/gen/index.js +11 -0
- package/dist/src/proto/gen/index.js.map +1 -0
- package/dist/src/proto/index.d.ts +2 -0
- package/dist/src/proto/index.d.ts.map +1 -0
- package/dist/src/proto/index.js +10 -0
- package/dist/src/proto/index.js.map +1 -0
- package/dist/src/proto/substitutions.d.ts +60 -0
- package/dist/src/proto/substitutions.d.ts.map +1 -0
- package/dist/src/proto/substitutions.js +37 -0
- package/dist/src/proto/substitutions.js.map +1 -0
- package/dist/src/testing.d.ts +5 -0
- package/dist/src/testing.d.ts.map +1 -0
- package/dist/src/testing.js +22 -0
- package/dist/src/testing.js.map +1 -0
- package/dist/src/types.d.ts +33 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +6 -0
- package/dist/src/types.js.map +1 -0
- package/package.json +40 -0
- package/proto/README.md +7 -0
- package/proto/dxos/bot.d.ts +2 -0
- package/proto/dxos/bot.d.ts.map +10 -0
- package/proto/dxos/bot.js +2 -0
- package/proto/dxos/client.d.ts +2 -0
- package/proto/dxos/client.d.ts.map +10 -0
- package/proto/dxos/client.js +2 -0
- package/proto/dxos/config.d.ts +2 -0
- package/proto/dxos/config.d.ts.map +10 -0
- package/proto/dxos/config.js +2 -0
- package/proto/dxos/devtools/host.d.ts +2 -0
- package/proto/dxos/devtools/host.d.ts.map +10 -0
- package/proto/dxos/devtools/host.js +2 -0
- package/proto/dxos/devtools/swarmLog.d.ts +2 -0
- package/proto/dxos/devtools/swarmLog.d.ts.map +10 -0
- package/proto/dxos/devtools/swarmLog.js +2 -0
- package/proto/dxos/echo/feed.d.ts +2 -0
- package/proto/dxos/echo/feed.d.ts.map +10 -0
- package/proto/dxos/echo/feed.js +2 -0
- package/proto/dxos/echo/metadata.d.ts +2 -0
- package/proto/dxos/echo/metadata.d.ts.map +10 -0
- package/proto/dxos/echo/metadata.js +2 -0
- package/proto/dxos/echo/model/messenger.d.ts +2 -0
- package/proto/dxos/echo/model/messenger.d.ts.map +10 -0
- package/proto/dxos/echo/model/messenger.js +2 -0
- package/proto/dxos/echo/model/object.d.ts +2 -0
- package/proto/dxos/echo/model/object.d.ts.map +10 -0
- package/proto/dxos/echo/model/object.js +2 -0
- package/proto/dxos/echo/model/text.d.ts +2 -0
- package/proto/dxos/echo/model/text.d.ts.map +10 -0
- package/proto/dxos/echo/model/text.js +2 -0
- package/proto/dxos/echo/service.d.ts +2 -0
- package/proto/dxos/echo/service.d.ts.map +10 -0
- package/proto/dxos/echo/service.js +2 -0
- package/proto/dxos/echo/snapshot.d.ts +2 -0
- package/proto/dxos/echo/snapshot.d.ts.map +10 -0
- package/proto/dxos/echo/snapshot.js +2 -0
- package/proto/dxos/echo/timeframe.d.ts +2 -0
- package/proto/dxos/echo/timeframe.d.ts.map +10 -0
- package/proto/dxos/echo/timeframe.js +2 -0
- package/proto/dxos/google.d.ts +2 -0
- package/proto/dxos/google.d.ts.map +10 -0
- package/proto/dxos/google.js +2 -0
- package/proto/dxos/halo/credentials/auth.d.ts +2 -0
- package/proto/dxos/halo/credentials/auth.d.ts.map +10 -0
- package/proto/dxos/halo/credentials/auth.js +2 -0
- package/proto/dxos/halo/credentials/greet.d.ts +2 -0
- package/proto/dxos/halo/credentials/greet.d.ts.map +10 -0
- package/proto/dxos/halo/credentials/greet.js +2 -0
- package/proto/dxos/halo/credentials/identity.d.ts +2 -0
- package/proto/dxos/halo/credentials/identity.d.ts.map +10 -0
- package/proto/dxos/halo/credentials/identity.js +2 -0
- package/proto/dxos/halo/credentials/party.d.ts +2 -0
- package/proto/dxos/halo/credentials/party.d.ts.map +10 -0
- package/proto/dxos/halo/credentials/party.js +2 -0
- package/proto/dxos/halo/credentials.d.ts +2 -0
- package/proto/dxos/halo/credentials.d.ts.map +10 -0
- package/proto/dxos/halo/credentials.js +2 -0
- package/proto/dxos/halo/invitations.d.ts +2 -0
- package/proto/dxos/halo/invitations.d.ts.map +10 -0
- package/proto/dxos/halo/invitations.js +2 -0
- package/proto/dxos/halo/keyring.d.ts +2 -0
- package/proto/dxos/halo/keyring.d.ts.map +10 -0
- package/proto/dxos/halo/keyring.js +2 -0
- package/proto/dxos/halo/keys.d.ts +2 -0
- package/proto/dxos/halo/keys.d.ts.map +10 -0
- package/proto/dxos/halo/keys.js +2 -0
- package/proto/dxos/halo/signed.d.ts +2 -0
- package/proto/dxos/halo/signed.d.ts.map +10 -0
- package/proto/dxos/halo/signed.js +2 -0
- package/proto/dxos/iframe.d.ts +2 -0
- package/proto/dxos/iframe.d.ts.map +10 -0
- package/proto/dxos/iframe.js +2 -0
- package/proto/dxos/keys.d.ts +2 -0
- package/proto/dxos/keys.d.ts.map +10 -0
- package/proto/dxos/keys.js +2 -0
- package/proto/dxos/mesh/bridge.d.ts +2 -0
- package/proto/dxos/mesh/bridge.d.ts.map +10 -0
- package/proto/dxos/mesh/bridge.js +2 -0
- package/proto/dxos/mesh/broadcast.d.ts +2 -0
- package/proto/dxos/mesh/broadcast.d.ts.map +10 -0
- package/proto/dxos/mesh/broadcast.js +2 -0
- package/proto/dxos/mesh/messaging.d.ts +2 -0
- package/proto/dxos/mesh/messaging.d.ts.map +10 -0
- package/proto/dxos/mesh/messaging.js +2 -0
- package/proto/dxos/mesh/presence.d.ts +2 -0
- package/proto/dxos/mesh/presence.d.ts.map +10 -0
- package/proto/dxos/mesh/presence.js +2 -0
- package/proto/dxos/mesh/protocol.d.ts +2 -0
- package/proto/dxos/mesh/protocol.d.ts.map +10 -0
- package/proto/dxos/mesh/protocol.js +2 -0
- package/proto/dxos/mesh/replicator.d.ts +2 -0
- package/proto/dxos/mesh/replicator.d.ts.map +10 -0
- package/proto/dxos/mesh/replicator.js +2 -0
- package/proto/dxos/mesh/signal.d.ts +2 -0
- package/proto/dxos/mesh/signal.d.ts.map +10 -0
- package/proto/dxos/mesh/signal.js +2 -0
- package/proto/dxos/mesh/swarm.d.ts +2 -0
- package/proto/dxos/mesh/swarm.d.ts.map +10 -0
- package/proto/dxos/mesh/swarm.js +2 -0
- package/proto/dxos/registry.d.ts +2 -0
- package/proto/dxos/registry.d.ts.map +10 -0
- package/proto/dxos/registry.js +2 -0
- package/proto/dxos/rpc.d.ts +2 -0
- package/proto/dxos/rpc.d.ts.map +10 -0
- package/proto/dxos/rpc.js +2 -0
- package/proto/dxos/service/publisher.d.ts +2 -0
- package/proto/dxos/service/publisher.d.ts.map +10 -0
- package/proto/dxos/service/publisher.js +2 -0
- package/proto/dxos/service/scheduler.d.ts +2 -0
- package/proto/dxos/service/scheduler.d.ts.map +10 -0
- package/proto/dxos/service/scheduler.js +2 -0
- package/proto/dxos/type.d.ts +2 -0
- package/proto/dxos/type.d.ts.map +10 -0
- package/proto/dxos/type.js +2 -0
- package/proto/example/testing/data.d.ts +2 -0
- package/proto/example/testing/data.d.ts.map +10 -0
- package/proto/example/testing/data.js +2 -0
- package/proto/example/testing/rpc.d.ts +2 -0
- package/proto/example/testing/rpc.d.ts.map +10 -0
- package/proto/example/testing/rpc.js +2 -0
- package/src/codec.test.ts +24 -0
- package/src/index.ts +7 -0
- package/src/proto/dxos/bot.proto +151 -0
- package/src/proto/dxos/client.proto +254 -0
- package/src/proto/dxos/config.proto +305 -0
- package/src/proto/dxos/devtools/host.proto +294 -0
- package/src/proto/dxos/devtools/swarmLog.proto +32 -0
- package/src/proto/dxos/echo/feed.proto +83 -0
- package/src/proto/dxos/echo/metadata.proto +51 -0
- package/src/proto/dxos/echo/model/messenger.proto +13 -0
- package/src/proto/dxos/echo/model/object.proto +123 -0
- package/src/proto/dxos/echo/model/text.proto +16 -0
- package/src/proto/dxos/echo/service.proto +63 -0
- package/src/proto/dxos/echo/snapshot.proto +98 -0
- package/src/proto/dxos/echo/timeframe.proto +21 -0
- package/src/proto/dxos/google.proto +7 -0
- package/src/proto/dxos/halo/credentials/auth.proto +31 -0
- package/src/proto/dxos/halo/credentials/greet.proto +125 -0
- package/src/proto/dxos/halo/credentials/identity.proto +21 -0
- package/src/proto/dxos/halo/credentials/party.proto +127 -0
- package/src/proto/dxos/halo/credentials.proto +232 -0
- package/src/proto/dxos/halo/invitations.proto +90 -0
- package/src/proto/dxos/halo/keyring.proto +13 -0
- package/src/proto/dxos/halo/keys.proto +83 -0
- package/src/proto/dxos/halo/signed.proto +51 -0
- package/src/proto/dxos/iframe.proto +24 -0
- package/src/proto/dxos/keys.proto +15 -0
- package/src/proto/dxos/mesh/bridge.proto +76 -0
- package/src/proto/dxos/mesh/broadcast.proto +21 -0
- package/src/proto/dxos/mesh/messaging.proto +24 -0
- package/src/proto/dxos/mesh/presence.proto +22 -0
- package/src/proto/dxos/mesh/protocol.proto +28 -0
- package/src/proto/dxos/mesh/replicator.proto +19 -0
- package/src/proto/dxos/mesh/signal.proto +79 -0
- package/src/proto/dxos/mesh/swarm.proto +41 -0
- package/src/proto/dxos/registry.proto +60 -0
- package/src/proto/dxos/rpc.proto +73 -0
- package/src/proto/dxos/service/publisher.proto +35 -0
- package/src/proto/dxos/service/scheduler.proto +171 -0
- package/src/proto/dxos/type.proto +166 -0
- package/src/proto/example/testing/data.proto +20 -0
- package/src/proto/example/testing/rpc.proto +47 -0
- package/src/proto/gen/dxos/bot.ts +303 -0
- package/src/proto/gen/dxos/client.ts +422 -0
- package/src/proto/gen/dxos/config.ts +888 -0
- package/src/proto/gen/dxos/devtools/host.ts +419 -0
- package/src/proto/gen/dxos/devtools/swarmLog.ts +89 -0
- package/src/proto/gen/dxos/echo/feed.ts +149 -0
- package/src/proto/gen/dxos/echo/metadata.ts +102 -0
- package/src/proto/gen/dxos/echo/model/messenger.ts +50 -0
- package/src/proto/gen/dxos/echo/model/object.ts +181 -0
- package/src/proto/gen/dxos/echo/model/text.ts +56 -0
- package/src/proto/gen/dxos/echo/service.ts +119 -0
- package/src/proto/gen/dxos/echo/snapshot.ts +171 -0
- package/src/proto/gen/dxos/echo/timeframe.ts +60 -0
- package/src/proto/gen/dxos/halo/credentials/auth.ts +75 -0
- package/src/proto/gen/dxos/halo/credentials/greet.ts +108 -0
- package/src/proto/gen/dxos/halo/credentials/identity.ts +57 -0
- package/src/proto/gen/dxos/halo/credentials/party.ts +119 -0
- package/src/proto/gen/dxos/halo/credentials.ts +311 -0
- package/src/proto/gen/dxos/halo/invitations.ts +156 -0
- package/src/proto/gen/dxos/halo/keyring.ts +49 -0
- package/src/proto/gen/dxos/halo/keys.ts +126 -0
- package/src/proto/gen/dxos/halo/signed.ts +102 -0
- package/src/proto/gen/dxos/iframe.ts +67 -0
- package/src/proto/gen/dxos/keys.ts +55 -0
- package/src/proto/gen/dxos/mesh/bridge.ts +129 -0
- package/src/proto/gen/dxos/mesh/broadcast.ts +55 -0
- package/src/proto/gen/dxos/mesh/messaging.ts +65 -0
- package/src/proto/gen/dxos/mesh/presence.ts +68 -0
- package/src/proto/gen/dxos/mesh/protocol.ts +66 -0
- package/src/proto/gen/dxos/mesh/replicator.ts +65 -0
- package/src/proto/gen/dxos/mesh/signal.ts +137 -0
- package/src/proto/gen/dxos/mesh/swarm.ts +99 -0
- package/src/proto/gen/dxos/registry.ts +121 -0
- package/src/proto/gen/dxos/rpc.ts +133 -0
- package/src/proto/gen/dxos/service/publisher.ts +78 -0
- package/src/proto/gen/dxos/service/scheduler.ts +337 -0
- package/src/proto/gen/dxos/type.ts +206 -0
- package/src/proto/gen/example/testing/data.ts +63 -0
- package/src/proto/gen/example/testing/rpc.ts +105 -0
- package/src/proto/gen/google/protobuf.ts +78 -0
- package/src/proto/gen/index.ts +385 -0
- package/src/proto/index.ts +5 -0
- package/src/proto/substitutions.ts +39 -0
- package/src/testing.ts +28 -0
- package/src/types.ts +51 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2020 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
syntax = "proto3";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/any.proto";
|
|
8
|
+
|
|
9
|
+
// TODO(burdon): Move to `dxos.mesh.rpc` (reconcile with @dxos/kube repo).
|
|
10
|
+
package dxos.rpc;
|
|
11
|
+
|
|
12
|
+
option go_package = "github.com/dxos/kube/go/dxrpc/pb";
|
|
13
|
+
|
|
14
|
+
message RpcMessage {
|
|
15
|
+
oneof content {
|
|
16
|
+
Request request = 1;
|
|
17
|
+
Response response = 2;
|
|
18
|
+
|
|
19
|
+
/// Means that the node is trying to open the connection.
|
|
20
|
+
bool open = 3;
|
|
21
|
+
/// Means that the node has received the "open" message and is ready to perform requests.
|
|
22
|
+
bool open_ack = 4;
|
|
23
|
+
|
|
24
|
+
StreamClose stream_close = 5;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message Request {
|
|
29
|
+
int32 id = 1;
|
|
30
|
+
string method = 2;
|
|
31
|
+
google.protobuf.Any payload = 3;
|
|
32
|
+
bool stream = 4;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message Response {
|
|
36
|
+
int32 id = 1;
|
|
37
|
+
oneof content {
|
|
38
|
+
google.protobuf.Any payload = 2;
|
|
39
|
+
Error error = 3;
|
|
40
|
+
/// Sent when stream is closed without an error.
|
|
41
|
+
bool close = 4;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Sent when the server has processed a request with a streaming response.
|
|
45
|
+
* Can be skipped by the server.
|
|
46
|
+
* In this case the first payload should be treated as the server being ready.
|
|
47
|
+
*/
|
|
48
|
+
bool stream_ready = 5;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// TODO(burdon): Generalize to event?
|
|
53
|
+
// Sent by client to end the streaming response.
|
|
54
|
+
message StreamClose {
|
|
55
|
+
int32 id = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message Error {
|
|
59
|
+
optional string name = 1;
|
|
60
|
+
optional string message = 2;
|
|
61
|
+
optional string stack = 3;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// TODO(burdon): Rename Trace.
|
|
65
|
+
message MessageTrace {
|
|
66
|
+
enum Direction {
|
|
67
|
+
INCOMING = 0;
|
|
68
|
+
OUTGOING = 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
Direction direction = 1;
|
|
72
|
+
bytes data = 2;
|
|
73
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2022 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
syntax = "proto3";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/empty.proto";
|
|
8
|
+
|
|
9
|
+
import "dxos/config.proto";
|
|
10
|
+
|
|
11
|
+
package dxos.service.publisher;
|
|
12
|
+
|
|
13
|
+
option go_package = "github.com/dxos/kube/publisher/pb";
|
|
14
|
+
|
|
15
|
+
message PublishRequest {
|
|
16
|
+
dxos.config.Package package = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message PublishResponse {
|
|
20
|
+
dxos.config.Package package = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message ListResponse {
|
|
24
|
+
repeated dxos.config.Module modules = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message ResetResponse {
|
|
28
|
+
int32 count = 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
service Publisher {
|
|
32
|
+
rpc Publish(PublishRequest) returns (PublishResponse);
|
|
33
|
+
rpc List(google.protobuf.Empty) returns (ListResponse);
|
|
34
|
+
rpc Reset(google.protobuf.Empty) returns (ResetResponse);
|
|
35
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/any.proto";
|
|
4
|
+
import "google/protobuf/empty.proto";
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
6
|
+
import "dxos/config.proto";
|
|
7
|
+
|
|
8
|
+
package dxos.service.scheduler;
|
|
9
|
+
|
|
10
|
+
option go_package = "github.com/dxos/kube/scheduler/pb";
|
|
11
|
+
|
|
12
|
+
enum State {
|
|
13
|
+
INVALID = 0;
|
|
14
|
+
STOPPED = 1;
|
|
15
|
+
STARTING = 2;
|
|
16
|
+
RUNNING = 3;
|
|
17
|
+
FAILING = 4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message Bot {
|
|
21
|
+
message Spec {
|
|
22
|
+
message Echo {
|
|
23
|
+
bytes party_key = 1;
|
|
24
|
+
|
|
25
|
+
google.protobuf.Any invitation = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/// URL to the bot executable. KUBEs support file:// and ipfs:// urls.
|
|
29
|
+
string executable = 1;
|
|
30
|
+
|
|
31
|
+
Echo echo = 2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message Stats {
|
|
35
|
+
message NetworkUsage {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message CPUUsage {
|
|
39
|
+
double cores = 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message MemoryUsage {
|
|
43
|
+
int64 bytes = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message DiskUsage {
|
|
47
|
+
int64 bytes = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/// Echo stats.
|
|
51
|
+
message Echo {
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
optional int64 pid = 1;
|
|
56
|
+
|
|
57
|
+
optional google.protobuf.Timestamp executable_downloaded = 10;
|
|
58
|
+
optional google.protobuf.Timestamp created = 11;
|
|
59
|
+
optional google.protobuf.Timestamp started = 12;
|
|
60
|
+
optional google.protobuf.Timestamp stopped = 13;
|
|
61
|
+
optional google.protobuf.Timestamp last_ping_time = 14;
|
|
62
|
+
|
|
63
|
+
optional int32 exit_code = 30;
|
|
64
|
+
optional string error_message = 31;
|
|
65
|
+
|
|
66
|
+
CPUUsage cpu_usage = 40;
|
|
67
|
+
MemoryUsage memory_usage = 41;
|
|
68
|
+
DiskUsage disk_usage = 42;
|
|
69
|
+
NetworkUsage network_usage = 43;
|
|
70
|
+
Echo echo = 44;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/// Scheduler
|
|
74
|
+
bytes id = 1;
|
|
75
|
+
|
|
76
|
+
/// Current state.
|
|
77
|
+
State state = 2;
|
|
78
|
+
|
|
79
|
+
/// Desired state.
|
|
80
|
+
State desired_state = 3;
|
|
81
|
+
|
|
82
|
+
/// Omitted when returned from the Query RPC.
|
|
83
|
+
optional Spec spec = 4;
|
|
84
|
+
|
|
85
|
+
/// Omitted when returned from the Query RPC.
|
|
86
|
+
optional Stats stats = 5;
|
|
87
|
+
|
|
88
|
+
/// Identity key of the bot profile.
|
|
89
|
+
optional bytes identity_key = 6;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message QueryResponse {
|
|
93
|
+
repeated Bot services = 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message ServiceRequest {
|
|
97
|
+
bytes service_id = 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message Request {
|
|
101
|
+
bytes service_id = 1;
|
|
102
|
+
google.protobuf.Any payload = 2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message Reply {
|
|
106
|
+
google.protobuf.Any payload = 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message CreateRequest {
|
|
110
|
+
Bot.Spec spec = 1;
|
|
111
|
+
optional State desired_state = 2;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message Progress {
|
|
115
|
+
Bot state = 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/// Exposed by bot controller to clients. Allows creation and management of bots.
|
|
119
|
+
service BotController {
|
|
120
|
+
/// Enumerate all services.
|
|
121
|
+
rpc Query(google.protobuf.Empty) returns (QueryResponse);
|
|
122
|
+
|
|
123
|
+
/// Query information about a specific service
|
|
124
|
+
rpc Describe(ServiceRequest) returns (Bot);
|
|
125
|
+
|
|
126
|
+
/// Create a new service.
|
|
127
|
+
rpc Create(CreateRequest) returns (stream Progress);
|
|
128
|
+
|
|
129
|
+
/// Remove a service with its identity and persistent storage.
|
|
130
|
+
rpc Remove(ServiceRequest) returns (google.protobuf.Empty);
|
|
131
|
+
|
|
132
|
+
/// Start the bot.
|
|
133
|
+
rpc Start(ServiceRequest) returns (stream Progress);
|
|
134
|
+
|
|
135
|
+
/// Start the bot.
|
|
136
|
+
rpc Stop(ServiceRequest) returns (stream Progress);
|
|
137
|
+
|
|
138
|
+
/// Start the bot.
|
|
139
|
+
rpc Restart(ServiceRequest) returns (stream Progress);
|
|
140
|
+
|
|
141
|
+
// TODO: Upgrade to streaming request to support bi-directional streams.
|
|
142
|
+
/// Issue an RPC request to the bot instance.
|
|
143
|
+
rpc Call(Request) returns (stream Reply);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message BotConfig {
|
|
147
|
+
Bot.Spec.Echo spec = 1;
|
|
148
|
+
|
|
149
|
+
dxos.config.Config client_config = 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/// Internal service exposed by bot to the bot controller.
|
|
153
|
+
service BotService {
|
|
154
|
+
/// Issue an RPC request to the bot instance.
|
|
155
|
+
rpc Call(Request) returns (stream Reply);
|
|
156
|
+
|
|
157
|
+
/// Called by the bot controller to verify that the bot is functional.
|
|
158
|
+
rpc Healthcheck(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message Report {
|
|
162
|
+
/// Identity key of the bot profile.
|
|
163
|
+
optional bytes identity_key = 1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/// Internal service exposed by bot controller to the bot.
|
|
167
|
+
service BotHost {
|
|
168
|
+
rpc GetConfig(google.protobuf.Empty) returns (BotConfig);
|
|
169
|
+
|
|
170
|
+
rpc SendReport(Report) returns (google.protobuf.Empty);
|
|
171
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2022 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
syntax = "proto3";
|
|
6
|
+
|
|
7
|
+
import "dxos/registry.proto";
|
|
8
|
+
|
|
9
|
+
// TODO(burdon): Rename `dxos.registry.type`.
|
|
10
|
+
package dxos.type;
|
|
11
|
+
|
|
12
|
+
// TODO(wittjosiah): Shared with config. Factor out?
|
|
13
|
+
message Repo {
|
|
14
|
+
string name = 1;
|
|
15
|
+
string url = 2;
|
|
16
|
+
string version = 3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//
|
|
20
|
+
// Records
|
|
21
|
+
//
|
|
22
|
+
|
|
23
|
+
//
|
|
24
|
+
// Registered as `type.app`.
|
|
25
|
+
//
|
|
26
|
+
message App {
|
|
27
|
+
/**
|
|
28
|
+
* Optional **semver 2.0** compliant record version.
|
|
29
|
+
* Should conform to the semver regex (see https://semver.org/).
|
|
30
|
+
*/
|
|
31
|
+
optional string version = 1;
|
|
32
|
+
|
|
33
|
+
optional string license = 2;
|
|
34
|
+
|
|
35
|
+
repeated Repo repos = 3;
|
|
36
|
+
|
|
37
|
+
/// App bundle content Id in the CID v0 format (https://docs.ipfs.io/concepts/content-addressing/#identifier-formats).
|
|
38
|
+
optional bytes bundle = 4;
|
|
39
|
+
|
|
40
|
+
message Web {
|
|
41
|
+
/// Relative path in resource to entrypoint, defaults to index.html.
|
|
42
|
+
optional string index_file = 1;
|
|
43
|
+
|
|
44
|
+
/// Relative path in resource to entrypoint, defaults to main.js.
|
|
45
|
+
optional string entry_point = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
oneof kind {
|
|
49
|
+
Web web = 100;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
optional dxos.registry.Record.Extension extension = 200;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//
|
|
56
|
+
// Registered as `type.bot`.
|
|
57
|
+
//
|
|
58
|
+
message Bot {
|
|
59
|
+
/**
|
|
60
|
+
* Optional **semver 2.0** compliant record version.
|
|
61
|
+
* Should conform to the semver regex (see https://semver.org/).
|
|
62
|
+
*/
|
|
63
|
+
string version = 1;
|
|
64
|
+
|
|
65
|
+
string license = 2;
|
|
66
|
+
|
|
67
|
+
repeated Repo repos = 3;
|
|
68
|
+
|
|
69
|
+
/// Bot bundle content Id in the CID v0 format (https://docs.ipfs.io/concepts/content-addressing/#identifier-formats).
|
|
70
|
+
bytes bundle = 4;
|
|
71
|
+
|
|
72
|
+
/// Only for spawning bots that are expected to be vendored with bot-factory.
|
|
73
|
+
/// This would be the path to the bot executable in bot-factory's file-system.
|
|
74
|
+
string local_path = 5;
|
|
75
|
+
|
|
76
|
+
dxos.registry.Record.Extension extension = 100;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//
|
|
80
|
+
// Registered as `type.state-machine`.
|
|
81
|
+
//
|
|
82
|
+
message StateMachine {
|
|
83
|
+
/// Set of protobuf messages encoded in JSON.
|
|
84
|
+
string mutation_protobuf_defs = 1;
|
|
85
|
+
|
|
86
|
+
/// Set of protobuf messages encoded in JSON.
|
|
87
|
+
string snapshot_protobuf_defs = 2;
|
|
88
|
+
|
|
89
|
+
bytes code_ipfs_cid = 3;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
//
|
|
93
|
+
// Registered as `type.file`.
|
|
94
|
+
//
|
|
95
|
+
message File {
|
|
96
|
+
// MIME type of the file content: https://developer.mozilla.org/en-US/docs/Glossary/MIME_type.
|
|
97
|
+
string content_type = 1;
|
|
98
|
+
string file_name = 2;
|
|
99
|
+
|
|
100
|
+
/// File content Id in the CID v0 format (https://docs.ipfs.io/concepts/content-addressing/#identifier-formats).
|
|
101
|
+
bytes bundle = 3;
|
|
102
|
+
|
|
103
|
+
dxos.registry.Record.Extension extension = 100;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
//
|
|
107
|
+
// Registered as `type.kube`.
|
|
108
|
+
//
|
|
109
|
+
message KUBE {
|
|
110
|
+
string url = 1;
|
|
111
|
+
|
|
112
|
+
dxos.registry.Record.Extension extension = 100;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
//
|
|
116
|
+
// Registered as `type.service`.
|
|
117
|
+
//
|
|
118
|
+
message Service {
|
|
119
|
+
// TODO(dmaretskyi): How are service type's defined?
|
|
120
|
+
string type = 1;
|
|
121
|
+
|
|
122
|
+
// KUBE record's CID that hosts this service.
|
|
123
|
+
bytes kube = 2;
|
|
124
|
+
|
|
125
|
+
// Extension field's payload depends on service type and has extra data specific to that service.
|
|
126
|
+
// Within this schema extension might be `type.service.ipfs` or `type.service.bot-factory`.
|
|
127
|
+
dxos.registry.Record.Extension extension = 100;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
//
|
|
131
|
+
// Registered as `type.service.ipfs`.
|
|
132
|
+
//
|
|
133
|
+
message IPFS {
|
|
134
|
+
string protocol = 1;
|
|
135
|
+
repeated string addresses = 2;
|
|
136
|
+
|
|
137
|
+
dxos.registry.Record.Extension extension = 100;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
//
|
|
141
|
+
// Registered as `type.service.bot-factory`.
|
|
142
|
+
//
|
|
143
|
+
message BotFactory {
|
|
144
|
+
string topic = 1;
|
|
145
|
+
|
|
146
|
+
dxos.registry.Record.Extension extension = 100;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
//
|
|
150
|
+
// Registered as `type.service.signal`.
|
|
151
|
+
//
|
|
152
|
+
message Signal {
|
|
153
|
+
string bootstrap = 1;
|
|
154
|
+
string url = 2;
|
|
155
|
+
|
|
156
|
+
dxos.registry.Record.Extension extension = 100;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
//
|
|
160
|
+
// Registered as `type.service.app-server`.
|
|
161
|
+
//
|
|
162
|
+
message AppServer {
|
|
163
|
+
string url = 1;
|
|
164
|
+
|
|
165
|
+
dxos.registry.Record.Extension extension = 100;
|
|
166
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2020 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
syntax = "proto3";
|
|
6
|
+
|
|
7
|
+
package example.testing.data;
|
|
8
|
+
|
|
9
|
+
message TestItemMutation {
|
|
10
|
+
string key = 1;
|
|
11
|
+
string value = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message TestListMutation {
|
|
15
|
+
string data = 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message TestItemSnapshot {
|
|
19
|
+
repeated TestItemMutation keys = 1;
|
|
20
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2020 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
syntax = "proto3";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/any.proto";
|
|
8
|
+
import "google/protobuf/empty.proto";
|
|
9
|
+
|
|
10
|
+
package example.testing.rpc;
|
|
11
|
+
|
|
12
|
+
message TestRpcRequest {
|
|
13
|
+
string data = 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message TestRpcResponse {
|
|
17
|
+
string data = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
service TestService {
|
|
21
|
+
rpc TestCall (TestRpcRequest) returns (TestRpcResponse);
|
|
22
|
+
rpc VoidCall (google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
service TestStreamService {
|
|
26
|
+
rpc TestCall (TestRpcRequest) returns (stream TestRpcResponse);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message PingRequest {
|
|
30
|
+
int32 nonce = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message PingReponse {
|
|
34
|
+
int32 nonce = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
service PingService {
|
|
38
|
+
rpc Ping (PingRequest) returns (PingReponse);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message MessageWithAny {
|
|
42
|
+
google.protobuf.Any payload = 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
service TestAnyService {
|
|
46
|
+
rpc TestCall (MessageWithAny) returns (MessageWithAny);
|
|
47
|
+
}
|