Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/xspace-agent/packages/core/src/gateway/index.ts

oversteppingca67ed931005
diff --git a/xspace-agent/xspace-agent/packages/core/src/gateway/index.ts b/xspace-agent/xspace-agent/packages/core/src/gateway/index.ts
new file mode 100644
index 000000000..5bc623866
--- /dev/null
+++ b/xspace-agent/xspace-agent/packages/core/src/gateway/index.ts
@@ -0,0 +1,72 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§78]
+
+// =============================================================================
+// API Gateway — Main exports
+// =============================================================================
+
+// Types
+export {
+ API_SCOPES,
+ API_VERSIONS,
+ type ApiScope,
+ type ApiKeyEnvironment,
+ type ParsedApiKey,
+ type ApiVersion,
+ type VersionStatus,
+ type VersionInfo,
+ type ApiErrorType,
+ type ApiErrorBody,
+ type ApiRequestLog,
+ type CreateApiKeyRequest,
+ type CreateApiKeyResponse,
+ type UpdateApiKeyRequest,
+ type ApiKeyInfo,
+ type RotateApiKeyResponse,
+ type AuthenticatedRequest,
+ type GatewayConfig,
+} from './types'
+
+// API Key Service
+export { ApiKeyService } from './api-key-service'
+
+// Errors
+export {
+ ApiError,
+ invalidApiKey,
+ missingApiKey,
+ expiredApiKey,
+ insufficientScope,
+ rateLimitExceeded,
+ validationError,
+ notFoundError,
+ conflictError,
+ internalError,
+} from './errors'
+
+// Middleware
+export {
+ createAuthMiddleware,
+ requireScope,
+ createRateLimitMiddleware,
+ createVersioningMiddleware,
+ createRequestLoggerMiddleware,
+ createErrorHandlerMiddleware,
+ onRequestLog,
+ offRequestLog,
+ clearRequestLogHandlers,
+ type RequestLogHandler,
+} from './middleware'
+
+// Route handlers
+export {
+ createApiKey,
+ listApiKeys,
+ getApiKey,
+ updateApiKey,
+ deleteApiKey,
+ rotateApiKey,
+ getApiStatus,
+} from './routes'
+
+