Skip to main content

Class: Participant

A live Participant object. Every field from the API response is available directly on the object (e.g. participant.displayName, participant.externalUserId), and the object also exposes action methods (update(), delete(), watch()).

Extends​

Constructors​

new Participant()​

new Participant(
ctx,
_projectId,
data): Participant

Internal

Parameters​

ParameterTypeDescription
ctxClientContext-
_projectIdstring-
dataobject-
data.displayNamestringDescription Display name of the participant
data.externalUserIdstringDescription External User ID from ODIN (stable identifier)
data.idstringDescription Unique identifier for the participant
data.joinedAtstringFormat: date-time Description When the participant first joined any session in the project
data.projectIdstringDescription ODIN project ID this participant belongs to
data.tenantIdstringDescription Tenant ID
data.userDatanull | objectDescription User data from ODIN (parsed JSON). Present in REST responses and in participant.updated events (the new value); stripped from all other domain events — fetch the participant to read it there.

Returns​

Participant

Inherited from​

ParticipantResponse.constructor

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/participants.ts:209

Properties​

PropertyTypeDescriptionInherited fromDefined in
displayNamestringDescription Display name of the participantParticipantResponse.displayNameodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371
externalUserIdstringDescription External User ID from ODIN (stable identifier)ParticipantResponse.externalUserIdodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373
idstringDescription Unique identifier for the participantParticipantResponse.idodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367
joinedAtstringFormat: date-time Description When the participant first joined any session in the projectParticipantResponse.joinedAtodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384
projectIdstringDescription ODIN project ID this participant belongs toParticipantResponse.projectIdodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369
tenantIdstringDescription Tenant IDParticipantResponse.tenantIdodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375
userDatanull | objectDescription User data from ODIN (parsed JSON). Present in REST responses and in participant.updated events (the new value); stripped from all other domain events — fetch the participant to read it there.ParticipantResponse.userDataodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3377

Accessors​

data​

get data(): object

The raw API response object.

Deprecated​

The response fields are now available directly on this object (e.g. participant.displayName instead of participant.data.displayName). This accessor will be removed before the stable release.

Returns​

object

NameTypeDescriptionDefined in
displayNamestringDescription Display name of the participantodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371
externalUserIdstringDescription External User ID from ODIN (stable identifier)odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373
idstringDescription Unique identifier for the participantodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367
joinedAtstringFormat: date-time Description When the participant first joined any session in the projectodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384
projectIdstringDescription ODIN project ID this participant belongs toodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369
tenantIdstringDescription Tenant IDodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375
userDatanull | objectDescription User data from ODIN (parsed JSON). Present in REST responses and in participant.updated events (the new value); stripped from all other domain events — fetch the participant to read it there.odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3377

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/participants.ts:221

Methods​

delete()​

delete(): Promise<void>

Delete this participant

Returns​

Promise<void>

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/participants.ts:242


update()​

update(body): Promise<object>

Update this participant

Parameters​

ParameterTypeDescription
bodyobjectUpdated participant data
body.displayName?stringDescription Display name of the participant
body.userData?objectDescription User data from ODIN (parsed JSON)

Returns​

Promise<object>

Updated participant

NameTypeDescriptionDefined in
displayNamestringDescription Display name of the participantodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371
externalUserIdstringDescription External User ID from ODIN (stable identifier)odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373
idstringDescription Unique identifier for the participantodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367
joinedAtstringFormat: date-time Description When the participant first joined any session in the projectodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384
projectIdstringDescription ODIN project ID this participant belongs toodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369
tenantIdstringDescription Tenant IDodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375
userDatanull | objectDescription User data from ODIN (parsed JSON). Present in REST responses and in participant.updated events (the new value); stripped from all other domain events — fetch the participant to read it there.odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3377

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/participants.ts:230


watch()​

watch(): DocumentSubscription<object>

Live-subscribe to this participant. current becomes undefined if deleted.

Returns​

DocumentSubscription<object>

A DocumentSubscription for this participant

NameTypeDescriptionDefined in
displayNamestringDescription Display name of the participantodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371
externalUserIdstringDescription External User ID from ODIN (stable identifier)odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373
idstringDescription Unique identifier for the participantodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367
joinedAtstringFormat: date-time Description When the participant first joined any session in the projectodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384
projectIdstringDescription ODIN project ID this participant belongs toodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369
tenantIdstringDescription Tenant IDodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375
userDatanull | objectDescription User data from ODIN (parsed JSON). Present in REST responses and in participant.updated events (the new value); stripped from all other domain events — fetch the participant to read it there.odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3377

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/participants.ts:254