@dxos/protocols 0.1.17 → 0.1.19
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/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts +11 -0
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client.js +13 -1
- package/dist/src/proto/gen/dxos/client.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/object.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/object.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/gravity.d.ts +42 -3
- package/dist/src/proto/gen/dxos/gravity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/bridge.js.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts +22 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/presence.d.ts +1 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/presence.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/publisher.d.ts +5 -0
- package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/scheduler.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/scheduler.js.map +1 -1
- package/dist/src/proto/gen/dxos/type.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +8 -0
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/proto/dxos/mesh/teleport/auth.d.ts +5 -0
- package/proto/dxos/mesh/teleport/auth.js +5 -0
- package/src/proto/dxos/client.proto +6 -0
- package/src/proto/dxos/gravity.proto +27 -3
- package/src/proto/dxos/mesh/teleport/auth.proto +19 -0
- package/src/proto/dxos/mesh/teleport/presence.proto +4 -2
- package/src/proto/dxos/service/publisher.proto +2 -0
- package/src/proto/gen/dxos/bot.ts +1 -0
- package/src/proto/gen/dxos/client/services.ts +1 -0
- package/src/proto/gen/dxos/client.ts +12 -0
- package/src/proto/gen/dxos/config.ts +1 -0
- package/src/proto/gen/dxos/devtools/host.ts +32 -31
- package/src/proto/gen/dxos/devtools/swarm.ts +1 -0
- package/src/proto/gen/dxos/echo/feed.ts +1 -0
- package/src/proto/gen/dxos/echo/metadata.ts +1 -0
- package/src/proto/gen/dxos/echo/model/messenger.ts +1 -0
- package/src/proto/gen/dxos/echo/model/object.ts +1 -0
- package/src/proto/gen/dxos/echo/model/text.ts +1 -0
- package/src/proto/gen/dxos/echo/service.ts +1 -0
- package/src/proto/gen/dxos/echo/snapshot.ts +1 -0
- package/src/proto/gen/dxos/echo/timeframe.ts +1 -0
- package/src/proto/gen/dxos/gravity.ts +43 -2
- package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -0
- package/src/proto/gen/dxos/halo/credentials/greet.ts +1 -0
- package/src/proto/gen/dxos/halo/credentials/identity.ts +1 -0
- package/src/proto/gen/dxos/halo/credentials.ts +1 -0
- package/src/proto/gen/dxos/halo/invitations.ts +1 -0
- package/src/proto/gen/dxos/halo/keyring.ts +1 -0
- package/src/proto/gen/dxos/halo/keys.ts +1 -0
- package/src/proto/gen/dxos/halo/signed.ts +1 -0
- package/src/proto/gen/dxos/iframe.ts +1 -0
- package/src/proto/gen/dxos/keys.ts +1 -0
- package/src/proto/gen/dxos/mesh/bridge.ts +1 -0
- package/src/proto/gen/dxos/mesh/broadcast.ts +1 -0
- package/src/proto/gen/dxos/mesh/messaging.ts +1 -0
- package/src/proto/gen/dxos/mesh/muxer.ts +1 -0
- package/src/proto/gen/dxos/mesh/presence.ts +1 -0
- package/src/proto/gen/dxos/mesh/protocol.ts +1 -0
- package/src/proto/gen/dxos/mesh/replicator.ts +1 -0
- package/src/proto/gen/dxos/mesh/signal.ts +1 -0
- package/src/proto/gen/dxos/mesh/swarm.ts +1 -0
- package/src/proto/gen/dxos/mesh/teleport/auth.ts +68 -0
- package/src/proto/gen/dxos/mesh/teleport/control.ts +1 -0
- package/src/proto/gen/dxos/mesh/teleport/presence.ts +2 -0
- package/src/proto/gen/dxos/mesh/teleport/replicator.ts +1 -0
- package/src/proto/gen/dxos/registry.ts +1 -0
- package/src/proto/gen/dxos/rpc.ts +1 -0
- package/src/proto/gen/dxos/service/publisher.ts +6 -0
- package/src/proto/gen/dxos/service/scheduler.ts +1 -0
- package/src/proto/gen/dxos/type.ts +1 -0
- package/src/proto/gen/example/testing/data.ts +1 -0
- package/src/proto/gen/example/testing/rpc.ts +1 -0
- package/src/proto/gen/google/protobuf.ts +1 -0
- package/src/proto/gen/index.ts +9 -1
|
@@ -0,0 +1,68 @@
|
|
|
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_client_services from "../../client/services";
|
|
6
|
+
import * as dxos_config from "../../config";
|
|
7
|
+
import * as dxos_devtools_host from "../../devtools/host";
|
|
8
|
+
import * as dxos_devtools_swarm from "../../devtools/swarm";
|
|
9
|
+
import * as dxos_echo_feed from "../../echo/feed";
|
|
10
|
+
import * as dxos_echo_metadata from "../../echo/metadata";
|
|
11
|
+
import * as dxos_echo_model_messenger from "../../echo/model/messenger";
|
|
12
|
+
import * as dxos_echo_model_object from "../../echo/model/object";
|
|
13
|
+
import * as dxos_echo_model_text from "../../echo/model/text";
|
|
14
|
+
import * as dxos_echo_service from "../../echo/service";
|
|
15
|
+
import * as dxos_echo_snapshot from "../../echo/snapshot";
|
|
16
|
+
import * as dxos_echo_timeframe from "../../echo/timeframe";
|
|
17
|
+
import * as dxos_gravity from "../../gravity";
|
|
18
|
+
import * as dxos_halo_credentials from "../../halo/credentials";
|
|
19
|
+
import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
|
|
20
|
+
import * as dxos_halo_credentials_greet from "../../halo/credentials/greet";
|
|
21
|
+
import * as dxos_halo_credentials_identity from "../../halo/credentials/identity";
|
|
22
|
+
import * as dxos_halo_invitations from "../../halo/invitations";
|
|
23
|
+
import * as dxos_halo_keyring from "../../halo/keyring";
|
|
24
|
+
import * as dxos_halo_keys from "../../halo/keys";
|
|
25
|
+
import * as dxos_halo_signed from "../../halo/signed";
|
|
26
|
+
import * as dxos_iframe from "../../iframe";
|
|
27
|
+
import * as dxos_keys from "../../keys";
|
|
28
|
+
import * as dxos_mesh_bridge from "../bridge";
|
|
29
|
+
import * as dxos_mesh_broadcast from "../broadcast";
|
|
30
|
+
import * as dxos_mesh_messaging from "../messaging";
|
|
31
|
+
import * as dxos_mesh_muxer from "../muxer";
|
|
32
|
+
import * as dxos_mesh_presence from "../presence";
|
|
33
|
+
import * as dxos_mesh_protocol from "../protocol";
|
|
34
|
+
import * as dxos_mesh_replicator from "../replicator";
|
|
35
|
+
import * as dxos_mesh_signal from "../signal";
|
|
36
|
+
import * as dxos_mesh_swarm from "../swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_control from "./control";
|
|
38
|
+
import * as dxos_mesh_teleport_presence from "./presence";
|
|
39
|
+
import * as dxos_mesh_teleport_replicator from "./replicator";
|
|
40
|
+
import * as dxos_registry from "../../registry";
|
|
41
|
+
import * as dxos_rpc from "../../rpc";
|
|
42
|
+
import * as dxos_service_publisher from "../../service/publisher";
|
|
43
|
+
import * as dxos_service_scheduler from "../../service/scheduler";
|
|
44
|
+
import * as dxos_type from "../../type";
|
|
45
|
+
import * as example_testing_data from "../../../example/testing/data";
|
|
46
|
+
import * as example_testing_rpc from "../../../example/testing/rpc";
|
|
47
|
+
import * as google_protobuf from "../../../google/protobuf";
|
|
48
|
+
/**
|
|
49
|
+
* Defined in:
|
|
50
|
+
* {@link file://./../../../../dxos/mesh/teleport/auth.proto}
|
|
51
|
+
*/
|
|
52
|
+
export interface AuthenticateRequest {
|
|
53
|
+
challenge: Uint8Array;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Defined in:
|
|
57
|
+
* {@link file://./../../../../dxos/mesh/teleport/auth.proto}
|
|
58
|
+
*/
|
|
59
|
+
export interface AuthenticateResponse {
|
|
60
|
+
credential: Uint8Array;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Defined in:
|
|
64
|
+
* {@link file://./../../../../dxos/mesh/teleport/auth.proto}
|
|
65
|
+
*/
|
|
66
|
+
export interface AuthService {
|
|
67
|
+
authenticate: (request: AuthenticateRequest) => Promise<AuthenticateResponse>;
|
|
68
|
+
}
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "./auth";
|
|
37
38
|
import * as dxos_mesh_teleport_presence from "./presence";
|
|
38
39
|
import * as dxos_mesh_teleport_replicator from "./replicator";
|
|
39
40
|
import * as dxos_registry from "../../registry";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "./auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "./control";
|
|
38
39
|
import * as dxos_mesh_teleport_replicator from "./replicator";
|
|
39
40
|
import * as dxos_registry from "../../registry";
|
|
@@ -59,6 +60,7 @@ export interface PeerState {
|
|
|
59
60
|
*/
|
|
60
61
|
messageId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
61
62
|
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
63
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
66
|
* Defined in:
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "./auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "./control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "./presence";
|
|
39
40
|
import * as dxos_registry from "../../registry";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "./mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "./mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "./mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "./mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "./mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "./mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "./mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "./mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "./mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "./mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "./mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "./mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
|
|
@@ -51,6 +52,11 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
51
52
|
export interface PublishRequest {
|
|
52
53
|
package: dxos_config.Package;
|
|
53
54
|
skipExisting: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Options:
|
|
57
|
+
* - proto3_optional = true
|
|
58
|
+
*/
|
|
59
|
+
accessToken?: string;
|
|
54
60
|
}
|
|
55
61
|
/**
|
|
56
62
|
* Defined in:
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "./mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "./mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "./mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "./mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "./mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "./mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../../dxos/mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../../dxos/mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../../dxos/mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../../dxos/mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "../../dxos/mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "../../dxos/mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../../dxos/mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../../dxos/mesh/teleport/replicator";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../../dxos/mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../../dxos/mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../../dxos/mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../../dxos/mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "../../dxos/mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "../../dxos/mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../../dxos/mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../../dxos/mesh/teleport/replicator";
|
|
@@ -34,6 +34,7 @@ import * as dxos_mesh_protocol from "../dxos/mesh/protocol";
|
|
|
34
34
|
import * as dxos_mesh_replicator from "../dxos/mesh/replicator";
|
|
35
35
|
import * as dxos_mesh_signal from "../dxos/mesh/signal";
|
|
36
36
|
import * as dxos_mesh_swarm from "../dxos/mesh/swarm";
|
|
37
|
+
import * as dxos_mesh_teleport_auth from "../dxos/mesh/teleport/auth";
|
|
37
38
|
import * as dxos_mesh_teleport_control from "../dxos/mesh/teleport/control";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../dxos/mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../dxos/mesh/teleport/replicator";
|