export type GetApiAgentmailV0InboxesInboxIdArgs = {inbox_id: string}; export type GetApiAgentmailV0InboxesInboxIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Get details of a specific inbox including display name, creation date, and metadata. * * GET /agentmail/v0/inboxes/{inbox_id} */ export const getApiAgentmailV0InboxesInboxId = async (args: GetApiAgentmailV0InboxesInboxIdArgs, options?: GetApiAgentmailV0InboxesInboxIdOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/agentmail/v0/inboxes/${encodeURIComponent(String(args.inbox_id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };