import type { AgentArtifactInput, AgentArtifactReceipt } from './agent-artifacts.js'; export type { AgentArtifactInput, AgentArtifactReceipt } from './agent-artifacts.js'; import { type AgentTaskControlCapabilities, type AgentTaskSnapshot } from './task-control.js'; export { describeAgentFailure, type AgentFailureFeedback, type AgentFailureContext } from './agent-feedback.js'; import { type ConversationAuditAck, type ConversationAuditCapabilities } from './conversation-audit.js'; export type { ConversationAudit, ConversationAuditAck, ConversationAuditEvent, ConversationAuditCapabilities, ConversationAuditMemberBinding, CreateConversationAuditInput } from './conversation-audit.js'; import { type AgentCapabilitySearchResult, type AgentRunCompletion, type AgentTurnContext, type AgentWorkspaceList, type AgentSystemInfo, type AgentToolDetail, type AgentInvocationReceipt, type AgentKnowledgeCapabilities, type AgentKnowledgeSearch, type AgentKnowledgeRead } from './agent-client.js'; import { type AgentToolInvocation } from './client.js'; import { performAgentLogin } from './agent-auth.js'; export type { AgentSubjectDisplay, AgentSubjectDisplayStatus, AgentSubjectDisplayView } from './subject-display.js'; import { AgentConnectionStore, type AgentConnectionStoreOptions } from './connections.js'; export { AgentClientTransport, BailingHubAgentClient, AGENT_CLIENT_V1_PATHS, type AgentCapabilitySearchResult, type AgentCapabilityDiscovery, type AgentClientConnection, type AgentRunCompletion, type AgentRuntimeProfile, type AgentTurnContext, type AgentWorkspace, type AgentWorkspaceList, type AgentSystemInfo, type AgentToolDetail, type GetAgentToolDetailInput, type AgentInvocationReceipt, type AgentKnowledgeCapabilities, type AgentKnowledgeDelivery, type AgentKnowledgeSearch, type AgentKnowledgeRead, type SearchAgentKnowledgeInput, type ReadAgentKnowledgeInput, type AgentInvocationInspectionCapabilities, type CompleteAgentRunInput, type InvokeAgentCapabilityInput, type SearchAgentCapabilitiesInput, type StartAgentTurnInput, } from './agent-client.js'; export { AgentConnectionRegistry, AgentConnectionStore, agentConnectionInstanceKey, agentConnectionKey, defaultConnectionCredentialPath, defaultConnectionKeychainAccount, defaultConnectionRegistryPath, type AgentConnectionDescriptor, type AgentConnectionProfile, type AgentConnectionStoreOptions, type LegacyCredentialMigrationResult, } from './connections.js'; export { AgentAuthHttpClient, AgentSessionManager, createLoopbackCallbackReceiver, openSystemBrowser, performAgentLogin, type AgentAccessTokenProvider, type AgentSessionView, type LoopbackCallbackReceiver, } from './agent-auth.js'; export { FileCredentialStore, MacOsKeychainCredentialStore, MemoryCredentialStore, WindowsDpapiCredentialStore, AGENT_CLIENT_STORAGE_NAMESPACE_ENV, agentStorageNamespaceSegment, defaultFileCredentialPath, defaultKeychainCredentialAccount, defaultWindowsAgentStorageRoot, defaultWindowsDpapiCredentialPath, defaultWindowsPowerShellPath, normalizeAgentStorageNamespace, parseAgentCredentials, resolveAgentStorageNamespace, selectCredentialStore, type AgentCredentials, type CredentialStore, } from './credential-store.js'; export { BailingHubClientError, BailingHubToolArgumentsError, type BailingHubClientErrorDetails } from './client.js'; export type { StartAgentTurnOptions, AgentTaskBinding, AgentTaskControlCapabilities, AgentTaskMember, AgentTaskSnapshot } from './agent-client.js'; export type AgentClientHostConfig = { hubUrl?: string; baseUrl?: string; clientAppId: string; workspace?: string; route?: string; connectionName?: string; connectionKey?: string; allowInsecureHttp?: boolean; deviceLabel?: string; }; /** Host-captured authorization identity; never a model-controlled connection selector. */ export type ExpectedAgentBinding = { hubUrl: string; clientAppId: string; workspace: string; sessionId: string; }; export type AgentClientHostDependencies = { /** * Host-owned local storage namespace. This dependency setting is not a user connection field, * business identity, or secret and never enters a Core request. */ storageNamespace?: string; connectionStore?: AgentConnectionStore; connectionStoreOptions?: AgentConnectionStoreOptions; fetchImpl?: typeof fetch; now?: () => number; loginImpl?: typeof performAgentLogin; createLoopbackReceiver?: Parameters[1]['createLoopbackReceiver']; openBrowser?: Parameters[1]['openBrowser']; randomBytesImpl?: Parameters[1]['randomBytesImpl']; }; export type AgentClientHostTransport = { /** Host supplies authorized file bytes, never a model-controlled filesystem path. */ uploadArtifact(input: AgentArtifactInput, options: Record): Promise; getArtifact(uploadId: string, options: Record): Promise; connectionsList(input?: Record): Promise>; connectionsAdd(input: Record): Promise>; connectionsUse(input: string | Record): Promise>; connectionsRemove(input: string | Record): Promise>; login(input?: Record): Promise>; status(input?: Record): Promise>; logout(input?: Record): Promise>; workspaces(input?: Record): Promise; use(input: string | Record): Promise>; startTurn(input: Record, options?: Record): Promise; searchCapabilities(input: Record, options?: Record): Promise; getToolDetail(input: Record, options?: Record): Promise; getKnowledgeCapabilities(options?: Record): Promise; searchKnowledge(input: Record, options?: Record): Promise; readKnowledge(input: Record, options?: Record): Promise; invoke(input: Record, options?: Record): Promise; resume(invocationId: string, input?: unknown, options?: Record): Promise; /** Read the original receipt; requires a frozen original connection and never resumes the operation. */ inspectInvocation(invocationId: string, options: Record): Promise; /** Read-only host API; requires the original connection and authorization binding. */ getTaskControlCapabilities(options?: Record): Promise; getTask(taskId: string, options: Record): Promise; completeRun(runId: string, input: Record, options?: Record): Promise; /** Host-only visible transcript synchronization; never expose this method as a model tool. */ syncConversationArchive(input: Record, options: Record): Promise; /** Read protocol support without creating an archive or uploading conversation text. */ getConversationArchiveCapabilities(options: Record): Promise; /** Optional product positioning for one explicit selected connection; no tool discovery or run. */ getSystemInfo(options: Record): Promise; }; /** * Dynamic-import friendly host seam. Browser authorization, credential isolation, HTTP DTOs, * and refresh remain SDK concerns; DSH or another host only supplies visible turn data. */ export declare function createAgentClientTransport(configValue: AgentClientHostConfig, dependencies?: AgentClientHostDependencies): AgentClientHostTransport; export * from './usage.js'; //# sourceMappingURL=sdk.d.ts.map