@hua-labs/tap 0.2.3 → 0.2.5

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/index.d.mts CHANGED
@@ -88,7 +88,7 @@ interface HeadlessConfig {
88
88
  qualitySeverityFloor: "critical" | "high" | "medium";
89
89
  }
90
90
  interface AppServerAuthState {
91
- mode: "query-token";
91
+ mode: "subprotocol" | "query-token";
92
92
  protectedUrl: string;
93
93
  upstreamUrl: string;
94
94
  tokenPath: string;
@@ -442,6 +442,8 @@ declare function getConfig(options?: StateApiOptions): {
442
442
  interface HttpServerOptions extends StateApiOptions {
443
443
  /** Port to listen on (default: 4580) */
444
444
  port?: number;
445
+ /** Pre-set API token (default: auto-generated) */
446
+ token?: string;
445
447
  }
446
448
  /**
447
449
  * Start a localhost-only HTTP server for the tap State API.
@@ -449,6 +451,7 @@ interface HttpServerOptions extends StateApiOptions {
449
451
  */
450
452
  declare function startHttpServer(options?: HttpServerOptions): Promise<{
451
453
  port: number;
454
+ token: string;
452
455
  close: () => Promise<void>;
453
456
  }>;
454
457