authhero 4.119.0 → 4.120.0

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.
@@ -56421,53 +56421,6 @@ export declare class LocalCodeExecutor implements CodeExecutor {
56421
56421
  timeoutMs?: number;
56422
56422
  }): Promise<CodeExecutionResult>;
56423
56423
  }
56424
- /**
56425
- * Worker Loader binding type (Cloudflare Dynamic Workers).
56426
- * Configure in wrangler.toml:
56427
- * [[worker_loaders]]
56428
- * binding = "LOADER"
56429
- */
56430
- export interface WorkerLoader {
56431
- load(code: WorkerCode): WorkerStub;
56432
- get(id: string, callback: () => Promise<WorkerCode>): WorkerStub;
56433
- }
56434
- export interface WorkerCode {
56435
- compatibilityDate: string;
56436
- mainModule: string;
56437
- modules: Record<string, string>;
56438
- globalOutbound?: null;
56439
- }
56440
- export interface WorkerStub {
56441
- getEntrypoint(): {
56442
- fetch(request: Request): Promise<Response>;
56443
- };
56444
- }
56445
- export interface CloudflareCodeExecutorOptions {
56446
- loader: WorkerLoader;
56447
- compatibilityDate?: string;
56448
- }
56449
- /**
56450
- * Cloudflare Dynamic Workers code executor.
56451
- * Spins up isolated Workers on demand via the Worker Loader binding
56452
- * to execute user-authored hook code in a sandboxed environment.
56453
- *
56454
- * Uses `env.LOADER.get(id, callback)` to cache workers by hookCodeId + code hash,
56455
- * so the same code stays warm across requests while code updates get a fresh worker.
56456
- * Network access is blocked via `globalOutbound: null`.
56457
- */
56458
- export declare class CloudflareCodeExecutor implements CodeExecutor {
56459
- private loader;
56460
- private compatibilityDate;
56461
- constructor(options: CloudflareCodeExecutorOptions);
56462
- execute(params: {
56463
- code: string;
56464
- hookCodeId?: string;
56465
- triggerId: string;
56466
- event: Record<string, unknown>;
56467
- timeoutMs?: number;
56468
- cpuLimitMs?: number;
56469
- }): Promise<CodeExecutionResult>;
56470
- }
56471
56424
  export declare function init(config: AuthHeroConfig): {
56472
56425
  app: OpenAPIHono<{
56473
56426
  Bindings: Bindings;