@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,65 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
3
|
+
import * as dxos_bot from "../bot";
|
|
4
|
+
import * as dxos_client from "../client";
|
|
5
|
+
import * as dxos_config from "../config";
|
|
6
|
+
import * as dxos_devtools_host from "../devtools/host";
|
|
7
|
+
import * as dxos_devtools_swarmLog from "../devtools/swarmLog";
|
|
8
|
+
import * as dxos_echo_feed from "../echo/feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../echo/metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "../echo/model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "../echo/model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "../echo/model/text";
|
|
13
|
+
import * as dxos_echo_service from "../echo/service";
|
|
14
|
+
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
15
|
+
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
17
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
18
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
19
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
20
|
+
import * as dxos_halo_credentials_party from "../halo/credentials/party";
|
|
21
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
22
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
23
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
24
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
25
|
+
import * as dxos_iframe from "../iframe";
|
|
26
|
+
import * as dxos_keys from "../keys";
|
|
27
|
+
import * as dxos_mesh_bridge from "./bridge";
|
|
28
|
+
import * as dxos_mesh_broadcast from "./broadcast";
|
|
29
|
+
import * as dxos_mesh_messaging from "./messaging";
|
|
30
|
+
import * as dxos_mesh_presence from "./presence";
|
|
31
|
+
import * as dxos_mesh_protocol from "./protocol";
|
|
32
|
+
import * as dxos_mesh_signal from "./signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "./swarm";
|
|
34
|
+
import * as dxos_registry from "../registry";
|
|
35
|
+
import * as dxos_rpc from "../rpc";
|
|
36
|
+
import * as dxos_service_publisher from "../service/publisher";
|
|
37
|
+
import * as dxos_service_scheduler from "../service/scheduler";
|
|
38
|
+
import * as dxos_type from "../type";
|
|
39
|
+
import * as example_testing_data from "../../example/testing/data";
|
|
40
|
+
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
41
|
+
import * as google_protobuf from "../../google/protobuf";
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../../dxos/mesh/replicator.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface Container {
|
|
47
|
+
type: string;
|
|
48
|
+
data?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Defined in:
|
|
52
|
+
* {@link file://./../../../dxos/mesh/replicator.proto}
|
|
53
|
+
*/
|
|
54
|
+
export interface Feed {
|
|
55
|
+
/**
|
|
56
|
+
* Options:
|
|
57
|
+
* - proto3_optional = true
|
|
58
|
+
*/
|
|
59
|
+
key?: Uint8Array;
|
|
60
|
+
/**
|
|
61
|
+
* Options:
|
|
62
|
+
* - proto3_optional = true
|
|
63
|
+
*/
|
|
64
|
+
discoveryKey?: Uint8Array;
|
|
65
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
3
|
+
import * as dxos_bot from "../bot";
|
|
4
|
+
import * as dxos_client from "../client";
|
|
5
|
+
import * as dxos_config from "../config";
|
|
6
|
+
import * as dxos_devtools_host from "../devtools/host";
|
|
7
|
+
import * as dxos_devtools_swarmLog from "../devtools/swarmLog";
|
|
8
|
+
import * as dxos_echo_feed from "../echo/feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../echo/metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "../echo/model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "../echo/model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "../echo/model/text";
|
|
13
|
+
import * as dxos_echo_service from "../echo/service";
|
|
14
|
+
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
15
|
+
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
17
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
18
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
19
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
20
|
+
import * as dxos_halo_credentials_party from "../halo/credentials/party";
|
|
21
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
22
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
23
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
24
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
25
|
+
import * as dxos_iframe from "../iframe";
|
|
26
|
+
import * as dxos_keys from "../keys";
|
|
27
|
+
import * as dxos_mesh_bridge from "./bridge";
|
|
28
|
+
import * as dxos_mesh_broadcast from "./broadcast";
|
|
29
|
+
import * as dxos_mesh_messaging from "./messaging";
|
|
30
|
+
import * as dxos_mesh_presence from "./presence";
|
|
31
|
+
import * as dxos_mesh_protocol from "./protocol";
|
|
32
|
+
import * as dxos_mesh_replicator from "./replicator";
|
|
33
|
+
import * as dxos_mesh_swarm from "./swarm";
|
|
34
|
+
import * as dxos_registry from "../registry";
|
|
35
|
+
import * as dxos_rpc from "../rpc";
|
|
36
|
+
import * as dxos_service_publisher from "../service/publisher";
|
|
37
|
+
import * as dxos_service_scheduler from "../service/scheduler";
|
|
38
|
+
import * as dxos_type from "../type";
|
|
39
|
+
import * as example_testing_data from "../../example/testing/data";
|
|
40
|
+
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
41
|
+
import * as google_protobuf from "../../google/protobuf";
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface JoinRequest {
|
|
47
|
+
swarm: Uint8Array;
|
|
48
|
+
peer: Uint8Array;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Defined in:
|
|
52
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
53
|
+
*/
|
|
54
|
+
export interface Message {
|
|
55
|
+
author: Uint8Array;
|
|
56
|
+
recipient: Uint8Array;
|
|
57
|
+
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Defined in:
|
|
61
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
62
|
+
*/
|
|
63
|
+
export interface ReceptionRequest {
|
|
64
|
+
peer: Uint8Array;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Goes on Pub/Sub swarm topic and as a Join stream in RPC.
|
|
68
|
+
*
|
|
69
|
+
* Defined in:
|
|
70
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
71
|
+
*/
|
|
72
|
+
export interface SwarmEvent {
|
|
73
|
+
/**
|
|
74
|
+
* The peer was announced as available on the swarm.
|
|
75
|
+
*/
|
|
76
|
+
peerAvailable?: SwarmEvent.PeerAvailable;
|
|
77
|
+
/**
|
|
78
|
+
* The peer left, or their announcement timed out.
|
|
79
|
+
*/
|
|
80
|
+
peerLeft?: SwarmEvent.PeerLeft;
|
|
81
|
+
}
|
|
82
|
+
export namespace SwarmEvent {
|
|
83
|
+
/**
|
|
84
|
+
* Defined in:
|
|
85
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
86
|
+
*/
|
|
87
|
+
export interface PeerAvailable {
|
|
88
|
+
peer: Uint8Array;
|
|
89
|
+
since: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
90
|
+
/**
|
|
91
|
+
* Options:
|
|
92
|
+
* - proto3_optional = true
|
|
93
|
+
*/
|
|
94
|
+
until?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
95
|
+
/**
|
|
96
|
+
* Only relevant in Pub/Sub. Optional, the host topic to eagerly send PeerAvailable messages back to.
|
|
97
|
+
*
|
|
98
|
+
* Options:
|
|
99
|
+
* - proto3_optional = true
|
|
100
|
+
*/
|
|
101
|
+
announceBackToHost?: Uint8Array;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Defined in:
|
|
105
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
106
|
+
*/
|
|
107
|
+
export interface PeerLeft {
|
|
108
|
+
peer: Uint8Array;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Goes on a Pub/Sub host topic.
|
|
113
|
+
*
|
|
114
|
+
* Defined in:
|
|
115
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
116
|
+
*/
|
|
117
|
+
export interface HostEvent {
|
|
118
|
+
peerAvailable?: SwarmEvent.PeerAvailable;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Goes on Pub/Sub peer topic.
|
|
122
|
+
*
|
|
123
|
+
* Defined in:
|
|
124
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
125
|
+
*/
|
|
126
|
+
export interface PeerEvent {
|
|
127
|
+
message?: Message;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Defined in:
|
|
131
|
+
* {@link file://./../../../dxos/mesh/signal.proto}
|
|
132
|
+
*/
|
|
133
|
+
export interface Signal {
|
|
134
|
+
join: (request: JoinRequest) => Stream<SwarmEvent>;
|
|
135
|
+
receiveMessages: (request: ReceptionRequest) => Stream<Message>;
|
|
136
|
+
sendMessage: (request: Message) => Promise<void>;
|
|
137
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
3
|
+
import * as dxos_bot from "../bot";
|
|
4
|
+
import * as dxos_client from "../client";
|
|
5
|
+
import * as dxos_config from "../config";
|
|
6
|
+
import * as dxos_devtools_host from "../devtools/host";
|
|
7
|
+
import * as dxos_devtools_swarmLog from "../devtools/swarmLog";
|
|
8
|
+
import * as dxos_echo_feed from "../echo/feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../echo/metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "../echo/model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "../echo/model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "../echo/model/text";
|
|
13
|
+
import * as dxos_echo_service from "../echo/service";
|
|
14
|
+
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
15
|
+
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
17
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
18
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
19
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
20
|
+
import * as dxos_halo_credentials_party from "../halo/credentials/party";
|
|
21
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
22
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
23
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
24
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
25
|
+
import * as dxos_iframe from "../iframe";
|
|
26
|
+
import * as dxos_keys from "../keys";
|
|
27
|
+
import * as dxos_mesh_bridge from "./bridge";
|
|
28
|
+
import * as dxos_mesh_broadcast from "./broadcast";
|
|
29
|
+
import * as dxos_mesh_messaging from "./messaging";
|
|
30
|
+
import * as dxos_mesh_presence from "./presence";
|
|
31
|
+
import * as dxos_mesh_protocol from "./protocol";
|
|
32
|
+
import * as dxos_mesh_replicator from "./replicator";
|
|
33
|
+
import * as dxos_mesh_signal from "./signal";
|
|
34
|
+
import * as dxos_registry from "../registry";
|
|
35
|
+
import * as dxos_rpc from "../rpc";
|
|
36
|
+
import * as dxos_service_publisher from "../service/publisher";
|
|
37
|
+
import * as dxos_service_scheduler from "../service/scheduler";
|
|
38
|
+
import * as dxos_type from "../type";
|
|
39
|
+
import * as example_testing_data from "../../example/testing/data";
|
|
40
|
+
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
41
|
+
import * as google_protobuf from "../../google/protobuf";
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../../dxos/mesh/swarm.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface SwarmMessage {
|
|
47
|
+
/**
|
|
48
|
+
* Swarm identefier.
|
|
49
|
+
*/
|
|
50
|
+
topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
51
|
+
/**
|
|
52
|
+
* Unique connection identifier.
|
|
53
|
+
*/
|
|
54
|
+
sessionId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
55
|
+
/**
|
|
56
|
+
* Message payload.
|
|
57
|
+
*/
|
|
58
|
+
data: MessageData;
|
|
59
|
+
/**
|
|
60
|
+
* Unique message identifier. Used for Acknolegment and matching Anwers to Offers.
|
|
61
|
+
*/
|
|
62
|
+
messageId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Defined in:
|
|
66
|
+
* {@link file://./../../../dxos/mesh/swarm.proto}
|
|
67
|
+
*/
|
|
68
|
+
export interface MessageData {
|
|
69
|
+
offer?: Offer;
|
|
70
|
+
answer?: Answer;
|
|
71
|
+
signal?: Signal;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Defined in:
|
|
75
|
+
* {@link file://./../../../dxos/mesh/swarm.proto}
|
|
76
|
+
*/
|
|
77
|
+
export interface Offer {
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Defined in:
|
|
81
|
+
* {@link file://./../../../dxos/mesh/swarm.proto}
|
|
82
|
+
*/
|
|
83
|
+
export interface Answer {
|
|
84
|
+
accept: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* MessageId of the Offer being answered.
|
|
87
|
+
*
|
|
88
|
+
* Options:
|
|
89
|
+
* - proto3_optional = true
|
|
90
|
+
*/
|
|
91
|
+
offerMessageId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Defined in:
|
|
95
|
+
* {@link file://./../../../dxos/mesh/swarm.proto}
|
|
96
|
+
*/
|
|
97
|
+
export interface Signal {
|
|
98
|
+
json: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../substitutions";
|
|
3
|
+
import * as dxos_bot from "./bot";
|
|
4
|
+
import * as dxos_client from "./client";
|
|
5
|
+
import * as dxos_config from "./config";
|
|
6
|
+
import * as dxos_devtools_host from "./devtools/host";
|
|
7
|
+
import * as dxos_devtools_swarmLog from "./devtools/swarmLog";
|
|
8
|
+
import * as dxos_echo_feed from "./echo/feed";
|
|
9
|
+
import * as dxos_echo_metadata from "./echo/metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "./echo/model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "./echo/model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "./echo/model/text";
|
|
13
|
+
import * as dxos_echo_service from "./echo/service";
|
|
14
|
+
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
15
|
+
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
16
|
+
import * as dxos_halo_credentials from "./halo/credentials";
|
|
17
|
+
import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
|
|
18
|
+
import * as dxos_halo_credentials_greet from "./halo/credentials/greet";
|
|
19
|
+
import * as dxos_halo_credentials_identity from "./halo/credentials/identity";
|
|
20
|
+
import * as dxos_halo_credentials_party from "./halo/credentials/party";
|
|
21
|
+
import * as dxos_halo_invitations from "./halo/invitations";
|
|
22
|
+
import * as dxos_halo_keyring from "./halo/keyring";
|
|
23
|
+
import * as dxos_halo_keys from "./halo/keys";
|
|
24
|
+
import * as dxos_halo_signed from "./halo/signed";
|
|
25
|
+
import * as dxos_iframe from "./iframe";
|
|
26
|
+
import * as dxos_keys from "./keys";
|
|
27
|
+
import * as dxos_mesh_bridge from "./mesh/bridge";
|
|
28
|
+
import * as dxos_mesh_broadcast from "./mesh/broadcast";
|
|
29
|
+
import * as dxos_mesh_messaging from "./mesh/messaging";
|
|
30
|
+
import * as dxos_mesh_presence from "./mesh/presence";
|
|
31
|
+
import * as dxos_mesh_protocol from "./mesh/protocol";
|
|
32
|
+
import * as dxos_mesh_replicator from "./mesh/replicator";
|
|
33
|
+
import * as dxos_mesh_signal from "./mesh/signal";
|
|
34
|
+
import * as dxos_mesh_swarm from "./mesh/swarm";
|
|
35
|
+
import * as dxos_rpc from "./rpc";
|
|
36
|
+
import * as dxos_service_publisher from "./service/publisher";
|
|
37
|
+
import * as dxos_service_scheduler from "./service/scheduler";
|
|
38
|
+
import * as dxos_type from "./type";
|
|
39
|
+
import * as example_testing_data from "../example/testing/data";
|
|
40
|
+
import * as example_testing_rpc from "../example/testing/rpc";
|
|
41
|
+
import * as google_protobuf from "../google/protobuf";
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../dxos/registry.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface Record {
|
|
47
|
+
/**
|
|
48
|
+
* Record creation timetstamp.
|
|
49
|
+
*
|
|
50
|
+
* Options:
|
|
51
|
+
* - proto3_optional = true
|
|
52
|
+
*/
|
|
53
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
54
|
+
/**
|
|
55
|
+
* Human-readable name of record.
|
|
56
|
+
*
|
|
57
|
+
* Options:
|
|
58
|
+
* - proto3_optional = true
|
|
59
|
+
*/
|
|
60
|
+
displayName?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Record description.
|
|
63
|
+
*
|
|
64
|
+
* Options:
|
|
65
|
+
* - proto3_optional = true
|
|
66
|
+
*/
|
|
67
|
+
description?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Optional record tags.
|
|
70
|
+
*/
|
|
71
|
+
tags?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* Type record variant.
|
|
74
|
+
*/
|
|
75
|
+
type?: Record.Type;
|
|
76
|
+
/**
|
|
77
|
+
* Data record variant.
|
|
78
|
+
*/
|
|
79
|
+
payload?: Record.Extension;
|
|
80
|
+
}
|
|
81
|
+
export namespace Record {
|
|
82
|
+
/**
|
|
83
|
+
* Types are system records that define protocol-buffer schema of other records.
|
|
84
|
+
*
|
|
85
|
+
* Defined in:
|
|
86
|
+
* {@link file://./../../dxos/registry.proto}
|
|
87
|
+
*/
|
|
88
|
+
export interface Type {
|
|
89
|
+
/**
|
|
90
|
+
* FQ protobuf message name.
|
|
91
|
+
*/
|
|
92
|
+
messageName: string;
|
|
93
|
+
/**
|
|
94
|
+
* Set of protobuf messages encoded in JSON.
|
|
95
|
+
*/
|
|
96
|
+
protobufDefs: string;
|
|
97
|
+
/**
|
|
98
|
+
* CID of protobuf source file.
|
|
99
|
+
*
|
|
100
|
+
* Options:
|
|
101
|
+
* - proto3_optional = true
|
|
102
|
+
*/
|
|
103
|
+
protobufIpfsCid?: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Data with a reference to a type record that defines the encoding.
|
|
107
|
+
*
|
|
108
|
+
* Defined in:
|
|
109
|
+
* {@link file://./../../dxos/registry.proto}
|
|
110
|
+
*/
|
|
111
|
+
export interface Extension {
|
|
112
|
+
/**
|
|
113
|
+
* CID of type record.
|
|
114
|
+
*/
|
|
115
|
+
typeRecord: Uint8Array;
|
|
116
|
+
/**
|
|
117
|
+
* Serialized payload data.
|
|
118
|
+
*/
|
|
119
|
+
data: Uint8Array;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../substitutions";
|
|
3
|
+
import * as dxos_bot from "./bot";
|
|
4
|
+
import * as dxos_client from "./client";
|
|
5
|
+
import * as dxos_config from "./config";
|
|
6
|
+
import * as dxos_devtools_host from "./devtools/host";
|
|
7
|
+
import * as dxos_devtools_swarmLog from "./devtools/swarmLog";
|
|
8
|
+
import * as dxos_echo_feed from "./echo/feed";
|
|
9
|
+
import * as dxos_echo_metadata from "./echo/metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "./echo/model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "./echo/model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "./echo/model/text";
|
|
13
|
+
import * as dxos_echo_service from "./echo/service";
|
|
14
|
+
import * as dxos_echo_snapshot from "./echo/snapshot";
|
|
15
|
+
import * as dxos_echo_timeframe from "./echo/timeframe";
|
|
16
|
+
import * as dxos_halo_credentials from "./halo/credentials";
|
|
17
|
+
import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
|
|
18
|
+
import * as dxos_halo_credentials_greet from "./halo/credentials/greet";
|
|
19
|
+
import * as dxos_halo_credentials_identity from "./halo/credentials/identity";
|
|
20
|
+
import * as dxos_halo_credentials_party from "./halo/credentials/party";
|
|
21
|
+
import * as dxos_halo_invitations from "./halo/invitations";
|
|
22
|
+
import * as dxos_halo_keyring from "./halo/keyring";
|
|
23
|
+
import * as dxos_halo_keys from "./halo/keys";
|
|
24
|
+
import * as dxos_halo_signed from "./halo/signed";
|
|
25
|
+
import * as dxos_iframe from "./iframe";
|
|
26
|
+
import * as dxos_keys from "./keys";
|
|
27
|
+
import * as dxos_mesh_bridge from "./mesh/bridge";
|
|
28
|
+
import * as dxos_mesh_broadcast from "./mesh/broadcast";
|
|
29
|
+
import * as dxos_mesh_messaging from "./mesh/messaging";
|
|
30
|
+
import * as dxos_mesh_presence from "./mesh/presence";
|
|
31
|
+
import * as dxos_mesh_protocol from "./mesh/protocol";
|
|
32
|
+
import * as dxos_mesh_replicator from "./mesh/replicator";
|
|
33
|
+
import * as dxos_mesh_signal from "./mesh/signal";
|
|
34
|
+
import * as dxos_mesh_swarm from "./mesh/swarm";
|
|
35
|
+
import * as dxos_registry from "./registry";
|
|
36
|
+
import * as dxos_service_publisher from "./service/publisher";
|
|
37
|
+
import * as dxos_service_scheduler from "./service/scheduler";
|
|
38
|
+
import * as dxos_type from "./type";
|
|
39
|
+
import * as example_testing_data from "../example/testing/data";
|
|
40
|
+
import * as example_testing_rpc from "../example/testing/rpc";
|
|
41
|
+
import * as google_protobuf from "../google/protobuf";
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../dxos/rpc.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface RpcMessage {
|
|
47
|
+
request?: Request;
|
|
48
|
+
response?: Response;
|
|
49
|
+
/**
|
|
50
|
+
* Means that the node is trying to open the connection.
|
|
51
|
+
*/
|
|
52
|
+
open?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Means that the node has received the "open" message and is ready to perform requests.
|
|
55
|
+
*/
|
|
56
|
+
openAck?: boolean;
|
|
57
|
+
streamClose?: StreamClose;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Defined in:
|
|
61
|
+
* {@link file://./../../dxos/rpc.proto}
|
|
62
|
+
*/
|
|
63
|
+
export interface Request {
|
|
64
|
+
id: number;
|
|
65
|
+
method: string;
|
|
66
|
+
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
67
|
+
stream: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Defined in:
|
|
71
|
+
* {@link file://./../../dxos/rpc.proto}
|
|
72
|
+
*/
|
|
73
|
+
export interface Response {
|
|
74
|
+
id: number;
|
|
75
|
+
payload?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
76
|
+
error?: Error;
|
|
77
|
+
/**
|
|
78
|
+
* Sent when stream is closed without an error.
|
|
79
|
+
*/
|
|
80
|
+
close?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Sent when the server has processed a request with a streaming response.
|
|
83
|
+
* Can be skipped by the server.
|
|
84
|
+
* In this case the first payload should be treated as the server being ready.
|
|
85
|
+
*/
|
|
86
|
+
streamReady?: boolean;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Defined in:
|
|
90
|
+
* {@link file://./../../dxos/rpc.proto}
|
|
91
|
+
*/
|
|
92
|
+
export interface StreamClose {
|
|
93
|
+
id: number;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Defined in:
|
|
97
|
+
* {@link file://./../../dxos/rpc.proto}
|
|
98
|
+
*/
|
|
99
|
+
export interface Error {
|
|
100
|
+
/**
|
|
101
|
+
* Options:
|
|
102
|
+
* - proto3_optional = true
|
|
103
|
+
*/
|
|
104
|
+
name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Options:
|
|
107
|
+
* - proto3_optional = true
|
|
108
|
+
*/
|
|
109
|
+
message?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Options:
|
|
112
|
+
* - proto3_optional = true
|
|
113
|
+
*/
|
|
114
|
+
stack?: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Defined in:
|
|
118
|
+
* {@link file://./../../dxos/rpc.proto}
|
|
119
|
+
*/
|
|
120
|
+
export interface MessageTrace {
|
|
121
|
+
direction: MessageTrace.Direction;
|
|
122
|
+
data: Uint8Array;
|
|
123
|
+
}
|
|
124
|
+
export namespace MessageTrace {
|
|
125
|
+
/**
|
|
126
|
+
* Defined in:
|
|
127
|
+
* {@link file://./../../dxos/rpc.proto}
|
|
128
|
+
*/
|
|
129
|
+
export enum Direction {
|
|
130
|
+
INCOMING = 0,
|
|
131
|
+
OUTGOING = 1
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Stream } from "@dxos/codec-protobuf";
|
|
2
|
+
import substitutions from "../../../substitutions";
|
|
3
|
+
import * as dxos_bot from "../bot";
|
|
4
|
+
import * as dxos_client from "../client";
|
|
5
|
+
import * as dxos_config from "../config";
|
|
6
|
+
import * as dxos_devtools_host from "../devtools/host";
|
|
7
|
+
import * as dxos_devtools_swarmLog from "../devtools/swarmLog";
|
|
8
|
+
import * as dxos_echo_feed from "../echo/feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../echo/metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "../echo/model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "../echo/model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "../echo/model/text";
|
|
13
|
+
import * as dxos_echo_service from "../echo/service";
|
|
14
|
+
import * as dxos_echo_snapshot from "../echo/snapshot";
|
|
15
|
+
import * as dxos_echo_timeframe from "../echo/timeframe";
|
|
16
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
17
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
18
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
19
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
20
|
+
import * as dxos_halo_credentials_party from "../halo/credentials/party";
|
|
21
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
22
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
23
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
24
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
25
|
+
import * as dxos_iframe from "../iframe";
|
|
26
|
+
import * as dxos_keys from "../keys";
|
|
27
|
+
import * as dxos_mesh_bridge from "../mesh/bridge";
|
|
28
|
+
import * as dxos_mesh_broadcast from "../mesh/broadcast";
|
|
29
|
+
import * as dxos_mesh_messaging from "../mesh/messaging";
|
|
30
|
+
import * as dxos_mesh_presence from "../mesh/presence";
|
|
31
|
+
import * as dxos_mesh_protocol from "../mesh/protocol";
|
|
32
|
+
import * as dxos_mesh_replicator from "../mesh/replicator";
|
|
33
|
+
import * as dxos_mesh_signal from "../mesh/signal";
|
|
34
|
+
import * as dxos_mesh_swarm from "../mesh/swarm";
|
|
35
|
+
import * as dxos_registry from "../registry";
|
|
36
|
+
import * as dxos_rpc from "../rpc";
|
|
37
|
+
import * as dxos_service_scheduler from "./scheduler";
|
|
38
|
+
import * as dxos_type from "../type";
|
|
39
|
+
import * as example_testing_data from "../../example/testing/data";
|
|
40
|
+
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
41
|
+
import * as google_protobuf from "../../google/protobuf";
|
|
42
|
+
/**
|
|
43
|
+
* Defined in:
|
|
44
|
+
* {@link file://./../../../dxos/service/publisher.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface PublishRequest {
|
|
47
|
+
package: dxos_config.Package;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Defined in:
|
|
51
|
+
* {@link file://./../../../dxos/service/publisher.proto}
|
|
52
|
+
*/
|
|
53
|
+
export interface PublishResponse {
|
|
54
|
+
package: dxos_config.Package;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Defined in:
|
|
58
|
+
* {@link file://./../../../dxos/service/publisher.proto}
|
|
59
|
+
*/
|
|
60
|
+
export interface ListResponse {
|
|
61
|
+
modules?: dxos_config.Module[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Defined in:
|
|
65
|
+
* {@link file://./../../../dxos/service/publisher.proto}
|
|
66
|
+
*/
|
|
67
|
+
export interface ResetResponse {
|
|
68
|
+
count: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Defined in:
|
|
72
|
+
* {@link file://./../../../dxos/service/publisher.proto}
|
|
73
|
+
*/
|
|
74
|
+
export interface Publisher {
|
|
75
|
+
publish: (request: PublishRequest) => Promise<PublishResponse>;
|
|
76
|
+
list: (request: void) => Promise<ListResponse>;
|
|
77
|
+
reset: (request: void) => Promise<ResetResponse>;
|
|
78
|
+
}
|