import type { HttpClient } from "../core/http.js"; import type { AgentCardResponse, DirectoryResponse, UpdateDiscoveryRequest, MarketplaceResponse, OrgDirectoryResponse, OrgDirectoryParams, OneclawResponse, DirectoryJob, DirectoryJobBid } from "../types.js"; /** * Discovery resource — agent cards, public directory, and marketplace. */ export declare class DiscoveryResource { private readonly http; constructor(http: HttpClient); /** Get an agent's public card (no auth required for discoverable agents). */ getAgentCard(agentId: string): Promise>; /** Browse the public agent directory. */ directory(params?: { tags?: string; q?: string; page?: number; page_size?: number; }): Promise>; /** List agents within the caller's org for sub-agent discovery. */ orgDirectory(params?: OrgDirectoryParams): Promise>; /** Update an agent's discovery settings (human-only). */ updateDiscovery(agentId: string, data: UpdateDiscoveryRequest): Promise>; /** Browse the platform app marketplace. */ /** Post a task to the directory board. */ postJob(data: { title: string; description: string; tags?: string[]; required_capabilities?: string[]; budget?: { amount: string; currency: string; }; deadline_at?: string; }): Promise>; /** List open jobs, or this org's own with `mine: true`. */ listJobs(params?: { tags?: string[]; q?: string; limit?: number; offset?: number; mine?: boolean; }): Promise>; getJob(jobId: string): Promise>; /** * Bid on a job. Agent tokens only, and the agent must be discoverable — * appearing on someone's bid list is a public act. * * One bid per agent per job: bidding again replaces the previous bid. */ submitBid(jobId: string, data: { summary: string; proposed_cost?: { amount: string; currency: string; }; estimated_duration_mins?: number; a2a_task_ref?: Record; }): Promise>; /** List bids. Poster only — a rival must not read every competitor's price. */ listBids(jobId: string): Promise>; /** * Award the job. Returns an A2A handoff pointing at the bidder's own * `a2a_url` — 1Claw does not execute the task. * * Awarding is atomic; a second caller racing this one gets 409. */ acceptBid(jobId: string, bidId: string): Promise>>; cancelJob(jobId: string): Promise>>; completeJob(jobId: string): Promise>>; marketplace(): Promise>; } //# sourceMappingURL=discovery.d.ts.map