@dxos/protocols 0.8.4-main.28f8d3d → 0.8.4-main.2c6827d
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/FunctionProtocol.d.ts +76 -0
- package/dist/src/FunctionProtocol.d.ts.map +1 -0
- package/dist/src/FunctionProtocol.js +4 -0
- package/dist/src/FunctionProtocol.js.map +1 -0
- package/dist/src/automerge.d.ts +8 -0
- package/dist/src/automerge.d.ts.map +1 -1
- package/dist/src/automerge.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/dashboard_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/echo-proxy_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/epoch_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/functions_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/agent/functions_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/bot_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/bot_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/client/invitation_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/client/logging_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/client/logging_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +65 -19
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js +28 -23
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +36 -7
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +7 -2
- package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/diagnostics_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/host_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/devtools/swarm_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/blob_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/blob_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/feed_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/feed_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/indexing_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/model/document_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/model/messenger_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/model/text_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/object_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/object_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +16 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +2 -2
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/snapshot_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/timeframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/calls_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/signal_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/signal_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/error_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/error_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/field_options_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/field_options_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.js +2 -2
- package/dist/src/buf/proto/gen/dxos/gravity_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/gravity_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/auth_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/greet_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials/identity_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/invitations_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/keyring_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/keys_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/keys_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/signed_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/signed_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/keys_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/keys_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/bridge_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/broadcast_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/messaging_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/muxer_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/presence_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/protocol_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/replicator_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/signal_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/swarm_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/control_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/registry_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/registry_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/service/agentmanager_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/service/publisher_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/service/publisher_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/service/supervisor_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/service/tunnel_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js +2 -2
- package/dist/src/buf/proto/gen/dxos/type_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/type_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/value_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/dxos/value_pb.js +1 -1
- package/dist/src/buf/proto/gen/example/testing/data_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/example/testing/data_pb.js +1 -1
- package/dist/src/buf/proto/gen/example/testing/rpc_pb.d.ts +1 -1
- package/dist/src/buf/proto/gen/example/testing/rpc_pb.js +1 -1
- package/dist/src/edge-error.d.ts +11 -7
- package/dist/src/edge-error.d.ts.map +1 -1
- package/dist/src/edge-error.js +24 -16
- package/dist/src/edge-error.js.map +1 -1
- package/dist/src/edge.d.ts +97 -7
- package/dist/src/edge.d.ts.map +1 -1
- package/dist/src/edge.js +109 -3
- package/dist/src/edge.js.map +1 -1
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/base-errors.js +1 -0
- package/dist/src/errors/base-errors.js.map +1 -1
- package/dist/src/index.d.ts +8 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -6
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.d.ts +1 -1
- package/dist/src/indexing.d.ts.map +1 -1
- package/dist/src/indexing.js +1 -1
- package/dist/src/indexing.js.map +1 -1
- package/dist/src/invitation.d.ts +1 -1
- package/dist/src/invitation.d.ts.map +1 -1
- package/dist/src/invitation.js +1 -1
- package/dist/src/invitation.js.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts +30 -3
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +9 -6
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +28 -2
- 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/echo/service.d.ts +9 -0
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/index.d.ts +2 -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/dist/src/queue.d.ts +13 -0
- package/dist/src/queue.d.ts.map +1 -1
- package/dist/src/queue.js +4 -0
- package/dist/src/queue.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -15
- package/src/FunctionProtocol.ts +100 -0
- package/src/automerge.ts +8 -0
- package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/agent/functions_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/bot_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/client/logging_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/client/services_pb.ts +84 -29
- package/src/buf/proto/gen/dxos/config_pb.ts +43 -10
- package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/blob_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/feed_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/filter_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/object_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/query_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +21 -4
- package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/edge/calls_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/edge/signal_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/error_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/field_options_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/google_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/gravity_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/keys_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/halo/signed_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/iframe_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/keys_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/registry_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/rpc_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/service/publisher_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/tracing_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/type_pb.ts +3 -3
- package/src/buf/proto/gen/dxos/value_pb.ts +3 -3
- package/src/buf/proto/gen/example/testing/data_pb.ts +3 -3
- package/src/buf/proto/gen/example/testing/rpc_pb.ts +3 -3
- package/src/edge-error.ts +25 -18
- package/src/edge.ts +209 -8
- package/src/errors/base-errors.ts +2 -0
- package/src/index.ts +8 -7
- package/src/indexing.ts +1 -1
- package/src/invitation.ts +1 -1
- package/src/proto/dxos/client/services.proto +20 -3
- package/src/proto/dxos/config.proto +36 -40
- package/src/proto/dxos/echo/service.proto +11 -0
- package/src/proto/gen/dxos/client/services.ts +30 -3
- package/src/proto/gen/dxos/config.ts +28 -2
- package/src/proto/gen/dxos/echo/service.ts +9 -0
- package/src/proto/gen/index.ts +3 -1
- package/src/queue.ts +18 -0
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/type.proto (package dxos.type, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
9
|
// TODO(burdon): Rename `dxos.registry.type`.
|
|
10
10
|
|
|
11
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
12
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/
|
|
11
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
12
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
13
13
|
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
14
14
|
import type { Record_Extension } from "./registry_pb.js";
|
|
15
15
|
import { file_dxos_registry } from "./registry_pb.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/value.proto (package dxos.value, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
10
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Message } from "@bufbuild/protobuf";
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2020 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file example/testing/data.proto (package example.testing.data, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
10
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Message } from "@bufbuild/protobuf";
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2020 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.
|
|
5
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file example/testing/rpc.proto (package example.testing.rpc, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
10
|
-
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Any, EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
12
12
|
import { file_google_protobuf_any, file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import type { Message } from "@bufbuild/protobuf";
|
package/src/edge-error.ts
CHANGED
|
@@ -2,31 +2,44 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type EdgeErrorData, type
|
|
5
|
+
import { type EdgeErrorData, type EdgeFailure, EdgeHttpErrorCodec, ErrorCodec } from './edge.js';
|
|
6
6
|
|
|
7
|
+
// TODO(burdon): Reconcile with @dxos/errors.
|
|
8
|
+
/**
|
|
9
|
+
* Error thrown when a call to the Edge service fails.
|
|
10
|
+
* There 3 possible sources of failure:
|
|
11
|
+
* 1. EdgeFailure (JSON body with { success: false }) -> Processing the request failed and was gracefully handled by EDGE service.
|
|
12
|
+
* 2. Http failure (non-ok code) -> The HTTP request failed (e.g. timeout, network error).
|
|
13
|
+
* -> Unhandled exception on EDGE side, EDGE would provide serialized error in the response body.
|
|
14
|
+
* 3. Processing failure -> Unhandled exception on client side while processing the response.
|
|
15
|
+
*/
|
|
7
16
|
export class EdgeCallFailedError extends Error {
|
|
8
|
-
public static
|
|
9
|
-
|
|
10
|
-
reason:
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
public static fromUnsuccessfulResponse(response: Response, body: EdgeFailure): EdgeCallFailedError {
|
|
18
|
+
const error = new EdgeCallFailedError({
|
|
19
|
+
reason: body.reason,
|
|
20
|
+
errorData: body.errorData,
|
|
21
|
+
isRetryable: body.errorData == null && response.headers.has('Retry-After'),
|
|
22
|
+
retryAfterMs: getRetryAfterMillis(response),
|
|
23
|
+
cause: body.cause ? ErrorCodec.decode(body.cause) : undefined,
|
|
13
24
|
});
|
|
25
|
+
|
|
26
|
+
return error;
|
|
14
27
|
}
|
|
15
28
|
|
|
16
|
-
public static fromHttpFailure(response: Response): EdgeCallFailedError {
|
|
29
|
+
public static async fromHttpFailure(response: Response): Promise<EdgeCallFailedError> {
|
|
17
30
|
return new EdgeCallFailedError({
|
|
18
31
|
reason: `HTTP code ${response.status}: ${response.statusText}.`,
|
|
19
32
|
isRetryable: isRetryableCode(response.status),
|
|
20
33
|
retryAfterMs: getRetryAfterMillis(response),
|
|
34
|
+
cause: await EdgeHttpErrorCodec.decode(response),
|
|
21
35
|
});
|
|
22
36
|
}
|
|
23
37
|
|
|
24
|
-
public static
|
|
38
|
+
public static fromProcessingFailureCause(cause: Error): EdgeCallFailedError {
|
|
25
39
|
return new EdgeCallFailedError({
|
|
26
|
-
reason:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
retryAfterMs: getRetryAfterMillis(response),
|
|
40
|
+
reason: 'Error processing request.',
|
|
41
|
+
isRetryable: true,
|
|
42
|
+
cause,
|
|
30
43
|
});
|
|
31
44
|
}
|
|
32
45
|
|
|
@@ -64,12 +77,6 @@ const getRetryAfterMillis = (response: Response) => {
|
|
|
64
77
|
return Number.isNaN(retryAfter) || retryAfter === 0 ? undefined : retryAfter * 1000;
|
|
65
78
|
};
|
|
66
79
|
|
|
67
|
-
export const createRetryableHttpFailure = (args: { reason: any; retryAfterSeconds: number }) => {
|
|
68
|
-
return new Response(JSON.stringify({ success: false, reason: args.reason }), {
|
|
69
|
-
headers: { 'Retry-After': String(args.retryAfterSeconds) },
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
|
|
73
80
|
const isRetryableCode = (status: number) => {
|
|
74
81
|
if (status === 501) {
|
|
75
82
|
// Not Implemented
|
package/src/edge.ts
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
+
import { BaseError } from '@dxos/errors';
|
|
8
|
+
import { invariant } from '@dxos/invariant';
|
|
7
9
|
import { SpaceId } from '@dxos/keys';
|
|
8
10
|
|
|
9
11
|
// TODO(burdon): Rename EdgerRouterEndpoint.
|
|
@@ -16,20 +18,43 @@ export enum EdgeService {
|
|
|
16
18
|
STATUS = 'status',
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
export type
|
|
21
|
+
export type EdgeSuccess<T> = {
|
|
20
22
|
success: true;
|
|
21
23
|
data: T;
|
|
22
24
|
};
|
|
23
25
|
|
|
26
|
+
export type SerializedError = {
|
|
27
|
+
code?: string;
|
|
28
|
+
message?: string;
|
|
29
|
+
context?: Record<string, unknown>;
|
|
30
|
+
stack?: string;
|
|
31
|
+
cause?: SerializedError;
|
|
32
|
+
};
|
|
33
|
+
|
|
24
34
|
export type EdgeErrorData = { type: string } & Record<string, any>;
|
|
25
35
|
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
/**
|
|
37
|
+
* This is the shape of the error response from the Edge service,
|
|
38
|
+
* when the error is gracefully handled, the Response will be an object with this shape and have status code 200.
|
|
39
|
+
*/
|
|
40
|
+
// TODO(dmaretskyi): Refactor this type to just be { success: false, error: SerializedError }
|
|
41
|
+
// reason -> error.message
|
|
42
|
+
// cause -> error.cause
|
|
43
|
+
// errorData.type -> error.code
|
|
44
|
+
// ...errorData -> error.context
|
|
45
|
+
export type EdgeFailure = {
|
|
46
|
+
/**
|
|
47
|
+
* Branded Type.
|
|
48
|
+
*/
|
|
28
49
|
success: false;
|
|
29
50
|
/**
|
|
30
51
|
* An explanation of why the call failed. Used mostly for logging and monitoring.
|
|
31
52
|
*/
|
|
32
53
|
reason: string;
|
|
54
|
+
/**
|
|
55
|
+
* Cause Error captured on the EDGE service to aid debugging on the client.
|
|
56
|
+
*/
|
|
57
|
+
cause?: SerializedError;
|
|
33
58
|
/**
|
|
34
59
|
* Information that can be used to retry the request such that it will succeed, for example:
|
|
35
60
|
* 1. { type: 'auth_required', challenge: string }
|
|
@@ -43,7 +68,87 @@ export type EdgeHttpFailure = {
|
|
|
43
68
|
errorData?: EdgeErrorData;
|
|
44
69
|
};
|
|
45
70
|
|
|
46
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Represents a body response from the Edge service.
|
|
73
|
+
*/
|
|
74
|
+
export type EdgeBody<T> = EdgeSuccess<T> | EdgeFailure;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Use this to create a response from the Edge service.
|
|
78
|
+
*/
|
|
79
|
+
export const EdgeResponse = Object.freeze({
|
|
80
|
+
success: <T>(data: T, status: number = 200): Response => {
|
|
81
|
+
invariant(status >= 200 && status < 300, 'Status code must be in the 2xx range');
|
|
82
|
+
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
83
|
+
return new Response(
|
|
84
|
+
JSON.stringify({
|
|
85
|
+
success: true,
|
|
86
|
+
data,
|
|
87
|
+
} satisfies EdgeSuccess<T>),
|
|
88
|
+
{
|
|
89
|
+
status,
|
|
90
|
+
headers,
|
|
91
|
+
},
|
|
92
|
+
);
|
|
93
|
+
},
|
|
94
|
+
failure: ({
|
|
95
|
+
reason,
|
|
96
|
+
cause,
|
|
97
|
+
errorData,
|
|
98
|
+
shouldRetryAfter,
|
|
99
|
+
status = 500,
|
|
100
|
+
}: {
|
|
101
|
+
/**
|
|
102
|
+
* An explanation of why the call failed. Used mostly for logging and monitoring.
|
|
103
|
+
*/
|
|
104
|
+
reason: string;
|
|
105
|
+
/**
|
|
106
|
+
* Error that caused the failure.
|
|
107
|
+
* Useful for debugging.
|
|
108
|
+
*/
|
|
109
|
+
cause?: Error;
|
|
110
|
+
/**
|
|
111
|
+
* Information that can be used to retry the request such that it will succeed, for example:
|
|
112
|
+
* 1. { type: 'auth_required', challenge: string }
|
|
113
|
+
* Requires retrying the request with challenge signature included.
|
|
114
|
+
* 2. { type: 'user_confirmation_required', dialog: { title: string, message: string, confirmation_payload: string } }
|
|
115
|
+
* Requires showing a confirmation dialog to a user and retrying the request with confirmation_payload included
|
|
116
|
+
* if the user confirms.
|
|
117
|
+
* When errorData is returned simply retrying the request won't have any effect.
|
|
118
|
+
* EdgeHttpClient should parse well-known errorData into Error types and throw.
|
|
119
|
+
*/
|
|
120
|
+
errorData?: EdgeErrorData;
|
|
121
|
+
/**
|
|
122
|
+
* If provided, this request will be marked as retryable and the client will wait for the specified number of milliseconds before retrying.
|
|
123
|
+
* If not provided, the client will not retry the request.
|
|
124
|
+
*/
|
|
125
|
+
shouldRetryAfter?: number;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Status code of the response.
|
|
129
|
+
* @default 500
|
|
130
|
+
*/
|
|
131
|
+
status?: number;
|
|
132
|
+
}): Response => {
|
|
133
|
+
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
134
|
+
if (shouldRetryAfter) {
|
|
135
|
+
headers.set('Retry-After', String(shouldRetryAfter));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return new Response(
|
|
139
|
+
JSON.stringify({
|
|
140
|
+
success: false,
|
|
141
|
+
reason,
|
|
142
|
+
errorData,
|
|
143
|
+
cause: cause ? ErrorCodec.encode(cause) : undefined,
|
|
144
|
+
} satisfies EdgeFailure),
|
|
145
|
+
{
|
|
146
|
+
status,
|
|
147
|
+
headers,
|
|
148
|
+
},
|
|
149
|
+
);
|
|
150
|
+
},
|
|
151
|
+
});
|
|
47
152
|
|
|
48
153
|
export type GetNotarizationResponseBody = {
|
|
49
154
|
awaitingNotarization: { credentials: string[] };
|
|
@@ -118,15 +223,36 @@ export type GetAgentStatusResponseBody = {
|
|
|
118
223
|
|
|
119
224
|
export type UploadFunctionRequest = {
|
|
120
225
|
name?: string;
|
|
121
|
-
script: string;
|
|
122
226
|
version: string;
|
|
123
227
|
ownerPublicKey: string;
|
|
228
|
+
entryPoint: string;
|
|
229
|
+
assets: Record<string, Uint8Array>;
|
|
230
|
+
/**
|
|
231
|
+
* Runtime in Edge that will be used to run the function.
|
|
232
|
+
* Runtime cannot be changed once the function was deployed.
|
|
233
|
+
* @default Runtime.WORKERS_FOR_PLATFORMS
|
|
234
|
+
*/
|
|
235
|
+
runtime?: Runtime;
|
|
124
236
|
};
|
|
125
237
|
|
|
238
|
+
/**
|
|
239
|
+
* Note: Do not change the values of these enums, this values are stored in the FunctionVersions database.
|
|
240
|
+
*/
|
|
241
|
+
export enum Runtime {
|
|
242
|
+
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
243
|
+
WORKERS_FOR_PLATFORMS = 'WORKERS_FOR_PLATFORMS',
|
|
244
|
+
// https://developers.cloudflare.com/workers/runtime-apis/bindings/worker-loader/
|
|
245
|
+
WORKER_LOADER = 'WORKER_LOADER',
|
|
246
|
+
// Local worker dispatcher for testing.
|
|
247
|
+
TEST = 'TEST',
|
|
248
|
+
}
|
|
249
|
+
|
|
126
250
|
export type UploadFunctionResponseBody = {
|
|
127
251
|
functionId: string;
|
|
128
252
|
version: string;
|
|
129
253
|
meta: {
|
|
254
|
+
key?: string;
|
|
255
|
+
name?: string;
|
|
130
256
|
description?: string;
|
|
131
257
|
/**
|
|
132
258
|
* JSON Schema for the input of the function.
|
|
@@ -270,7 +396,82 @@ export type ExportBundleResponse = {
|
|
|
270
396
|
}[];
|
|
271
397
|
};
|
|
272
398
|
|
|
273
|
-
export const DocumentCodec = {
|
|
399
|
+
export const DocumentCodec = Object.freeze({
|
|
274
400
|
encode: (doc: Uint8Array) => Buffer.from(doc).toString('base64'),
|
|
275
401
|
decode: (doc: string) => new Uint8Array(Buffer.from(doc, 'base64')),
|
|
276
|
-
};
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
const MAX_ERROR_DEPTH = 3;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Codec for serializing and deserializing Edge Errors.
|
|
408
|
+
*/
|
|
409
|
+
export const ErrorCodec = Object.freeze({
|
|
410
|
+
encode: (err: Error, depth: number = 0): SerializedError => ({
|
|
411
|
+
code: 'code' in err ? (err as any).code : undefined,
|
|
412
|
+
message: err.message,
|
|
413
|
+
stack: err.stack,
|
|
414
|
+
cause: err.cause instanceof Error && depth < MAX_ERROR_DEPTH ? ErrorCodec.encode(err.cause, depth + 1) : undefined,
|
|
415
|
+
}),
|
|
416
|
+
decode: (serializedError: SerializedError, depth: number = 0): Error => {
|
|
417
|
+
let err: Error;
|
|
418
|
+
if (typeof serializedError.code === 'string') {
|
|
419
|
+
err = new BaseError(serializedError.code, {
|
|
420
|
+
message: serializedError.message ?? 'Unknown error',
|
|
421
|
+
cause:
|
|
422
|
+
serializedError.cause && depth < MAX_ERROR_DEPTH
|
|
423
|
+
? ErrorCodec.decode(serializedError.cause, depth + 1)
|
|
424
|
+
: undefined,
|
|
425
|
+
context: serializedError.context,
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
if (serializedError.stack) {
|
|
429
|
+
Object.defineProperty(err, 'stack', {
|
|
430
|
+
value: serializedError.stack,
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
} else {
|
|
434
|
+
err = new Error(serializedError.message ?? 'Unknown error', {
|
|
435
|
+
cause:
|
|
436
|
+
serializedError.cause && depth < MAX_ERROR_DEPTH
|
|
437
|
+
? ErrorCodec.decode(serializedError.cause, depth + 1)
|
|
438
|
+
: undefined,
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
if (serializedError.stack) {
|
|
442
|
+
Object.defineProperty(err, 'stack', {
|
|
443
|
+
value: serializedError.stack,
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return err;
|
|
449
|
+
},
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Codec for serializing and deserializing Edge unhandled HTTP errors.
|
|
454
|
+
*/
|
|
455
|
+
export const EdgeHttpErrorCodec = Object.freeze({
|
|
456
|
+
encode: (err: Error): Response =>
|
|
457
|
+
new Response(
|
|
458
|
+
JSON.stringify({
|
|
459
|
+
error: ErrorCodec.encode(err),
|
|
460
|
+
}),
|
|
461
|
+
{ status: 500 },
|
|
462
|
+
),
|
|
463
|
+
|
|
464
|
+
decode: async (response: Response): Promise<Error | undefined> => {
|
|
465
|
+
if (response.headers.get('Content-Type') !== 'application/json') {
|
|
466
|
+
const body = await response.clone().text();
|
|
467
|
+
return new Error(body.slice(0, 256));
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
const body = await response.clone().json();
|
|
471
|
+
if (!('error' in body)) {
|
|
472
|
+
return undefined;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return ErrorCodec.decode(body.error);
|
|
476
|
+
},
|
|
477
|
+
});
|
package/src/index.ts
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
export * from './automerge.js';
|
|
6
|
+
export * from './edge-error.js';
|
|
7
|
+
export * from './edge.js';
|
|
5
8
|
export * from './errors/index.js';
|
|
6
9
|
export * from './indexing.js';
|
|
10
|
+
export * from './profile-archive.js';
|
|
11
|
+
export * from './query.js';
|
|
12
|
+
export * from './queue.js';
|
|
13
|
+
export * from './space-archive.js';
|
|
7
14
|
export * from './storage.js';
|
|
8
15
|
export * from './tracing.js';
|
|
9
16
|
export type * from './types.js';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './profile-archive.js';
|
|
12
|
-
export * from './automerge.js';
|
|
13
|
-
export * from './edge.js';
|
|
14
|
-
export type * from './queue.js';
|
|
15
|
-
export * from './space-archive.js';
|
|
16
|
-
export * from './edge-error.js';
|
|
17
|
+
export * as FunctionProtocol from './FunctionProtocol.js';
|
package/src/indexing.ts
CHANGED
package/src/invitation.ts
CHANGED
|
@@ -596,9 +596,26 @@ service EdgeAgentService {
|
|
|
596
596
|
rpc QueryAgentStatus(google.protobuf.Empty) returns (stream QueryAgentStatusResponse);
|
|
597
597
|
}
|
|
598
598
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
599
|
+
message EdgeStatus {
|
|
600
|
+
enum ConnectionState {
|
|
601
|
+
NOT_CONNECTED = 0;
|
|
602
|
+
CONNECTED = 1;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
ConnectionState state = 1;
|
|
606
|
+
/** Latency in ms */
|
|
607
|
+
int32 rtt = 2;
|
|
608
|
+
|
|
609
|
+
/** How long the connection has been up */
|
|
610
|
+
int32 uptime = 3;
|
|
611
|
+
|
|
612
|
+
/** Upload rate in bytes per second */
|
|
613
|
+
int32 rate_bytes_up = 4;
|
|
614
|
+
/** Download rate in bytes per second */
|
|
615
|
+
int32 rate_bytes_down = 5;
|
|
616
|
+
|
|
617
|
+
int32 messages_sent = 6;
|
|
618
|
+
int32 messages_received = 7;
|
|
602
619
|
}
|
|
603
620
|
|
|
604
621
|
message QueryEdgeStatusResponse {
|
|
@@ -12,9 +12,7 @@ package dxos.config;
|
|
|
12
12
|
|
|
13
13
|
option go_package = "github.com/dxos/dxos/proto/def/dxos/config";
|
|
14
14
|
|
|
15
|
-
extend google.protobuf.FieldOptions {
|
|
16
|
-
optional string env_var = 1000;
|
|
17
|
-
}
|
|
15
|
+
extend google.protobuf.FieldOptions { optional string env_var = 1000; }
|
|
18
16
|
|
|
19
17
|
message Config {
|
|
20
18
|
optional int32 version = 1;
|
|
@@ -58,9 +56,10 @@ message Module {
|
|
|
58
56
|
optional google.protobuf.Struct env = 10;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
|
-
optional string id = 8;
|
|
62
|
-
optional string name = 1;
|
|
63
|
-
optional string type = 2;
|
|
59
|
+
optional string id = 8; // TODO(burdon): Ensured FQ (e.g., 'dxos.app.xxx')
|
|
60
|
+
optional string name = 1; // TODO(burdon): Replace with id (or key?)
|
|
61
|
+
optional string type = 2; // TODO(burdon): Define namespace (e.g.,
|
|
62
|
+
// 'dxos.org/type/frame' vs. 'dxos.type.frame')
|
|
64
63
|
|
|
65
64
|
// TODO(burdon): Developer info message.
|
|
66
65
|
|
|
@@ -74,7 +73,7 @@ message Module {
|
|
|
74
73
|
optional bool tunnel = 7;
|
|
75
74
|
|
|
76
75
|
// TODO(burdon): Start at 100.
|
|
77
|
-
repeated Module deps = 10;
|
|
76
|
+
repeated Module deps = 10; // TODO(burdon): E.g., types.
|
|
78
77
|
optional Build build = 100;
|
|
79
78
|
repeated Repo repos = 101;
|
|
80
79
|
|
|
@@ -111,8 +110,8 @@ message Runtime {
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
message Log {
|
|
114
|
-
optional string filter = 1 [(env_var) = "LOG_FILTER"];
|
|
115
|
-
optional string prefix = 2 [(env_var) = "LOG_PREFIX"];
|
|
113
|
+
optional string filter = 1 [ (env_var) = "LOG_FILTER" ];
|
|
114
|
+
optional string prefix = 2 [ (env_var) = "LOG_PREFIX" ];
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
message EdgeFeatures {
|
|
@@ -136,7 +135,8 @@ message Runtime {
|
|
|
136
135
|
optional int32 invitation_expiration = 5;
|
|
137
136
|
|
|
138
137
|
/// Location of the remote client host.
|
|
139
|
-
// TODO(burdon): Rename vault_endpoint (generalize http/ws; drop
|
|
138
|
+
// TODO(burdon): Rename vault_endpoint (generalize http/ws; drop
|
|
139
|
+
// vault.html).
|
|
140
140
|
optional string remote_source = 6;
|
|
141
141
|
|
|
142
142
|
// Authenticate via `Sec-WebSocket-Protocol` header hack.
|
|
@@ -145,7 +145,8 @@ message Runtime {
|
|
|
145
145
|
/// Connect to and serve client services to a remote proxy.
|
|
146
146
|
optional string devtools_proxy = 7;
|
|
147
147
|
|
|
148
|
-
/// Spaces will stay in SpaceState.CLOSED until explicitly opened. Speeds up
|
|
148
|
+
/// Spaces will stay in SpaceState.CLOSED until explicitly opened. Speeds up
|
|
149
|
+
/// client-services initialization.
|
|
149
150
|
optional bool lazy_space_open = 9;
|
|
150
151
|
|
|
151
152
|
/// Disabled automerge & hypercore replication through P2P connections.
|
|
@@ -169,7 +170,7 @@ message Runtime {
|
|
|
169
170
|
optional string org = 1;
|
|
170
171
|
optional string theme = 2;
|
|
171
172
|
optional string website = 3;
|
|
172
|
-
optional string public_url = 4 [(env_var) = "PUBLIC_URL"];
|
|
173
|
+
optional string public_url = 4 [ (env_var) = "PUBLIC_URL" ];
|
|
173
174
|
|
|
174
175
|
optional BuildInfo build = 100;
|
|
175
176
|
optional google.protobuf.Struct env = 101;
|
|
@@ -214,13 +215,9 @@ message Runtime {
|
|
|
214
215
|
optional string channel = 7;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
|
-
message Props {
|
|
218
|
-
optional string title = 1;
|
|
219
|
-
}
|
|
218
|
+
message Props { optional string title = 1; }
|
|
220
219
|
|
|
221
|
-
message System {
|
|
222
|
-
optional string debug = 1;
|
|
223
|
-
}
|
|
220
|
+
message System { optional string debug = 1; }
|
|
224
221
|
|
|
225
222
|
//
|
|
226
223
|
// KUBE
|
|
@@ -255,9 +252,7 @@ message Runtime {
|
|
|
255
252
|
int32 interval = 3;
|
|
256
253
|
}
|
|
257
254
|
|
|
258
|
-
message Trace {
|
|
259
|
-
bool disabled = 1;
|
|
260
|
-
}
|
|
255
|
+
message Trace { bool disabled = 1; }
|
|
261
256
|
|
|
262
257
|
message Telemetry {
|
|
263
258
|
bool disabled = 1;
|
|
@@ -285,10 +280,10 @@ message Runtime {
|
|
|
285
280
|
|
|
286
281
|
/// https://github.com/ipfs/kubo/blob/master/docs/config.md#apiauthorizations
|
|
287
282
|
message KuboApiAuthorization {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
283
|
+
/// Just for organizational purposes.
|
|
284
|
+
string name = 1;
|
|
285
|
+
string auth_secret = 2;
|
|
286
|
+
repeated string allowed_paths = 3;
|
|
292
287
|
}
|
|
293
288
|
|
|
294
289
|
// TODO(burdon): Needs documentation/
|
|
@@ -359,8 +354,9 @@ message Runtime {
|
|
|
359
354
|
message Ipfs {
|
|
360
355
|
optional string server = 1;
|
|
361
356
|
optional string gateway = 2;
|
|
362
|
-
/// Used for IPFS API authentication, regardless if server is direct KUBO
|
|
363
|
-
/// Same secret format as
|
|
357
|
+
/// Used for IPFS API authentication, regardless if server is direct KUBO
|
|
358
|
+
/// API (e.g. path of '/api/v0') or a reverse proxy Same secret format as
|
|
359
|
+
/// https://github.com/ipfs/kubo/blob/master/docs/config.md#apiauthorizations
|
|
364
360
|
optional string server_auth_secret = 3;
|
|
365
361
|
}
|
|
366
362
|
|
|
@@ -376,9 +372,7 @@ message Runtime {
|
|
|
376
372
|
optional string credential = 3;
|
|
377
373
|
}
|
|
378
374
|
|
|
379
|
-
message IceProvider {
|
|
380
|
-
string urls = 1;
|
|
381
|
-
}
|
|
375
|
+
message IceProvider { string urls = 1; }
|
|
382
376
|
|
|
383
377
|
message Machine {
|
|
384
378
|
optional string do_access_token = 1;
|
|
@@ -396,9 +390,7 @@ message Runtime {
|
|
|
396
390
|
optional string server = 1;
|
|
397
391
|
}
|
|
398
392
|
|
|
399
|
-
message Tunneling {
|
|
400
|
-
optional string server = 1;
|
|
401
|
-
}
|
|
393
|
+
message Tunneling { optional string server = 1; }
|
|
402
394
|
|
|
403
395
|
message Supervisor { // TODO(burdon): Is this a service?
|
|
404
396
|
optional string server = 1;
|
|
@@ -416,14 +408,13 @@ message Runtime {
|
|
|
416
408
|
optional string type = 2;
|
|
417
409
|
}
|
|
418
410
|
|
|
419
|
-
message Edge {
|
|
420
|
-
optional string url = 1;
|
|
421
|
-
}
|
|
411
|
+
message Edge { optional string url = 1; }
|
|
422
412
|
|
|
423
|
-
message Ai {
|
|
424
|
-
|
|
425
|
-
}
|
|
413
|
+
message Ai { optional string server = 1; }
|
|
414
|
+
|
|
415
|
+
message Hub { optional string url = 1; }
|
|
426
416
|
|
|
417
|
+
/** Deprecated */
|
|
427
418
|
optional Kube kube = 1;
|
|
428
419
|
optional AppServer app = 2;
|
|
429
420
|
optional Dxns dxns = 3;
|
|
@@ -434,12 +425,17 @@ message Runtime {
|
|
|
434
425
|
optional Machine machine = 7;
|
|
435
426
|
optional BotHost bot = 8;
|
|
436
427
|
optional Publisher publisher = 9;
|
|
437
|
-
|
|
428
|
+
/** Deprecated */
|
|
429
|
+
optional Supervisor supervisor = 10;
|
|
430
|
+
/** Deprecated */
|
|
438
431
|
optional Tunneling tunneling = 11;
|
|
432
|
+
/** Deprecated */
|
|
439
433
|
optional Faasd faasd = 12;
|
|
434
|
+
/** Deprecated */
|
|
440
435
|
optional AgentHosting agent_hosting = 13;
|
|
441
436
|
optional Edge edge = 15;
|
|
442
437
|
optional Ai ai = 16;
|
|
438
|
+
optional Hub hub = 17;
|
|
443
439
|
}
|
|
444
440
|
|
|
445
441
|
message Keys {
|