import { BosConfig, BosConfigInput, JsonValue, RuntimeConfig } from "./types.mjs"; import { z } from "./sdk.mjs"; import { AppOrchestrator, ServiceDescriptor } from "./service-descriptor.mjs"; import { EventEmitter } from "node:events"; //#region src/plugin.d.ts interface DevSessionData { orchestrator: AppOrchestrator; services: Map; runtimeConfig: RuntimeConfig; } interface StartSummary { configSource: string; configSourceHttp?: string; account: string; domain?: string; modules: { host?: string; ui?: string; api?: string; auth?: string; }; warnings: string[]; } type ProgressEvent = { phase: string; status: "running" | "done" | "error"; durationMs?: number; message?: string; }; declare const pluginEvents: EventEmitter<[never]>; declare function consumeDevSession(): (DevSessionData & { summary?: StartSummary; }) | null; declare function resolveRemoteConfigChain(accountId: string, gatewayId: string, visited: Set): Promise; declare const _default: import("every-plugin").LoadedPluginWithBinding<{ dev: import("@orpc/contract").ContractProcedure>; ui: z.ZodDefault>; api: z.ZodDefault>; auth: z.ZodDefault>; remotePlugins: z.ZodOptional>; proxy: z.ZodDefault; ssr: z.ZodDefault; port: z.ZodOptional; apiPort: z.ZodOptional; uiPort: z.ZodOptional; authPort: z.ZodOptional; pluginPortStart: z.ZodOptional; interactive: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ started: "started"; error: "error"; }>; description: z.ZodString; processes: z.ZodArray; timings: z.ZodOptional>>; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; start: import("@orpc/contract").ContractProcedure; interactive: z.ZodOptional; account: z.ZodOptional; domain: z.ZodOptional; env: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; running: "running"; }>; url: z.ZodString; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; build: import("@orpc/contract").ContractProcedure; force: z.ZodDefault; deploy: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ success: "success"; error: "error"; }>; built: z.ZodArray; skipped: z.ZodOptional>; deployed: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; config: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ config: z.ZodNullable>, z.ZodObject<{ account: z.ZodString; extends: z.ZodOptional; production: z.ZodOptional; staging: z.ZodOptional; }, z.core.$strip>]>>; domain: z.ZodOptional; title: z.ZodOptional; description: z.ZodOptional; testnet: z.ZodOptional; staging: z.ZodOptional>; repository: z.ZodOptional; ci: z.ZodOptional>; }, z.core.$strip>>; plugins: z.ZodOptional; production: z.ZodOptional; staging: z.ZodOptional; }, z.core.$strip>]>>; name: z.ZodOptional; development: z.ZodOptional; production: z.ZodOptional; integrity: z.ZodOptional; proxy: z.ZodOptional; variables: z.ZodOptional>>>; secrets: z.ZodOptional>; routes: z.ZodOptional>; shared: z.ZodOptional; singleton: z.ZodOptional; eager: z.ZodOptional; strictVersion: z.ZodOptional; shareScope: z.ZodOptional; }, z.core.$strip>>>; version: z.ZodOptional; app: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>]>>>; app: z.ZodObject<{ host: z.ZodObject<{ development: z.ZodString; production: z.ZodString; integrity: z.ZodOptional; secrets: z.ZodOptional>; }, z.core.$strip>; ui: z.ZodObject<{ name: z.ZodOptional; development: z.ZodOptional; production: z.ZodOptional; integrity: z.ZodOptional; ssr: z.ZodOptional; ssrIntegrity: z.ZodOptional; }, z.core.$strict>; api: z.ZodObject<{ extends: z.ZodOptional; production: z.ZodOptional; staging: z.ZodOptional; }, z.core.$strip>]>>; name: z.ZodOptional; development: z.ZodOptional; production: z.ZodOptional; integrity: z.ZodOptional; proxy: z.ZodOptional; variables: z.ZodOptional>>>; secrets: z.ZodOptional>; routes: z.ZodOptional>; shared: z.ZodOptional; singleton: z.ZodOptional; eager: z.ZodOptional; strictVersion: z.ZodOptional; shareScope: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; auth: z.ZodOptional; production: z.ZodOptional; staging: z.ZodOptional; }, z.core.$strip>]>>; name: z.ZodOptional; development: z.ZodOptional; production: z.ZodOptional; integrity: z.ZodOptional; proxy: z.ZodOptional; variables: z.ZodOptional>>>; secrets: z.ZodOptional>; routes: z.ZodOptional>; shared: z.ZodOptional; singleton: z.ZodOptional; eager: z.ZodOptional; strictVersion: z.ZodOptional; shareScope: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>]>>; packages: z.ZodArray; remotes: z.ZodArray; full: z.ZodDefault; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; pluginAdd: import("@orpc/contract").ContractProcedure; production: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; added: "added"; }>; key: z.ZodString; development: z.ZodOptional; production: z.ZodOptional; integrity: z.ZodOptional; version: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; pluginRemove: import("@orpc/contract").ContractProcedure, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; removed: "removed"; }>; key: z.ZodString; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; pluginList: import("@orpc/contract").ContractProcedure, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; listed: "listed"; }>; plugins: z.ZodArray; production: z.ZodOptional; localPath: z.ZodOptional; source: z.ZodEnum<{ local: "local"; remote: "remote"; }>; integrity: z.ZodOptional; version: z.ZodOptional; name: z.ZodOptional; }, z.core.$strip>>; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; pluginPublish: import("@orpc/contract").ContractProcedure, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; published: "published"; }>; key: z.ZodString; path: z.ZodOptional; script: z.ZodOptional; production: z.ZodOptional; integrity: z.ZodOptional; version: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; publish: import("@orpc/contract").ContractProcedure; dryRun: z.ZodDefault; verbose: z.ZodDefault; packages: z.ZodDefault; network: z.ZodOptional>; privateKey: z.ZodOptional; env: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; published: "published"; "dry-run": "dry-run"; }>; registryUrl: z.ZodString; txHash: z.ZodOptional; error: z.ZodOptional; built: z.ZodOptional>; skipped: z.ZodOptional>; deployResults: z.ZodOptional; success: z.ZodBoolean; url: z.ZodOptional; error: z.ZodOptional; warnings: z.ZodOptional>; durationMs: z.ZodOptional; retried: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; deploy: import("@orpc/contract").ContractProcedure>; build: z.ZodDefault; dryRun: z.ZodDefault; verbose: z.ZodDefault; packages: z.ZodDefault; network: z.ZodOptional>; privateKey: z.ZodOptional; service: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; deployed: "deployed"; published: "published"; "dry-run": "dry-run"; }>; registryUrl: z.ZodString; txHash: z.ZodOptional; built: z.ZodOptional>; skipped: z.ZodOptional>; redeployed: z.ZodBoolean; service: z.ZodOptional; error: z.ZodOptional; deployResults: z.ZodOptional; success: z.ZodBoolean; url: z.ZodOptional; error: z.ZodOptional; warnings: z.ZodOptional>; durationMs: z.ZodOptional; retried: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; keyPublish: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; published: "published"; }>; account: z.ZodString; network: z.ZodEnum<{ testnet: "testnet"; mainnet: "mainnet"; }>; contract: z.ZodString; allowance: z.ZodString; functionNames: z.ZodArray; publicKey: z.ZodOptional; privateKey: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; init: import("@orpc/contract").ContractProcedure; directory: z.ZodOptional; account: z.ZodOptional; domain: z.ZodOptional; source: z.ZodOptional; plugins: z.ZodOptional>; overrides: z.ZodOptional>>; noInteractive: z.ZodDefault; noInstall: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; initialized: "initialized"; }>; directory: z.ZodString; extendsRef: z.ZodString; account: z.ZodOptional; domain: z.ZodOptional; extends: z.ZodString; plugins: z.ZodOptional>; overrides: z.ZodOptional>>; filesCopied: z.ZodNumber; timings: z.ZodOptional>>; targetDir: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; sync: import("@orpc/contract").ContractProcedure; noInstall: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; "dry-run": "dry-run"; synced: "synced"; }>; updated: z.ZodArray; skipped: z.ZodArray; added: z.ZodArray; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; upgrade: import("@orpc/contract").ContractProcedure; noInstall: z.ZodDefault; noSync: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; "dry-run": "dry-run"; upgraded: "upgraded"; }>; packages: z.ZodArray; to: z.ZodString; }, z.core.$strip>>; sync: z.ZodOptional; updated: z.ZodArray; skipped: z.ZodArray; added: z.ZodArray; error: z.ZodOptional; }, z.core.$strip>>; migrated: z.ZodOptional>; availablePlugins: z.ZodOptional>; selectedPlugins: z.ZodOptional>; timings: z.ZodOptional>>; changelogUrl: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; status: import("@orpc/contract").ContractProcedure, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; ok: "ok"; }>; extends: z.ZodOptional; account: z.ZodOptional; domain: z.ZodOptional; packages: z.ZodArray; latest: z.ZodOptional; isLinked: z.ZodOptional; specifier: z.ZodOptional; }, z.core.$strip>>; lastSync: z.ZodOptional; envFile: z.ZodEnum<{ found: "found"; missing: "missing"; "example-only": "example-only"; }>; parentReachable: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; typesGen: import("@orpc/contract").ContractProcedure>; dryRun: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ success: "success"; error: "error"; }>; generated: z.ZodArray; fetched: z.ZodArray; skipped: z.ZodArray; failed: z.ZodArray; source: z.ZodOptional>; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; dbStudio: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ success: "success"; error: "error"; }>; plugin: z.ZodString; source: z.ZodEnum<{ local: "local"; remote: "remote"; }>; section: z.ZodString; databaseSecret: z.ZodOptional; databaseUrl: z.ZodOptional; workspaceDir: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; dbDoctor: import("@orpc/contract").ContractProcedure, z.ZodObject<{ status: z.ZodEnum<{ success: "success"; error: "error"; }>; plugin: z.ZodString; slug: z.ZodString; journalTable: z.ZodString; journalSchema: z.ZodString; diagnosis: z.ZodString; localMigrationCount: z.ZodNumber; appliedHashCount: z.ZodNumber; expectedTables: z.ZodArray; missingTables: z.ZodArray; workspaceDir: z.ZodOptional; dbSecret: z.ZodOptional; dbUrl: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; dbRepair: import("@orpc/contract").ContractProcedure>; yes: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; repaired: "repaired"; refused: "refused"; }>; message: z.ZodString; diagnosis: z.ZodAny; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; ps: import("@orpc/contract").ContractProcedure, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; ok: "ok"; }>; entries: z.ZodArray; role: z.ZodEnum<{ standalone: "standalone"; "workspace-parent": "workspace-parent"; "workspace-child": "workspace-child"; }>; ports: z.ZodDefault; api: z.ZodOptional; ui: z.ZodOptional; auth: z.ZodOptional; }, z.core.$strip>>; budget: z.ZodOptional>; startedAt: z.ZodNumber; description: z.ZodString; }, z.core.$strip>>; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; kill: import("@orpc/contract").ContractProcedure; signal: z.ZodDefault>; all: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ error: "error"; killed: "killed"; }>; killed: z.ZodArray>; skipped: z.ZodArray>; error: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").MergedErrorMap, Record>, Record>; }, z.ZodObject<{ configPath: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, undefined, { bosConfig: { account: string; app: { host: { development: string; production: string; integrity?: string | undefined; secrets?: string[] | undefined; }; ui: { name?: string | undefined; development?: string | undefined; production?: string | undefined; integrity?: string | undefined; ssr?: string | undefined; ssrIntegrity?: string | undefined; }; api: { extends?: string | { development?: string | undefined; production?: string | undefined; staging?: string | undefined; } | undefined; name?: string | undefined; development?: string | undefined; production?: string | undefined; integrity?: string | undefined; proxy?: string | undefined; variables?: Record | undefined; secrets?: string[] | undefined; routes?: string[] | undefined; shared?: Record | undefined; }; auth?: { extends?: string | { development?: string | undefined; production?: string | undefined; staging?: string | undefined; } | undefined; name?: string | undefined; development?: string | undefined; production?: string | undefined; integrity?: string | undefined; proxy?: string | undefined; variables?: Record | undefined; secrets?: string[] | undefined; routes?: string[] | undefined; shared?: Record | undefined; } | undefined; }; extends?: string | { development?: string | undefined; production?: string | undefined; staging?: string | undefined; } | undefined; domain?: string | undefined; title?: string | undefined; description?: string | undefined; testnet?: string | undefined; staging?: { domain: string; } | undefined; repository?: string | undefined; ci?: { railway?: { service: string; } | undefined; } | undefined; plugins?: Record | undefined; secrets?: string[] | undefined; routes?: string[] | undefined; shared?: Record | undefined; version?: string | undefined; app?: Record | undefined; plugins?: Record | undefined; }> | undefined; } | null; runtimeConfig: { env: "production" | "staging" | "development"; account: string; networkId: "testnet" | "mainnet"; host: { name: string; url: string; entry: string; source: "local" | "remote"; integrity?: string | undefined; localPath?: string | undefined; port?: number | undefined; secrets?: string[] | undefined; remoteUrl?: string | undefined; }; ui: { name: string; url: string; entry: string; source: "local" | "remote"; integrity?: string | undefined; localPath?: string | undefined; port?: number | undefined; ssrUrl?: string | undefined; ssrIntegrity?: string | undefined; }; api: { name: string; url: string; entry: string; source: "local" | "remote"; integrity?: string | undefined; localPath?: string | undefined; port?: number | undefined; proxy?: string | undefined; variables?: Record | undefined; secrets?: string[] | undefined; shared?: Record | undefined; }; domain?: string | undefined; title?: string | undefined; description?: string | undefined; repository?: string | undefined; auth?: { name: string; url: string; entry: string; source: "local" | "remote"; integrity?: string | undefined; extendsRef?: string | undefined; localPath?: string | undefined; port?: number | undefined; proxy?: string | undefined; variables?: Record | undefined; secrets?: string[] | undefined; shared?: Record | undefined; } | undefined; plugins?: Record | undefined; secrets?: string[] | undefined; integrity?: string | undefined; shared?: Record | undefined; ui?: { name: string; url: string; entry: string; source: "local" | "remote"; localPath?: string | undefined; port?: number | undefined; integrity?: string | undefined; } | undefined; routes?: string[] | undefined; }> | undefined; } | null; configDir: string; }>; //#endregion export { DevSessionData, ProgressEvent, StartSummary, consumeDevSession, _default as default, pluginEvents, resolveRemoteConfigChain }; //# sourceMappingURL=plugin.d.mts.map