@pipeline-builder/api-server 4.1.15 → 4.1.16
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/lib/api/app-factory.d.ts +2 -4
- package/lib/api/app-factory.js +198 -172
- package/lib/api/check-quota.js +2 -1
- package/lib/api/idempotency-middleware.js +27 -31
- package/lib/api/index.d.ts +1 -1
- package/lib/api/index.js +2 -2
- package/lib/api/meter-quota.d.ts +6 -7
- package/lib/api/meter-quota.js +7 -8
- package/lib/api/metrics.js +6 -6
- package/lib/api/mongo-connect.js +5 -5
- package/lib/api/quota-reservation.d.ts +52 -0
- package/lib/api/quota-reservation.js +56 -0
- package/lib/api/rate-limit-by-org.d.ts +10 -0
- package/lib/api/rate-limit-by-org.js +8 -3
- package/lib/api/require-org-id.d.ts +1 -1
- package/lib/api/require-org-id.js +4 -4
- package/lib/api/route-wrapper.js +5 -5
- package/lib/api/server.js +22 -10
- package/lib/api/tenant-context.d.ts +5 -6
- package/lib/api/tenant-context.js +4 -4
- package/lib/http/sse-connection-manager.d.ts +2 -2
- package/lib/http/sse-connection-manager.js +13 -12
- package/lib/markdown.d.ts +13 -0
- package/lib/markdown.js +111 -0
- package/lib/testing/exports.json +39 -0
- package/package.json +27 -9
- package/lib/api/quota-helpers.d.ts +0 -22
- package/lib/api/quota-helpers.js +0 -23
package/lib/api/app-factory.d.ts
CHANGED
|
@@ -38,15 +38,13 @@ export interface CreateAppOptions {
|
|
|
38
38
|
logStream?: boolean;
|
|
39
39
|
/** Health check dependency checker — if provided, /health reports dependency status */
|
|
40
40
|
checkDependencies?: () => Promise<Record<string, 'connected' | 'disconnected' | 'unknown'>>;
|
|
41
|
-
/** Enable OpenAPI spec at /docs/openapi.json and Swagger UI at /docs (default: true) */
|
|
42
41
|
/**
|
|
43
42
|
* Serve the OpenAPI spec at `/docs/openapi.json` and Swagger UI at `/docs`.
|
|
44
43
|
*
|
|
45
44
|
* Defaults to OFF under `NODE_ENV=production`: the routes are registered above
|
|
46
|
-
* the rate limiter and
|
|
45
|
+
* the rate limiter and are not auth-gated, so in production they would publish
|
|
47
46
|
* the full route + schema inventory of every service to anyone who could reach
|
|
48
|
-
* the port.
|
|
49
|
-
* Pass `true` explicitly to serve them in production anyway.
|
|
47
|
+
* the port. Pass `true` explicitly to serve them in production anyway.
|
|
50
48
|
*/
|
|
51
49
|
enableOpenApi?: boolean;
|
|
52
50
|
/** OpenAPI spec customization options */
|