Add gateway-first pattern: when AGILITON_API_KEY is set, route all external API calls through the gateway with X-API-Key auth. Falls back to direct API access when gateway is unavailable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
367 B
TypeScript
11 lines
367 B
TypeScript
import { AddressInfo } from 'node:net';
|
|
import { Options, ServerType } from './types.mjs';
|
|
import 'node:http';
|
|
import 'node:http2';
|
|
import 'node:https';
|
|
|
|
declare const createAdaptorServer: (options: Options) => ServerType;
|
|
declare const serve: (options: Options, listeningListener?: (info: AddressInfo) => void) => ServerType;
|
|
|
|
export { createAdaptorServer, serve };
|