UNPKG

attio-js

Version:

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

40 lines 1.36 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { threadsGet } from "../funcs/threadsGet.js"; import { threadsList } from "../funcs/threadsList.js"; import { ClientSDK } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; export 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`. */ async list(request, options) { return unwrapAsync(threadsList(this, request, options)); } /** * 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`. */ async get(request, options) { return unwrapAsync(threadsGet(this, request, options)); } } //# sourceMappingURL=threads.js.map