@elizaos/server 1.4.4 → 1.5.0
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/api/agents/crud.d.ts +8 -0
- package/dist/api/agents/crud.d.ts.map +1 -0
- package/dist/api/agents/index.d.ts +8 -0
- package/dist/api/agents/index.d.ts.map +1 -0
- package/dist/api/agents/lifecycle.d.ts +8 -0
- package/dist/api/agents/lifecycle.d.ts.map +1 -0
- package/dist/api/agents/logs.d.ts +7 -0
- package/dist/api/agents/logs.d.ts.map +1 -0
- package/dist/api/agents/panels.d.ts +7 -0
- package/dist/api/agents/panels.d.ts.map +1 -0
- package/dist/api/agents/worlds.d.ts +7 -0
- package/dist/api/agents/worlds.d.ts.map +1 -0
- package/dist/api/audio/audioBuffer.d.ts +18 -0
- package/dist/api/audio/audioBuffer.d.ts.map +1 -0
- package/dist/api/audio/conversation.d.ts +7 -0
- package/dist/api/audio/conversation.d.ts.map +1 -0
- package/dist/api/audio/index.d.ts +7 -0
- package/dist/api/audio/index.d.ts.map +1 -0
- package/dist/api/audio/processing.d.ts +10 -0
- package/dist/api/audio/processing.d.ts.map +1 -0
- package/dist/api/audio/synthesis.d.ts +7 -0
- package/dist/api/audio/synthesis.d.ts.map +1 -0
- package/dist/api/index.d.ts +20 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/media/agents.d.ts +6 -0
- package/dist/api/media/agents.d.ts.map +1 -0
- package/dist/api/media/channels.d.ts +6 -0
- package/dist/api/media/channels.d.ts.map +1 -0
- package/dist/api/media/index.d.ts +6 -0
- package/dist/api/media/index.d.ts.map +1 -0
- package/dist/api/memory/agents.d.ts +7 -0
- package/dist/api/memory/agents.d.ts.map +1 -0
- package/dist/api/memory/groups.d.ts +8 -0
- package/dist/api/memory/groups.d.ts.map +1 -0
- package/dist/api/memory/index.d.ts +8 -0
- package/dist/api/memory/index.d.ts.map +1 -0
- package/dist/api/memory/rooms.d.ts +7 -0
- package/dist/api/memory/rooms.d.ts.map +1 -0
- package/dist/api/messaging/channels.d.ts +8 -0
- package/dist/api/messaging/channels.d.ts.map +1 -0
- package/dist/api/messaging/core.d.ts +7 -0
- package/dist/api/messaging/core.d.ts.map +1 -0
- package/dist/api/messaging/errors/SessionErrors.d.ts +149 -0
- package/dist/api/messaging/errors/SessionErrors.d.ts.map +1 -0
- package/dist/api/messaging/index.d.ts +8 -0
- package/dist/api/messaging/index.d.ts.map +1 -0
- package/dist/api/messaging/servers.d.ts +7 -0
- package/dist/api/messaging/servers.d.ts.map +1 -0
- package/dist/api/messaging/sessions.d.ts +23 -0
- package/dist/api/messaging/sessions.d.ts.map +1 -0
- package/dist/api/runtime/debug.d.ts +7 -0
- package/dist/api/runtime/debug.d.ts.map +1 -0
- package/dist/api/runtime/health.d.ts +8 -0
- package/dist/api/runtime/health.d.ts.map +1 -0
- package/dist/api/runtime/index.d.ts +8 -0
- package/dist/api/runtime/index.d.ts.map +1 -0
- package/dist/api/runtime/logging.d.ts +6 -0
- package/dist/api/runtime/logging.d.ts.map +1 -0
- package/dist/api/shared/constants.d.ts +22 -0
- package/dist/api/shared/constants.d.ts.map +1 -0
- package/dist/api/shared/file-utils.d.ts +21 -0
- package/dist/api/shared/file-utils.d.ts.map +1 -0
- package/dist/api/shared/index.d.ts +7 -0
- package/dist/api/shared/index.d.ts.map +1 -0
- package/dist/api/shared/middleware.d.ts +40 -0
- package/dist/api/shared/middleware.d.ts.map +1 -0
- package/dist/api/shared/response-utils.d.ts +10 -0
- package/dist/api/shared/response-utils.d.ts.map +1 -0
- package/dist/api/shared/uploads/index.d.ts +2 -0
- package/dist/api/shared/uploads/index.d.ts.map +1 -0
- package/dist/api/shared/validation.d.ts +27 -0
- package/dist/api/shared/validation.d.ts.map +1 -0
- package/dist/api/system/environment.d.ts +24 -0
- package/dist/api/system/environment.d.ts.map +1 -0
- package/dist/api/system/index.d.ts +6 -0
- package/dist/api/system/index.d.ts.map +1 -0
- package/dist/api/system/version.d.ts +6 -0
- package/dist/api/system/version.d.ts.map +1 -0
- package/dist/api/tee/index.d.ts +6 -0
- package/dist/api/tee/index.d.ts.map +1 -0
- package/dist/api/tee/tee.d.ts +1 -0
- package/dist/api/tee/tee.d.ts.map +1 -0
- package/dist/authMiddleware.d.ts +16 -0
- package/dist/authMiddleware.d.ts.map +1 -0
- package/dist/bus.d.ts +31 -0
- package/dist/bus.d.ts.map +1 -0
- package/dist/index.d.ts +13 -258
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3506 -3054
- package/dist/loader.d.ts +49 -0
- package/dist/loader.d.ts.map +1 -0
- package/dist/scripts/copy-client-dist.d.ts +2 -0
- package/dist/scripts/copy-client-dist.d.ts.map +1 -0
- package/dist/services/message.d.ts +49 -0
- package/dist/services/message.d.ts.map +1 -0
- package/dist/socketio/index.d.ts +23 -0
- package/dist/socketio/index.d.ts.map +1 -0
- package/dist/types/sessions.d.ts +153 -0
- package/dist/types/sessions.d.ts.map +1 -0
- package/dist/types.d.ts +52 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/upload.d.ts +16 -0
- package/dist/upload.d.ts.map +1 -0
- package/package.json +8 -8
- package/dist/client/assets/index-DESjREgK.css +0 -1
- package/dist/client/assets/index-DESjREgK.css.br +0 -0
- package/dist/client/assets/index-l7vDDpLb.js +0 -160469
- package/dist/client/assets/index-l7vDDpLb.js.br +0 -0
- package/dist/client/assets/index-l7vDDpLb.js.map +0 -1
- package/dist/client/assets/vendor-BWzYG1ky.js +0 -3124
- package/dist/client/assets/vendor-BWzYG1ky.js.br +0 -0
- package/dist/client/assets/vendor-BWzYG1ky.js.map +0 -1
- package/dist/client/elizaos-avatar.png +0 -0
- package/dist/client/elizaos-icon.png +0 -0
- package/dist/client/elizaos-logo-light.png +0 -0
- package/dist/client/elizaos.webp +0 -0
- package/dist/client/favicon.ico +0 -0
- package/dist/client/images/agents/agent1.png +0 -0
- package/dist/client/images/agents/agent2.png +0 -0
- package/dist/client/images/agents/agent3.png +0 -0
- package/dist/client/images/agents/agent4.png +0 -0
- package/dist/client/images/agents/agent5.png +0 -0
- package/dist/client/index.html +0 -24
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Agent CRUD operations
|
|
6
|
+
*/
|
|
7
|
+
export declare function createAgentCrudRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=crud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crud.d.ts","sourceRoot":"","sources":["../../../src/api/agents/crud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAS3E,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CA2VhB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Creates the agents router for agent lifecycle and management operations
|
|
6
|
+
*/
|
|
7
|
+
export declare function agentsRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS/C;;GAEG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAwBhB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Agent lifecycle operations (start, stop, status)
|
|
6
|
+
*/
|
|
7
|
+
export declare function createAgentLifecycleRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/api/agents/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAoFhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/api/agents/logs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAO,MAAM,eAAe,CAAC;AAE9D,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CA8GtF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Agent panels and plugin routes management
|
|
5
|
+
*/
|
|
6
|
+
export declare function createAgentPanelsRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
7
|
+
//# sourceMappingURL=panels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panels.d.ts","sourceRoot":"","sources":["../../../src/api/agents/panels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAyCxF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Agent world management operations
|
|
5
|
+
*/
|
|
6
|
+
export declare function createAgentWorldsRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
7
|
+
//# sourceMappingURL=worlds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worlds.d.ts","sourceRoot":"","sources":["../../../src/api/agents/worlds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAyIxF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines the appropriate MIME type for audio data based on its format.
|
|
3
|
+
* Detects WAV files by checking for the RIFF header signature.
|
|
4
|
+
*
|
|
5
|
+
* @param audioBuffer - The audio data buffer to check
|
|
6
|
+
* @returns The appropriate MIME type string
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAudioMimeType(audioBuffer: Buffer): string;
|
|
9
|
+
/**
|
|
10
|
+
* Result of audio processing containing the buffer and MIME type
|
|
11
|
+
*/
|
|
12
|
+
export interface AudioProcessingResult {
|
|
13
|
+
buffer: Buffer;
|
|
14
|
+
mimeType: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function convertToAudioBuffer(speechResponse: any): Promise<Buffer>;
|
|
17
|
+
export declare function convertToAudioBuffer(speechResponse: any, detectMimeType: true): Promise<AudioProcessingResult>;
|
|
18
|
+
//# sourceMappingURL=audioBuffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audioBuffer.d.ts","sourceRoot":"","sources":["../../../src/api/audio/audioBuffer.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAyB5D;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACjF,wBAAsB,oBAAoB,CACxC,cAAc,EAAE,GAAG,EACnB,cAAc,EAAE,IAAI,GACnB,OAAO,CAAC,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Speech conversation functionality
|
|
5
|
+
*/
|
|
6
|
+
export declare function createConversationRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
7
|
+
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/api/audio/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAmB,MAAM,eAAe,CAAC;AAU1E,OAAO,OAAO,MAAM,SAAS,CAAC;AAI9B;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAgJzF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Creates the audio router for speech and audio processing
|
|
5
|
+
*/
|
|
6
|
+
export declare function audioRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/audio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAK9B;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAa5E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Securely validates a file path to prevent path traversal attacks
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Audio processing functionality - upload and transcription
|
|
8
|
+
*/
|
|
9
|
+
export declare function createAudioProcessingRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
10
|
+
//# sourceMappingURL=processing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processing.d.ts","sourceRoot":"","sources":["../../../src/api/audio/processing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAc9B;;GAEG;AAGH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CA2I5F"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Text-to-speech synthesis functionality
|
|
5
|
+
*/
|
|
6
|
+
export declare function createSynthesisRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
7
|
+
//# sourceMappingURL=synthesis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synthesis.d.ts","sourceRoot":"","sources":["../../../src/api/audio/synthesis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAI9B;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAkGtF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import http from 'node:http';
|
|
4
|
+
import { Server as SocketIOServer } from 'socket.io';
|
|
5
|
+
import type { AgentServer } from '../index';
|
|
6
|
+
/**
|
|
7
|
+
* Sets up Socket.io server for real-time messaging
|
|
8
|
+
* @param server HTTP Server instance
|
|
9
|
+
* @param agents Map of agent runtimes
|
|
10
|
+
*/
|
|
11
|
+
export declare function setupSocketIO(server: http.Server, agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): SocketIOServer;
|
|
12
|
+
export declare function createPluginRouteHandler(agents: Map<UUID, IAgentRuntime>): express.RequestHandler;
|
|
13
|
+
/**
|
|
14
|
+
* Creates an API router with various endpoints and middleware.
|
|
15
|
+
* @param {Map<UUID, IAgentRuntime>} agents - Map of agents with UUID as key and IAgentRuntime as value.
|
|
16
|
+
* @param {AgentServer} [server] - Optional AgentServer instance.
|
|
17
|
+
* @returns {express.Router} The configured API router.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createApiRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAkB5C;;;;GAIG;AAIH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,cAAc,CAkBhB;AAyCD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,cAAc,CAuRjG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAuEhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/api/media/agents.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAkD9B;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAsDvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/api/media/channels.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAoD9B;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAwDzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAI9B;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAAC,MAAM,CAU5C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Agent memory management functionality
|
|
5
|
+
*/
|
|
6
|
+
export declare function createAgentMemoryRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
7
|
+
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/api/memory/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAA0B,MAAM,eAAe,CAAC;AAGjF,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CA4SxF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Group and world memory management functionality
|
|
6
|
+
*/
|
|
7
|
+
export declare function createGroupMemoryRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/api/memory/groups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAQ,IAAI,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CA4JhB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Creates the memory router for memory and knowledge management
|
|
6
|
+
*/
|
|
7
|
+
export declare function memoryRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/memory/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C;;GAEG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAahB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* Room management functionality for agents
|
|
5
|
+
*/
|
|
6
|
+
export declare function createRoomManagementRouter(agents: Map<UUID, IAgentRuntime>): express.Router;
|
|
7
|
+
//# sourceMappingURL=rooms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rooms.d.ts","sourceRoot":"","sources":["../../../src/api/memory/rooms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAQ,IAAI,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,OAAO,MAAM,SAAS,CAAC;AAU9B;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,MAAM,CAgL3F"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IAgentRuntime, type UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Channel management functionality
|
|
6
|
+
*/
|
|
7
|
+
export declare function createChannelsRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=channels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/api/messaging/channels.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EAKb,KAAK,IAAI,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAwD/C;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAq9BhB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import type { AgentServer } from '../../index';
|
|
3
|
+
/**
|
|
4
|
+
* Core messaging functionality - message submission and ingestion
|
|
5
|
+
*/
|
|
6
|
+
export declare function createMessagingCoreRouter(serverInstance: AgentServer): express.Router;
|
|
7
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/api/messaging/core.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAkMrF"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session-specific error types for better error handling and debugging
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base class for all session-related errors
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class SessionError extends Error {
|
|
8
|
+
readonly code: string;
|
|
9
|
+
readonly statusCode: number;
|
|
10
|
+
readonly details?: any;
|
|
11
|
+
readonly timestamp: Date;
|
|
12
|
+
constructor(code: string, message: string, statusCode?: number, details?: any);
|
|
13
|
+
/**
|
|
14
|
+
* Convert error to JSON for API responses
|
|
15
|
+
*/
|
|
16
|
+
toJSON(): {
|
|
17
|
+
error: {
|
|
18
|
+
details?: any;
|
|
19
|
+
stack?: string | undefined;
|
|
20
|
+
code: string;
|
|
21
|
+
message: string;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Error thrown when a session is not found
|
|
28
|
+
*/
|
|
29
|
+
export declare class SessionNotFoundError extends SessionError {
|
|
30
|
+
constructor(sessionId: string, details?: any);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Error thrown when a session has expired
|
|
34
|
+
*/
|
|
35
|
+
export declare class SessionExpiredError extends SessionError {
|
|
36
|
+
constructor(sessionId: string, expiredAt?: Date, details?: any);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Error thrown when session creation fails
|
|
40
|
+
*/
|
|
41
|
+
export declare class SessionCreationError extends SessionError {
|
|
42
|
+
constructor(reason: string, details?: any);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Error thrown when an agent is not found
|
|
46
|
+
*/
|
|
47
|
+
export declare class AgentNotFoundError extends SessionError {
|
|
48
|
+
constructor(agentId: string, details?: any);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Error thrown when input validation fails
|
|
52
|
+
*/
|
|
53
|
+
export declare class ValidationError extends SessionError {
|
|
54
|
+
readonly field?: string;
|
|
55
|
+
readonly value?: any;
|
|
56
|
+
constructor(message: string, field?: string, value?: any, details?: any);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Error thrown when a UUID is invalid
|
|
60
|
+
*/
|
|
61
|
+
export declare class InvalidUuidError extends ValidationError {
|
|
62
|
+
constructor(field: string, value: string);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Error thrown when required fields are missing
|
|
66
|
+
*/
|
|
67
|
+
export declare class MissingFieldsError extends ValidationError {
|
|
68
|
+
constructor(fields: string[]);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Error thrown when content validation fails
|
|
72
|
+
*/
|
|
73
|
+
export declare class InvalidContentError extends ValidationError {
|
|
74
|
+
constructor(reason: string, content?: any);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Error thrown when metadata validation fails
|
|
78
|
+
*/
|
|
79
|
+
export declare class InvalidMetadataError extends ValidationError {
|
|
80
|
+
constructor(reason: string, metadata?: any);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Error thrown when pagination parameters are invalid
|
|
84
|
+
*/
|
|
85
|
+
export declare class InvalidPaginationError extends ValidationError {
|
|
86
|
+
constructor(parameter: string, value: any, reason: string);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Error thrown when timeout configuration is invalid
|
|
90
|
+
*/
|
|
91
|
+
export declare class InvalidTimeoutConfigError extends ValidationError {
|
|
92
|
+
constructor(reason: string, config?: any);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Error thrown when a session cannot be renewed
|
|
96
|
+
*/
|
|
97
|
+
export declare class SessionRenewalError extends SessionError {
|
|
98
|
+
constructor(sessionId: string, reason: string, details?: any);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Error thrown when session deletion fails
|
|
102
|
+
*/
|
|
103
|
+
export declare class SessionDeletionError extends SessionError {
|
|
104
|
+
constructor(sessionId: string, reason: string, details?: any);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Error thrown when message sending fails
|
|
108
|
+
*/
|
|
109
|
+
export declare class MessageSendError extends SessionError {
|
|
110
|
+
constructor(sessionId: string, reason: string, details?: any);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Error thrown when message retrieval fails
|
|
114
|
+
*/
|
|
115
|
+
export declare class MessageRetrievalError extends SessionError {
|
|
116
|
+
constructor(sessionId: string, reason: string, details?: any);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Error thrown when database operations fail
|
|
120
|
+
*/
|
|
121
|
+
export declare class DatabaseError extends SessionError {
|
|
122
|
+
constructor(operation: string, reason: string, details?: any);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Error thrown when session limit is exceeded
|
|
126
|
+
*/
|
|
127
|
+
export declare class SessionLimitExceededError extends SessionError {
|
|
128
|
+
constructor(limit: number, current: number, details?: any);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Error thrown when rate limit is exceeded
|
|
132
|
+
*/
|
|
133
|
+
export declare class RateLimitError extends SessionError {
|
|
134
|
+
readonly retryAfter?: number;
|
|
135
|
+
constructor(message: string, retryAfter?: number, details?: any);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Error handler utility for Express middleware
|
|
139
|
+
*/
|
|
140
|
+
export declare function createErrorHandler(): (err: Error, _req: any, res: any, next: any) => any;
|
|
141
|
+
/**
|
|
142
|
+
* Type guard to check if an error is a SessionError
|
|
143
|
+
*/
|
|
144
|
+
export declare function isSessionError(error: unknown): error is SessionError;
|
|
145
|
+
/**
|
|
146
|
+
* Type guard to check if an error is a validation error
|
|
147
|
+
*/
|
|
148
|
+
export declare function isValidationError(error: unknown): error is ValidationError;
|
|
149
|
+
//# sourceMappingURL=SessionErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionErrors.d.ts","sourceRoot":"","sources":["../../../../src/api/messaging/errors/SessionErrors.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Creates the messaging router for all communication functionality
|
|
6
|
+
*/
|
|
7
|
+
export declare function messagingRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/messaging/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM/C;;GAEG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAoBhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../../src/api/messaging/servers.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAmN/E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type UUID, type IAgentRuntime } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Extended Router interface with cleanup method
|
|
6
|
+
*/
|
|
7
|
+
export interface SessionRouter extends express.Router {
|
|
8
|
+
/**
|
|
9
|
+
* Cleanup function to properly dispose of resources
|
|
10
|
+
* Should be called when the router is being destroyed or replaced
|
|
11
|
+
*/
|
|
12
|
+
cleanup: () => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Creates a unified sessions router for simplified messaging
|
|
16
|
+
* This abstracts away the complexity of servers/channels for simple use cases
|
|
17
|
+
*
|
|
18
|
+
* @param agents - Map of agent IDs to runtime instances
|
|
19
|
+
* @param serverInstance - The server instance for message handling
|
|
20
|
+
* @returns Router with cleanup method to prevent memory leaks
|
|
21
|
+
*/
|
|
22
|
+
export declare function createSessionsRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): SessionRouter;
|
|
23
|
+
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/api/messaging/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,IAAI,EAAE,KAAK,aAAa,EAAe,MAAM,eAAe,CAAC;AACjG,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAsB,MAAM,aAAa,CAAC;AA6BnE;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,OAAO,CAAC,MAAM;IACnD;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AA+cD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,aAAa,CA0uBf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/api/runtime/debug.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAqB7E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Health monitoring and status endpoints
|
|
6
|
+
*/
|
|
7
|
+
export declare function createHealthRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=health.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/api/runtime/health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAoDhB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentRuntime, UUID } from '@elizaos/core';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import type { AgentServer } from '../../index';
|
|
4
|
+
/**
|
|
5
|
+
* Creates the runtime router for system operations and health monitoring
|
|
6
|
+
*/
|
|
7
|
+
export declare function runtimeRouter(agents: Map<UUID, IAgentRuntime>, serverInstance: AgentServer): express.Router;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,EAChC,cAAc,EAAE,WAAW,GAC1B,OAAO,CAAC,MAAM,CAahB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/api/runtime/logging.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AA8B9B;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAAC,MAAM,CA4JpD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared constants for the API server
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Maximum file size allowed for uploads (50MB)
|
|
6
|
+
* Used across various endpoints including audio processing,
|
|
7
|
+
* media uploads, and multer configurations
|
|
8
|
+
*/
|
|
9
|
+
export declare const MAX_FILE_SIZE: number;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum file size in human-readable format
|
|
12
|
+
*/
|
|
13
|
+
export declare const MAX_FILE_SIZE_DISPLAY = "50MB";
|
|
14
|
+
/**
|
|
15
|
+
* Valid MIME types for audio files
|
|
16
|
+
*/
|
|
17
|
+
export declare const ALLOWED_AUDIO_MIME_TYPES: readonly ["audio/mpeg", "audio/mp3", "audio/wav", "audio/ogg", "audio/webm", "audio/mp4", "audio/aac", "audio/flac", "audio/x-wav", "audio/wave"];
|
|
18
|
+
/**
|
|
19
|
+
* Valid MIME types for media files (includes audio, images, documents)
|
|
20
|
+
*/
|
|
21
|
+
export declare const ALLOWED_MEDIA_MIME_TYPES: readonly ["audio/mpeg", "audio/mp3", "audio/wav", "audio/ogg", "audio/webm", "audio/mp4", "audio/aac", "audio/flac", "audio/x-wav", "audio/wave", "image/jpeg", "image/png", "image/gif", "image/webp", "video/mp4", "video/webm", "application/pdf", "text/plain"];
|
|
22
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/api/shared/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAmB,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,wBAAwB,mJAW3B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,wBAAwB,qQAU3B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Safely constructs and validates upload directory paths to prevent path traversal attacks
|
|
3
|
+
*/
|
|
4
|
+
export declare function createSecureUploadDir(id: string, type: 'agents' | 'channels'): string;
|
|
5
|
+
/**
|
|
6
|
+
* Sanitizes a filename by removing dangerous characters and normalizing it
|
|
7
|
+
*/
|
|
8
|
+
export declare function sanitizeFilename(filename: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Safely cleans up a file by removing it from the filesystem
|
|
11
|
+
*/
|
|
12
|
+
export declare const cleanupFile: (filePath: string) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Cleans up multiple multer files
|
|
15
|
+
*/
|
|
16
|
+
export declare const cleanupFiles: (files: Express.Multer.File[]) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Cleans up a multer file (no-op for memory storage)
|
|
19
|
+
*/
|
|
20
|
+
export declare const cleanupUploadedFile: (file: Express.Multer.File) => void;
|
|
21
|
+
//# sourceMappingURL=file-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-utils.d.ts","sourceRoot":"","sources":["../../../src/api/shared/file-utils.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAmBrF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CA2BzD;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,SAc3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,SAQxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,MAAM,CAAC,IAAI,SAG5D,CAAC"}
|