@dxos/protocols 0.8.4-main.f9ba587 → 0.8.4-main.fbb7a13
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 +82 -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/queue_pb.d.ts +189 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +39 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
- 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 +40 -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 +13 -3
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +2 -2
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +71 -10
- 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 +16 -6
- 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/google_pb.js.map +1 -1
- 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 +2 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +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/tracing_pb.js.map +1 -1
- 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/EdgeFunctionEnv.d.ts +120 -0
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -0
- package/dist/src/edge/EdgeFunctionEnv.js +4 -0
- package/dist/src/edge/EdgeFunctionEnv.js.map +1 -0
- package/dist/src/edge/edge.d.ts +346 -0
- package/dist/src/edge/edge.d.ts.map +1 -0
- package/dist/src/edge/edge.js +160 -0
- package/dist/src/edge/edge.js.map +1 -0
- package/dist/src/edge/errors.d.ts +29 -0
- package/dist/src/edge/errors.d.ts.map +1 -0
- package/dist/src/edge/errors.js +69 -0
- package/dist/src/edge/errors.js.map +1 -0
- package/dist/src/edge/index.d.ts +4 -0
- package/dist/src/edge/index.d.ts.map +1 -0
- package/dist/src/edge/index.js +7 -0
- package/dist/src/edge/index.js.map +1 -0
- package/dist/src/errors/base-errors.d.ts +86 -8
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/base-errors.js +4 -19
- package/dist/src/errors/base-errors.js.map +1 -1
- package/dist/src/errors/encoding.d.ts +1 -1
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +618 -41
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +49 -103
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/errors.test.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +8 -4
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/helpers.js +3 -3
- package/dist/src/errors/helpers.js.map +1 -1
- package/dist/src/feed-replication.d.ts.map +1 -1
- package/dist/src/index.d.ts +7 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -7
- 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/messenger.d.ts +16 -0
- package/dist/src/messenger.d.ts.map +1 -0
- package/dist/src/messenger.js +4 -0
- package/dist/src/messenger.js.map +1 -0
- package/dist/src/proto/gen/dxos/client/services.d.ts +895 -765
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +103 -100
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +33 -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/query.d.ts +17 -1
- package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +43 -8
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/index.d.ts +10 -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/proto/index.d.ts +1 -1
- package/dist/src/proto/index.d.ts.map +1 -1
- package/dist/src/proto/index.js +0 -1
- package/dist/src/proto/index.js.map +1 -1
- package/dist/src/queue.d.ts +2 -23
- package/dist/src/queue.d.ts.map +1 -1
- package/dist/src/queue.js +2 -1
- package/dist/src/queue.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -17
- package/src/FunctionProtocol.ts +104 -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/queue_pb.ts +231 -0
- package/src/buf/proto/gen/dxos/client/services_pb.ts +84 -29
- package/src/buf/proto/gen/dxos/config_pb.ts +48 -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 +18 -6
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +87 -18
- 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 +4 -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/EdgeFunctionEnv.ts +193 -0
- package/src/edge/edge.ts +484 -0
- package/src/edge/errors.ts +85 -0
- package/src/edge/index.ts +7 -0
- package/src/errors/base-errors.ts +4 -20
- package/src/errors/encoding.ts +2 -1
- package/src/errors/errors.test.ts +1 -1
- package/src/errors/errors.ts +57 -122
- package/src/errors/helpers.ts +5 -5
- package/src/feed-replication.ts +1 -0
- package/src/index.ts +9 -7
- package/src/indexing.ts +1 -1
- package/src/invitation.ts +1 -1
- package/src/messenger.ts +22 -0
- package/src/proto/dxos/client/queue.proto +67 -0
- package/src/proto/dxos/client/services.proto +20 -3
- package/src/proto/dxos/config.proto +38 -40
- package/src/proto/dxos/echo/query.proto +4 -1
- package/src/proto/dxos/echo/service.proto +38 -6
- package/src/proto/dxos/iframe.proto +1 -0
- package/src/proto/gen/dxos/client/services.ts +895 -765
- package/src/proto/gen/dxos/config.ts +33 -2
- package/src/proto/gen/dxos/echo/query.ts +17 -1
- package/src/proto/gen/dxos/echo/service.ts +42 -8
- package/src/proto/gen/index.ts +11 -1
- package/src/proto/index.ts +1 -1
- package/src/queue.ts +10 -29
- package/dist/src/edge-error.d.ts +0 -26
- package/dist/src/edge-error.d.ts.map +0 -1
- package/dist/src/edge-error.js +0 -62
- package/dist/src/edge-error.js.map +0 -1
- package/dist/src/edge.d.ts +0 -198
- package/dist/src/edge.d.ts.map +0 -1
- package/dist/src/edge.js +0 -43
- package/dist/src/edge.js.map +0 -1
- package/dist/src/query.d.ts +0 -5
- package/dist/src/query.d.ts.map +0 -1
- package/dist/src/query.js +0 -8
- package/dist/src/query.js.map +0 -1
- package/src/edge-error.ts +0 -79
- package/src/edge.ts +0 -222
- package/src/query.ts +0 -8
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.fbb7a13",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "info@dxos.org",
|
|
9
|
-
"sideEffects":
|
|
13
|
+
"sideEffects": false,
|
|
10
14
|
"type": "module",
|
|
11
15
|
"exports": {
|
|
12
16
|
".": {
|
|
@@ -59,27 +63,25 @@
|
|
|
59
63
|
"src"
|
|
60
64
|
],
|
|
61
65
|
"dependencies": {
|
|
62
|
-
"@bufbuild/protobuf": "
|
|
63
|
-
"@dxos/codec-protobuf": "0.8.4-main.
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/invariant": "0.8.4-main.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/timeframe": "0.8.4-main.
|
|
68
|
-
"@dxos/util": "0.8.4-main.
|
|
66
|
+
"@bufbuild/protobuf": "2.10.1",
|
|
67
|
+
"@dxos/codec-protobuf": "0.8.4-main.fbb7a13",
|
|
68
|
+
"@dxos/errors": "0.8.4-main.fbb7a13",
|
|
69
|
+
"@dxos/invariant": "0.8.4-main.fbb7a13",
|
|
70
|
+
"@dxos/effect": "0.8.4-main.fbb7a13",
|
|
71
|
+
"@dxos/timeframe": "0.8.4-main.fbb7a13",
|
|
72
|
+
"@dxos/util": "0.8.4-main.fbb7a13",
|
|
73
|
+
"@dxos/keys": "0.8.4-main.fbb7a13"
|
|
69
74
|
},
|
|
70
75
|
"devDependencies": {
|
|
71
|
-
"@bufbuild/buf": "
|
|
72
|
-
"@bufbuild/protoc-gen-es": "
|
|
73
|
-
"effect": "3.
|
|
74
|
-
"@dxos/protobuf-compiler": "0.8.4-main.
|
|
76
|
+
"@bufbuild/buf": "1.61.0",
|
|
77
|
+
"@bufbuild/protoc-gen-es": "2.10.1",
|
|
78
|
+
"effect": "3.19.11",
|
|
79
|
+
"@dxos/protobuf-compiler": "0.8.4-main.fbb7a13"
|
|
75
80
|
},
|
|
76
81
|
"peerDependencies": {
|
|
77
|
-
"effect": "
|
|
82
|
+
"effect": "3.19.11"
|
|
78
83
|
},
|
|
79
84
|
"publishConfig": {
|
|
80
85
|
"access": "public"
|
|
81
|
-
},
|
|
82
|
-
"scripts": {
|
|
83
|
-
"compile:buf": "buf generate"
|
|
84
86
|
}
|
|
85
87
|
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type SpaceId } from '@dxos/keys';
|
|
6
|
+
import type * as QueryProto from '@dxos/protocols/proto/dxos/echo/query';
|
|
7
|
+
import type * as DataProto from '@dxos/protocols/proto/dxos/echo/service';
|
|
8
|
+
|
|
9
|
+
import { type EdgeFunctionEnv } from './edge';
|
|
10
|
+
import { type QueueService } from './queue';
|
|
11
|
+
|
|
12
|
+
//
|
|
13
|
+
// Function protocol definition
|
|
14
|
+
//
|
|
15
|
+
|
|
16
|
+
// - All types must be trivially serializable - no class instances.
|
|
17
|
+
// - Cannot use effect.
|
|
18
|
+
// - Protobuf service definitions are allowed (Q: What about PublicKey, Timeframe, etc.).
|
|
19
|
+
// - Breaking changes in this interface should be carefully considered.
|
|
20
|
+
|
|
21
|
+
// TODO(dmaretskyi): Consider moving this to protocols.
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Function implementation.
|
|
25
|
+
* This is a contract between the user-defined function and the runtime.
|
|
26
|
+
*/
|
|
27
|
+
export interface Func {
|
|
28
|
+
readonly meta: Meta;
|
|
29
|
+
readonly handler: Handler;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Function metadata.
|
|
34
|
+
*/
|
|
35
|
+
export interface Meta {
|
|
36
|
+
readonly key: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Required services.
|
|
41
|
+
*/
|
|
42
|
+
readonly services: readonly string[];
|
|
43
|
+
/**
|
|
44
|
+
* JSON schema format
|
|
45
|
+
*/
|
|
46
|
+
readonly inputSchema: unknown;
|
|
47
|
+
/**
|
|
48
|
+
* JSON schema format.
|
|
49
|
+
*/
|
|
50
|
+
readonly outputSchema?: unknown;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Function handler.
|
|
55
|
+
* Executed by the runtime
|
|
56
|
+
*/
|
|
57
|
+
export type Handler = (opts: { data: unknown; context: Context }) => Promise<unknown>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Function context.
|
|
61
|
+
*/
|
|
62
|
+
export interface Context {
|
|
63
|
+
services: {
|
|
64
|
+
/**
|
|
65
|
+
* Query service.
|
|
66
|
+
* Available if the function is invoked in context of a space.
|
|
67
|
+
*/
|
|
68
|
+
queryService?: QueryProto.QueryService;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Data service.
|
|
72
|
+
* Available if the function is invoked in context of a space.
|
|
73
|
+
*/
|
|
74
|
+
dataService?: DataProto.DataService;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Queue service.
|
|
78
|
+
* Available if the function is invoked in context of a space.
|
|
79
|
+
*/
|
|
80
|
+
queueService?: QueueService;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Functions service.
|
|
84
|
+
* Available if the function is invoked in context of a space.
|
|
85
|
+
*/
|
|
86
|
+
functionsAiService?: EdgeFunctionEnv.FunctionsAiService;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* That space that the function is invoked in context of.
|
|
91
|
+
*/
|
|
92
|
+
spaceId?: SpaceId;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Hex-encoded space key.
|
|
96
|
+
* @deprecated We need to remove this but ECHO keeps dragging this in.
|
|
97
|
+
*/
|
|
98
|
+
spaceKey?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Automerge URL of the space-root document.
|
|
102
|
+
*/
|
|
103
|
+
spaceRootUrl?: string;
|
|
104
|
+
}
|
package/src/automerge.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type LeaveProtocolMessage = {
|
|
|
16
16
|
type: 'leave';
|
|
17
17
|
targetId?: PeerId;
|
|
18
18
|
senderId: PeerId;
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export type PeerProtocolMessage = {
|
|
@@ -39,6 +40,7 @@ export type RequestProtocolMessage = {
|
|
|
39
40
|
targetId: PeerId;
|
|
40
41
|
documentId: string;
|
|
41
42
|
data: Uint8Array;
|
|
43
|
+
metadata?: Record<string, unknown>;
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
/**
|
|
@@ -50,6 +52,7 @@ export type SyncProtocolMessage = {
|
|
|
50
52
|
targetId: PeerId;
|
|
51
53
|
documentId: string;
|
|
52
54
|
data: Uint8Array;
|
|
55
|
+
metadata?: Record<string, unknown>;
|
|
53
56
|
};
|
|
54
57
|
|
|
55
58
|
/**
|
|
@@ -61,6 +64,7 @@ export type UnavailableProtocolMessage = {
|
|
|
61
64
|
senderId: PeerId;
|
|
62
65
|
targetId: PeerId;
|
|
63
66
|
documentId: string;
|
|
67
|
+
metadata?: Record<string, unknown>;
|
|
64
68
|
};
|
|
65
69
|
|
|
66
70
|
/**
|
|
@@ -82,6 +86,7 @@ export type EphemeralProtocolMessage = {
|
|
|
82
86
|
sessionId: string;
|
|
83
87
|
documentId: string;
|
|
84
88
|
data: Uint8Array;
|
|
89
|
+
metadata?: Record<string, unknown>;
|
|
85
90
|
};
|
|
86
91
|
|
|
87
92
|
export type ErrorProtocolMessage = {
|
|
@@ -89,6 +94,7 @@ export type ErrorProtocolMessage = {
|
|
|
89
94
|
senderId?: PeerId;
|
|
90
95
|
targetId?: PeerId;
|
|
91
96
|
message: string;
|
|
97
|
+
metadata?: Record<string, unknown>;
|
|
92
98
|
};
|
|
93
99
|
|
|
94
100
|
export const MESSAGE_TYPE_COLLECTION_QUERY = 'collection-query';
|
|
@@ -104,6 +110,7 @@ export type CollectionQueryMessage = {
|
|
|
104
110
|
* Remote peer will skip sending the state if it has the same tag.
|
|
105
111
|
*/
|
|
106
112
|
stateTag?: string;
|
|
113
|
+
metadata?: Record<string, unknown>;
|
|
107
114
|
};
|
|
108
115
|
|
|
109
116
|
export const MESSAGE_TYPE_COLLECTION_STATE = 'collection-state';
|
|
@@ -123,6 +130,7 @@ export type CollectionStateMessage = {
|
|
|
123
130
|
* Identifier of the current state.
|
|
124
131
|
*/
|
|
125
132
|
stateTag?: string;
|
|
133
|
+
metadata?: Record<string, unknown>;
|
|
126
134
|
};
|
|
127
135
|
|
|
128
136
|
export type AutomergeProtocolMessage =
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.1
|
|
5
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/dashboard.proto (package dxos.agent.dashboard, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
10
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
12
12
|
import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import type { Runtime_Agent_Plugin } from "../config_pb.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.1
|
|
5
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/echo-proxy.proto (package dxos.agent.echoproxy, 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 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.1
|
|
5
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/epoch.proto (package dxos.agent.epoch, 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,14 +2,14 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.1
|
|
5
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/agent/functions.proto (package dxos.agent.functions, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
9
|
// TODO(burdon): dxos.agent.plugin.functions
|
|
10
10
|
|
|
11
|
-
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
12
|
-
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
11
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
12
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
13
13
|
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
14
14
|
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
15
15
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2020 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.1
|
|
5
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/bot.proto (package dxos.bot, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
10
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
12
12
|
import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import type { Invitation } from "./client/invitation_pb.js";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.1
|
|
5
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/client/invitation.proto (package dxos.client.services, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
9
|
// TODO(burdon): Reorganize packages (e.g., client.services, echo.database).
|
|
10
10
|
|
|
11
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
12
|
-
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/
|
|
11
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
12
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
13
13
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
14
14
|
import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
15
15
|
import { file_dxos_config } from "../config_pb.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
// @generated by protoc-gen-es v2.1
|
|
5
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
6
6
|
// @generated from file dxos/client/logging.proto (package dxos.client.services, syntax proto3)
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/
|
|
10
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/
|
|
9
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
12
12
|
import { file_google_protobuf_any, file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import { file_dxos_config } from "../config_pb.js";
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file dxos/client/queue.proto (package dxos.client.services, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file dxos/client/queue.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_dxos_client_queue: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("ChdkeG9zL2NsaWVudC9xdWV1ZS5wcm90bxIUZHhvcy5jbGllbnQuc2VydmljZXMi0wIKClF1ZXVlUXVlcnkSEAoIc3BhY2VfaWQYASABKAkSHQoQcXVldWVzX25hbWVzcGFjZRgCIAEoCUgAiAEBEhEKCXF1ZXVlX2lkcxgDIAMoCRISCgVhZnRlchgEIAEoCUgBiAEBEhMKBmJlZm9yZRgFIAEoCUgCiAEBEhsKDmJlZ2luX3Bvc2l0aW9uGAYgASgDSAOIAQESGQoMZW5kX3Bvc2l0aW9uGAcgASgDSASIAQESEgoFbGltaXQYCCABKAVIBYgBARIUCgdyZXZlcnNlGAkgASgISAaIAQESEgoKb2JqZWN0X2lkcxhkIAMoCUITChFfcXVldWVzX25hbWVzcGFjZUIICgZfYWZ0ZXJCCQoHX2JlZm9yZUIRCg9fYmVnaW5fcG9zaXRpb25CDwoNX2VuZF9wb3NpdGlvbkIICgZfbGltaXRCCgoIX3JldmVyc2UiZgoQUXVldWVRdWVyeVJlc3VsdBIoCgdvYmplY3RzGAEgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBITCgtuZXh0X2N1cnNvchgCIAEoCRITCgtwcmV2X2N1cnNvchgDIAEoCSJEChFRdWVyeVF1ZXVlUmVxdWVzdBIvCgVxdWVyeRgBIAEoCzIgLmR4b3MuY2xpZW50LnNlcnZpY2VzLlF1ZXVlUXVlcnkifAoWSW5zZXJ0SW50b1F1ZXVlUmVxdWVzdBIUCgxzdWJzcGFjZV90YWcYASABKAkSEAoIc3BhY2VfaWQYAiABKAkSEAoIcXVldWVfaWQYAyABKAkSKAoHb2JqZWN0cxgEIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiZgoWRGVsZXRlRnJvbVF1ZXVlUmVxdWVzdBIUCgxzdWJzcGFjZV90YWcYASABKAkSEAoIc3BhY2VfaWQYAiABKAkSEAoIcXVldWVfaWQYAyABKAkSEgoKb2JqZWN0X2lkcxgEIAMoCTKfAgoMUXVldWVTZXJ2aWNlEl0KClF1ZXJ5UXVldWUSJy5keG9zLmNsaWVudC5zZXJ2aWNlcy5RdWVyeVF1ZXVlUmVxdWVzdBomLmR4b3MuY2xpZW50LnNlcnZpY2VzLlF1ZXVlUXVlcnlSZXN1bHQSVwoPSW5zZXJ0SW50b1F1ZXVlEiwuZHhvcy5jbGllbnQuc2VydmljZXMuSW5zZXJ0SW50b1F1ZXVlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRJXCg9EZWxldGVGcm9tUXVldWUSLC5keG9zLmNsaWVudC5zZXJ2aWNlcy5EZWxldGVGcm9tUXVldWVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5YgZwcm90bzM", [file_google_protobuf_struct, file_google_protobuf_empty]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @generated from message dxos.client.services.QueueQuery
|
|
19
|
+
*/
|
|
20
|
+
export type QueueQuery = Message<"dxos.client.services.QueueQuery"> & {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: string space_id = 1;
|
|
23
|
+
*/
|
|
24
|
+
spaceId: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from field: optional string queues_namespace = 2;
|
|
28
|
+
*/
|
|
29
|
+
queuesNamespace?: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* / Queries the whole space if missing.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: repeated string queue_ids = 3;
|
|
35
|
+
*/
|
|
36
|
+
queueIds: string[];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* / Filter items after this cursor. Exclusive.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: optional string after = 4;
|
|
42
|
+
*/
|
|
43
|
+
after?: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* / Filter items before this cursor. Exclusive.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: optional string before = 5;
|
|
49
|
+
*/
|
|
50
|
+
before?: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* / Filter items after this position. Inclusive.
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: optional int64 begin_position = 6;
|
|
56
|
+
*/
|
|
57
|
+
beginPosition?: bigint;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* / Filter items before this position. Exclusive.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: optional int64 end_position = 7;
|
|
63
|
+
*/
|
|
64
|
+
endPosition?: bigint;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: optional int32 limit = 8;
|
|
68
|
+
*/
|
|
69
|
+
limit?: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: optional bool reverse = 9;
|
|
73
|
+
*/
|
|
74
|
+
reverse?: boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* TODO(dmaretskyi): Remove this field -- raw queues dont index object IDs anymore.
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: repeated string object_ids = 100;
|
|
80
|
+
*/
|
|
81
|
+
objectIds: string[];
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message dxos.client.services.QueueQuery.
|
|
86
|
+
* Use `create(QueueQuerySchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export const QueueQuerySchema: GenMessage<QueueQuery> = /*@__PURE__*/
|
|
89
|
+
messageDesc(file_dxos_client_queue, 0);
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message dxos.client.services.QueueQueryResult
|
|
93
|
+
*/
|
|
94
|
+
export type QueueQueryResult = Message<"dxos.client.services.QueueQueryResult"> & {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: repeated google.protobuf.Struct objects = 1;
|
|
97
|
+
*/
|
|
98
|
+
objects: JsonObject[];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* / Cursor to query the next items. Can be passed to `after` in query to keep querying.
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: string next_cursor = 2;
|
|
104
|
+
*/
|
|
105
|
+
nextCursor: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: string prev_cursor = 3;
|
|
109
|
+
*/
|
|
110
|
+
prevCursor: string;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Describes the message dxos.client.services.QueueQueryResult.
|
|
115
|
+
* Use `create(QueueQueryResultSchema)` to create a new message.
|
|
116
|
+
*/
|
|
117
|
+
export const QueueQueryResultSchema: GenMessage<QueueQueryResult> = /*@__PURE__*/
|
|
118
|
+
messageDesc(file_dxos_client_queue, 1);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from message dxos.client.services.QueryQueueRequest
|
|
122
|
+
*/
|
|
123
|
+
export type QueryQueueRequest = Message<"dxos.client.services.QueryQueueRequest"> & {
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: dxos.client.services.QueueQuery query = 1;
|
|
126
|
+
*/
|
|
127
|
+
query?: QueueQuery;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Describes the message dxos.client.services.QueryQueueRequest.
|
|
132
|
+
* Use `create(QueryQueueRequestSchema)` to create a new message.
|
|
133
|
+
*/
|
|
134
|
+
export const QueryQueueRequestSchema: GenMessage<QueryQueueRequest> = /*@__PURE__*/
|
|
135
|
+
messageDesc(file_dxos_client_queue, 2);
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @generated from message dxos.client.services.InsertIntoQueueRequest
|
|
139
|
+
*/
|
|
140
|
+
export type InsertIntoQueueRequest = Message<"dxos.client.services.InsertIntoQueueRequest"> & {
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: string subspace_tag = 1;
|
|
143
|
+
*/
|
|
144
|
+
subspaceTag: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: string space_id = 2;
|
|
148
|
+
*/
|
|
149
|
+
spaceId: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: string queue_id = 3;
|
|
153
|
+
*/
|
|
154
|
+
queueId: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: repeated google.protobuf.Struct objects = 4;
|
|
158
|
+
*/
|
|
159
|
+
objects: JsonObject[];
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Describes the message dxos.client.services.InsertIntoQueueRequest.
|
|
164
|
+
* Use `create(InsertIntoQueueRequestSchema)` to create a new message.
|
|
165
|
+
*/
|
|
166
|
+
export const InsertIntoQueueRequestSchema: GenMessage<InsertIntoQueueRequest> = /*@__PURE__*/
|
|
167
|
+
messageDesc(file_dxos_client_queue, 3);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from message dxos.client.services.DeleteFromQueueRequest
|
|
171
|
+
*/
|
|
172
|
+
export type DeleteFromQueueRequest = Message<"dxos.client.services.DeleteFromQueueRequest"> & {
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: string subspace_tag = 1;
|
|
175
|
+
*/
|
|
176
|
+
subspaceTag: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: string space_id = 2;
|
|
180
|
+
*/
|
|
181
|
+
spaceId: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string queue_id = 3;
|
|
185
|
+
*/
|
|
186
|
+
queueId: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: repeated string object_ids = 4;
|
|
190
|
+
*/
|
|
191
|
+
objectIds: string[];
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Describes the message dxos.client.services.DeleteFromQueueRequest.
|
|
196
|
+
* Use `create(DeleteFromQueueRequestSchema)` to create a new message.
|
|
197
|
+
*/
|
|
198
|
+
export const DeleteFromQueueRequestSchema: GenMessage<DeleteFromQueueRequest> = /*@__PURE__*/
|
|
199
|
+
messageDesc(file_dxos_client_queue, 4);
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @generated from service dxos.client.services.QueueService
|
|
203
|
+
*/
|
|
204
|
+
export const QueueService: GenService<{
|
|
205
|
+
/**
|
|
206
|
+
* @generated from rpc dxos.client.services.QueueService.QueryQueue
|
|
207
|
+
*/
|
|
208
|
+
queryQueue: {
|
|
209
|
+
methodKind: "unary";
|
|
210
|
+
input: typeof QueryQueueRequestSchema;
|
|
211
|
+
output: typeof QueueQueryResultSchema;
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* @generated from rpc dxos.client.services.QueueService.InsertIntoQueue
|
|
215
|
+
*/
|
|
216
|
+
insertIntoQueue: {
|
|
217
|
+
methodKind: "unary";
|
|
218
|
+
input: typeof InsertIntoQueueRequestSchema;
|
|
219
|
+
output: typeof EmptySchema;
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
* @generated from rpc dxos.client.services.QueueService.DeleteFromQueue
|
|
223
|
+
*/
|
|
224
|
+
deleteFromQueue: {
|
|
225
|
+
methodKind: "unary";
|
|
226
|
+
input: typeof DeleteFromQueueRequestSchema;
|
|
227
|
+
output: typeof EmptySchema;
|
|
228
|
+
},
|
|
229
|
+
}> = /*@__PURE__*/
|
|
230
|
+
serviceDesc(file_dxos_client_queue, 0);
|
|
231
|
+
|