import type { ContactNote, CreateContactNoteInput, ListContactNotesQuery, Page, UpdateContactNoteInput } from '../../types'; import type { HttpClient } from '../../http'; /** * Internal notes on a contact: free text, attachments, and team members * mentioned in them. Notes are never shown to the contact. * * Every method takes the contact id first -- notes are addressed under their * contact, and a note id from another contact is a 404 rather than a match. * * NOTE: these routes are currently commented out in the audience service's * `routes.ts`, so they answer 404 until that line is restored. The contract and * the service behind them are complete. */ export declare class ContactNotes { private readonly http; constructor(http: HttpClient); /** * `GET /v1/audience/contacts/:contactId/notes` -- cursor paginated, newest * first. Notes are appended, so an offset would shift under a caller * mid-walk; page with `cursor` from the previous response's `nextCursor`. * * Scope: `contacts:read`. */ list(contactId: string, query?: Partial): Promise>; /** * `GET /v1/audience/contacts/:contactId/notes/:noteId`. * * Scope: `contacts:read`. */ get(contactId: string, noteId: string): Promise; /** * `POST /v1/audience/contacts/:contactId/notes` -- 201 with the created note. * * Scope: `contacts:write`. */ create(contactId: string, input: CreateContactNoteInput): Promise; /** * `PATCH /v1/audience/contacts/:contactId/notes/:noteId` -- a partial update. * `attachments` and `mentions` replace their stored value rather than * appending to it. * * Scope: `contacts:write`. */ update(contactId: string, noteId: string, input: UpdateContactNoteInput): Promise; /** * `DELETE /v1/audience/contacts/:contactId/notes/:noteId` -- 204, no body. * * Scope: `contacts:write`. */ delete(contactId: string, noteId: string): Promise; }