// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../core/resource'; import { APIPromise } from '../../core/api-promise'; import { buildHeaders } from '../../internal/headers'; import { RequestOptions } from '../../internal/request-options'; import { path } from '../../internal/utils/path'; export class Activities extends APIResource { /** * Create a new activity for an account */ create(id: string, body: ActivityCreateParams, options?: RequestOptions): APIPromise { return this._client.post(path`/accounts/${id}/activities`, { body, ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]), }); } } export interface ActivityCreateParams { /** * The slug of the activity to create */ slug: string; /** * Optional contact ID of the actor of the activity */ contact_id?: string; /** * Optional HTML content to display in the activity */ content_html?: string; /** * Optional link to add to the activity */ link?: string; /** * Optional link text to display on the activity */ link_text?: string; /** * Timestamp (RFC3339) of when the activity happened */ timestamp?: string; /** * Optional user ID of the actor of the activity */ user_id?: string; } export declare namespace Activities { export { type ActivityCreateParams as ActivityCreateParams }; }