@sip-protocol/api 0.1.0 → 0.1.1

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/server.d.ts CHANGED
@@ -1,5 +1,33 @@
1
1
  import { Express } from 'express';
2
2
 
3
+ /**
4
+ * Graceful Shutdown Handler
5
+ *
6
+ * Handles SIGTERM and SIGINT signals to:
7
+ * - Stop accepting new connections
8
+ * - Allow in-flight requests to complete
9
+ * - Clean up resources
10
+ * - Exit gracefully
11
+ */
12
+
13
+ /**
14
+ * Check if server is currently shutting down
15
+ */
16
+ declare function isServerShuttingDown(): boolean;
17
+
18
+ /**
19
+ * SIP Protocol REST API Server
20
+ *
21
+ * Production-ready Express server with:
22
+ * - Structured logging (pino)
23
+ * - Environment validation (envalid)
24
+ * - Graceful shutdown handling
25
+ * - Security middleware (helmet, CORS, rate limiting)
26
+ * - Request authentication
27
+ * - Error monitoring (Sentry)
28
+ * - Metrics collection (Prometheus)
29
+ */
30
+
3
31
  declare const app: Express;
4
32
 
5
- export { app as default };
33
+ export { app as default, isServerShuttingDown };