import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class Calls extends APIResource { /** * List all calls managed through agents by the owner of the API key. */ list(options?: RequestOptions): APIPromise; /** * List the messages of a call. */ listMessages(callID: string, options?: RequestOptions): APIPromise; } export type CallListResponse = Array; export declare namespace CallListResponse { /** * Model for a call. */ interface CallListResponseItem { /** * The ID of the call. */ id: string; /** * The ID of the agent handling the call. */ agent_id: string; /** * The end time of the call in ISO 8601 format. If null, the call might still be * ongoing. */ ended_at: string | null; /** * The start time of the call in ISO 8601 format. */ started_at: string; } } export type CallListMessagesResponse = Array; export declare namespace CallListMessagesResponse { /** * Model for a call message. */ interface CallListMessagesResponseItem { /** * The message content. */ message: string; /** * The sender of the message. */ sender: 'ai' | 'user'; /** * The time the message was sent in ISO 8601 format. */ sent_at: string; } } export declare namespace Calls { export { type CallListResponse as CallListResponse, type CallListMessagesResponse as CallListMessagesResponse, }; } //# sourceMappingURL=calls.d.mts.map