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()
Internal
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | ClientContext | - |
_projectId | string | - |
data | object | - |
data.displayName | string | Description Display name of the participant |
data.externalUserId | string | Description External User ID from ODIN (stable identifier) |
data.id | string | Description Unique identifier for the participant |
data.joinedAt | string | Format: date-time Description When the participant first joined any session in the project |
data.projectId | string | Description ODIN project ID this participant belongs to |
data.tenantId | string | Description Tenant ID |
data.userData | null | object | Description 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
Inherited from
ParticipantResponse.constructor
Defined in
odin-transcription-service/packages/cortex-typescript-sdk/src/resources/participants.ts:209
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
displayName | string | Description Display name of the participant | ParticipantResponse.displayName | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371 |
externalUserId | string | Description External User ID from ODIN (stable identifier) | ParticipantResponse.externalUserId | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373 |
id | string | Description Unique identifier for the participant | ParticipantResponse.id | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367 |
joinedAt | string | Format: date-time Description When the participant first joined any session in the project | ParticipantResponse.joinedAt | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384 |
projectId | string | Description ODIN project ID this participant belongs to | ParticipantResponse.projectId | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369 |
tenantId | string | Description Tenant ID | ParticipantResponse.tenantId | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375 |
userData | null | object | Description 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.userData | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3377 |
Accessors
data
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
| Name | Type | Description | Defined in |
|---|---|---|---|
displayName | string | Description Display name of the participant | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371 |
externalUserId | string | Description External User ID from ODIN (stable identifier) | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373 |
id | string | Description Unique identifier for the participant | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367 |
joinedAt | string | Format: date-time Description When the participant first joined any session in the project | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384 |
projectId | string | Description ODIN project ID this participant belongs to | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369 |
tenantId | string | Description Tenant ID | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375 |
userData | null | object | Description 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 this participant
Returns
Promise<void>
Defined in
odin-transcription-service/packages/cortex-typescript-sdk/src/resources/participants.ts:242
update()
Update this participant
Parameters
| Parameter | Type | Description |
|---|---|---|
body | object | Updated participant data |
body.displayName? | string | Description Display name of the participant |
body.userData? | object | Description User data from ODIN (parsed JSON) |
Returns
Promise<object>
Updated participant
| Name | Type | Description | Defined in |
|---|---|---|---|
displayName | string | Description Display name of the participant | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371 |
externalUserId | string | Description External User ID from ODIN (stable identifier) | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373 |
id | string | Description Unique identifier for the participant | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367 |
joinedAt | string | Format: date-time Description When the participant first joined any session in the project | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384 |
projectId | string | Description ODIN project ID this participant belongs to | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369 |
tenantId | string | Description Tenant ID | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375 |
userData | null | object | Description 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()
Live-subscribe to this participant. current becomes undefined if deleted.
Returns
DocumentSubscription<object>
A DocumentSubscription for this participant
| Name | Type | Description | Defined in |
|---|---|---|---|
displayName | string | Description Display name of the participant | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3371 |
externalUserId | string | Description External User ID from ODIN (stable identifier) | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3373 |
id | string | Description Unique identifier for the participant | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3367 |
joinedAt | string | Format: date-time Description When the participant first joined any session in the project | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3384 |
projectId | string | Description ODIN project ID this participant belongs to | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3369 |
tenantId | string | Description Tenant ID | odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:3375 |
userData | null | object | Description 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