@dxos/protocols 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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 +2 -2
- package/dist/src/FunctionProtocol.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +42 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +7 -2
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +33 -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 +46 -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 +0 -4
- package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/config_pb.js +1 -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/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/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/tracing_pb.js +1 -1
- package/dist/src/codec.test.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +11 -23
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
- package/dist/src/edge/edge.d.ts +165 -0
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +13 -0
- package/dist/src/edge/edge.js.map +1 -1
- package/dist/src/edge/errors.d.ts +1 -1
- package/dist/src/edge/errors.js +1 -1
- package/dist/src/edge/index.d.ts +3 -3
- package/dist/src/edge/index.js +3 -3
- package/dist/src/errors/encoding.d.ts +1 -1
- package/dist/src/errors/encoding.js +1 -1
- package/dist/src/errors/errors.d.ts +1 -1
- package/dist/src/errors/errors.js +1 -1
- package/dist/src/errors/errors.test.js +1 -1
- package/dist/src/errors/helpers.d.ts +1 -1
- package/dist/src/errors/index.d.ts +5 -5
- package/dist/src/errors/index.js +5 -5
- package/dist/src/index.d.ts +12 -12
- 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/proto/gen/dxos/client/services.d.ts +1008 -973
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +95 -94
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +0 -5
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/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/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/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 +28 -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 +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 +14 -14
- package/src/FeedProtocol.ts +320 -0
- package/src/FunctionProtocol.ts +2 -4
- 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 +51 -2
- package/src/buf/proto/gen/dxos/client/services_pb.ts +77 -40
- package/src/buf/proto/gen/dxos/config_pb.ts +2 -7
- 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 +1 -1
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +20 -26
- package/src/edge/edge.ts +120 -0
- package/src/edge/errors.ts +1 -1
- package/src/edge/index.ts +3 -3
- package/src/errors/encoding.ts +2 -2
- package/src/errors/errors.test.ts +1 -1
- package/src/errors/errors.ts +2 -2
- package/src/errors/helpers.ts +1 -1
- package/src/errors/index.ts +5 -5
- package/src/index.ts +12 -14
- package/src/indexing.test.ts +1 -1
- package/src/proto/dxos/client/queue.proto +11 -0
- package/src/proto/dxos/client/services.proto +9 -1
- package/src/proto/dxos/config.proto +1 -3
- package/src/proto/dxos/echo/metadata.proto +3 -0
- package/src/proto/dxos/edge/messenger.proto +10 -0
- package/src/proto/dxos/halo/credentials.proto +15 -0
- package/src/proto/gen/dxos/client/services.ts +1008 -973
- package/src/proto/gen/dxos/config.ts +0 -5
- 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/edge/messenger.ts +24 -0
- package/src/proto/gen/dxos/halo/credentials.ts +15 -1
- package/src/proto/gen/google/protobuf.ts +326 -40
- package/src/proto/gen/index.ts +29 -1
- 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/queue.d.ts +0 -3
- package/dist/src/queue.d.ts.map +0 -1
- package/dist/src/queue.js +0 -5
- package/dist/src/queue.js.map +0 -1
- package/src/queue.ts +0 -14
package/dist/src/edge/edge.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { SpaceId } from '@dxos/keys';
|
|
3
|
+
/**
|
|
4
|
+
* HTTP header sent on every Edge request to classify traffic for metering.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EDGE_CLIENT_TAG_HEADER = "X-DXOS-Client-Tag";
|
|
3
7
|
export declare enum EdgeService {
|
|
4
8
|
AUTOMERGE_REPLICATOR = "automerge-replicator",
|
|
9
|
+
/**
|
|
10
|
+
* Control feed replicator (hypercore append only logs) for the space.
|
|
11
|
+
*/
|
|
5
12
|
FEED_REPLICATOR = "feed-replicator",
|
|
13
|
+
/**
|
|
14
|
+
* Feed replicator (ordered data list) for the space.
|
|
15
|
+
*/
|
|
16
|
+
QUEUE_REPLICATOR = "queue-replicator",
|
|
6
17
|
SWARM = "swarm",
|
|
7
18
|
SIGNAL = "signal",
|
|
8
19
|
STATUS = "status"
|
|
@@ -342,5 +353,159 @@ export declare const EdgeHttpErrorCodec: Readonly<{
|
|
|
342
353
|
encode: (err: Error) => Response;
|
|
343
354
|
decode: (response: Response) => Promise<Error | undefined>;
|
|
344
355
|
}>;
|
|
356
|
+
export type ListSpacesRequest = {
|
|
357
|
+
limit?: number;
|
|
358
|
+
cursor?: string;
|
|
359
|
+
order?: 'asc' | 'desc';
|
|
360
|
+
};
|
|
361
|
+
export type ListSpacesResponse = {
|
|
362
|
+
spaces: SpaceActivityEntry[];
|
|
363
|
+
cursor?: string;
|
|
364
|
+
limit: number;
|
|
365
|
+
};
|
|
366
|
+
export type ListActiveIdentitiesRequest = {
|
|
367
|
+
cursor?: string;
|
|
368
|
+
limit?: number;
|
|
369
|
+
};
|
|
370
|
+
export type ListActiveIdentitiesResponse = {
|
|
371
|
+
identities: {
|
|
372
|
+
identityKey: string;
|
|
373
|
+
haloSpaceId: string | null;
|
|
374
|
+
createdAt: string | null;
|
|
375
|
+
agentKey: string | null;
|
|
376
|
+
hasRecovery: boolean;
|
|
377
|
+
}[];
|
|
378
|
+
cursor?: string;
|
|
379
|
+
complete: boolean;
|
|
380
|
+
totalCount: number;
|
|
381
|
+
};
|
|
382
|
+
export type InspectSpaceRequest = {
|
|
383
|
+
spaceId: string;
|
|
384
|
+
};
|
|
385
|
+
export type InspectSpaceResponse = {
|
|
386
|
+
spaceId: string;
|
|
387
|
+
metadata: {
|
|
388
|
+
createdAt: string;
|
|
389
|
+
identityKey?: string;
|
|
390
|
+
status?: 'active' | 'deleting';
|
|
391
|
+
} | null;
|
|
392
|
+
members: {
|
|
393
|
+
count: number;
|
|
394
|
+
list: {
|
|
395
|
+
identityKey: string;
|
|
396
|
+
role?: string;
|
|
397
|
+
agentKey?: string;
|
|
398
|
+
}[];
|
|
399
|
+
};
|
|
400
|
+
controlFeeds: {
|
|
401
|
+
replicationProgress: {
|
|
402
|
+
[feedKey: string]: {
|
|
403
|
+
replicated: number;
|
|
404
|
+
processed: number;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
echo: {
|
|
409
|
+
dataFeeds: {
|
|
410
|
+
count: number;
|
|
411
|
+
totalBlocks: number;
|
|
412
|
+
byNamespace: {
|
|
413
|
+
namespace: string;
|
|
414
|
+
feeds: {
|
|
415
|
+
feedId: string;
|
|
416
|
+
blockCount: number;
|
|
417
|
+
}[];
|
|
418
|
+
}[];
|
|
419
|
+
};
|
|
420
|
+
documentCount: number;
|
|
421
|
+
objectCount: number;
|
|
422
|
+
deletedObjectCount: number;
|
|
423
|
+
indexedDocumentCount: number;
|
|
424
|
+
objectsByType: {
|
|
425
|
+
typeDxn: string;
|
|
426
|
+
count: number;
|
|
427
|
+
}[];
|
|
428
|
+
indexerStatus: {
|
|
429
|
+
indexingInProgress: boolean;
|
|
430
|
+
cursors: {
|
|
431
|
+
indexName: string;
|
|
432
|
+
sourceName: string;
|
|
433
|
+
resourceId: string | null;
|
|
434
|
+
cursor: string | number;
|
|
435
|
+
}[];
|
|
436
|
+
totalChanges: number;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
usageInLast30Days: {
|
|
440
|
+
lastActivity: string | null;
|
|
441
|
+
wsEvents: number;
|
|
442
|
+
httpEvents: number;
|
|
443
|
+
totalEvents: number;
|
|
444
|
+
} | null;
|
|
445
|
+
durableObjects: {
|
|
446
|
+
type: string;
|
|
447
|
+
doId: string;
|
|
448
|
+
}[];
|
|
449
|
+
};
|
|
450
|
+
export type InspectIdentityRequest = {
|
|
451
|
+
identityKey: string;
|
|
452
|
+
};
|
|
453
|
+
export type InspectIdentityResponse = {
|
|
454
|
+
identityKey: string;
|
|
455
|
+
agentKey: string | null;
|
|
456
|
+
haloSpaceId: string | null;
|
|
457
|
+
hasRecovery: boolean;
|
|
458
|
+
routerDoId: string;
|
|
459
|
+
agentDoId: string | null;
|
|
460
|
+
ownedFunctions: {
|
|
461
|
+
id: string;
|
|
462
|
+
name: string;
|
|
463
|
+
versionCount: number;
|
|
464
|
+
}[];
|
|
465
|
+
spaces: InspectSpaceResponse[];
|
|
466
|
+
};
|
|
467
|
+
/** Matches the SerializedSpace format from @dxos/echo-db, extended with spaceId. */
|
|
468
|
+
export type SpaceExportPayload = {
|
|
469
|
+
version: number;
|
|
470
|
+
timestamp: string;
|
|
471
|
+
spaceId: string;
|
|
472
|
+
objects: Record<string, unknown>[];
|
|
473
|
+
};
|
|
474
|
+
export type SpaceActivityEntry = {
|
|
475
|
+
spaceId: string;
|
|
476
|
+
lastActivity: string;
|
|
477
|
+
totalEvents: number;
|
|
478
|
+
metadata: {
|
|
479
|
+
createdAt: string;
|
|
480
|
+
identityKey?: string;
|
|
481
|
+
status?: 'active' | 'deleting';
|
|
482
|
+
} | null;
|
|
483
|
+
};
|
|
484
|
+
export type SpaceExportResult = {
|
|
485
|
+
spaceId: string;
|
|
486
|
+
downloadPath: string;
|
|
487
|
+
downloadUrl: string;
|
|
488
|
+
expiresAt: string;
|
|
489
|
+
objectCount: number;
|
|
490
|
+
sizeBytes: number;
|
|
491
|
+
};
|
|
492
|
+
export type ExportSpaceRequest = {
|
|
493
|
+
spaceId: string;
|
|
494
|
+
origin: string;
|
|
495
|
+
};
|
|
496
|
+
export type DeleteSpaceRequest = {
|
|
497
|
+
spaceId: string;
|
|
498
|
+
};
|
|
499
|
+
export type DeleteSpaceResponse = {
|
|
500
|
+
status: string;
|
|
501
|
+
spaceId: string;
|
|
502
|
+
};
|
|
503
|
+
export type DeleteIdentityRequest = {
|
|
504
|
+
identityKey: string;
|
|
505
|
+
};
|
|
506
|
+
export type DeleteIdentityResponse = {
|
|
507
|
+
status: string;
|
|
508
|
+
identityKey: string;
|
|
509
|
+
};
|
|
345
510
|
export {};
|
|
346
511
|
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAI1D,oBAAY,WAAW;IACrB,oBAAoB,yBAAyB;IAC7C;;OAEG;IAEH,eAAe,oBAAoB;IACnC;;OAEG;IAEH,gBAAgB,qBAAqB;IACrC,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAA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ACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACrD,MAAM,MAAM,mBAAmB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/dist/src/edge/edge.js
CHANGED
|
@@ -5,12 +5,25 @@ import * as Schema from 'effect/Schema';
|
|
|
5
5
|
import { BaseError } from '@dxos/errors';
|
|
6
6
|
import { invariant } from '@dxos/invariant';
|
|
7
7
|
import { SpaceId } from '@dxos/keys';
|
|
8
|
+
/**
|
|
9
|
+
* HTTP header sent on every Edge request to classify traffic for metering.
|
|
10
|
+
*/
|
|
11
|
+
export const EDGE_CLIENT_TAG_HEADER = 'X-DXOS-Client-Tag';
|
|
8
12
|
// TODO(burdon): Rename EdgerRouterEndpoint.
|
|
9
13
|
// If we would rename it, we need to be careful to not break composer production.
|
|
10
14
|
export var EdgeService;
|
|
11
15
|
(function (EdgeService) {
|
|
12
16
|
EdgeService["AUTOMERGE_REPLICATOR"] = "automerge-replicator";
|
|
17
|
+
/**
|
|
18
|
+
* Control feed replicator (hypercore append only logs) for the space.
|
|
19
|
+
*/
|
|
20
|
+
// TODO(mykola): Remove once we migrate to keyhive for access control.
|
|
13
21
|
EdgeService["FEED_REPLICATOR"] = "feed-replicator";
|
|
22
|
+
/**
|
|
23
|
+
* Feed replicator (ordered data list) for the space.
|
|
24
|
+
*/
|
|
25
|
+
// TODO(mykola): Rename to FEED_REPLICATOR when we migrate to keyhive for access control.
|
|
26
|
+
EdgeService["QUEUE_REPLICATOR"] = "queue-replicator";
|
|
14
27
|
EdgeService["SWARM"] = "swarm";
|
|
15
28
|
EdgeService["SIGNAL"] = "signal";
|
|
16
29
|
EdgeService["STATUS"] = "status";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,4CAA4C;AAC5C,iFAAiF;AACjF,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../../src/edge/edge.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAE1D,4CAA4C;AAC5C,iFAAiF;AACjF,MAAM,CAAN,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C;;OAEG;IACH,sEAAsE;IACtE,kDAAmC,CAAA;IACnC;;OAEG;IACH,yFAAyF;IACzF,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e,CAAC,KAAK;iBAC7B,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,GAAG,CAAC;IACb,CAAC;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,CAAC,GAAU,EAAY,EAAE,CAC/B,IAAI,QAAQ,CACV,IAAI,CAAC,SAAS,CAAC;QACb,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC;KAC9B,CAAC,EACF,EAAE,MAAM,EAAE,GAAG,EAAE,CAChB;IAEH,MAAM,EAAE,KAAK,EAAE,QAAkB,EAA8B,EAAE;QAC/D,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,EAAE,CAAC;YAChE,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC;YAC3C,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACvC,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC;QAC3C,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;CACF,CAAC,CAAC"}
|
package/dist/src/edge/errors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
import { EdgeHttpErrorCodec, ErrorCodec } from
|
|
4
|
+
import { EdgeHttpErrorCodec, ErrorCodec } from "./edge.js";
|
|
5
5
|
// TODO(burdon): Reconcile with @dxos/errors.
|
|
6
6
|
/**
|
|
7
7
|
* Error thrown when a call to the Edge service fails.
|
package/dist/src/edge/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './edge.
|
|
2
|
-
export * as EdgeFunctionEnv from './EdgeFunctionEnv.
|
|
3
|
-
export * from './errors.
|
|
1
|
+
export * from './edge.ts';
|
|
2
|
+
export * as EdgeFunctionEnv from './EdgeFunctionEnv.ts';
|
|
3
|
+
export * from './errors.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/edge/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
export * from
|
|
5
|
-
export * as EdgeFunctionEnv from
|
|
6
|
-
export * from
|
|
4
|
+
export * from "./edge.js";
|
|
5
|
+
export * as EdgeFunctionEnv from "./EdgeFunctionEnv.js";
|
|
6
|
+
export * from "./errors.js";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Error as SerializedErrorProto } from '../proto/gen/dxos/error.
|
|
1
|
+
import { type Error as SerializedErrorProto } from '../proto/gen/dxos/error.ts';
|
|
2
2
|
export declare const encodeError: (err: any) => SerializedErrorProto;
|
|
3
3
|
export type DecodeOptions = {
|
|
4
4
|
appendStack?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseError } from '@dxos/errors';
|
|
2
2
|
import { PublicKey } from '@dxos/keys';
|
|
3
|
-
import type { ObjectId } from '../types.
|
|
3
|
+
import type { ObjectId } from '../types.ts';
|
|
4
4
|
declare const RpcClosedError_base: {
|
|
5
5
|
new (options?: import("@dxos/errors").BaseErrorOptions): {
|
|
6
6
|
name: "RpcClosedError";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
import { BaseError } from '@dxos/errors';
|
|
5
5
|
import { PublicKey } from '@dxos/keys';
|
|
6
|
-
import { registerError, registerErrorMessageContext, registerErrorNoArgs } from
|
|
6
|
+
import { registerError, registerErrorMessageContext, registerErrorNoArgs } from "./helpers.js";
|
|
7
7
|
/**
|
|
8
8
|
* Thrown when request was terminated because the RPC endpoint has been closed.
|
|
9
9
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
import { describe, expect, test } from 'vitest';
|
|
5
|
-
import { ApiError } from
|
|
5
|
+
import { ApiError } from "./base-errors.js";
|
|
6
6
|
describe('Errors', () => {
|
|
7
7
|
test('test', async () => {
|
|
8
8
|
const runTest = async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseError } from '@dxos/errors';
|
|
2
|
-
import { type Error as SerializedErrorProto } from '../proto/gen/dxos/error.
|
|
2
|
+
import { type Error as SerializedErrorProto } from '../proto/gen/dxos/error.ts';
|
|
3
3
|
export declare const reconstructError: (error: SerializedErrorProto) => Error | BaseError<string>;
|
|
4
4
|
export declare const registerError: (code: string, make: (message?: string, context?: any) => Error) => void;
|
|
5
5
|
export declare const registerErrorNoArgs: (code: string, Constructor: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './encoding.
|
|
2
|
-
export * from './errors.
|
|
3
|
-
export * from './helpers.
|
|
4
|
-
export * from './base-errors.
|
|
5
|
-
export * from './parameter.
|
|
1
|
+
export * from './encoding.ts';
|
|
2
|
+
export * from './errors.ts';
|
|
3
|
+
export * from './helpers.ts';
|
|
4
|
+
export * from './base-errors.ts';
|
|
5
|
+
export * from './parameter.ts';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/errors/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
4
|
+
export * from "./encoding.js";
|
|
5
|
+
export * from "./errors.js";
|
|
6
|
+
export * from "./helpers.js";
|
|
7
|
+
export * from "./base-errors.js";
|
|
8
|
+
export * from "./parameter.js";
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from './automerge.
|
|
2
|
-
export * from './edge/index.
|
|
3
|
-
export * from './errors/index.
|
|
4
|
-
export * from './indexing.
|
|
5
|
-
export * from './messenger.
|
|
6
|
-
export * from './profile-archive.
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export
|
|
12
|
-
export * as
|
|
1
|
+
export * from './automerge.ts';
|
|
2
|
+
export * from './edge/index.ts';
|
|
3
|
+
export * from './errors/index.ts';
|
|
4
|
+
export * from './indexing.ts';
|
|
5
|
+
export * from './messenger.ts';
|
|
6
|
+
export * from './profile-archive.ts';
|
|
7
|
+
export * from './space-archive.ts';
|
|
8
|
+
export * from './storage.ts';
|
|
9
|
+
export * from './tracing.ts';
|
|
10
|
+
export type * from './types.ts';
|
|
11
|
+
export * as FunctionProtocol from './FunctionProtocol.ts';
|
|
12
|
+
export * as FeedProtocol from './FeedProtocol.ts';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,mBAAmB,YAAY,CAAC;AAChC,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * as FunctionProtocol from './FunctionProtocol.js';
|
|
4
|
+
export * from "./automerge.js";
|
|
5
|
+
export * from "./edge/index.js";
|
|
6
|
+
export * from "./errors/index.js";
|
|
7
|
+
export * from "./indexing.js";
|
|
8
|
+
export * from "./messenger.js";
|
|
9
|
+
export * from "./profile-archive.js";
|
|
10
|
+
export * from "./space-archive.js";
|
|
11
|
+
export * from "./storage.js";
|
|
12
|
+
export * from "./tracing.js";
|
|
13
|
+
export * as FunctionProtocol from "./FunctionProtocol.js";
|
|
14
|
+
export * as FeedProtocol from "./FeedProtocol.js";
|
|
16
15
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAE7B,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
import { describe, expect, test } from 'vitest';
|
|
5
|
-
import { ObjectPointerVersion, objectPointerCodec } from
|
|
5
|
+
import { ObjectPointerVersion, objectPointerCodec } from "./indexing.js";
|
|
6
6
|
describe('Indexing object pointer codec', () => {
|
|
7
7
|
test('getVersion', async () => {
|
|
8
8
|
expect(objectPointerCodec.getVersion('aaaa|bbbb')).to.eq(ObjectPointerVersion.V0);
|