Thread Participants hooks

Hand-written shim. Implementation is generated; see ./thread-participants.gen.

Hooks

useAddThreadParticipant mutation

Add a participant to a thread.

TypeScript
useAddThreadParticipant(options?: MutationOpts<ThreadParticipant, AddThreadParticipantParams>)

Types: ThreadParticipant · AddThreadParticipantParams

useListThreadParticipants query

List thread participants.

TypeScript
useListThreadParticipants(params?: Omit<ListThreadParticipantsParams, | > & { filter?: ThreadParticipantFilter; orderBy?: ThreadParticipantOrderBy[]; } & ThreadParticipantShorthands, options?: QueryOpts<Page<ThreadParticipant>>)

Types: ListThreadParticipantsParams · ThreadParticipantFilter · ThreadParticipantOrderBy · ThreadParticipantShorthands · Page · ThreadParticipant

useRemoveThreadParticipant mutation

Remove a thread participant.

TypeScript
useRemoveThreadParticipant(options?: MutationOpts<SuccessResponse, RemoveThreadParticipantParams>)

Types: SuccessResponse · RemoveThreadParticipantParams

useRetrieveThreadParticipant query

Get a thread participant by ID.

TypeScript
useRetrieveThreadParticipant(id: string, options?: QueryOpts<ThreadParticipant>)

Types: ThreadParticipant