@agimon-ai/po-session 0.0.0-alpha.2 → 0.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions/server.cjs +95 -59
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +95 -58
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.mts +97 -60
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/{sessionDelivery-DpLWlaum.mjs → sessionDelivery-BzPl0sCk.mjs} +381 -228
- package/dist/sessionDelivery-BzPl0sCk.mjs.map +1 -0
- package/dist/{sessionDelivery-CkuX6jlw.cjs → sessionDelivery-CkKlRYAK.cjs} +406 -229
- package/dist/sessionDelivery-CkKlRYAK.cjs.map +1 -0
- package/package.json +7 -7
- package/dist/sessionDelivery-CkuX6jlw.cjs.map +0 -1
- package/dist/sessionDelivery-DpLWlaum.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sessionDelivery = require("./sessionDelivery-
|
|
2
|
+
const require_sessionDelivery = require("./sessionDelivery-CkKlRYAK.cjs");
|
|
3
3
|
exports.DOOM_SESSION_DELIVERY_SERVICE = require_sessionDelivery.DOOM_SESSION_DELIVERY_SERVICE;
|
|
4
4
|
exports.DOOM_SESSION_INTERCOM_SERVICE = require_sessionDelivery.DOOM_SESSION_INTERCOM_SERVICE;
|
|
5
5
|
exports.SessionGroupRevisionError = require_sessionDelivery.SessionGroupRevisionError;
|
|
6
6
|
exports.createBackgroundWorkService = require_sessionDelivery.createBackgroundWorkService;
|
|
7
7
|
exports.createPeerCommunication = require_sessionDelivery.createPeerCommunication;
|
|
8
8
|
exports.createPeerReplayGuard = require_sessionDelivery.createPeerReplayGuard;
|
|
9
|
+
exports.createPeerReplayGuardAsync = require_sessionDelivery.createPeerReplayGuardAsync;
|
|
9
10
|
exports.createSessionDeliveryService = require_sessionDelivery.createSessionDeliveryService;
|
|
10
11
|
exports.createSessionDirectory = require_sessionDelivery.createSessionDirectory;
|
|
11
12
|
exports.createSessionGroupDeliveryAuthorizer = require_sessionDelivery.createSessionGroupDeliveryAuthorizer;
|
|
@@ -19,6 +20,7 @@ exports.provideSessionDeliveryService = require_sessionDelivery.provideSessionDe
|
|
|
19
20
|
exports.readDoomSessionDelivery = require_sessionDelivery.readDoomSessionDelivery;
|
|
20
21
|
exports.readSessionIntercom = require_sessionDelivery.readSessionIntercom;
|
|
21
22
|
exports.readSessionPeerConfig = require_sessionDelivery.readSessionPeerConfig;
|
|
23
|
+
exports.readSessionPeerConfigAsync = require_sessionDelivery.readSessionPeerConfigAsync;
|
|
22
24
|
exports.requireSessionIntercom = require_sessionDelivery.requireSessionIntercom;
|
|
23
25
|
exports.sessionPeerConfigPath = require_sessionDelivery.sessionPeerConfigPath;
|
|
24
26
|
exports.verifyPeerRequest = require_sessionDelivery.verifyPeerRequest;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DoomBackgroundWorkService } from "@agimon-ai/po-core/backgroundWork";
|
|
2
|
+
import { DoomSqliteService, FileSystem } from "@agimon-ai/po-core/platform";
|
|
2
3
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
4
|
import { DoomSessionCommunicationEndpoint } from "@agimon-ai/po-core/hubChannel";
|
|
4
5
|
//#region src/services/backgroundWorkService/index.d.ts
|
|
@@ -7,7 +8,44 @@ export declare function createBackgroundWorkService(ctx: Context): DoomBackgroun
|
|
|
7
8
|
/** Installs one coordinator in the current session service context. */
|
|
8
9
|
export declare function provideBackgroundWorkService(context: Context): void;
|
|
9
10
|
//#endregion
|
|
10
|
-
//#region src/services/
|
|
11
|
+
//#region src/services/sessionGroups/type.d.ts
|
|
12
|
+
/** pi-durable `SqliteDatabase`, reached through po-core so this package needs no direct dependency. */
|
|
13
|
+
type SessionSqliteDatabase = Awaited<ReturnType<DoomSqliteService['open']>>;
|
|
14
|
+
interface SessionCommunicationGroup {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly ownerAuthority: string;
|
|
17
|
+
readonly revision: number;
|
|
18
|
+
readonly members: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
interface SessionGroupMutation {
|
|
21
|
+
readonly groupId: string;
|
|
22
|
+
readonly authority: string;
|
|
23
|
+
readonly expectedRevision: number;
|
|
24
|
+
readonly add?: readonly string[];
|
|
25
|
+
readonly remove?: readonly string[];
|
|
26
|
+
}
|
|
27
|
+
interface SessionGroupStoreOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Taken over by the store and closed by `close()`. On the edge every open returns the Durable
|
|
30
|
+
* Object's one shared database, so the store's table names must stay unique across that database.
|
|
31
|
+
*/
|
|
32
|
+
readonly database: SessionSqliteDatabase;
|
|
33
|
+
readonly authorizeManagement?: (authority: string, group: SessionCommunicationGroup) => boolean;
|
|
34
|
+
readonly validateEnrollment?: (groupId: string, memberReference: string) => boolean;
|
|
35
|
+
}
|
|
36
|
+
interface SessionGroupStore {
|
|
37
|
+
create(groupId: string, ownerAuthority: string, members: readonly string[]): Promise<SessionCommunicationGroup>;
|
|
38
|
+
mutate(mutation: SessionGroupMutation): Promise<SessionCommunicationGroup>;
|
|
39
|
+
get(groupId: string): Promise<SessionCommunicationGroup | undefined>;
|
|
40
|
+
groupsFor(memberReference: string): Promise<readonly SessionCommunicationGroup[]>;
|
|
41
|
+
canMessage(groupId: string, sourceReference: string, targetReference: string): Promise<boolean>;
|
|
42
|
+
close(): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
export declare class SessionGroupRevisionError extends Error {
|
|
45
|
+
constructor(groupId: string, expected: number, actual: number);
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/services/peerTransport/config.d.ts
|
|
11
49
|
declare const PEER_CONFIG_VERSION = 1;
|
|
12
50
|
interface SessionPeer {
|
|
13
51
|
readonly hostId: string;
|
|
@@ -23,6 +61,33 @@ interface SessionPeerConfig {
|
|
|
23
61
|
readonly hostId: string;
|
|
24
62
|
readonly peers: readonly SessionPeer[];
|
|
25
63
|
}
|
|
64
|
+
interface SessionPeerReplayGuard {
|
|
65
|
+
admit(request: Request, now?: number): boolean;
|
|
66
|
+
close(): void;
|
|
67
|
+
}
|
|
68
|
+
interface SessionPeerReplayGuardAsync {
|
|
69
|
+
admit(request: Request, now?: number): Promise<boolean>;
|
|
70
|
+
close(): Promise<void>;
|
|
71
|
+
}
|
|
72
|
+
export declare function sessionPeerConfigPath(homeDirectory: string): string;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/services/peerTransport/sync.d.ts
|
|
75
|
+
/**
|
|
76
|
+
* Reads operator-provisioned peers. Invalid or unreadable config fails closed.
|
|
77
|
+
*
|
|
78
|
+
* @deprecated Node-only sync shim; use readSessionPeerConfigAsync. Removed in M2.
|
|
79
|
+
*/
|
|
80
|
+
export declare function readSessionPeerConfig(homeDirectory: string): SessionPeerConfig | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Persists accepted peer signatures so a valid request cannot be replayed within its clock-skew window.
|
|
83
|
+
*
|
|
84
|
+
* @deprecated Node-only sync shim; use createPeerReplayGuardAsync. Removed in M2.
|
|
85
|
+
*/
|
|
86
|
+
export declare function createPeerReplayGuard(homeDirectory: string): SessionPeerReplayGuard;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/services/peerTransport/index.d.ts
|
|
89
|
+
/** chord IO context, reached through po-core so this package needs no direct dependency. */
|
|
90
|
+
type IoContext = Parameters<FileSystem['readTextFile']>[1];
|
|
26
91
|
interface RemoteSessionReference {
|
|
27
92
|
readonly hostId: string;
|
|
28
93
|
readonly sessionId: string;
|
|
@@ -33,24 +98,23 @@ interface SessionPeerEnvelope {
|
|
|
33
98
|
readonly type: string;
|
|
34
99
|
readonly payload: unknown;
|
|
35
100
|
}
|
|
36
|
-
interface SessionPeerReplayGuard {
|
|
37
|
-
admit(request: Request, now?: number): boolean;
|
|
38
|
-
close(): void;
|
|
39
|
-
}
|
|
40
|
-
export declare function sessionPeerConfigPath(homeDirectory: string): string;
|
|
41
101
|
/** Reads operator-provisioned peers. Invalid or unreadable config fails closed. */
|
|
42
|
-
export declare function
|
|
102
|
+
export declare function readSessionPeerConfigAsync(fs: FileSystem, homeDirectory: string, context: IoContext): Promise<SessionPeerConfig | undefined>;
|
|
43
103
|
/** `peer/<host-id>/<session-id>` is the only remote target spelling. */
|
|
44
104
|
export declare function parseRemoteSessionReference(value: string): RemoteSessionReference | undefined;
|
|
45
105
|
export declare function peerSessionReference(hostId: string, sessionId: string): string;
|
|
46
106
|
export declare function peerRequestHeaders(sourceHostId: string, peer: SessionPeer, method: string, pathname: string, body: string, now?: number): Headers;
|
|
47
|
-
/**
|
|
48
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Persists accepted peer signatures so a valid request cannot be replayed within its clock-skew window.
|
|
109
|
+
* Takes over the database and closes it in `close()`.
|
|
110
|
+
*/
|
|
111
|
+
export declare function createPeerReplayGuardAsync(database: SessionSqliteDatabase): Promise<SessionPeerReplayGuardAsync>;
|
|
49
112
|
export declare function verifyPeerRequest(config: SessionPeerConfig, request: Request, body: string, now?: number): SessionPeer | undefined;
|
|
50
113
|
/** Adds asynchronous tunnel publication to a host-bound local communication endpoint. */
|
|
51
114
|
export declare function createPeerCommunication(options: {
|
|
52
115
|
readonly local: DoomSessionCommunicationEndpoint;
|
|
53
|
-
|
|
116
|
+
/** Read once by the caller, for example with readSessionPeerConfigAsync. */
|
|
117
|
+
readonly config: SessionPeerConfig | undefined;
|
|
54
118
|
readonly fetch?: typeof fetch;
|
|
55
119
|
}): DoomSessionCommunicationEndpoint;
|
|
56
120
|
//#endregion
|
|
@@ -96,14 +160,14 @@ interface DiscoveredSession extends SessionPresenceFacts {
|
|
|
96
160
|
}
|
|
97
161
|
interface SessionDirectoryOptions {
|
|
98
162
|
readonly now?: () => number;
|
|
99
|
-
readonly authorizeDiscovery: (callerReference: string, subject: Readonly<Pick<SessionPresenceObservation, 'hostId' | 'sessionId' | 'label'>>) => SessionDiscoveryGrant | undefined
|
|
163
|
+
readonly authorizeDiscovery: (callerReference: string, subject: Readonly<Pick<SessionPresenceObservation, 'hostId' | 'sessionId' | 'label'>>) => SessionDiscoveryGrant | undefined | Promise<SessionDiscoveryGrant | undefined>;
|
|
100
164
|
}
|
|
101
165
|
interface SessionDirectory {
|
|
102
166
|
observe(observation: SessionPresenceObservation): boolean;
|
|
103
167
|
replaceHostSnapshot(hostId: string, hostIncarnation: string, observations: readonly SessionPresenceObservation[]): void;
|
|
104
168
|
hostDisconnected(hostId: string): void;
|
|
105
|
-
discover(callerReference: string, allowedReferences?: ReadonlySet<string>): readonly DiscoveredSession[]
|
|
106
|
-
resolveDeliveryTarget(callerReference: string, reference: string): string | undefined
|
|
169
|
+
discover(callerReference: string, allowedReferences?: ReadonlySet<string>): Promise<readonly DiscoveredSession[]>;
|
|
170
|
+
resolveDeliveryTarget(callerReference: string, reference: string): Promise<string | undefined>;
|
|
107
171
|
subscribe(callerReference: string, listener: (sessions: readonly DiscoveredSession[]) => void): () => void;
|
|
108
172
|
}
|
|
109
173
|
//#endregion
|
|
@@ -111,40 +175,9 @@ interface SessionDirectory {
|
|
|
111
175
|
/** In-memory authenticated presence cache. Restart deliberately forgets every observation. */
|
|
112
176
|
export declare function createSessionDirectory(options: SessionDirectoryOptions): SessionDirectory;
|
|
113
177
|
//#endregion
|
|
114
|
-
//#region src/services/sessionGroups/type.d.ts
|
|
115
|
-
interface SessionCommunicationGroup {
|
|
116
|
-
readonly id: string;
|
|
117
|
-
readonly ownerAuthority: string;
|
|
118
|
-
readonly revision: number;
|
|
119
|
-
readonly members: readonly string[];
|
|
120
|
-
}
|
|
121
|
-
interface SessionGroupMutation {
|
|
122
|
-
readonly groupId: string;
|
|
123
|
-
readonly authority: string;
|
|
124
|
-
readonly expectedRevision: number;
|
|
125
|
-
readonly add?: readonly string[];
|
|
126
|
-
readonly remove?: readonly string[];
|
|
127
|
-
}
|
|
128
|
-
interface SessionGroupStoreOptions {
|
|
129
|
-
readonly databasePath: string;
|
|
130
|
-
readonly authorizeManagement?: (authority: string, group: SessionCommunicationGroup) => boolean;
|
|
131
|
-
readonly validateEnrollment?: (groupId: string, memberReference: string) => boolean;
|
|
132
|
-
}
|
|
133
|
-
interface SessionGroupStore {
|
|
134
|
-
create(groupId: string, ownerAuthority: string, members: readonly string[]): SessionCommunicationGroup;
|
|
135
|
-
mutate(mutation: SessionGroupMutation): SessionCommunicationGroup;
|
|
136
|
-
get(groupId: string): SessionCommunicationGroup | undefined;
|
|
137
|
-
groupsFor(memberReference: string): readonly SessionCommunicationGroup[];
|
|
138
|
-
canMessage(groupId: string, sourceReference: string, targetReference: string): boolean;
|
|
139
|
-
close(): void;
|
|
140
|
-
}
|
|
141
|
-
export declare class SessionGroupRevisionError extends Error {
|
|
142
|
-
constructor(groupId: string, expected: number, actual: number);
|
|
143
|
-
}
|
|
144
|
-
//#endregion
|
|
145
178
|
//#region src/services/sessionGroups/index.d.ts
|
|
146
179
|
/** Opens a revisioned SQLite registry for communication-only group membership. */
|
|
147
|
-
export declare function createSessionGroupStore(options: SessionGroupStoreOptions): SessionGroupStore
|
|
180
|
+
export declare function createSessionGroupStore(options: SessionGroupStoreOptions): Promise<SessionGroupStore>;
|
|
148
181
|
//#endregion
|
|
149
182
|
//#region src/services/sessionDelivery/type.d.ts
|
|
150
183
|
export declare const DOOM_SESSION_DELIVERY_SERVICE = "doom/session-delivery";
|
|
@@ -193,19 +226,23 @@ interface DoomSessionDeliveryService {
|
|
|
193
226
|
deliveryId: string;
|
|
194
227
|
}>;
|
|
195
228
|
waitForAdmission(deliveryId: string, timeoutMs?: number): Promise<DoomSessionDeliveryInboxState | undefined>;
|
|
196
|
-
inbox(query?: DoomSessionInboxQuery): readonly DoomSessionInboxEntry[]
|
|
229
|
+
inbox(query?: DoomSessionInboxQuery): Promise<readonly DoomSessionInboxEntry[]>;
|
|
197
230
|
/** Optional host-routed peer envelope admission. Local-only consumers need no transport receiver. */
|
|
198
|
-
receive?(senderKey: string, kind: string, payload: unknown): DoomSessionDeliveryInboxState | undefined
|
|
199
|
-
consume(deliveryId: string): boolean
|
|
200
|
-
outbox(deliveryId: string): DoomSessionOutboxEntry | undefined
|
|
231
|
+
receive?(senderKey: string, kind: string, payload: unknown): Promise<DoomSessionDeliveryInboxState | undefined>;
|
|
232
|
+
consume(deliveryId: string): Promise<boolean>;
|
|
233
|
+
outbox(deliveryId: string): Promise<DoomSessionOutboxEntry | undefined>;
|
|
201
234
|
close(): Promise<void>;
|
|
202
235
|
}
|
|
203
236
|
interface SessionDeliveryServiceOptions {
|
|
204
|
-
|
|
237
|
+
/**
|
|
238
|
+
* Taken over by the service and closed by `close()`. On the edge every open returns the Durable
|
|
239
|
+
* Object's one shared database, so the service's table names must stay unique across that database.
|
|
240
|
+
*/
|
|
241
|
+
readonly database: SessionSqliteDatabase;
|
|
205
242
|
readonly recipientKey: string;
|
|
206
243
|
readonly communication: DoomSessionCommunicationEndpoint;
|
|
207
244
|
/** Host-owned relationship check applied before sends, retries, and recipient acceptance. */
|
|
208
|
-
readonly authorizePeer: (peerKey: string, metadata?: DoomSessionDeliveryMetadata) => boolean
|
|
245
|
+
readonly authorizePeer: (peerKey: string, metadata?: DoomSessionDeliveryMetadata) => boolean | Promise<boolean>;
|
|
209
246
|
readonly admitPrompt: (prompt: string, delivery?: DoomSessionDeliveryMode) => Promise<void>;
|
|
210
247
|
}
|
|
211
248
|
declare module '@deepseek-ai/cordis' {
|
|
@@ -218,7 +255,7 @@ export declare function readDoomSessionDelivery(context: Context): DoomSessionDe
|
|
|
218
255
|
//#endregion
|
|
219
256
|
//#region src/services/sessionDelivery/index.d.ts
|
|
220
257
|
/** Opens and starts one durable delivery endpoint. */
|
|
221
|
-
export declare function createSessionDeliveryService(options: SessionDeliveryServiceOptions): DoomSessionDeliveryService
|
|
258
|
+
export declare function createSessionDeliveryService(options: SessionDeliveryServiceOptions): Promise<DoomSessionDeliveryService>;
|
|
222
259
|
/**
|
|
223
260
|
* Installs a provider-owned endpoint in the current Cordis context.
|
|
224
261
|
*
|
|
@@ -226,10 +263,10 @@ export declare function createSessionDeliveryService(options: SessionDeliverySer
|
|
|
226
263
|
* `ctx.get` is strict and hides an implementation while its providing fiber is
|
|
227
264
|
* LOADING, which is the whole of that fiber's own callback.
|
|
228
265
|
*/
|
|
229
|
-
export declare function provideSessionDeliveryService(context: Context, options: SessionDeliveryServiceOptions): {
|
|
266
|
+
export declare function provideSessionDeliveryService(context: Context, options: SessionDeliveryServiceOptions): Promise<{
|
|
230
267
|
readonly service: DoomSessionDeliveryService;
|
|
231
268
|
readonly close: () => Promise<void>;
|
|
232
|
-
}
|
|
269
|
+
}>;
|
|
233
270
|
//#endregion
|
|
234
271
|
//#region src/services/sessionIntercom/type.d.ts
|
|
235
272
|
export declare const DOOM_SESSION_INTERCOM_SERVICE = "doom/session-intercom";
|
|
@@ -259,7 +296,7 @@ interface SessionIntercomOptions {
|
|
|
259
296
|
readonly delivery: DoomSessionDeliveryService;
|
|
260
297
|
}
|
|
261
298
|
interface SessionIntercom {
|
|
262
|
-
discover(): readonly DiscoveredSession[]
|
|
299
|
+
discover(): Promise<readonly DiscoveredSession[]>;
|
|
263
300
|
send(request: SessionIntercomSendRequest): Promise<{
|
|
264
301
|
deliveryId: string;
|
|
265
302
|
}>;
|
|
@@ -268,14 +305,14 @@ interface SessionIntercom {
|
|
|
268
305
|
}): Promise<{
|
|
269
306
|
deliveryId: string;
|
|
270
307
|
}>;
|
|
271
|
-
messages(): readonly SessionIntercomMessage[]
|
|
272
|
-
delivery(deliveryId: string): DoomSessionOutboxEntry | undefined
|
|
308
|
+
messages(): Promise<readonly SessionIntercomMessage[]>;
|
|
309
|
+
delivery(deliveryId: string): Promise<DoomSessionOutboxEntry | undefined>;
|
|
273
310
|
}
|
|
274
311
|
interface SessionGroupDeliveryAuthorizationOptions {
|
|
275
312
|
readonly selfReference: string;
|
|
276
313
|
readonly groups: SessionGroupStore;
|
|
277
314
|
readonly peerReference: (peerKey: string) => string | undefined;
|
|
278
|
-
readonly fallback?: (peerKey: string, metadata: DoomSessionDeliveryMetadata | undefined) => boolean
|
|
315
|
+
readonly fallback?: (peerKey: string, metadata: DoomSessionDeliveryMetadata | undefined) => boolean | Promise<boolean>;
|
|
279
316
|
}
|
|
280
317
|
declare module '@deepseek-ai/cordis' {
|
|
281
318
|
interface Context {
|
|
@@ -289,7 +326,7 @@ export declare function requireSessionIntercom(context: Context): SessionInterco
|
|
|
289
326
|
/** Agent-facing intercom operations. A composition may acquire this service without gaining session controls. */
|
|
290
327
|
export declare function createSessionIntercom(options: SessionIntercomOptions): SessionIntercom;
|
|
291
328
|
/** Builds the dynamic delivery check used before every send, retry, and recipient acceptance. */
|
|
292
|
-
export declare function createSessionGroupDeliveryAuthorizer(options: SessionGroupDeliveryAuthorizationOptions): (peerKey: string, metadata: DoomSessionDeliveryMetadata | undefined) => boolean
|
|
329
|
+
export declare function createSessionGroupDeliveryAuthorizer(options: SessionGroupDeliveryAuthorizationOptions): (peerKey: string, metadata: DoomSessionDeliveryMetadata | undefined) => Promise<boolean>;
|
|
293
330
|
//#endregion
|
|
294
|
-
export type { DiscoveredSession, DoomSessionDeliveryInboxState, DoomSessionDeliveryMetadata, DoomSessionDeliveryMode, DoomSessionDeliveryRequest, DoomSessionDeliveryService, DoomSessionInboxEntry, DoomSessionInboxQuery, DoomSessionOutboxEntry, RemoteSessionReference, SessionActivityState, SessionCommunicationGroup, SessionDeliveryServiceOptions, SessionDirectory, SessionDirectoryOptions, SessionDiscoveryGrant, SessionGroupDeliveryAuthorizationOptions, SessionGroupMutation, SessionGroupStore, SessionGroupStoreOptions, SessionHostReachability, SessionIntercom, SessionIntercomMessage, SessionIntercomOptions, SessionIntercomSendRequest, SessionPeer, SessionPeerConfig, SessionPeerEnvelope, SessionPeerReplayGuard, SessionPresenceFacts, SessionPresenceObservation, SessionReportStatus, SessionRuntimeState, SessionVoiceReadiness };
|
|
331
|
+
export type { DiscoveredSession, DoomSessionDeliveryInboxState, DoomSessionDeliveryMetadata, DoomSessionDeliveryMode, DoomSessionDeliveryRequest, DoomSessionDeliveryService, DoomSessionInboxEntry, DoomSessionInboxQuery, DoomSessionOutboxEntry, RemoteSessionReference, SessionActivityState, SessionCommunicationGroup, SessionDeliveryServiceOptions, SessionDirectory, SessionDirectoryOptions, SessionDiscoveryGrant, SessionGroupDeliveryAuthorizationOptions, SessionGroupMutation, SessionGroupStore, SessionGroupStoreOptions, SessionHostReachability, SessionIntercom, SessionIntercomMessage, SessionIntercomOptions, SessionIntercomSendRequest, SessionPeer, SessionPeerConfig, SessionPeerEnvelope, SessionPeerReplayGuard, SessionPeerReplayGuardAsync, SessionPresenceFacts, SessionPresenceObservation, SessionReportStatus, SessionRuntimeState, SessionVoiceReadiness };
|
|
295
332
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["_0"],"sources":["../src/services/backgroundWorkService/index.ts","../src/services/peerTransport/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["_0"],"sources":["../src/services/backgroundWorkService/index.ts","../src/services/sessionGroups/type.ts","../src/services/peerTransport/config.ts","../src/services/peerTransport/sync.ts","../src/services/peerTransport/index.ts","../src/services/sessionDirectory/type.ts","../src/services/sessionDirectory/index.ts","../src/services/sessionGroups/index.ts","../src/services/sessionDelivery/type.ts","../src/services/sessionDelivery/index.ts","../src/services/sessionIntercom/type.ts","../src/services/sessionIntercom/index.ts"],"mappings":";;;;;;wBAmBgB,4BAA4B,KAAK,UAAU;;wBAoE3C,6BAA6B,SAAS;;;;KCpF1C,wBAAwB,QAAQ,WAAW;UAEtC;WACN;WACA;WACA;WACA;;UAGM;WACN;WACA;WACA;WACA;WACA;;UAGM;;;;;W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A6B;IAAU;;EACrD,OACE,SAAS;aAAwC,QAAQ;MACxD;IAAU;;EACb,YAAY,iBAAiB;EAC7B,SAAS,qBAAqB,QAAQ;;UAGvB;WACN;WACA,QAAQ;WACR,gBAAgB;WAChB,YACP,iBACA,UAAU,sDACG;;;YAIL;IACR,yBAAyB;;;wBAIb,oBAAoB,SAAS,UAAU;wBAIvC,uBAAuB,SAAS,UAAU;;;;wBC3B1C,sBAAsB,SAAS,yBAAyB;;wBA6ExD,qCACd,SAAS,4CACP,iBAAiB,UAAU,4CAA4C"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DOOM_SESSION_DELIVERY_SERVICE, DOOM_SESSION_INTERCOM_SERVICE, SessionGroupRevisionError, createBackgroundWorkService, createPeerCommunication, createPeerReplayGuard, createSessionDeliveryService, createSessionDirectory, createSessionGroupDeliveryAuthorizer, createSessionGroupStore, createSessionIntercom, parseRemoteSessionReference, peerRequestHeaders, peerSessionReference, provideBackgroundWorkService, provideSessionDeliveryService, readDoomSessionDelivery, readSessionIntercom, readSessionPeerConfig, requireSessionIntercom, sessionPeerConfigPath, verifyPeerRequest };
|
|
1
|
+
export { r as DOOM_SESSION_DELIVERY_SERVICE, s as DOOM_SESSION_INTERCOM_SERVICE, d as SessionGroupRevisionError, E as createBackgroundWorkService, p as createPeerCommunication, S as createPeerReplayGuard, m as createPeerReplayGuardAsync, t as createSessionDeliveryService, f as createSessionDirectory, a as createSessionGroupDeliveryAuthorizer, u as createSessionGroupStore, o as createSessionIntercom, g as parseRemoteSessionReference, v as peerRequestHeaders, y as peerSessionReference, D as provideBackgroundWorkService, n as provideSessionDeliveryService, i as readDoomSessionDelivery, c as readSessionIntercom, C as readSessionPeerConfig, b as readSessionPeerConfigAsync, l as requireSessionIntercom, T as sessionPeerConfigPath, x as verifyPeerRequest } from "./sessionDelivery-BzPl0sCk.mjs";
|