UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

32 lines 1.38 kB
import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { GetV2ThreadsRequest, GetV2ThreadsResponse } from "../models/operations/getv2threads.js"; import { GetV2ThreadsThreadIdRequest, GetV2ThreadsThreadIdResponse } from "../models/operations/getv2threadsthreadid.js"; export declare class Threads extends ClientSDK { /** * List threads * * @remarks * List threads of comments on a record or list entry. * * To view threads on records, you will need the `object_configuration:read` and `record_permission:read` scopes. * * To view threads on list entries, you will need the `list_configuration:read` and `list_entry:read` scopes. * * Required scopes: `comment:read`. */ list(request: GetV2ThreadsRequest, options?: RequestOptions): Promise<GetV2ThreadsResponse>; /** * Get a thread * * @remarks * Get all comments in a thread. * * To view threads on records, you will need the `object_configuration:read` and `record_permission:read` scopes. * * To view threads on list entries, you will need the `list_configuration:read` and `list_entry:read` scopes. * * Required scopes: `comment:read`. */ get(request: GetV2ThreadsThreadIdRequest, options?: RequestOptions): Promise<GetV2ThreadsThreadIdResponse>; } //# sourceMappingURL=threads.d.ts.map