@dxos/protocols 0.8.4-main.fffef41 → 0.8.4-staging.ac66bdf99f
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/README.md +1 -1
- package/dist/src/FeedProtocol.d.ts +528 -0
- package/dist/src/FeedProtocol.d.ts.map +1 -0
- package/dist/src/FeedProtocol.js +237 -0
- package/dist/src/FeedProtocol.js.map +1 -0
- package/dist/src/FunctionProtocol.d.ts +8 -2
- package/dist/src/FunctionProtocol.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +237 -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 +44 -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 +64 -3
- 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 +68 -37
- 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 +106 -0
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +72 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts +6 -0
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/metadata_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +12 -2
- 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 +1 -1
- 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 +55 -9
- 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 +15 -5
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts +28 -0
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js +10 -5
- package/dist/src/buf/proto/gen/dxos/edge/messenger_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +39 -0
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js +27 -2
- package/dist/src/buf/proto/gen/dxos/halo/credentials_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +1 -10
- 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/rpc_pb.d.ts +24 -0
- package/dist/src/buf/proto/gen/dxos/rpc_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js +12 -7
- package/dist/src/buf/proto/gen/dxos/rpc_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts +1 -139
- package/dist/src/buf/proto/gen/dxos/tracing_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js +11 -45
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/codec.test.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +108 -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.d.ts → edge/edge.d.ts} +204 -26
- package/dist/src/edge/edge.d.ts.map +1 -0
- package/dist/src/{edge.js → edge/edge.js} +32 -14
- package/dist/src/edge/edge.js.map +1 -0
- package/dist/src/{edge-error.d.ts → edge/errors.d.ts} +6 -7
- package/dist/src/edge/errors.d.ts.map +1 -0
- package/dist/src/{edge-error.js → edge/errors.js} +14 -15
- package/dist/src/edge/errors.js.map +1 -0
- package/dist/src/edge/index.d.ts +5 -0
- package/dist/src/edge/index.d.ts.map +1 -0
- package/dist/src/edge/index.js +8 -0
- package/dist/src/edge/index.js.map +1 -0
- package/dist/src/edge/registry.d.ts +127 -0
- package/dist/src/edge/registry.d.ts.map +1 -0
- package/dist/src/edge/registry.js +79 -0
- package/dist/src/edge/registry.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 -20
- package/dist/src/errors/base-errors.js.map +1 -1
- package/dist/src/errors/encoding.d.ts +2 -2
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js +1 -1
- package/dist/src/errors/encoding.js.map +1 -1
- package/dist/src/errors/errors.d.ts +619 -42
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +50 -104
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +2 -2
- package/dist/src/errors/errors.test.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +9 -5
- 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/errors/index.d.ts +5 -5
- package/dist/src/errors/index.js +5 -5
- package/dist/src/feed-replication.d.ts.map +1 -1
- package/dist/src/index.d.ts +12 -13
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -12
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.test.js +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 +1009 -845
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +107 -94
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +59 -0
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +26 -0
- 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/echo/metadata.d.ts +4 -0
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.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 +34 -8
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/messenger.d.ts +24 -0
- package/dist/src/proto/gen/dxos/edge/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/edge/messenger.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts +15 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.js +9 -0
- package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.d.ts +0 -10
- package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +19 -0
- 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/tracing.d.ts +0 -79
- package/dist/src/proto/gen/dxos/tracing.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +326 -40
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js +127 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +40 -7
- 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 +2 -2
- package/dist/src/proto/index.js +1 -1
- package/dist/src/proto/types.d.ts +1 -1
- package/dist/src/space-archive.d.ts +60 -1
- package/dist/src/space-archive.d.ts.map +1 -1
- package/dist/src/space-archive.js +13 -1
- package/dist/src/space-archive.js.map +1 -1
- package/dist/src/types.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -15
- package/src/FeedProtocol.ts +320 -0
- package/src/FunctionProtocol.ts +8 -6
- package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/functions_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/bot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/logging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +286 -0
- package/src/buf/proto/gen/dxos/client/services_pb.ts +114 -40
- package/src/buf/proto/gen/dxos/config_pb.ts +125 -2
- package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/blob_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/feed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/filter_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +9 -2
- package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/object_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/query_pb.ts +16 -4
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +68 -16
- package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/calls_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +39 -6
- package/src/buf/proto/gen/dxos/edge/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/error_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/field_options_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/google_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/gravity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +49 -3
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/signed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/iframe_pb.ts +3 -14
- package/src/buf/proto/gen/dxos/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/registry_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/rpc_pb.ts +37 -8
- package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/publisher_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/tracing_pb.ts +12 -179
- package/src/buf/proto/gen/dxos/type_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/value_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/data_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/rpc_pb.ts +1 -1
- package/src/codec.test.ts +1 -1
- package/src/edge/EdgeFunctionEnv.ts +191 -0
- package/src/{edge.ts → edge/edge.ts} +166 -39
- package/src/{edge-error.ts → edge/errors.ts} +15 -16
- package/src/edge/index.ts +8 -0
- package/src/edge/registry.ts +96 -0
- package/src/errors/base-errors.ts +4 -22
- package/src/errors/encoding.ts +2 -3
- package/src/errors/errors.test.ts +2 -2
- package/src/errors/errors.ts +57 -124
- package/src/errors/helpers.ts +6 -7
- package/src/errors/index.ts +5 -5
- package/src/feed-replication.ts +1 -0
- package/src/index.ts +12 -13
- package/src/indexing.test.ts +1 -1
- package/src/messenger.ts +22 -0
- package/src/proto/dxos/client/queue.proto +81 -0
- package/src/proto/dxos/client/services.proto +19 -1
- package/src/proto/dxos/config.proto +48 -1
- package/src/proto/dxos/echo/metadata.proto +3 -0
- package/src/proto/dxos/echo/query.proto +4 -1
- package/src/proto/dxos/echo/service.proto +27 -6
- package/src/proto/dxos/edge/messenger.proto +10 -0
- package/src/proto/dxos/halo/credentials.proto +15 -0
- package/src/proto/dxos/iframe.proto +1 -3
- package/src/proto/dxos/rpc.proto +7 -0
- package/src/proto/dxos/tracing.proto +0 -40
- package/src/proto/gen/dxos/client/services.ts +1009 -845
- package/src/proto/gen/dxos/config.ts +59 -0
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/metadata.ts +4 -0
- package/src/proto/gen/dxos/echo/query.ts +17 -1
- package/src/proto/gen/dxos/echo/service.ts +33 -8
- package/src/proto/gen/dxos/edge/messenger.ts +24 -0
- package/src/proto/gen/dxos/halo/credentials.ts +15 -1
- package/src/proto/gen/dxos/iframe.ts +0 -10
- package/src/proto/gen/dxos/rpc.ts +19 -0
- package/src/proto/gen/dxos/tracing.ts +0 -76
- package/src/proto/gen/google/protobuf.ts +326 -40
- package/src/proto/gen/index.ts +41 -8
- package/src/proto/index.ts +2 -2
- package/src/proto/types.ts +1 -1
- package/src/space-archive.ts +70 -1
- package/src/types.ts +2 -2
- package/dist/src/edge-error.d.ts.map +0 -1
- package/dist/src/edge-error.js.map +0 -1
- package/dist/src/edge.d.ts.map +0 -1
- 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/dist/src/queue.d.ts +0 -37
- package/dist/src/queue.d.ts.map +0 -1
- package/dist/src/queue.js +0 -8
- package/dist/src/queue.js.map +0 -1
- package/src/query.ts +0 -8
- package/src/queue.ts +0 -51
|
@@ -65,6 +65,26 @@ export type RpcMessage = Message<"dxos.rpc.RpcMessage"> & {
|
|
|
65
65
|
* Use `create(RpcMessageSchema)` to create a new message.
|
|
66
66
|
*/
|
|
67
67
|
export declare const RpcMessageSchema: GenMessage<RpcMessage>;
|
|
68
|
+
/**
|
|
69
|
+
* / W3C trace context carried across RPC boundaries.
|
|
70
|
+
*
|
|
71
|
+
* @generated from message dxos.rpc.TraceContext
|
|
72
|
+
*/
|
|
73
|
+
export type TraceContext = Message<"dxos.rpc.TraceContext"> & {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: string traceparent = 1;
|
|
76
|
+
*/
|
|
77
|
+
traceparent: string;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: optional string tracestate = 2;
|
|
80
|
+
*/
|
|
81
|
+
tracestate?: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message dxos.rpc.TraceContext.
|
|
85
|
+
* Use `create(TraceContextSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export declare const TraceContextSchema: GenMessage<TraceContext>;
|
|
68
88
|
/**
|
|
69
89
|
* @generated from message dxos.rpc.Request
|
|
70
90
|
*/
|
|
@@ -85,6 +105,10 @@ export type Request = Message<"dxos.rpc.Request"> & {
|
|
|
85
105
|
* @generated from field: bool stream = 4;
|
|
86
106
|
*/
|
|
87
107
|
stream: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from field: optional dxos.rpc.TraceContext trace_context = 5;
|
|
110
|
+
*/
|
|
111
|
+
traceContext?: TraceContext;
|
|
88
112
|
};
|
|
89
113
|
/**
|
|
90
114
|
* Describes the message dxos.rpc.Request.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/rpc_pb.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"rpc_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/rpc_pb.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,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AAE,UAAU,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,YAAY,CACzB,CAAC;AAEhC;;GAEG;AACH,oBAAY,sBAAsB;IAChC;;OAEG;IACH,QAAQ,IAAI;IAEZ;;OAEG;IACH,QAAQ,IAAI;CACb;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,sBAAsB,CAC1C,CAAC;AAEhC;;;;;;GAMG;AACH,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG,EAC3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,GAAG,CACP,CAAC"}
|
|
@@ -7,32 +7,37 @@ import { file_dxos_error } from "./error_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file dxos/rpc.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_dxos_rpc = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_dxos_rpc = /*@__PURE__*/ fileDesc("Cg5keG9zL3JwYy5wcm90bxIIZHhvcy5ycGMi1gEKClJwY01lc3NhZ2USJAoHcmVxdWVzdBgBIAEoCzIRLmR4b3MucnBjLlJlcXVlc3RIABImCghyZXNwb25zZRgCIAEoCzISLmR4b3MucnBjLlJlc3BvbnNlSAASDgoEb3BlbhgDIAEoCEgAEhIKCG9wZW5fYWNrGAQgASgISAASLQoMc3RyZWFtX2Nsb3NlGAUgASgLMhUuZHhvcy5ycGMuU3RyZWFtQ2xvc2VIABIcCgNieWUYBiABKAsyDS5keG9zLnJwYy5CeWVIAEIJCgdjb250ZW50IksKDFRyYWNlQ29udGV4dBITCgt0cmFjZXBhcmVudBgBIAEoCRIXCgp0cmFjZXN0YXRlGAIgASgJSACIAQFCDQoLX3RyYWNlc3RhdGUiogEKB1JlcXVlc3QSCgoCaWQYASABKAUSDgoGbWV0aG9kGAIgASgJEiUKB3BheWxvYWQYAyABKAsyFC5nb29nbGUucHJvdG9idWYuQW55Eg4KBnN0cmVhbRgEIAEoCBIyCg10cmFjZV9jb250ZXh0GAUgASgLMhYuZHhvcy5ycGMuVHJhY2VDb250ZXh0SACIAQFCEAoOX3RyYWNlX2NvbnRleHQilwEKCFJlc3BvbnNlEgoKAmlkGAEgASgFEicKB3BheWxvYWQYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55SAASIgoFZXJyb3IYAyABKAsyES5keG9zLmVycm9yLkVycm9ySAASDwoFY2xvc2UYBCABKAhIABIWCgxzdHJlYW1fcmVhZHkYBSABKAhIAEIJCgdjb250ZW50IhkKC1N0cmVhbUNsb3NlEgoKAmlkGAEgASgFInoKDE1lc3NhZ2VUcmFjZRIzCglkaXJlY3Rpb24YASABKA4yIC5keG9zLnJwYy5NZXNzYWdlVHJhY2UuRGlyZWN0aW9uEgwKBGRhdGEYAiABKAwiJwoJRGlyZWN0aW9uEgwKCElOQ09NSU5HEAASDAoIT1VUR09JTkcQASIFCgNCeWVCKVonZ2l0aHViLmNvbS9keG9zL2R4b3MvcHJvdG8vZGVmL2R4b3MvcnBjYgZwcm90bzM", [file_google_protobuf_any, file_dxos_error]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message dxos.rpc.RpcMessage.
|
|
13
13
|
* Use `create(RpcMessageSchema)` to create a new message.
|
|
14
14
|
*/
|
|
15
15
|
export const RpcMessageSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message dxos.rpc.TraceContext.
|
|
18
|
+
* Use `create(TraceContextSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const TraceContextSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc, 1);
|
|
16
21
|
/**
|
|
17
22
|
* Describes the message dxos.rpc.Request.
|
|
18
23
|
* Use `create(RequestSchema)` to create a new message.
|
|
19
24
|
*/
|
|
20
|
-
export const RequestSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc,
|
|
25
|
+
export const RequestSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc, 2);
|
|
21
26
|
/**
|
|
22
27
|
* Describes the message dxos.rpc.Response.
|
|
23
28
|
* Use `create(ResponseSchema)` to create a new message.
|
|
24
29
|
*/
|
|
25
|
-
export const ResponseSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc,
|
|
30
|
+
export const ResponseSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc, 3);
|
|
26
31
|
/**
|
|
27
32
|
* Describes the message dxos.rpc.StreamClose.
|
|
28
33
|
* Use `create(StreamCloseSchema)` to create a new message.
|
|
29
34
|
*/
|
|
30
|
-
export const StreamCloseSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc,
|
|
35
|
+
export const StreamCloseSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc, 4);
|
|
31
36
|
/**
|
|
32
37
|
* Describes the message dxos.rpc.MessageTrace.
|
|
33
38
|
* Use `create(MessageTraceSchema)` to create a new message.
|
|
34
39
|
*/
|
|
35
|
-
export const MessageTraceSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc,
|
|
40
|
+
export const MessageTraceSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc, 5);
|
|
36
41
|
/**
|
|
37
42
|
* @generated from enum dxos.rpc.MessageTrace.Direction
|
|
38
43
|
*/
|
|
@@ -50,10 +55,10 @@ export var MessageTrace_Direction;
|
|
|
50
55
|
/**
|
|
51
56
|
* Describes the enum dxos.rpc.MessageTrace.Direction.
|
|
52
57
|
*/
|
|
53
|
-
export const MessageTrace_DirectionSchema = /*@__PURE__*/ enumDesc(file_dxos_rpc,
|
|
58
|
+
export const MessageTrace_DirectionSchema = /*@__PURE__*/ enumDesc(file_dxos_rpc, 5, 0);
|
|
54
59
|
/**
|
|
55
60
|
* Describes the message dxos.rpc.Bye.
|
|
56
61
|
* Use `create(ByeSchema)` to create a new message.
|
|
57
62
|
*/
|
|
58
|
-
export const ByeSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc,
|
|
63
|
+
export const ByeSchema = /*@__PURE__*/ messageDesc(file_dxos_rpc, 6);
|
|
59
64
|
//# sourceMappingURL=rpc_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc_pb.js","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/rpc_pb.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AASF,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAY,aAAa,CACjD,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"rpc_pb.js","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/rpc_pb.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AASF,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAY,aAAa,CACjD,QAAQ,CAAC,6mCAA6mC,EAAE,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC,CAAC;AAsDvqC;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAmBhC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAgChC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAwB,aAAa,CAC7D,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAgDhC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAehC;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAmBhC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAEhC;;GAEG;AACH,MAAM,CAAN,IAAY,sBAUX;AAVD,WAAY,sBAAsB;IAChC;;OAEG;IACH,2EAAY,CAAA;IAEZ;;OAEG;IACH,2EAAY,CAAA;AACd,CAAC,EAVW,sBAAsB,KAAtB,sBAAsB,QAUjC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAoC,aAAa,CACxF,QAAQ,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAYhC;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAoB,aAAa,CACrD,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage
|
|
2
|
-
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
3
|
-
import type { Error } from "./error_pb.js";
|
|
4
|
-
import type { LogEntry } from "./client/logging_pb.js";
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
5
2
|
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
6
3
|
/**
|
|
7
4
|
* Describes the file dxos/tracing.proto.
|
|
@@ -63,128 +60,6 @@ export type ResourceLink = Message<"dxos.tracing.ResourceLink"> & {
|
|
|
63
60
|
* Use `create(ResourceLinkSchema)` to create a new message.
|
|
64
61
|
*/
|
|
65
62
|
export declare const ResourceLinkSchema: GenMessage<ResourceLink>;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from message dxos.tracing.Span
|
|
68
|
-
*/
|
|
69
|
-
export type Span = Message<"dxos.tracing.Span"> & {
|
|
70
|
-
/**
|
|
71
|
-
* @generated from field: int32 id = 1;
|
|
72
|
-
*/
|
|
73
|
-
id: number;
|
|
74
|
-
/**
|
|
75
|
-
* @generated from field: optional int32 parent_id = 2;
|
|
76
|
-
*/
|
|
77
|
-
parentId?: number;
|
|
78
|
-
/**
|
|
79
|
-
* @generated from field: optional int32 resource_id = 3;
|
|
80
|
-
*/
|
|
81
|
-
resourceId?: number;
|
|
82
|
-
/**
|
|
83
|
-
* @generated from field: string method_name = 4;
|
|
84
|
-
*/
|
|
85
|
-
methodName: string;
|
|
86
|
-
/**
|
|
87
|
-
* TODO(dmaretskyi): Figure out proper sub-millisecond timestamp type.
|
|
88
|
-
*
|
|
89
|
-
* @generated from field: string start_ts = 5;
|
|
90
|
-
*/
|
|
91
|
-
startTs: string;
|
|
92
|
-
/**
|
|
93
|
-
* @generated from field: optional string end_ts = 6;
|
|
94
|
-
*/
|
|
95
|
-
endTs?: string;
|
|
96
|
-
/**
|
|
97
|
-
* @generated from field: optional dxos.error.Error error = 11;
|
|
98
|
-
*/
|
|
99
|
-
error?: Error;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Describes the message dxos.tracing.Span.
|
|
103
|
-
* Use `create(SpanSchema)` to create a new message.
|
|
104
|
-
*/
|
|
105
|
-
export declare const SpanSchema: GenMessage<Span>;
|
|
106
|
-
/**
|
|
107
|
-
* @generated from message dxos.tracing.StreamTraceEvent
|
|
108
|
-
*/
|
|
109
|
-
export type StreamTraceEvent = Message<"dxos.tracing.StreamTraceEvent"> & {
|
|
110
|
-
/**
|
|
111
|
-
* @generated from field: repeated dxos.tracing.StreamTraceEvent.ResourceAdded resource_added = 1;
|
|
112
|
-
*/
|
|
113
|
-
resourceAdded: StreamTraceEvent_ResourceAdded[];
|
|
114
|
-
/**
|
|
115
|
-
* @generated from field: repeated dxos.tracing.StreamTraceEvent.ResourceRemoved resource_removed = 2;
|
|
116
|
-
*/
|
|
117
|
-
resourceRemoved: StreamTraceEvent_ResourceRemoved[];
|
|
118
|
-
/**
|
|
119
|
-
* @generated from field: repeated dxos.tracing.StreamTraceEvent.SpanAdded span_added = 3;
|
|
120
|
-
*/
|
|
121
|
-
spanAdded: StreamTraceEvent_SpanAdded[];
|
|
122
|
-
/**
|
|
123
|
-
* @generated from field: repeated dxos.tracing.StreamTraceEvent.LogAdded log_added = 4;
|
|
124
|
-
*/
|
|
125
|
-
logAdded: StreamTraceEvent_LogAdded[];
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Describes the message dxos.tracing.StreamTraceEvent.
|
|
129
|
-
* Use `create(StreamTraceEventSchema)` to create a new message.
|
|
130
|
-
*/
|
|
131
|
-
export declare const StreamTraceEventSchema: GenMessage<StreamTraceEvent>;
|
|
132
|
-
/**
|
|
133
|
-
* @generated from message dxos.tracing.StreamTraceEvent.ResourceAdded
|
|
134
|
-
*/
|
|
135
|
-
export type StreamTraceEvent_ResourceAdded = Message<"dxos.tracing.StreamTraceEvent.ResourceAdded"> & {
|
|
136
|
-
/**
|
|
137
|
-
* @generated from field: dxos.tracing.Resource resource = 1;
|
|
138
|
-
*/
|
|
139
|
-
resource?: Resource;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Describes the message dxos.tracing.StreamTraceEvent.ResourceAdded.
|
|
143
|
-
* Use `create(StreamTraceEvent_ResourceAddedSchema)` to create a new message.
|
|
144
|
-
*/
|
|
145
|
-
export declare const StreamTraceEvent_ResourceAddedSchema: GenMessage<StreamTraceEvent_ResourceAdded>;
|
|
146
|
-
/**
|
|
147
|
-
* @generated from message dxos.tracing.StreamTraceEvent.ResourceRemoved
|
|
148
|
-
*/
|
|
149
|
-
export type StreamTraceEvent_ResourceRemoved = Message<"dxos.tracing.StreamTraceEvent.ResourceRemoved"> & {
|
|
150
|
-
/**
|
|
151
|
-
* @generated from field: int32 id = 1;
|
|
152
|
-
*/
|
|
153
|
-
id: number;
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Describes the message dxos.tracing.StreamTraceEvent.ResourceRemoved.
|
|
157
|
-
* Use `create(StreamTraceEvent_ResourceRemovedSchema)` to create a new message.
|
|
158
|
-
*/
|
|
159
|
-
export declare const StreamTraceEvent_ResourceRemovedSchema: GenMessage<StreamTraceEvent_ResourceRemoved>;
|
|
160
|
-
/**
|
|
161
|
-
* @generated from message dxos.tracing.StreamTraceEvent.SpanAdded
|
|
162
|
-
*/
|
|
163
|
-
export type StreamTraceEvent_SpanAdded = Message<"dxos.tracing.StreamTraceEvent.SpanAdded"> & {
|
|
164
|
-
/**
|
|
165
|
-
* @generated from field: dxos.tracing.Span span = 1;
|
|
166
|
-
*/
|
|
167
|
-
span?: Span;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Describes the message dxos.tracing.StreamTraceEvent.SpanAdded.
|
|
171
|
-
* Use `create(StreamTraceEvent_SpanAddedSchema)` to create a new message.
|
|
172
|
-
*/
|
|
173
|
-
export declare const StreamTraceEvent_SpanAddedSchema: GenMessage<StreamTraceEvent_SpanAdded>;
|
|
174
|
-
/**
|
|
175
|
-
* @generated from message dxos.tracing.StreamTraceEvent.LogAdded
|
|
176
|
-
*/
|
|
177
|
-
export type StreamTraceEvent_LogAdded = Message<"dxos.tracing.StreamTraceEvent.LogAdded"> & {
|
|
178
|
-
/**
|
|
179
|
-
* @generated from field: dxos.client.services.LogEntry log = 1;
|
|
180
|
-
*/
|
|
181
|
-
log?: LogEntry;
|
|
182
|
-
};
|
|
183
|
-
/**
|
|
184
|
-
* Describes the message dxos.tracing.StreamTraceEvent.LogAdded.
|
|
185
|
-
* Use `create(StreamTraceEvent_LogAddedSchema)` to create a new message.
|
|
186
|
-
*/
|
|
187
|
-
export declare const StreamTraceEvent_LogAddedSchema: GenMessage<StreamTraceEvent_LogAdded>;
|
|
188
63
|
/**
|
|
189
64
|
* @generated from message dxos.tracing.Metric
|
|
190
65
|
*/
|
|
@@ -377,17 +252,4 @@ export declare enum TraceLevel {
|
|
|
377
252
|
* Describes the enum dxos.tracing.TraceLevel.
|
|
378
253
|
*/
|
|
379
254
|
export declare const TraceLevelSchema: GenEnum<TraceLevel>;
|
|
380
|
-
/**
|
|
381
|
-
* @generated from service dxos.tracing.TracingService
|
|
382
|
-
*/
|
|
383
|
-
export declare const TracingService: GenService<{
|
|
384
|
-
/**
|
|
385
|
-
* @generated from rpc dxos.tracing.TracingService.StreamTrace
|
|
386
|
-
*/
|
|
387
|
-
streamTrace: {
|
|
388
|
-
methodKind: "server_streaming";
|
|
389
|
-
input: typeof EmptySchema;
|
|
390
|
-
output: typeof StreamTraceEventSchema;
|
|
391
|
-
};
|
|
392
|
-
}>;
|
|
393
255
|
//# sourceMappingURL=tracing_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/tracing_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"tracing_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/tracing_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAKjF,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OACohD,CAAC;AAErjD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG;IACxD;;OA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B,EAAE,UAAU,CAAC,uBAAuB,CACrC,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,sCAAsC,CAAC,GAAG;IACtF;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAElC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,UAAU,CAAC,uBAAuB,CACrC,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,4BAA4B,CAAC,GAAG;IAClE;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CACpB,CAAC;AAEvC;;GAEG;AACH,oBAAY,UAAU;IACpB;;OAEG;IACH,QAAQ,IAAI;IAEZ;;OAEG;IACH,UAAU,KAAK;IAEf;;OAEG;IACH,WAAW,KAAK;IAEhB;;OAEG;IACH,KAAK,KAAK;CACX;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,UAAU,CACjB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file dxos/tracing.proto (package dxos.tracing, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { enumDesc, fileDesc, messageDesc
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
6
6
|
import { file_dxos_error } from "./error_pb.js";
|
|
7
7
|
import { file_dxos_client_logging } from "./client/logging_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file dxos/tracing.proto.
|
|
10
10
|
*/
|
|
11
|
-
export const file_dxos_tracing = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_dxos_tracing = /*@__PURE__*/ fileDesc("ChJkeG9zL3RyYWNpbmcucHJvdG8SDGR4b3MudHJhY2luZyK4AQoIUmVzb3VyY2USCgoCaWQYASABKAUSEgoKY2xhc3NfbmFtZRgCIAEoCRITCgtpbnN0YW5jZV9pZBgDIAEoBRIlCgRpbmZvGAQgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIpCgVsaW5rcxgFIAMoCzIaLmR4b3MudHJhY2luZy5SZXNvdXJjZUxpbmsSJQoHbWV0cmljcxgGIAMoCzIULmR4b3MudHJhY2luZy5NZXRyaWMiVQoMUmVzb3VyY2VMaW5rEgwKBGZyb20YASABKAUSCgoCdG8YAiABKAUSKwoKYXR0cmlidXRlcxgEIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiyQUKBk1ldHJpYxIMCgRuYW1lGAEgASgJEi8KB2NvdW50ZXIYZCABKAsyHC5keG9zLnRyYWNpbmcuTWV0cmljLkNvdW50ZXJIABI2Cgt0aW1lX3NlcmllcxhlIAEoCzIfLmR4b3MudHJhY2luZy5NZXRyaWMuVGltZVNlcmllc0gAEjoKDW11bHRpX2NvdW50ZXIYZiABKAsyIS5keG9zLnRyYWNpbmcuTWV0cmljLk11bHRpQ291bnRlckgAEi4KBmN1c3RvbRjHASABKAsyGy5keG9zLnRyYWNpbmcuTWV0cmljLkN1c3RvbUgAGjYKB0NvdW50ZXISDQoFdmFsdWUYASABKAESEgoFdW5pdHMYAiABKAlIAIgBAUIICgZfdW5pdHMajQEKDE11bHRpQ291bnRlchI5CgdyZWNvcmRzGAEgAygLMiguZHhvcy50cmFjaW5nLk1ldHJpYy5NdWx0aUNvdW50ZXIuUmVjb3JkEhIKBXVuaXRzGAIgASgJSACIAQEaJAoGUmVjb3JkEgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoAUIICgZfdW5pdHMa1gEKClRpbWVTZXJpZXMSNQoGdHJhY2tzGAEgAygLMiUuZHhvcy50cmFjaW5nLk1ldHJpYy5UaW1lU2VyaWVzLlRyYWNrGhYKBVBvaW50Eg0KBXZhbHVlGAEgASgBGnkKBVRyYWNrEgwKBG5hbWUYASABKAkSEgoFdW5pdHMYAiABKAlIAIgBARI1CgZwb2ludHMYCiADKAsyJS5keG9zLnRyYWNpbmcuTWV0cmljLlRpbWVTZXJpZXMuUG9pbnQSDQoFdG90YWwYCyABKAFCCAoGX3VuaXRzGjIKBkN1c3RvbRIoCgdwYXlsb2FkGAEgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEIHCgVWYWx1ZSpGCgpUcmFjZUxldmVsEgwKCERJU0FCTEVEEAASDgoKUFJPRFVDVElPThAKEg8KC0RFVkVMT1BNRU5UEBQSCQoFREVCVUcQHmIGcHJvdG8z", [file_google_protobuf_struct, file_google_protobuf_empty, file_dxos_error, file_dxos_client_logging]);
|
|
12
12
|
/**
|
|
13
13
|
* Describes the message dxos.tracing.Resource.
|
|
14
14
|
* Use `create(ResourceSchema)` to create a new message.
|
|
@@ -19,76 +19,46 @@ export const ResourceSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 0);
|
|
|
19
19
|
* Use `create(ResourceLinkSchema)` to create a new message.
|
|
20
20
|
*/
|
|
21
21
|
export const ResourceLinkSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 1);
|
|
22
|
-
/**
|
|
23
|
-
* Describes the message dxos.tracing.Span.
|
|
24
|
-
* Use `create(SpanSchema)` to create a new message.
|
|
25
|
-
*/
|
|
26
|
-
export const SpanSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2);
|
|
27
|
-
/**
|
|
28
|
-
* Describes the message dxos.tracing.StreamTraceEvent.
|
|
29
|
-
* Use `create(StreamTraceEventSchema)` to create a new message.
|
|
30
|
-
*/
|
|
31
|
-
export const StreamTraceEventSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 3);
|
|
32
|
-
/**
|
|
33
|
-
* Describes the message dxos.tracing.StreamTraceEvent.ResourceAdded.
|
|
34
|
-
* Use `create(StreamTraceEvent_ResourceAddedSchema)` to create a new message.
|
|
35
|
-
*/
|
|
36
|
-
export const StreamTraceEvent_ResourceAddedSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 3, 0);
|
|
37
|
-
/**
|
|
38
|
-
* Describes the message dxos.tracing.StreamTraceEvent.ResourceRemoved.
|
|
39
|
-
* Use `create(StreamTraceEvent_ResourceRemovedSchema)` to create a new message.
|
|
40
|
-
*/
|
|
41
|
-
export const StreamTraceEvent_ResourceRemovedSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 3, 1);
|
|
42
|
-
/**
|
|
43
|
-
* Describes the message dxos.tracing.StreamTraceEvent.SpanAdded.
|
|
44
|
-
* Use `create(StreamTraceEvent_SpanAddedSchema)` to create a new message.
|
|
45
|
-
*/
|
|
46
|
-
export const StreamTraceEvent_SpanAddedSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 3, 2);
|
|
47
|
-
/**
|
|
48
|
-
* Describes the message dxos.tracing.StreamTraceEvent.LogAdded.
|
|
49
|
-
* Use `create(StreamTraceEvent_LogAddedSchema)` to create a new message.
|
|
50
|
-
*/
|
|
51
|
-
export const StreamTraceEvent_LogAddedSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 3, 3);
|
|
52
22
|
/**
|
|
53
23
|
* Describes the message dxos.tracing.Metric.
|
|
54
24
|
* Use `create(MetricSchema)` to create a new message.
|
|
55
25
|
*/
|
|
56
|
-
export const MetricSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
26
|
+
export const MetricSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2);
|
|
57
27
|
/**
|
|
58
28
|
* Describes the message dxos.tracing.Metric.Counter.
|
|
59
29
|
* Use `create(Metric_CounterSchema)` to create a new message.
|
|
60
30
|
*/
|
|
61
|
-
export const Metric_CounterSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
31
|
+
export const Metric_CounterSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2, 0);
|
|
62
32
|
/**
|
|
63
33
|
* Describes the message dxos.tracing.Metric.MultiCounter.
|
|
64
34
|
* Use `create(Metric_MultiCounterSchema)` to create a new message.
|
|
65
35
|
*/
|
|
66
|
-
export const Metric_MultiCounterSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
36
|
+
export const Metric_MultiCounterSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2, 1);
|
|
67
37
|
/**
|
|
68
38
|
* Describes the message dxos.tracing.Metric.MultiCounter.Record.
|
|
69
39
|
* Use `create(Metric_MultiCounter_RecordSchema)` to create a new message.
|
|
70
40
|
*/
|
|
71
|
-
export const Metric_MultiCounter_RecordSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
41
|
+
export const Metric_MultiCounter_RecordSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2, 1, 0);
|
|
72
42
|
/**
|
|
73
43
|
* Describes the message dxos.tracing.Metric.TimeSeries.
|
|
74
44
|
* Use `create(Metric_TimeSeriesSchema)` to create a new message.
|
|
75
45
|
*/
|
|
76
|
-
export const Metric_TimeSeriesSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
46
|
+
export const Metric_TimeSeriesSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2, 2);
|
|
77
47
|
/**
|
|
78
48
|
* Describes the message dxos.tracing.Metric.TimeSeries.Point.
|
|
79
49
|
* Use `create(Metric_TimeSeries_PointSchema)` to create a new message.
|
|
80
50
|
*/
|
|
81
|
-
export const Metric_TimeSeries_PointSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
51
|
+
export const Metric_TimeSeries_PointSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2, 2, 0);
|
|
82
52
|
/**
|
|
83
53
|
* Describes the message dxos.tracing.Metric.TimeSeries.Track.
|
|
84
54
|
* Use `create(Metric_TimeSeries_TrackSchema)` to create a new message.
|
|
85
55
|
*/
|
|
86
|
-
export const Metric_TimeSeries_TrackSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
56
|
+
export const Metric_TimeSeries_TrackSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2, 2, 1);
|
|
87
57
|
/**
|
|
88
58
|
* Describes the message dxos.tracing.Metric.Custom.
|
|
89
59
|
* Use `create(Metric_CustomSchema)` to create a new message.
|
|
90
60
|
*/
|
|
91
|
-
export const Metric_CustomSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing,
|
|
61
|
+
export const Metric_CustomSchema = /*@__PURE__*/ messageDesc(file_dxos_tracing, 2, 3);
|
|
92
62
|
/**
|
|
93
63
|
* @generated from enum dxos.tracing.TraceLevel
|
|
94
64
|
*/
|
|
@@ -115,8 +85,4 @@ export var TraceLevel;
|
|
|
115
85
|
* Describes the enum dxos.tracing.TraceLevel.
|
|
116
86
|
*/
|
|
117
87
|
export const TraceLevelSchema = /*@__PURE__*/ enumDesc(file_dxos_tracing, 0);
|
|
118
|
-
/**
|
|
119
|
-
* @generated from service dxos.tracing.TracingService
|
|
120
|
-
*/
|
|
121
|
-
export const TracingService = /*@__PURE__*/ serviceDesc(file_dxos_tracing, 0);
|
|
122
88
|
//# sourceMappingURL=tracing_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing_pb.js","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/tracing_pb.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"tracing_pb.js","sourceRoot":"","sources":["../../../../../../src/buf/proto/gen/dxos/tracing_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,gFAAgF;AAChF,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AE,CAAC,EAAE,CAAC,CAAC,CAAC;AAYvC;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwC,aAAa,CAC7F,WAAW,CAAC,iBAAiB,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AA2B1C;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwC,aAAa,CAC7F,WAAW,CAAC,iBAAiB,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAY1C;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,iBAAiB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,UAoBX;AApBD,WAAY,UAAU;IACpB;;OAEG;IACH,mDAAY,CAAA;IAEZ;;OAEG;IACH,wDAAe,CAAA;IAEf;;OAEG;IACH,0DAAgB,CAAA;IAEhB;;OAEG;IACH,8CAAU,CAAA;AACZ,CAAC,EApBW,UAAU,KAAV,UAAU,QAoBrB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAwB,aAAa,CAChE,QAAQ,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC"}
|
package/dist/src/codec.test.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
import { describe, expect, test } from 'vitest';
|
|
5
|
-
import { schema } from
|
|
5
|
+
import { schema } from "./proto/index.js";
|
|
6
6
|
describe('Codec', () => {
|
|
7
7
|
test('encodes and decodes messages', async () => {
|
|
8
8
|
const codec = schema.getCodecForType('example.testing.data.TestItemMutation');
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { type SpaceId } from '@dxos/keys';
|
|
2
|
+
import type * as FeedProtocol from '../FeedProtocol';
|
|
3
|
+
import { type QueryRequest, type QueryResponse } from '../proto/gen/dxos/echo/query';
|
|
4
|
+
import { type CreateDocumentResponse } from '../proto/gen/dxos/echo/service';
|
|
5
|
+
/**
|
|
6
|
+
* Environment available to the function running on Cloudflare.
|
|
7
|
+
*/
|
|
8
|
+
export interface Env {
|
|
9
|
+
QUEUE_SERVICE: QueueService;
|
|
10
|
+
DATA_SERVICE: DataService;
|
|
11
|
+
FUNCTIONS_AI_SERVICE: FunctionsAiService;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Use to trace the execution across multiple services.
|
|
15
|
+
*
|
|
16
|
+
* NOTE: Currently unused in functions.
|
|
17
|
+
*/
|
|
18
|
+
export interface TraceContext {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Database API for other CF services like functions.
|
|
22
|
+
*/
|
|
23
|
+
export interface DataService {
|
|
24
|
+
getSpaceMeta(ctx: TraceContext, spaceId: SpaceId): Promise<RpcResult<SpaceMeta | undefined>>;
|
|
25
|
+
getDocument(ctx: TraceContext, spaceId: SpaceId, documentId: string): Promise<RpcResult<RawDocument | undefined>>;
|
|
26
|
+
execQuery(ctx: TraceContext, request: QueryRequest): Promise<RpcResult<QueryResponse>>;
|
|
27
|
+
createDocument(ctx: TraceContext, spaceId: SpaceId, initialValue?: Record<string, any>): Promise<RpcResult<CreateDocumentResponse>>;
|
|
28
|
+
changeDocument(ctx: TraceContext, spaceId: SpaceId, documentId: string, changes: Uint8Array): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export interface QueueService {
|
|
31
|
+
queryQueue: (ctx: TraceContext, request: FeedProtocol.QueryQueueRequest) => Promise<RpcResult<FeedProtocol.QueryResult>>;
|
|
32
|
+
insertIntoQueue: (ctx: TraceContext, request: FeedProtocol.InsertIntoQueueRequest) => Promise<RpcResult<RpcDisposable>>;
|
|
33
|
+
deleteFromQueue: (ctx: TraceContext, request: FeedProtocol.DeleteFromQueueRequest) => Promise<RpcResult<RpcDisposable>>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* FunctionsAiService API for other CF services like functions.
|
|
37
|
+
*/
|
|
38
|
+
export interface FunctionsAiService {
|
|
39
|
+
/**
|
|
40
|
+
* Enables proxying HTTP requests to the AI service from other workers.
|
|
41
|
+
*/
|
|
42
|
+
fetch(request: Request): Promise<RpcResult<Response>>;
|
|
43
|
+
}
|
|
44
|
+
export type ObjectDocumentJson = {
|
|
45
|
+
type?: string;
|
|
46
|
+
objectId: string;
|
|
47
|
+
documentId: string;
|
|
48
|
+
/** Base64 encoding of a document. */
|
|
49
|
+
document: string;
|
|
50
|
+
};
|
|
51
|
+
export type SpaceMeta = {
|
|
52
|
+
spaceKey: string;
|
|
53
|
+
rootDocumentId: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* TODO(yaroslav): make Indexer return EchoObject after create() can properly reconstruct an object
|
|
57
|
+
* from this structure (meta, id and type aren't handled properly)
|
|
58
|
+
*/
|
|
59
|
+
export type ObjectSnapshot = {
|
|
60
|
+
type?: string;
|
|
61
|
+
documentId: string;
|
|
62
|
+
objectId: string;
|
|
63
|
+
object: unknown;
|
|
64
|
+
};
|
|
65
|
+
export type ObjectReference = {
|
|
66
|
+
fromId: string;
|
|
67
|
+
toId: string;
|
|
68
|
+
fieldName: string;
|
|
69
|
+
};
|
|
70
|
+
export type QueryDocumentsResponse = {
|
|
71
|
+
results: RawObject[];
|
|
72
|
+
cursor?: string;
|
|
73
|
+
};
|
|
74
|
+
export type RawDocument = {
|
|
75
|
+
documentId: string;
|
|
76
|
+
data: Uint8Array;
|
|
77
|
+
};
|
|
78
|
+
export type RawObject = {
|
|
79
|
+
type?: string;
|
|
80
|
+
objectId: string;
|
|
81
|
+
document: RawDocument;
|
|
82
|
+
};
|
|
83
|
+
export type QueryReferencesRequest = {
|
|
84
|
+
spaceId: string;
|
|
85
|
+
objectId: string;
|
|
86
|
+
referenceType: 'from' | 'to';
|
|
87
|
+
};
|
|
88
|
+
export type QueryReferencesResponse = {
|
|
89
|
+
references: ObjectReference[];
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Cloudflare Workers RPC returns objects/arrays/stubs that may need to be explicitly disposed.
|
|
93
|
+
*
|
|
94
|
+
* See: https://developers.cloudflare.com/workers/runtime-apis/rpc/lifecycle/
|
|
95
|
+
*/
|
|
96
|
+
export interface RpcDisposable {
|
|
97
|
+
/**
|
|
98
|
+
* Disposes the RPC stub / returned value and releases any server-side resources it references.
|
|
99
|
+
*/
|
|
100
|
+
[Symbol.dispose](): void;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Wraps a return type so that any non-primitive value is marked as disposable.
|
|
104
|
+
*
|
|
105
|
+
* This models Workers RPC behavior where any returned object (including arrays) gets a disposer added.
|
|
106
|
+
*/
|
|
107
|
+
export type RpcResult<T> = T extends object ? T & RpcDisposable : T;
|
|
108
|
+
//# sourceMappingURL=EdgeFunctionEnv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EdgeFunctionEnv.d.ts","sourceRoot":"","sources":["../../../src/edge/EdgeFunctionEnv.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,KAAK,YAAY,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAiD7E;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,aAAa,EAAE,YAAY,CAAC;IAC5B,YAAY,EAAE,WAAW,CAAC;IAC1B,oBAAoB,EAAE,kBAAkB,CAAC;CAC1C;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;CAAG;AAEhC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,SAAS,GAAG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