/** * Agoragentic — Official Node.js SDK * TypeScript type definitions */ export interface LangSmithBridge { traceable?: (...args: any[]) => any; getCurrentRunTree?: () => { toHeaders?: () => Record } | undefined; } export interface LangSmithOptions extends LangSmithBridge { enabled?: boolean; projectName?: string; operationPrefix?: string; metadata?: Record; tags?: string[]; } export interface AgoragenticOptions { apiKey?: string; baseUrl?: string; timeout?: number; owsWallet?: any; gatewayAgentId?: string; langsmith?: boolean | LangSmithOptions; } export interface ExecuteConstraints { prefer_trusted?: boolean; max_cost?: number; preferred_category?: string; max_latency_ms?: number; max_retries?: number; quote_id?: string; gateway_agent_id?: string; gatewayAgentId?: string; openai_agents_trace?: Record; openaiAgentsTrace?: Record; trace_context?: Record; traceContext?: Record; } export interface MatchConstraints { prefer_trusted?: boolean; max_cost?: number; category?: string; max_latency_ms?: number; payment_network?: string; payment_asset?: string; } export interface SearchFilters { category?: string; maxPrice?: number; seller?: string; status?: string; } export interface Capability { id: string; name: string; description: string; category: string; price_per_unit: number; pricing_model?: string; seller_id?: string; seller_name?: string; seller_agent_uri?: string | null; seller_agent_uri_slug?: string | null; tags?: string[]; status?: string; endpoint_url?: string; review_status?: string; } export interface InvocationResult { success?: boolean; status?: string; result?: any; output?: any; cost?: number; platform_fee?: number; seller_payout?: number; invocation_id?: string; listing?: { id: string; name: string }; provider?: Record; receipt?: Record; } export interface RegisterResult { id?: string; agent_id?: string; name?: string; api_key: string; signing_key?: string; public_key?: string; agent_uri?: string | null; agent_uri_slug?: string | null; } export interface WalletInfo { balance: number; currency: string; withdrawable_balance?: number; total_deposited?: number; total_spent?: number; total_earned?: number; policy?: WalletPolicy; } export interface SyrinDemoDeploymentInput { name?: string; description?: string; source_ref?: string; sourceRef?: string; repository?: string; repo?: string; image?: string; source_type?: 'repository' | 'container_image' | string; sourceType?: 'repository' | 'container_image' | string; branch?: string; source_dir?: string; sourceDirectory?: string; health_path?: string; healthPath?: string; connection_arn?: string; connectionArn?: string; access_role_arn?: string; accessRoleArn?: string; instance_role_arn?: string; instanceRoleArn?: string; service_prefix?: string; servicePrefix?: string; build_command?: string; buildCommand?: string; start_command?: string; startCommand?: string; runtime?: string; port?: number; model_profile?: string; modelProfile?: string; bedrock_region?: string; bedrockRegion?: string; exposure_mode?: string; exposureMode?: string; billing_plan?: string; billingPlan?: string; autonomy_tier?: string; autonomyTier?: string; ecf_profile?: string; ecfProfile?: string; goal?: string; success_metrics?: string[]; max_daily_spend?: number; max_daily_spend_usdc?: number; approval_above?: number; approval_required_above_usdc?: number; tags?: string[]; } export interface DeploymentReadinessInput { deploymentId?: string; deployment_id?: string; id?: string; deployment?: Record; packet?: Record; request?: Record; } export interface WalletPolicy { daily_spend_cap?: number; per_call_max_cost?: number; auto_approve_max_usdc?: number; rate_limit_per_minute?: number; max_price_per_call?: number | null; allowed_categories?: string[]; allowed_sellers?: string[]; blocked_sellers?: string[]; approval?: { require_approval?: boolean; supervisor_id?: string | null; }; updated_at?: string | null; } export interface AgentSummary { id?: string; agent_id?: string; name?: string; description?: string; type?: string; agent_uri?: string | null; agent_uri_slug?: string | null; verified?: boolean; verification_tier?: string; tags?: string[]; created_at?: string; } export declare class AgoragenticClient { constructor(options?: AgoragenticOptions); register(opts: { name: string; description?: string; type?: 'buyer' | 'seller' | 'both'; agent_uri?: string; owner_email?: string }): Promise; execute(task: string | null, input?: Record, constraints?: ExecuteConstraints): Promise; match(task: string, constraints?: MatchConstraints): Promise>; status(invocationId: string): Promise>; search(query?: string, filters?: SearchFilters): Promise; getCapability(id: string): Promise; invoke(id: string, input?: any, opts?: { maxCost?: number; quoteId?: string; gateway_agent_id?: string; gatewayAgentId?: string; openai_agents_trace?: Record; openaiAgentsTrace?: Record; trace_context?: Record; traceContext?: Record }): Promise; withGatewayAgent(gatewayAgentId: string | null): AgoragenticClient; getAgent(reference: string): Promise>; resolveAgent(reference: string, opts?: { limit?: number }): Promise>; claimAgentUri(agentId: string, agentUri: string): Promise>; review(listingId: string, rating: number, comment?: string): Promise>; getReviews(listingId: string): Promise>; pendingReviews(): Promise>; echo(input: any): Promise; uuid(): Promise<{ uuid: string }>; fortune(): Promise<{ fortune: string }>; palette(opts?: { mood?: string }): Promise>; mdToJson(opts: { markdown: string }): Promise>; vaultList(): Promise; vaultStore(item: { name: string; type: string; data: any }): Promise; vaultGet(id: string): Promise; wallet(): Promise; walletPolicy(): Promise<{ policy: WalletPolicy; semantics?: Record }>; setWalletPolicy(policy: WalletPolicy & { require_approval?: boolean; supervisor_id?: string | null }): Promise>; createOnchainWallet(input?: { wallet_type?: string; name?: string; [key: string]: any }): Promise>; connectWallet(walletAddressOrInput: string | { wallet_address?: string; wallet_type?: string; [key: string]: any }, walletType?: string): Promise>; onchainBalance(): Promise>; purchase(amount?: number): Promise>; verifyPurchase(txHashOrInput: string | { tx_hash?: string; [key: string]: any }): Promise>; payout(amountOrInput?: number | { amount?: number; destination?: string; [key: string]: any }, destination?: string): Promise>; payouts(opts?: { limit?: number }): Promise>; transactions(filters?: { limit?: number; type?: string }): Promise>; dashboard(): Promise>; stats(): Promise>; x402Info(): Promise>; x402Listings(): Promise; x402Discover(): Promise>; x402ExecuteMatch(task: string, constraints?: MatchConstraints): Promise>; x402Execute(quoteId: string, input?: any, opts?: { walletAddress?: string; gateway_agent_id?: string; gatewayAgentId?: string; openai_agents_trace?: Record; openaiAgentsTrace?: Record; trace_context?: Record; traceContext?: Record }): Promise>; buildX402ClaimProofMessage(walletAddress: string): string; buildX402ClaimProof(walletAddress: string, signer?: { signMessage?: (message: string) => Promise | string }, opts?: { message?: string }): Promise>; x402Claim(input?: { walletAddress?: string; wallet_address?: string; proof?: { message?: string; signature?: string }; limit?: number; offset?: number; include_payload?: boolean }): Promise>; x402Invoke(id: string, input?: any, opts?: { walletAddress?: string; gateway_agent_id?: string; gatewayAgentId?: string; openai_agents_trace?: Record; openaiAgentsTrace?: Record; trace_context?: Record; traceContext?: Record }): Promise>; x402Convert(payload?: Record): Promise>; quote(reference: string | { task?: string; capability_id?: string; listing_id?: string; slug?: string; units?: number; max_cost?: number; category?: string; max_latency_ms?: number; prefer_trusted?: boolean; payment_network?: string; payment_asset?: string }, opts?: { units?: number; max_cost?: number; category?: string; max_latency_ms?: number; prefer_trusted?: boolean; payment_network?: string; payment_asset?: string }): Promise>; receipt(receiptId: string): Promise>; /** Agent Commerce Interchange (control-plane only; live spend stays on execute()/invoke()). */ interchangeCard(input: string | { capability_id?: string; name?: string; description?: string; source_ref?: string; pricing?: Record }): Promise>; interchangeGetCard(cardId: string): Promise>; interchangeCreateMandate(input: { buyer_agent_id: string; deployment_id: string; idempotency_key: string; budget?: { max_per_call?: string; max_daily?: string; max_total?: string; currency?: string }; allowed_capability_card_refs?: string[]; allowed_actions?: string[]; expires_at?: string; allowed_categories?: string[]; blocked_categories?: string[]; allowed_providers?: string[]; blocked_providers?: string[] }): Promise>; interchangeReviewMandate(mandateId: string, decision: 'approve' | 'reject', reason?: string): Promise>; interchangeSpendStatus(mandateId: string): Promise>; interchangeCreatePlan(input: { capability_card_id: string; mandate_id: string; requested_action?: string; max_amount: string; idempotency_key: string }): Promise>; interchangeGetPlan(planId: string): Promise>; interchangeAdvancePlan(planId: string, input?: { invocation_id?: string; target_state?: string }): Promise>; interchangeOpenDispute(planId: string, reason: string): Promise>; interchangeReceipt(receiptId: string): Promise>; interchangeVerifyReceipt(input: string | { receipt_id?: string; receipt?: Record }): Promise>; interchangeProviderReputation(providerId: string): Promise>; account(): Promise>; tumblerGraduation(): Promise>; identity(): Promise>; identityCheck(reference: string | { agent_ref?: string; agent_id?: string; agent_uri?: string; wallet_address?: string }): Promise>; procurement(): Promise>; procurementCheck(reference: string | { capability_id?: string; listing_id?: string; slug?: string; quoted_cost_usdc?: number }, opts?: { quotedCostUsdc?: number }): Promise>; learning(opts?: { limit?: number; queueLimit?: number; noteLimit?: number }): Promise>; learningCandidates(input?: { limit?: number; source_types?: string[]; [key: string]: any }): Promise>; reconciliation(opts?: { days?: number; limit?: number }): Promise>; approvals(opts?: { role?: 'buyer' | 'supervisor' | 'all'; status?: string; limit?: number }): Promise>; resolveApproval(approvalId: string, decision: 'approve' | 'deny', reason?: string): Promise>; jobReconciliation(jobId: string, opts?: { limit?: number }): Promise>; jobsSummary(): Promise>; jobs(opts?: { status?: 'active' | 'paused' | 'disabled' | string }): Promise>; job(jobId: string): Promise>; jobRuns(jobId: string, opts?: { status?: string; limit?: number }): Promise>; allJobRuns(opts?: { job_id?: string; status?: string; limit?: number }): Promise>; sellerStatus(): Promise>; sellerDemand(): Promise>; sellerHealth(): Promise>; sellerActivity(): Promise>; sellerRecommendations(): Promise>; sellerReferrals(): Promise>; deployPreview(deployment?: Record): Promise>; createDeployment(deployment?: Record): Promise>; deploymentCatalog(): Promise>; deployments(): Promise>; deployment(deploymentId: string): Promise>; deploymentBilling(deploymentId: string): Promise>; authorizeDeploymentBilling(deploymentId: string, input?: Record): Promise>; deploymentOrchestration(deploymentId: string): Promise>; updateDeploymentGoals(deploymentId: string, goals?: Record): Promise>; proposeDeploymentImprovement(deploymentId: string, signal?: Record): Promise>; reviewDeploymentFulfillment(deploymentId: string, input?: Record): Promise>; createDeploymentCanaryPlan(deploymentId: string, input?: Record): Promise>; recordDeploymentSmokeResult(deploymentId: string, input?: Record): Promise>; provisionDeployment(deploymentId: string, input?: Record): Promise>; smokeDeployment(deploymentId: string, input?: Record): Promise>; deploymentActivationGate(deploymentId: string): Promise>; activateDeployment(deploymentId: string, input?: Record): Promise>; reconcileDeploymentIntent(deploymentId: string, input?: Record): Promise>; selfServeDeploymentLaunch(deploymentId: string, input?: Record): Promise>; deploymentReadiness(input?: string | DeploymentReadinessInput | Record): Promise>; deploymentTreasuryPlan(deploymentId: string): Promise>; deploymentFundingInstructions(deploymentId: string, opts?: { amount?: number }): Promise>; verifyDeploymentFunding(deploymentId: string, txHashOrInput: string | { tx_hash?: string; [key: string]: any }): Promise>; exportSkillRecipe(input?: { capability_id?: string; listing_id?: string; slug?: string; [key: string]: any }): Promise>; importSkillRecipe(input?: { recipe?: Record; capability_id?: string; listing_id?: string; slug?: string; key?: string; namespace?: string; [key: string]: any }): Promise>; listService(capability: { name: string; description: string; category: string; price_per_unit: number; endpoint_url: string; input_schema?: string | Record; output_schema?: string | Record; }): Promise; } declare function agoragentic(options?: AgoragenticOptions | string): AgoragenticClient; export default agoragentic; export { agoragentic }; export declare function buildX402ClaimProofMessage(walletAddress: string): string; export declare function buildSyrinDemoDeployment(input?: SyrinDemoDeploymentInput): Record; export declare function buildDeploymentReadinessReport(input?: Record): Record; export declare function validateSyrinDemoSource(input?: string | { path?: string; source_dir?: string; sourceDirectory?: string }): Record;