@dxos/edge-client 0.8.4-main.fd6878d → 0.8.4-staging.60fe92afc8
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/LICENSE +102 -5
- package/dist/lib/{node-esm/chunk-R6K4IIBW.mjs → neutral/chunk-L5ZHLJ4B.mjs} +57 -53
- package/dist/lib/neutral/chunk-L5ZHLJ4B.mjs.map +7 -0
- package/dist/lib/neutral/chunk-WQKMEZJR.mjs +30 -0
- package/dist/lib/neutral/chunk-WQKMEZJR.mjs.map +7 -0
- package/dist/lib/neutral/cors-proxy.mjs +7 -0
- package/dist/lib/{browser → neutral}/edge-ws-muxer.mjs +1 -1
- package/dist/lib/neutral/index.mjs +1448 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/{browser → neutral}/testing/index.mjs +6 -31
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/types/src/auth.d.ts.map +1 -1
- package/dist/types/src/base-http-client.d.ts +48 -0
- package/dist/types/src/base-http-client.d.ts.map +1 -0
- package/dist/types/src/cors-proxy.d.ts +6 -0
- package/dist/types/src/cors-proxy.d.ts.map +1 -0
- package/dist/types/src/edge-ai-http-client.d.ts +65 -0
- package/dist/types/src/edge-ai-http-client.d.ts.map +1 -0
- package/dist/types/src/edge-client.d.ts +17 -14
- package/dist/types/src/edge-client.d.ts.map +1 -1
- package/dist/types/src/edge-http-client.d.ts +81 -54
- package/dist/types/src/edge-http-client.d.ts.map +1 -1
- package/dist/types/src/edge-identity.d.ts.map +1 -1
- package/dist/types/src/edge-ws-connection.d.ts +20 -0
- package/dist/types/src/edge-ws-connection.d.ts.map +1 -1
- package/dist/types/src/edge-ws-muxer.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/http-client.d.ts +10 -7
- package/dist/types/src/http-client.d.ts.map +1 -1
- package/dist/types/src/hub-http-client.d.ts +39 -0
- package/dist/types/src/hub-http-client.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +8 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/protocol.d.ts +1 -1
- package/dist/types/src/protocol.d.ts.map +1 -1
- package/dist/types/src/testing/test-server.d.ts.map +1 -1
- package/dist/types/src/testing/test-utils.d.ts +3 -3
- package/dist/types/src/testing/test-utils.d.ts.map +1 -1
- package/dist/types/src/utils.d.ts +1 -1
- package/dist/types/src/utils.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -32
- package/src/base-http-client.ts +243 -0
- package/src/cors-proxy.ts +38 -0
- package/src/edge-ai-http-client.ts +129 -0
- package/src/edge-client.test.ts +20 -15
- package/src/edge-client.ts +105 -44
- package/src/edge-http-client.test.ts +37 -3
- package/src/edge-http-client.ts +312 -190
- package/src/edge-ws-connection.ts +120 -6
- package/src/edge-ws-muxer.ts +49 -5
- package/src/http-client.test.ts +11 -7
- package/src/http-client.ts +18 -8
- package/src/hub-http-client.ts +118 -0
- package/src/index.ts +8 -3
- package/src/testing/test-utils.ts +7 -7
- package/dist/lib/browser/chunk-SUXH7FH6.mjs +0 -304
- package/dist/lib/browser/chunk-SUXH7FH6.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -1124
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R6K4IIBW.mjs.map +0 -7
- package/dist/lib/node-esm/edge-ws-muxer.mjs +0 -12
- package/dist/lib/node-esm/index.mjs +0 -1125
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -186
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- /package/dist/lib/{browser/edge-ws-muxer.mjs.map → neutral/cors-proxy.mjs.map} +0 -0
- /package/dist/lib/{node-esm → neutral}/edge-ws-muxer.mjs.map +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Event } from '@dxos/async';
|
|
2
|
+
import { Context } from '@dxos/context';
|
|
2
3
|
import { type Lifecycle, Resource } from '@dxos/context';
|
|
3
4
|
import { type Message } from '@dxos/protocols/buf/dxos/edge/messenger_pb';
|
|
4
5
|
import { EdgeStatus } from '@dxos/protocols/proto/dxos/client/services';
|
|
@@ -6,6 +7,14 @@ import { type EdgeIdentity } from './edge-identity';
|
|
|
6
7
|
import { type Protocol } from './protocol';
|
|
7
8
|
export type MessageListener = (message: Message) => void;
|
|
8
9
|
export type ReconnectListener = () => void;
|
|
10
|
+
export type MessengerConfig = {
|
|
11
|
+
socketEndpoint: string;
|
|
12
|
+
timeout?: number;
|
|
13
|
+
protocol?: Protocol;
|
|
14
|
+
disableAuth?: boolean;
|
|
15
|
+
/** Sent as `X-DXOS-Client-Tag` on the WebSocket upgrade (Node/`ws` only; ignored in browsers). */
|
|
16
|
+
clientTag?: string;
|
|
17
|
+
};
|
|
9
18
|
export interface EdgeConnection extends Required<Lifecycle> {
|
|
10
19
|
statusChanged: Event<EdgeStatus>;
|
|
11
20
|
get info(): any;
|
|
@@ -14,16 +23,10 @@ export interface EdgeConnection extends Required<Lifecycle> {
|
|
|
14
23
|
get isOpen(): boolean;
|
|
15
24
|
get status(): EdgeStatus;
|
|
16
25
|
setIdentity(identity: EdgeIdentity): void;
|
|
26
|
+
send(ctx: Context, message: Message): Promise<void>;
|
|
17
27
|
onMessage(listener: MessageListener): () => void;
|
|
18
28
|
onReconnected(listener: ReconnectListener): () => void;
|
|
19
|
-
send(message: Message): Promise<void>;
|
|
20
29
|
}
|
|
21
|
-
export type MessengerConfig = {
|
|
22
|
-
socketEndpoint: string;
|
|
23
|
-
timeout?: number;
|
|
24
|
-
protocol?: Protocol;
|
|
25
|
-
disableAuth?: boolean;
|
|
26
|
-
};
|
|
27
30
|
/**
|
|
28
31
|
* Messenger client for EDGE:
|
|
29
32
|
* - While open, uses PersistentLifecycle to keep an open EdgeWsConnection, reconnecting on failures.
|
|
@@ -52,8 +55,13 @@ export declare class EdgeClient extends Resource implements EdgeConnection {
|
|
|
52
55
|
get identityKey(): string;
|
|
53
56
|
get peerKey(): string;
|
|
54
57
|
setIdentity(identity: EdgeIdentity): void;
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Send message.
|
|
60
|
+
* NOTE: The message is guaranteed to be delivered but the service must respond with a message to confirm processing.
|
|
61
|
+
*/
|
|
62
|
+
send(ctx: Context, message: Message): Promise<void>;
|
|
63
|
+
onMessage(listener: MessageListener): () => boolean;
|
|
64
|
+
onReconnected(listener: ReconnectListener): () => boolean;
|
|
57
65
|
/**
|
|
58
66
|
* Open connection to messaging service.
|
|
59
67
|
*/
|
|
@@ -67,11 +75,6 @@ export declare class EdgeClient extends Resource implements EdgeConnection {
|
|
|
67
75
|
private _closeCurrentConnection;
|
|
68
76
|
private _notifyReconnected;
|
|
69
77
|
private _notifyMessageReceived;
|
|
70
|
-
/**
|
|
71
|
-
* Send message.
|
|
72
|
-
* NOTE: The message is guaranteed to be delivered but the service must respond with a message to confirm processing.
|
|
73
|
-
*/
|
|
74
|
-
send(message: Message): Promise<void>;
|
|
75
78
|
private _createAuthHeader;
|
|
76
79
|
private _isActive;
|
|
77
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-client.d.ts","sourceRoot":"","sources":["../../../src/edge-client.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"edge-client.d.ts","sourceRoot":"","sources":["../../../src/edge-client.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EAMN,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAA+C,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,KAAK,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,KAAK,OAAO,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Q,CAAC,OAAO;IAhB1B,SAAgB,aAAa,oBAA2B;IAExD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAGlC;IAEH,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA8B;IAChE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAgC;IACpE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,kBAAkB,CAAC,CAA+B;IAC1D,OAAO,CAAC,MAAM,CAAiB;IAE/B,YACU,SAAS,EAAE,YAAY,EACd,OAAO,EAAE,eAAe,EAK1C;IAED,IACW,IAAI;QAEX,IAAI;QACJ,MAAM;QACN,QAAQ;QACR,MAAM;MAET;IAED,IAAI,MAAM,IAAI,UAAU,CAavB;IAED,IAAI,WAAW,WAEd;IAED,IAAI,OAAO,WAEV;IAED,WAAW,CAAC,QAAQ,EAAE,YAAY,QAOjC;IAED;;;OAGG;IACU,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,iBA2B/C;IAEM,SAAS,CAAC,QAAQ,EAAE,eAAe,iBAGzC;IAEM,aAAa,CAAC,QAAQ,EAAE,iBAAiB,iBAiB/C;IAED;;OAEG;IACH,UAAyB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAiB9C;IAED;;OAEG;IACH,UAAyB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAI/C;YAEa,QAAQ;YA4ER,WAAW;IAKzB,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,sBAAsB;YAUhB,iBAAiB;IAY/B,OAAO,CAAC,SAAS,CAA4E;CAC9F"}
|
|
@@ -1,61 +1,88 @@
|
|
|
1
|
-
import { Context } from '@dxos/context';
|
|
1
|
+
import { type Context } from '@dxos/context';
|
|
2
2
|
import { type PublicKey, type SpaceId } from '@dxos/keys';
|
|
3
|
-
import { type CreateAgentRequestBody, type CreateAgentResponseBody, type CreateSpaceRequest, type CreateSpaceResponseBody, type EdgeStatus, type ExecuteWorkflowResponseBody, type GetAgentStatusResponseBody, type GetNotarizationResponseBody, type
|
|
4
|
-
import { type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* A random amount of time before retrying to help prevent large bursts of requests.
|
|
16
|
-
*/
|
|
17
|
-
jitter?: number;
|
|
3
|
+
import { type CompleteOAuthRegistrationRequest, type CompleteOAuthRegistrationResponse, type CreateAgentRequestBody, type CreateAgentResponseBody, type CreateSpaceRequest, type CreateSpaceResponseBody, type EdgeStatus, type ExecuteWorkflowResponseBody, type ExportBundleRequest, type ExportBundleResponse, type FeedProtocol, type GetAgentStatusResponseBody, type GetNotarizationResponseBody, type GetPluginVersionsResponseBody, type GetPluginsResponseBody, type ImportBundleRequest, type InitiateOAuthFlowRequest, type InitiateOAuthFlowResponse, type JoinSpaceRequest, type JoinSpaceResponseBody, type ObjectId, type PostNotarizationRequestBody, type RecoverIdentityRequest, type RecoverIdentityResponseBody, type UploadFunctionRequest, type UploadFunctionResponseBody } from '@dxos/protocols';
|
|
4
|
+
import { type QueryRequest as QueryRequestProto, type QueryResponse as QueryResponseProto } from '@dxos/protocols/proto/dxos/echo/query';
|
|
5
|
+
import { BaseHttpClient, type BaseHttpClientOptions, type EdgeHttpCallArgs } from './base-http-client';
|
|
6
|
+
export type { EdgeHttpCallArgs, RetryConfig } from './base-http-client';
|
|
7
|
+
/**
|
|
8
|
+
* HTTP wire shape returned by `/queue/.../query`.
|
|
9
|
+
*/
|
|
10
|
+
export type EdgeQueryQueueResponse = {
|
|
11
|
+
objects?: unknown[];
|
|
12
|
+
nextCursor?: string;
|
|
13
|
+
prevCursor?: string;
|
|
18
14
|
};
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
export type TriggersDispatcherStatus = {
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
nextCronTaskRunTimestamp?: number;
|
|
18
|
+
registeredTriggers: string[];
|
|
19
|
+
stopAfterTimestamp?: number;
|
|
20
|
+
remainingMs?: number;
|
|
21
|
+
nextAlarmTimestamp?: number;
|
|
24
22
|
};
|
|
25
|
-
export type
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
getStatus(args?:
|
|
38
|
-
createAgent(body: CreateAgentRequestBody, args?:
|
|
39
|
-
getAgentStatus(request: {
|
|
23
|
+
export type GetCronTriggersResponse = {
|
|
24
|
+
cronIds: string[];
|
|
25
|
+
};
|
|
26
|
+
export type EdgeHttpClientOptions = BaseHttpClientOptions;
|
|
27
|
+
/**
|
|
28
|
+
* HTTP client for the edge worker API (spaces, queues, functions, agents, etc.).
|
|
29
|
+
*
|
|
30
|
+
* Hub-service API (accounts, invitations) lives in {@link HubHttpClient} — the two
|
|
31
|
+
* services run at different URLs and are never both available from the same base URL.
|
|
32
|
+
*/
|
|
33
|
+
export declare class EdgeHttpClient extends BaseHttpClient {
|
|
34
|
+
constructor(baseUrl: string, options?: EdgeHttpClientOptions);
|
|
35
|
+
getStatus(ctx: Context, args?: EdgeHttpCallArgs): Promise<EdgeStatus>;
|
|
36
|
+
createAgent(ctx: Context, body: CreateAgentRequestBody, args?: EdgeHttpCallArgs): Promise<CreateAgentResponseBody>;
|
|
37
|
+
getAgentStatus(ctx: Context, request: {
|
|
40
38
|
ownerIdentityKey: PublicKey;
|
|
41
|
-
}, args?:
|
|
42
|
-
getCredentialsForNotarization(spaceId: SpaceId, args?:
|
|
43
|
-
notarizeCredentials(spaceId: SpaceId, body: PostNotarizationRequestBody, args?:
|
|
44
|
-
recoverIdentity(body: RecoverIdentityRequest, args?:
|
|
45
|
-
joinSpaceByInvitation(spaceId: SpaceId, body: JoinSpaceRequest, args?:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
createSpace(body: CreateSpaceRequest, args?:
|
|
49
|
-
queryQueue(subspaceTag: string, spaceId: SpaceId, query: QueueQuery, args?:
|
|
50
|
-
insertIntoQueue(subspaceTag: string, spaceId: SpaceId, queueId: ObjectId, objects: unknown[], args?:
|
|
51
|
-
deleteFromQueue(subspaceTag: string, spaceId: SpaceId, queueId: ObjectId, objectIds: ObjectId[], args?:
|
|
52
|
-
uploadFunction(pathParts: {
|
|
39
|
+
}, args?: EdgeHttpCallArgs): Promise<GetAgentStatusResponseBody>;
|
|
40
|
+
getCredentialsForNotarization(ctx: Context, spaceId: SpaceId, args?: EdgeHttpCallArgs): Promise<GetNotarizationResponseBody>;
|
|
41
|
+
notarizeCredentials(ctx: Context, spaceId: SpaceId, body: PostNotarizationRequestBody, args?: EdgeHttpCallArgs): Promise<void>;
|
|
42
|
+
recoverIdentity(ctx: Context, body: RecoverIdentityRequest, args?: EdgeHttpCallArgs): Promise<RecoverIdentityResponseBody>;
|
|
43
|
+
joinSpaceByInvitation(ctx: Context, spaceId: SpaceId, body: JoinSpaceRequest, args?: EdgeHttpCallArgs): Promise<JoinSpaceResponseBody>;
|
|
44
|
+
initiateOAuthFlow(ctx: Context, body: InitiateOAuthFlowRequest, args?: EdgeHttpCallArgs): Promise<InitiateOAuthFlowResponse>;
|
|
45
|
+
completeOAuthRegistration(ctx: Context, body: CompleteOAuthRegistrationRequest, args?: EdgeHttpCallArgs): Promise<CompleteOAuthRegistrationResponse>;
|
|
46
|
+
createSpace(ctx: Context, body: CreateSpaceRequest, args?: EdgeHttpCallArgs): Promise<CreateSpaceResponseBody>;
|
|
47
|
+
queryQueue(ctx: Context, subspaceTag: string, spaceId: SpaceId, query: FeedProtocol.QueueQuery, args?: EdgeHttpCallArgs): Promise<EdgeQueryQueueResponse>;
|
|
48
|
+
insertIntoQueue(ctx: Context, subspaceTag: string, spaceId: SpaceId, queueId: ObjectId, objects: unknown[], args?: EdgeHttpCallArgs): Promise<void>;
|
|
49
|
+
deleteFromQueue(ctx: Context, subspaceTag: string, spaceId: SpaceId, queueId: ObjectId, objectIds: ObjectId[], args?: EdgeHttpCallArgs): Promise<void>;
|
|
50
|
+
uploadFunction(ctx: Context, pathParts: {
|
|
53
51
|
functionId?: string;
|
|
54
|
-
}, body: UploadFunctionRequest, args?:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
}, body: UploadFunctionRequest, args?: EdgeHttpCallArgs): Promise<UploadFunctionResponseBody>;
|
|
53
|
+
listFunctions(ctx: Context, args?: EdgeHttpCallArgs): Promise<any>;
|
|
54
|
+
invokeFunction(ctx: Context, params: {
|
|
55
|
+
functionId: string;
|
|
56
|
+
version?: string;
|
|
57
|
+
spaceId?: SpaceId;
|
|
58
|
+
cpuTimeLimit?: number;
|
|
59
|
+
subrequestsLimit?: number;
|
|
60
|
+
}, input: unknown, args?: EdgeHttpCallArgs): Promise<any>;
|
|
61
|
+
executeWorkflow(ctx: Context, spaceId: SpaceId, graphId: ObjectId, input: any, args?: EdgeHttpCallArgs): Promise<ExecuteWorkflowResponseBody>;
|
|
62
|
+
getCronTriggers(ctx: Context, spaceId: SpaceId): Promise<GetCronTriggersResponse>;
|
|
63
|
+
getTriggersDispatcherStatus(ctx: Context, spaceId: SpaceId, args?: EdgeHttpCallArgs): Promise<TriggersDispatcherStatus>;
|
|
64
|
+
forceRunCronTrigger(ctx: Context, spaceId: SpaceId, triggerId: ObjectId): Promise<unknown>;
|
|
65
|
+
execQuery(ctx: Context, spaceId: SpaceId, body: QueryRequestProto, args?: EdgeHttpCallArgs): Promise<QueryResponseProto>;
|
|
66
|
+
getRegistryPlugins(ctx: Context, args?: EdgeHttpCallArgs): Promise<GetPluginsResponseBody>;
|
|
67
|
+
getRegistryPluginVersions(ctx: Context, repo: string, args?: EdgeHttpCallArgs): Promise<GetPluginVersionsResponseBody>;
|
|
68
|
+
importBundle(ctx: Context, spaceId: SpaceId, body: ImportBundleRequest, args?: EdgeHttpCallArgs): Promise<void>;
|
|
69
|
+
exportBundle(ctx: Context, spaceId: SpaceId, body: ExportBundleRequest, args?: EdgeHttpCallArgs): Promise<ExportBundleResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Fetch through the edge proxy for third-party REST APIs.
|
|
72
|
+
* TEMPORARY: currently routes through legacy open proxy. See https://github.com/dxos/edge/pull/576.
|
|
73
|
+
*/
|
|
74
|
+
proxyFetch(target: URL, init?: RequestInit): Promise<Response>;
|
|
75
|
+
/**
|
|
76
|
+
* Issue an authenticated request to the EDGE AI route (`/ai/generate/anthropic/*`), which
|
|
77
|
+
* proxies to the AI service. Used as the backend HTTP client for the Anthropic AI provider
|
|
78
|
+
* (see {@link EdgeAiHttpClient}).
|
|
79
|
+
*
|
|
80
|
+
* Returns the raw `Response` so streaming bodies are forwarded unchanged to `@effect/ai`.
|
|
81
|
+
* Requires an identity to have been set via {@link setIdentity}.
|
|
82
|
+
*/
|
|
83
|
+
anthropicAiRequest(request: Request): Promise<Response>;
|
|
84
|
+
_fetch<T>(url: URL, _args: {
|
|
85
|
+
method: string;
|
|
86
|
+
}): Promise<T>;
|
|
59
87
|
}
|
|
60
|
-
export {};
|
|
61
88
|
//# sourceMappingURL=edge-http-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-http-client.d.ts","sourceRoot":"","sources":["../../../src/edge-http-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edge-http-client.d.ts","sourceRoot":"","sources":["../../../src/edge-http-client.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,iCAA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","sourceRoot":"","sources":["../../../src/edge-identity.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAEhF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,UAAU,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACrF;AAED,eAAO,MAAM,mBAAmB,mBAA0B,QAAQ,YAAY,YAAY,KAAG,OAAO,CAAC,UAAU,CAW9G,CAAC"}
|
|
@@ -14,19 +14,39 @@ export declare class EdgeWsConnection extends Resource {
|
|
|
14
14
|
private _ws;
|
|
15
15
|
private _wsMuxer;
|
|
16
16
|
private _lastReceivedMessageTimestamp;
|
|
17
|
+
private _openTimestamp;
|
|
18
|
+
private _pingTimestamp;
|
|
19
|
+
private _rtt;
|
|
20
|
+
private _uploadRate;
|
|
21
|
+
private _downloadRate;
|
|
22
|
+
private readonly _rateWindow;
|
|
23
|
+
private readonly _rateUpdateInterval;
|
|
24
|
+
private _bytesSamples;
|
|
25
|
+
private _messagesSent;
|
|
26
|
+
private _messagesReceived;
|
|
17
27
|
constructor(_identity: EdgeIdentity, _connectionInfo: {
|
|
18
28
|
url: URL;
|
|
19
29
|
protocolHeader?: string;
|
|
30
|
+
headers?: Record<string, string>;
|
|
20
31
|
}, _callbacks: EdgeWsConnectionCallbacks);
|
|
21
32
|
get info(): {
|
|
22
33
|
open: boolean;
|
|
23
34
|
identity: string;
|
|
24
35
|
device: string;
|
|
25
36
|
};
|
|
37
|
+
get rtt(): number;
|
|
38
|
+
get uptime(): number;
|
|
39
|
+
get uploadRate(): number;
|
|
40
|
+
get downloadRate(): number;
|
|
41
|
+
get messagesSent(): number;
|
|
42
|
+
get messagesReceived(): number;
|
|
26
43
|
send(message: Message): void;
|
|
27
44
|
protected _open(): Promise<void>;
|
|
28
45
|
protected _close(): Promise<void>;
|
|
29
46
|
private _scheduleHeartbeats;
|
|
30
47
|
private _rescheduleHeartbeatTimeout;
|
|
48
|
+
private _recordBytes;
|
|
49
|
+
private _scheduleRateCalculation;
|
|
50
|
+
private _calculateRates;
|
|
31
51
|
}
|
|
32
52
|
//# sourceMappingURL=edge-ws-connection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-ws-connection.d.ts","sourceRoot":"","sources":["../../../src/edge-ws-connection.ts"],"names":[],"mappings":"AAOA,OAAO,EAAW,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKlD,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,4CAA4C,CAAC;AAGzF,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"edge-ws-connection.d.ts","sourceRoot":"","sources":["../../../src/edge-ws-connection.ts"],"names":[],"mappings":"AAOA,OAAO,EAAW,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKlD,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,4CAA4C,CAAC;AAGzF,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,QAAQ;IAuB1C,OAAO,CAAC,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,CAc/C;IAED,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,2BAA2B;IAwBnC,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,eAAe;CA4BxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-ws-muxer.d.ts","sourceRoot":"","sources":["../../../src/edge-ws-muxer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,4CAA4C,CAAC;AAkBzF;;GAEG;AACH,eAAO,MAAM,4BAA4B,QAAc,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAmB,CAAC;AAMzD,qBAAa,cAAc;IAUvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IATtB,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA+B;IACrE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAqC;IACvE,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAA6B;IAEzE,OAAO,CAAC,YAAY,CAAkB;IAEtC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;
|
|
1
|
+
{"version":3,"file":"edge-ws-muxer.d.ts","sourceRoot":"","sources":["../../../src/edge-ws-muxer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,4CAA4C,CAAC;AAkBzF;;GAEG;AACH,eAAO,MAAM,4BAA4B,QAAc,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAmB,CAAC;AAMzD,qBAAa,cAAc;IAUvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IATtB,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA+B;IACrE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAqC;IACvE,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAA6B;IAEzE,OAAO,CAAC,YAAY,CAAkB;IAEtC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IAEzC,YACmB,GAAG,EAAE,eAAe,EACrC,MAAM,CAAC,EAAE;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE,EAGpC;IAED;;OAEG;IACU,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA6DjD;IAEM,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,CA6CxD;IAEM,OAAO,IAAI,IAAI,CAWrB;IAED,OAAO,CAAC,oBAAoB;IA+C5B,OAAO,CAAC,eAAe;CAWxB;AAED,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,GAAG,eAAe,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;CAC/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,qBAAa,yBAA0B,SAAQ,KAAK
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,cAEC;CACF;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,cAEC;CACF"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import type * as HttpClient from '@effect/platform/HttpClient';
|
|
2
|
+
import type * as HttpClientError from '@effect/platform/HttpClientError';
|
|
3
|
+
import type * as HttpClientResponse from '@effect/platform/HttpClientResponse';
|
|
4
|
+
import * as Context from 'effect/Context';
|
|
5
|
+
import * as Duration from 'effect/Duration';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
import * as Layer from 'effect/Layer';
|
|
5
8
|
export type RetryOptions = {
|
|
6
9
|
timeout: Duration.Duration;
|
|
7
10
|
retryTimes: number;
|
|
@@ -11,9 +14,9 @@ declare const HttpConfig_base: Context.TagClass<HttpConfig, "HttpConfig", RetryO
|
|
|
11
14
|
export declare class HttpConfig extends HttpConfig_base {
|
|
12
15
|
static default: Layer.Layer<HttpConfig, never, never>;
|
|
13
16
|
}
|
|
14
|
-
export declare const withRetry: (effect: Effect.Effect<HttpClientResponse, HttpClientError, HttpClient.HttpClient>, { timeout, retryBaseDelay, retryTimes, }?: Partial<RetryOptions>) => Effect.Effect<unknown, Error |
|
|
15
|
-
export declare const withRetryConfig: (effect: Effect.Effect<HttpClientResponse, HttpClientError, HttpClient.HttpClient>) => Effect.Effect<unknown, Error | HttpClientError,
|
|
16
|
-
export declare const withLogging: <A extends HttpClientResponse, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
17
|
+
export declare const withRetry: (effect: Effect.Effect<HttpClientResponse.HttpClientResponse, HttpClientError.HttpClientError, HttpClient.HttpClient>, { timeout, retryBaseDelay, retryTimes, }?: Partial<RetryOptions>) => Effect.Effect<unknown, Error | import("effect/Cause").TimeoutException | HttpClientError.HttpClientError, HttpClient.HttpClient>;
|
|
18
|
+
export declare const withRetryConfig: (effect: Effect.Effect<HttpClientResponse.HttpClientResponse, HttpClientError.HttpClientError, HttpClient.HttpClient>) => Effect.Effect<unknown, Error | HttpClientError.HttpClientError, HttpClient.HttpClient | HttpConfig>;
|
|
19
|
+
export declare const withLogging: <A extends HttpClientResponse.HttpClientResponse, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../src/http-client.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../src/http-client.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ponse, type GetAccountResponse, type IssueInvitationResponse, type ListAccountInvitationsResponse, type LoginRequest, type LoginResponse, type RedeemInvitationCodeRequest, type RedeemInvitationCodeResponse, type RequestAccessRequest, type RequestAccessResponse, type ResendVerificationEmailResponse, type ValidateInvitationCodeResponse } from '@dxos/protocols';
|
|
3
|
+
import { BaseHttpClient, type BaseHttpClientOptions, type EdgeHttpCallArgs } from './base-http-client';
|
|
4
|
+
/**
|
|
5
|
+
* HTTP client for the hub-service API (accounts, invitations, email verification).
|
|
6
|
+
*
|
|
7
|
+
* Hub-service and the edge worker are separate Cloudflare Workers deployed at different
|
|
8
|
+
* URLs (`DX_HUB_URL` vs `DX_EDGE_URL`). This client is never used to talk to the edge
|
|
9
|
+
* worker, and vice versa — keep them separate.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: Do NOT set `auth: true` on any call here. Hub-service has no `/auth` VP-challenge
|
|
12
|
+
* endpoint (it has an admin login page that 302s and is not CORS-enabled). Auth is handled
|
|
13
|
+
* via the regular request → 401 → WWW-Authenticate challenge → retry path.
|
|
14
|
+
*/
|
|
15
|
+
export declare class HubHttpClient extends BaseHttpClient {
|
|
16
|
+
constructor(hubUrl: string, options?: BaseHttpClientOptions);
|
|
17
|
+
checkEmailExists(ctx: Context, body: {
|
|
18
|
+
email: string;
|
|
19
|
+
}, args?: EdgeHttpCallArgs): Promise<CheckEmailExistsResponse>;
|
|
20
|
+
validateInvitationCode(ctx: Context, body: {
|
|
21
|
+
code: string;
|
|
22
|
+
}, args?: EdgeHttpCallArgs): Promise<ValidateInvitationCodeResponse>;
|
|
23
|
+
redeemInvitationCode(ctx: Context, body: RedeemInvitationCodeRequest, args?: EdgeHttpCallArgs): Promise<RedeemInvitationCodeResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Existing-account email login. Server inlines `token` for test emails; regular
|
|
26
|
+
* emails are delivered out-of-band. Response is identical for unknown emails
|
|
27
|
+
* (enumeration-safe).
|
|
28
|
+
*/
|
|
29
|
+
login(ctx: Context, body: LoginRequest, args?: EdgeHttpCallArgs): Promise<LoginResponse>;
|
|
30
|
+
requestAccess(ctx: Context, body: RequestAccessRequest, args?: EdgeHttpCallArgs): Promise<RequestAccessResponse>;
|
|
31
|
+
getAccount(ctx: Context, args?: EdgeHttpCallArgs): Promise<GetAccountResponse>;
|
|
32
|
+
deleteAccount(ctx: Context, args?: EdgeHttpCallArgs): Promise<{
|
|
33
|
+
deleted: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
listAccountInvitations(ctx: Context, args?: EdgeHttpCallArgs): Promise<ListAccountInvitationsResponse>;
|
|
36
|
+
issueAccountInvitation(ctx: Context, args?: EdgeHttpCallArgs): Promise<IssueInvitationResponse>;
|
|
37
|
+
resendVerificationEmail(ctx: Context, args?: EdgeHttpCallArgs): Promise<ResendVerificationEmailResponse>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=hub-http-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-http-client.d.ts","sourceRoot":"","sources":["../../../src/hub-http-client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACpC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvG;;;;;;;;;;GAUG;AACH,qBAAa,aAAc,SAAQ,cAAc;IAC/C,YAAY,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,EAE1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ClC,GAAG,EAAE,OAAO,EACZ,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,+BAA+B,CAAC,CAE1C;CACF"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export * from '@dxos/protocols/buf/dxos/edge/messenger_pb';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './auth';
|
|
3
|
+
export * from './cors-proxy';
|
|
3
4
|
export * from './defs';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './edge-client';
|
|
5
6
|
export * from './errors';
|
|
6
|
-
export * from './
|
|
7
|
+
export * from './protocol';
|
|
8
|
+
export * from './base-http-client';
|
|
9
|
+
export * from './edge-ai-http-client';
|
|
7
10
|
export * from './edge-http-client';
|
|
11
|
+
export * from './hub-http-client';
|
|
8
12
|
export * from './edge-identity';
|
|
9
13
|
export * from './edge-ws-muxer';
|
|
14
|
+
export * from './http-client';
|
|
10
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,4CAA4C,CAAC;AAE3D,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,4CAA4C,CAAC;AAE3D,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -21,7 +21,7 @@ export declare class Protocol {
|
|
|
21
21
|
/**
|
|
22
22
|
* Create a packed message.
|
|
23
23
|
*/
|
|
24
|
-
createMessage<Desc extends buf.DescMessage>(type: Desc, { source, target, payload, serviceId
|
|
24
|
+
createMessage<Desc extends buf.DescMessage>(type: Desc, { source, target, payload, serviceId }: {
|
|
25
25
|
source?: PeerData;
|
|
26
26
|
target?: PeerData[];
|
|
27
27
|
payload?: buf.MessageInitShape<Desc>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/protocol.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAG1G,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/protocol.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAG1G,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,WAAW,aAAc,MAAM,WAAsC,CAAC;AAEnF;;GAEG;AACH,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;IAE7C,YAAY,KAAK,EAAE,GAAG,CAAC,WAAW,EAAE,EAEnC;IAED,IAAI,YAAY,IAAI,GAAG,CAAC,QAAQ,CAE/B;IAED,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,GAAG,CAM5B;IAED;;OAEG;IACH,UAAU,CAAC,IAAI,SAAS,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAW7F;IAED;;OAEG;IACH,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAOnD;IAED;;OAEG;IACH,aAAa,CAAC,IAAI,SAAS,GAAG,CAAC,WAAW,EACxC,IAAI,EAAE,IAAI,EACV,EACE,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACV,EAAE;QACD,MAAM,CAAC,EAAE,QAAQ,CAAC;QAClB,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC;QACpB,OAAO,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACrC,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GACA,OAAO,CAQT;CACF;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,SAAgB,GAAG,KAAG,OAAO,CAAC,UAAU,CAYhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-server.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-server.ts"],"names":[],"mappings":"AAIA,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC;AAE5F,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"test-server.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-server.ts"],"names":[],"mappings":"AAIA,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC;AAE5F,eAAO,MAAM,gBAAgB,oBAAqB,eAAe,wBAahE,CAAC;AAEF,eAAO,MAAM,eAAe,OAAQ,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,GAAG,MAAM,KAAG,eAczE,CAAC"}
|
|
@@ -3,13 +3,13 @@ import { Trigger } from '@dxos/async';
|
|
|
3
3
|
import { type Message } from '@dxos/protocols/buf/dxos/edge/messenger_pb';
|
|
4
4
|
import { WebSocketMuxer } from '../edge-ws-muxer';
|
|
5
5
|
export declare const DEFAULT_PORT = 8080;
|
|
6
|
-
type
|
|
6
|
+
type TestEdgeWsServerProps = {
|
|
7
7
|
admitConnection?: Trigger;
|
|
8
8
|
payloadDecoder?: (payload: Uint8Array) => any;
|
|
9
9
|
messageHandler?: (payload: any) => Promise<Uint8Array | undefined>;
|
|
10
10
|
};
|
|
11
|
-
export declare const createTestEdgeWsServer: (port?: number, params?:
|
|
12
|
-
server: WebSocket.Server
|
|
11
|
+
export declare const createTestEdgeWsServer: (port?: number, params?: TestEdgeWsServerProps) => Promise<{
|
|
12
|
+
server: WebSocket.Server<typeof WebSocket, typeof import("http").IncomingMessage>;
|
|
13
13
|
messageSink: any[];
|
|
14
14
|
messageSourceLog: any[];
|
|
15
15
|
endpoint: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-utils.ts"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAItC,OAAO,EAAE,KAAK,OAAO,EAAoC,MAAM,4CAA4C,CAAC;AAG5G,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,KAAK,
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-utils.ts"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAItC,OAAO,EAAE,KAAK,OAAO,EAAoC,MAAM,4CAA4C,CAAC;AAG5G,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,KAAK,qBAAqB,GAAG;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,GAAG,CAAC;IAC9C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;CACpE,CAAC;AAEF,eAAO,MAAM,sBAAsB,2BAAwC,qBAAqB;;;;;;;YAOxE,SAAS;eAAS,cAAc;;mCAwErC,OAAO,mBAAmB,UAAU;uBA1BhC,OAAO;;EAS7B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getEdgeUrlWithProtocol: (baseUrl: string, protocol:
|
|
1
|
+
export declare const getEdgeUrlWithProtocol: (baseUrl: string, protocol: 'http' | 'ws') => string;
|
|
2
2
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,YAAa,MAAM,YAAY,MAAM,GAAG,IAAI,WAK9E,CAAC"}
|