@archastro/sdk
    Preparing search index...

    Channel for real-time chat messaging. Supports team-scoped and user-scoped threads with keyed, transient, and direct thread access patterns.

    Index

    Constructors

    Properties

    joinResponse?: unknown

    Methods

    • Load additional messages with cursor-based pagination

      Parameters

      • payload: Record<string, unknown>

      Returns Promise<unknown>

    • Return one complete result batch for a connection-local tool request

      Parameters

      • payload: Record<string, unknown>

      Returns Promise<unknown>

    • Post a new message with optional uploads and reply-to

      Parameters

      • payload: Record<string, unknown>

      Returns Promise<unknown>

    • Replace the local tools advertised by this connection for later messages it posts

      Parameters

      • payload: Record<string, unknown>

      Returns Promise<unknown>

    • Signal that the current user has started or stopped typing in the thread

      Parameters

      • payload: Record<string, unknown>

      Returns Promise<unknown>

    • Invoke local functions on the exact connection that published them

      Parameters

      • callback: (payload: unknown) => void

      Returns () => void

    • Stop local work because the server no longer accepts its result

      Parameters

      • callback: (payload: unknown) => void

      Returns () => void

    • Broadcast thread-level events (agent updates, read state, unread counts)

      Parameters

      • callback: (payload: unknown) => void

      Returns () => void

    • Broadcast when a participant (human or agent) starts or stops typing. Ephemeral; never persisted.

      Parameters

      • callback: (payload: unknown) => void

      Returns () => void

    • Join or create a team-scoped keyed thread

      Parameters

      • socket: Socket
      • teamId: string
      • key: string
      • Optionalpayload: {
            after_cursor?: string;
            before_cursor?: string;
            include_metadata?: boolean;
            limit?: number;
        }

      Returns Promise<ApiChatChannel>

    • Join a team-scoped thread by ID

      Parameters

      • socket: Socket
      • teamId: string
      • threadId: string
      • Optionalpayload: {
            after_cursor?: string;
            before_cursor?: string;
            include_metadata?: boolean;
            limit?: number;
        }

      Returns Promise<ApiChatChannel>

    • Join a team-scoped transient (ephemeral) thread

      Parameters

      • socket: Socket
      • teamId: string
      • key: string
      • Optionalpayload: {
            after_cursor?: string;
            before_cursor?: string;
            include_metadata?: boolean;
            limit?: number;
        }

      Returns Promise<ApiChatChannel>

    • Join or create a user-scoped keyed thread

      Parameters

      • socket: Socket
      • key: string
      • Optionalpayload: {
            after_cursor?: string;
            before_cursor?: string;
            include_metadata?: boolean;
            limit?: number;
        }

      Returns Promise<ApiChatChannel>

    • Join a user-scoped thread by ID, optionally supplying local tools for a personal thread

      Parameters

      • socket: Socket
      • threadId: string
      • Optionalpayload: {
            after_cursor?: string;
            before_cursor?: string;
            include_metadata?: boolean;
            limit?: number;
            local_tool_provider_id?: string;
            local_tools?: {
                function: {
                    description: string;
                    name: string;
                    parameters: Record<string, unknown>;
                };
                type: "function";
            }[];
        }

      Returns Promise<ApiChatChannel>

    • Join a user-scoped transient (ephemeral) thread

      Parameters

      • socket: Socket
      • key: string
      • Optionalpayload: {
            after_cursor?: string;
            before_cursor?: string;
            include_metadata?: boolean;
            limit?: number;
        }

      Returns Promise<ApiChatChannel>