@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,102 @@
|
|
|
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 "./feed";
|
|
9
|
+
import * as dxos_echo_model_messenger from "./model/messenger";
|
|
10
|
+
import * as dxos_echo_model_object from "./model/object";
|
|
11
|
+
import * as dxos_echo_model_text from "./model/text";
|
|
12
|
+
import * as dxos_echo_service from "./service";
|
|
13
|
+
import * as dxos_echo_snapshot from "./snapshot";
|
|
14
|
+
import * as dxos_echo_timeframe from "./timeframe";
|
|
15
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
16
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
17
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
18
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
19
|
+
import * as dxos_halo_credentials_party from "../halo/credentials/party";
|
|
20
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
21
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
22
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
23
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
24
|
+
import * as dxos_iframe from "../iframe";
|
|
25
|
+
import * as dxos_keys from "../keys";
|
|
26
|
+
import * as dxos_mesh_bridge from "../mesh/bridge";
|
|
27
|
+
import * as dxos_mesh_broadcast from "../mesh/broadcast";
|
|
28
|
+
import * as dxos_mesh_messaging from "../mesh/messaging";
|
|
29
|
+
import * as dxos_mesh_presence from "../mesh/presence";
|
|
30
|
+
import * as dxos_mesh_protocol from "../mesh/protocol";
|
|
31
|
+
import * as dxos_mesh_replicator from "../mesh/replicator";
|
|
32
|
+
import * as dxos_mesh_signal from "../mesh/signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "../mesh/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/echo/metadata.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface EchoMetadata {
|
|
47
|
+
/**
|
|
48
|
+
* Version number that is inceremnted every time there's a breaking change to the storage schema.
|
|
49
|
+
* This is used to detect if the storage schema has changed since the last time the client was run.
|
|
50
|
+
* Loading data from a different version will might result in an error.
|
|
51
|
+
*/
|
|
52
|
+
version: number;
|
|
53
|
+
created: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
54
|
+
updated: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
55
|
+
/**
|
|
56
|
+
* Options:
|
|
57
|
+
* - proto3_optional = true
|
|
58
|
+
*/
|
|
59
|
+
identity?: dxos_halo_credentials.IdentityRecord;
|
|
60
|
+
/**
|
|
61
|
+
* List of the data parties.
|
|
62
|
+
*/
|
|
63
|
+
parties?: PartyMetadata[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Defined in:
|
|
67
|
+
* {@link file://./../../../dxos/echo/metadata.proto}
|
|
68
|
+
*/
|
|
69
|
+
export interface PartyMetadata {
|
|
70
|
+
/**
|
|
71
|
+
* Party key.
|
|
72
|
+
*/
|
|
73
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
74
|
+
/**
|
|
75
|
+
* Options:
|
|
76
|
+
* - proto3_optional = true
|
|
77
|
+
*/
|
|
78
|
+
genesisFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
79
|
+
/**
|
|
80
|
+
* Key of the wriatable control feed.
|
|
81
|
+
*
|
|
82
|
+
* Options:
|
|
83
|
+
* - proto3_optional = true
|
|
84
|
+
*/
|
|
85
|
+
controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
86
|
+
/**
|
|
87
|
+
* List of all feed associated with the party.
|
|
88
|
+
*/
|
|
89
|
+
feedKeys?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
90
|
+
/**
|
|
91
|
+
* Key of the wriatable data feed.
|
|
92
|
+
*
|
|
93
|
+
* Options:
|
|
94
|
+
* - proto3_optional = true
|
|
95
|
+
*/
|
|
96
|
+
dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
97
|
+
/**
|
|
98
|
+
* Options:
|
|
99
|
+
* - proto3_optional = true
|
|
100
|
+
*/
|
|
101
|
+
latestTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
102
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 "../feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../metadata";
|
|
10
|
+
import * as dxos_echo_model_object from "./object";
|
|
11
|
+
import * as dxos_echo_model_text from "./text";
|
|
12
|
+
import * as dxos_echo_service from "../service";
|
|
13
|
+
import * as dxos_echo_snapshot from "../snapshot";
|
|
14
|
+
import * as dxos_echo_timeframe from "../timeframe";
|
|
15
|
+
import * as dxos_halo_credentials from "../../halo/credentials";
|
|
16
|
+
import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
|
|
17
|
+
import * as dxos_halo_credentials_greet from "../../halo/credentials/greet";
|
|
18
|
+
import * as dxos_halo_credentials_identity from "../../halo/credentials/identity";
|
|
19
|
+
import * as dxos_halo_credentials_party from "../../halo/credentials/party";
|
|
20
|
+
import * as dxos_halo_invitations from "../../halo/invitations";
|
|
21
|
+
import * as dxos_halo_keyring from "../../halo/keyring";
|
|
22
|
+
import * as dxos_halo_keys from "../../halo/keys";
|
|
23
|
+
import * as dxos_halo_signed from "../../halo/signed";
|
|
24
|
+
import * as dxos_iframe from "../../iframe";
|
|
25
|
+
import * as dxos_keys from "../../keys";
|
|
26
|
+
import * as dxos_mesh_bridge from "../../mesh/bridge";
|
|
27
|
+
import * as dxos_mesh_broadcast from "../../mesh/broadcast";
|
|
28
|
+
import * as dxos_mesh_messaging from "../../mesh/messaging";
|
|
29
|
+
import * as dxos_mesh_presence from "../../mesh/presence";
|
|
30
|
+
import * as dxos_mesh_protocol from "../../mesh/protocol";
|
|
31
|
+
import * as dxos_mesh_replicator from "../../mesh/replicator";
|
|
32
|
+
import * as dxos_mesh_signal from "../../mesh/signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "../../mesh/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/echo/model/messenger.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface Message {
|
|
47
|
+
timestamp: string;
|
|
48
|
+
text: string;
|
|
49
|
+
sender: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
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 "../feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "./messenger";
|
|
11
|
+
import * as dxos_echo_model_text from "./text";
|
|
12
|
+
import * as dxos_echo_service from "../service";
|
|
13
|
+
import * as dxos_echo_snapshot from "../snapshot";
|
|
14
|
+
import * as dxos_echo_timeframe from "../timeframe";
|
|
15
|
+
import * as dxos_halo_credentials from "../../halo/credentials";
|
|
16
|
+
import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
|
|
17
|
+
import * as dxos_halo_credentials_greet from "../../halo/credentials/greet";
|
|
18
|
+
import * as dxos_halo_credentials_identity from "../../halo/credentials/identity";
|
|
19
|
+
import * as dxos_halo_credentials_party from "../../halo/credentials/party";
|
|
20
|
+
import * as dxos_halo_invitations from "../../halo/invitations";
|
|
21
|
+
import * as dxos_halo_keyring from "../../halo/keyring";
|
|
22
|
+
import * as dxos_halo_keys from "../../halo/keys";
|
|
23
|
+
import * as dxos_halo_signed from "../../halo/signed";
|
|
24
|
+
import * as dxos_iframe from "../../iframe";
|
|
25
|
+
import * as dxos_keys from "../../keys";
|
|
26
|
+
import * as dxos_mesh_bridge from "../../mesh/bridge";
|
|
27
|
+
import * as dxos_mesh_broadcast from "../../mesh/broadcast";
|
|
28
|
+
import * as dxos_mesh_messaging from "../../mesh/messaging";
|
|
29
|
+
import * as dxos_mesh_presence from "../../mesh/presence";
|
|
30
|
+
import * as dxos_mesh_protocol from "../../mesh/protocol";
|
|
31
|
+
import * as dxos_mesh_replicator from "../../mesh/replicator";
|
|
32
|
+
import * as dxos_mesh_signal from "../../mesh/signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "../../mesh/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
|
+
* Generic value.
|
|
44
|
+
*
|
|
45
|
+
* Defined in:
|
|
46
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
47
|
+
*/
|
|
48
|
+
export interface Value {
|
|
49
|
+
null?: boolean;
|
|
50
|
+
bool?: boolean;
|
|
51
|
+
int?: string;
|
|
52
|
+
float?: number;
|
|
53
|
+
string?: string;
|
|
54
|
+
timestamp?: string;
|
|
55
|
+
datetime?: string;
|
|
56
|
+
bytes?: Uint8Array;
|
|
57
|
+
object?: KeyValueObject;
|
|
58
|
+
array?: Array;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Ordered collection of values.
|
|
62
|
+
*
|
|
63
|
+
* Defined in:
|
|
64
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
65
|
+
*/
|
|
66
|
+
export interface Array {
|
|
67
|
+
values?: Value[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Key x Value tuple.
|
|
71
|
+
*
|
|
72
|
+
* Defined in:
|
|
73
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
74
|
+
*/
|
|
75
|
+
export interface KeyValue {
|
|
76
|
+
key: string;
|
|
77
|
+
value: Value;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Object data definition.
|
|
81
|
+
*
|
|
82
|
+
* Defined in:
|
|
83
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
84
|
+
*/
|
|
85
|
+
export interface KeyValueObject {
|
|
86
|
+
properties?: KeyValue[];
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Query predicate.
|
|
90
|
+
*
|
|
91
|
+
* Defined in:
|
|
92
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
93
|
+
*/
|
|
94
|
+
export interface Predicate {
|
|
95
|
+
op: Predicate.Operation;
|
|
96
|
+
/**
|
|
97
|
+
* Options:
|
|
98
|
+
* - proto3_optional = true
|
|
99
|
+
*/
|
|
100
|
+
key?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Options:
|
|
103
|
+
* - proto3_optional = true
|
|
104
|
+
*/
|
|
105
|
+
value?: Value;
|
|
106
|
+
predicates?: Predicate[];
|
|
107
|
+
}
|
|
108
|
+
export namespace Predicate {
|
|
109
|
+
/**
|
|
110
|
+
* Defined in:
|
|
111
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
112
|
+
*/
|
|
113
|
+
export enum Operation {
|
|
114
|
+
OR = 0,
|
|
115
|
+
AND = 1,
|
|
116
|
+
NOT = 2,
|
|
117
|
+
IN = 10,
|
|
118
|
+
EQUALS = 11,
|
|
119
|
+
GTE = 12,
|
|
120
|
+
GT = 13,
|
|
121
|
+
LTE = 14,
|
|
122
|
+
LT = 15,
|
|
123
|
+
PREFIX_MATCH = 20,
|
|
124
|
+
TEXT_MATCH = 21
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Query.
|
|
129
|
+
*
|
|
130
|
+
* Defined in:
|
|
131
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
132
|
+
*/
|
|
133
|
+
export interface Query {
|
|
134
|
+
root: Predicate;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* State snapshot.
|
|
138
|
+
*
|
|
139
|
+
* Defined in:
|
|
140
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
141
|
+
*/
|
|
142
|
+
export interface ObjectSnapshot {
|
|
143
|
+
root: Value;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Atomic mutation.
|
|
147
|
+
*
|
|
148
|
+
* Defined in:
|
|
149
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
150
|
+
*/
|
|
151
|
+
export interface ObjectMutation {
|
|
152
|
+
operation: ObjectMutation.Operation;
|
|
153
|
+
key: string;
|
|
154
|
+
/**
|
|
155
|
+
* Options:
|
|
156
|
+
* - proto3_optional = true
|
|
157
|
+
*/
|
|
158
|
+
value?: Value;
|
|
159
|
+
}
|
|
160
|
+
export namespace ObjectMutation {
|
|
161
|
+
/**
|
|
162
|
+
* Defined in:
|
|
163
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
164
|
+
*/
|
|
165
|
+
export enum Operation {
|
|
166
|
+
SET = 0,
|
|
167
|
+
DELETE = 1,
|
|
168
|
+
ARRAY_PUSH = 2,
|
|
169
|
+
SET_ADD = 4,
|
|
170
|
+
SET_DELETE = 5
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Set of mutations.
|
|
175
|
+
*
|
|
176
|
+
* Defined in:
|
|
177
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
178
|
+
*/
|
|
179
|
+
export interface ObjectMutationSet {
|
|
180
|
+
mutations?: ObjectMutation[];
|
|
181
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 "../feed";
|
|
9
|
+
import * as dxos_echo_metadata from "../metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "./messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "./object";
|
|
12
|
+
import * as dxos_echo_service from "../service";
|
|
13
|
+
import * as dxos_echo_snapshot from "../snapshot";
|
|
14
|
+
import * as dxos_echo_timeframe from "../timeframe";
|
|
15
|
+
import * as dxos_halo_credentials from "../../halo/credentials";
|
|
16
|
+
import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
|
|
17
|
+
import * as dxos_halo_credentials_greet from "../../halo/credentials/greet";
|
|
18
|
+
import * as dxos_halo_credentials_identity from "../../halo/credentials/identity";
|
|
19
|
+
import * as dxos_halo_credentials_party from "../../halo/credentials/party";
|
|
20
|
+
import * as dxos_halo_invitations from "../../halo/invitations";
|
|
21
|
+
import * as dxos_halo_keyring from "../../halo/keyring";
|
|
22
|
+
import * as dxos_halo_keys from "../../halo/keys";
|
|
23
|
+
import * as dxos_halo_signed from "../../halo/signed";
|
|
24
|
+
import * as dxos_iframe from "../../iframe";
|
|
25
|
+
import * as dxos_keys from "../../keys";
|
|
26
|
+
import * as dxos_mesh_bridge from "../../mesh/bridge";
|
|
27
|
+
import * as dxos_mesh_broadcast from "../../mesh/broadcast";
|
|
28
|
+
import * as dxos_mesh_messaging from "../../mesh/messaging";
|
|
29
|
+
import * as dxos_mesh_presence from "../../mesh/presence";
|
|
30
|
+
import * as dxos_mesh_protocol from "../../mesh/protocol";
|
|
31
|
+
import * as dxos_mesh_replicator from "../../mesh/replicator";
|
|
32
|
+
import * as dxos_mesh_signal from "../../mesh/signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "../../mesh/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/echo/model/text.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface Mutation {
|
|
47
|
+
update: Uint8Array;
|
|
48
|
+
clientId: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Defined in:
|
|
52
|
+
* {@link file://./../../../../dxos/echo/model/text.proto}
|
|
53
|
+
*/
|
|
54
|
+
export interface Snapshot {
|
|
55
|
+
data: Uint8Array;
|
|
56
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 "./feed";
|
|
9
|
+
import * as dxos_echo_metadata from "./metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "./model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "./model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "./model/text";
|
|
13
|
+
import * as dxos_echo_snapshot from "./snapshot";
|
|
14
|
+
import * as dxos_echo_timeframe from "./timeframe";
|
|
15
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
16
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
17
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
18
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
19
|
+
import * as dxos_halo_credentials_party from "../halo/credentials/party";
|
|
20
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
21
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
22
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
23
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
24
|
+
import * as dxos_iframe from "../iframe";
|
|
25
|
+
import * as dxos_keys from "../keys";
|
|
26
|
+
import * as dxos_mesh_bridge from "../mesh/bridge";
|
|
27
|
+
import * as dxos_mesh_broadcast from "../mesh/broadcast";
|
|
28
|
+
import * as dxos_mesh_messaging from "../mesh/messaging";
|
|
29
|
+
import * as dxos_mesh_presence from "../mesh/presence";
|
|
30
|
+
import * as dxos_mesh_protocol from "../mesh/protocol";
|
|
31
|
+
import * as dxos_mesh_replicator from "../mesh/replicator";
|
|
32
|
+
import * as dxos_mesh_signal from "../mesh/signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "../mesh/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/echo/service.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface SubscribeEntitySetRequest {
|
|
47
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Defined in:
|
|
51
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
52
|
+
*/
|
|
53
|
+
export interface SubscribeEntitySetResponse {
|
|
54
|
+
added?: dxos_echo_feed.EchoEnvelope[];
|
|
55
|
+
deleted?: dxos_echo_feed.EchoEnvelope[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Defined in:
|
|
59
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
60
|
+
*/
|
|
61
|
+
export interface SubscribeEntityStreamRequest {
|
|
62
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
63
|
+
itemId: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Defined in:
|
|
67
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
68
|
+
*/
|
|
69
|
+
export interface SubscribeEntityStreamResponse {
|
|
70
|
+
snapshot?: dxos_echo_snapshot.ItemSnapshot;
|
|
71
|
+
mutation?: SubscribeEntityStreamResponse.Mutation;
|
|
72
|
+
}
|
|
73
|
+
export namespace SubscribeEntityStreamResponse {
|
|
74
|
+
/**
|
|
75
|
+
* Defined in:
|
|
76
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
77
|
+
*/
|
|
78
|
+
export interface Mutation {
|
|
79
|
+
data: dxos_echo_feed.EchoEnvelope;
|
|
80
|
+
meta: SubscribeEntityStreamResponse.Mutation.Metadata;
|
|
81
|
+
}
|
|
82
|
+
export namespace Mutation {
|
|
83
|
+
/**
|
|
84
|
+
* Defined in:
|
|
85
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
86
|
+
*/
|
|
87
|
+
export interface Metadata {
|
|
88
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
89
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
90
|
+
seq: number;
|
|
91
|
+
timeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Defined in:
|
|
97
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
98
|
+
*/
|
|
99
|
+
export interface WriteRequest {
|
|
100
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
101
|
+
mutation: dxos_echo_feed.EchoEnvelope;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Defined in:
|
|
105
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
106
|
+
*/
|
|
107
|
+
export interface MutationReceipt {
|
|
108
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
109
|
+
seq: number;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Defined in:
|
|
113
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
114
|
+
*/
|
|
115
|
+
export interface DataService {
|
|
116
|
+
subscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
|
|
117
|
+
subscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
|
|
118
|
+
write: (request: WriteRequest) => Promise<MutationReceipt>;
|
|
119
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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 "./feed";
|
|
9
|
+
import * as dxos_echo_metadata from "./metadata";
|
|
10
|
+
import * as dxos_echo_model_messenger from "./model/messenger";
|
|
11
|
+
import * as dxos_echo_model_object from "./model/object";
|
|
12
|
+
import * as dxos_echo_model_text from "./model/text";
|
|
13
|
+
import * as dxos_echo_service from "./service";
|
|
14
|
+
import * as dxos_echo_timeframe from "./timeframe";
|
|
15
|
+
import * as dxos_halo_credentials from "../halo/credentials";
|
|
16
|
+
import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
|
|
17
|
+
import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
|
|
18
|
+
import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
|
|
19
|
+
import * as dxos_halo_credentials_party from "../halo/credentials/party";
|
|
20
|
+
import * as dxos_halo_invitations from "../halo/invitations";
|
|
21
|
+
import * as dxos_halo_keyring from "../halo/keyring";
|
|
22
|
+
import * as dxos_halo_keys from "../halo/keys";
|
|
23
|
+
import * as dxos_halo_signed from "../halo/signed";
|
|
24
|
+
import * as dxos_iframe from "../iframe";
|
|
25
|
+
import * as dxos_keys from "../keys";
|
|
26
|
+
import * as dxos_mesh_bridge from "../mesh/bridge";
|
|
27
|
+
import * as dxos_mesh_broadcast from "../mesh/broadcast";
|
|
28
|
+
import * as dxos_mesh_messaging from "../mesh/messaging";
|
|
29
|
+
import * as dxos_mesh_presence from "../mesh/presence";
|
|
30
|
+
import * as dxos_mesh_protocol from "../mesh/protocol";
|
|
31
|
+
import * as dxos_mesh_replicator from "../mesh/replicator";
|
|
32
|
+
import * as dxos_mesh_signal from "../mesh/signal";
|
|
33
|
+
import * as dxos_mesh_swarm from "../mesh/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/echo/snapshot.proto}
|
|
45
|
+
*/
|
|
46
|
+
export interface PartySnapshot {
|
|
47
|
+
partyKey: Uint8Array;
|
|
48
|
+
/**
|
|
49
|
+
* Options:
|
|
50
|
+
* - proto3_optional = true
|
|
51
|
+
*/
|
|
52
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
53
|
+
/**
|
|
54
|
+
* Options:
|
|
55
|
+
* - proto3_optional = true
|
|
56
|
+
*/
|
|
57
|
+
timestamp?: number;
|
|
58
|
+
halo: HaloStateSnapshot;
|
|
59
|
+
database: DatabaseSnapshot;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Defined in:
|
|
63
|
+
* {@link file://./../../../dxos/echo/snapshot.proto}
|
|
64
|
+
*/
|
|
65
|
+
export interface HaloStateSnapshot {
|
|
66
|
+
messages?: dxos_halo_signed.Message[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Defined in:
|
|
70
|
+
* {@link file://./../../../dxos/echo/snapshot.proto}
|
|
71
|
+
*/
|
|
72
|
+
export interface DatabaseSnapshot {
|
|
73
|
+
items?: ItemSnapshot[];
|
|
74
|
+
links?: LinkSnapshot[];
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Defined in:
|
|
78
|
+
* {@link file://./../../../dxos/echo/snapshot.proto}
|
|
79
|
+
*/
|
|
80
|
+
export interface ItemSnapshot {
|
|
81
|
+
/**
|
|
82
|
+
* Options:
|
|
83
|
+
* - proto3_optional = true
|
|
84
|
+
*/
|
|
85
|
+
itemId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Options:
|
|
88
|
+
* - proto3_optional = true
|
|
89
|
+
*/
|
|
90
|
+
itemType?: string;
|
|
91
|
+
modelType: string;
|
|
92
|
+
/**
|
|
93
|
+
* Options:
|
|
94
|
+
* - proto3_optional = true
|
|
95
|
+
*/
|
|
96
|
+
modelVersion?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Options:
|
|
99
|
+
* - proto3_optional = true
|
|
100
|
+
*/
|
|
101
|
+
parentId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Options:
|
|
104
|
+
* - proto3_optional = true
|
|
105
|
+
*/
|
|
106
|
+
model?: ModelSnapshot;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Defined in:
|
|
110
|
+
* {@link file://./../../../dxos/echo/snapshot.proto}
|
|
111
|
+
*/
|
|
112
|
+
export interface LinkSnapshot {
|
|
113
|
+
/**
|
|
114
|
+
* Options:
|
|
115
|
+
* - proto3_optional = true
|
|
116
|
+
*/
|
|
117
|
+
linkId?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Options:
|
|
120
|
+
* - proto3_optional = true
|
|
121
|
+
*/
|
|
122
|
+
linkType?: string;
|
|
123
|
+
modelType: string;
|
|
124
|
+
/**
|
|
125
|
+
* Options:
|
|
126
|
+
* - proto3_optional = true
|
|
127
|
+
*/
|
|
128
|
+
modelVersion?: string;
|
|
129
|
+
source: string;
|
|
130
|
+
target: string;
|
|
131
|
+
/**
|
|
132
|
+
* Options:
|
|
133
|
+
* - proto3_optional = true
|
|
134
|
+
*/
|
|
135
|
+
model?: ModelSnapshot;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Defined in:
|
|
139
|
+
* {@link file://./../../../dxos/echo/snapshot.proto}
|
|
140
|
+
*/
|
|
141
|
+
export interface ModelSnapshot {
|
|
142
|
+
/**
|
|
143
|
+
* Encoded model snapshot (defined by the model's codec).
|
|
144
|
+
* If undefined the state machine will be initialized with it's default state.
|
|
145
|
+
*
|
|
146
|
+
* Options:
|
|
147
|
+
* - proto3_optional = true
|
|
148
|
+
*/
|
|
149
|
+
snapshot?: Uint8Array;
|
|
150
|
+
/**
|
|
151
|
+
* Mutations to be applied on top of the snapshot, or on top of initial state if the snapshot is undefined.
|
|
152
|
+
*/
|
|
153
|
+
mutations?: ModelMutation[];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Defined in:
|
|
157
|
+
* {@link file://./../../../dxos/echo/snapshot.proto}
|
|
158
|
+
*/
|
|
159
|
+
export interface ModelMutation {
|
|
160
|
+
mutation: Uint8Array;
|
|
161
|
+
meta: ModelMutationMeta;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Defined in:
|
|
165
|
+
* {@link file://./../../../dxos/echo/snapshot.proto}
|
|
166
|
+
*/
|
|
167
|
+
export interface ModelMutationMeta {
|
|
168
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
169
|
+
seq: number;
|
|
170
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
171
|
+
}
|