import { APIResource } from "../../../resource.js"; import * as Core from "../../../core.js"; import * as PeersAPI from "../peers/peers.js"; import { PeersPage } from "../peers/peers.js"; import * as SessionsAPI from "./sessions.js"; import { type PageParams } from "../../../pagination.js"; export declare class Peers extends APIResource { /** * Get all Peers in a Session. Results are paginated. */ list(workspaceId: string, sessionId: string, query?: PeerListParams, options?: Core.RequestOptions): Core.PagePromise; list(workspaceId: string, sessionId: string, options?: Core.RequestOptions): Core.PagePromise; /** * Add Peers to a Session. If a Peer does not yet exist, it will be created * automatically. */ add(workspaceId: string, sessionId: string, body: PeerAddParams, options?: Core.RequestOptions): Core.APIPromise; /** * Get the configuration for a Peer in a Session. */ config(workspaceId: string, sessionId: string, peerId: string, options?: Core.RequestOptions): Core.APIPromise; /** * Remove Peers by ID from a Session. */ remove(workspaceId: string, sessionId: string, body: PeerRemoveParams, options?: Core.RequestOptions): Core.APIPromise; /** * Set the Peers in a Session. If a Peer does not yet exist, it will be created * automatically. * * This will fully replace the current set of Peers in the Session. */ set(workspaceId: string, sessionId: string, body: PeerSetParams, options?: Core.RequestOptions): Core.APIPromise; /** * Set the configuration for a Peer in a Session. */ setConfig(workspaceId: string, sessionId: string, peerId: string, body: PeerSetConfigParams, options?: Core.RequestOptions): Core.APIPromise; } export interface SessionPeerConfig { /** * Whether Honcho will use reasoning to form a representation of this peer */ observe_me?: boolean | null; /** * Whether this peer should form a session-level theory-of-mind representation of * other peers in the session */ observe_others?: boolean | null; } export interface PeerListParams extends PageParams { } export type PeerAddParams = { [key: string]: SessionPeerConfig; }; export type PeerRemoveParams = Array; export type PeerSetParams = { [key: string]: SessionPeerConfig; }; export interface PeerSetConfigParams { /** * Whether Honcho will use reasoning to form a representation of this peer */ observe_me?: boolean | null; /** * Whether this peer should form a session-level theory-of-mind representation of * other peers in the session */ observe_others?: boolean | null; } export declare namespace Peers { export { type SessionPeerConfig as SessionPeerConfig, type PeerListParams as PeerListParams, type PeerAddParams as PeerAddParams, type PeerRemoveParams as PeerRemoveParams, type PeerSetParams as PeerSetParams, type PeerSetConfigParams as PeerSetConfigParams, }; } export { PeersPage }; //# sourceMappingURL=peers.d.ts.map