Skip to main content

Class: Gathering

A live Gathering object. Every field from the API response is available directly on the object (e.g. gathering.name, gathering.joinCode), and the object also exposes action methods (start(), end(), addMember(), watchMembers(), …).

Extends

Constructors

new Gathering()

new Gathering(
ctx,
_projectId,
data): Gathering

Internal

Parameters

ParameterTypeDescription
ctxClientContext-
_projectIdstring-
dataobject-
data.accessPolicystringDescription Access policy
data.autoStartSessionbooleanDescription Whether session starts automatically
data.createdAtstringFormat: date-time Description Creation timestamp
data.description?stringDescription Gathering description
data.endsAt?stringFormat: date-time Description Scheduled end time
data.expiresAt?stringFormat: date-time Description Expiration timestamp
data.idstringDescription Gathering ID
data.inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)
data.inviterName?stringDescription Display name of the gathering organizer
data.joinCodestringDescription Join code for sharing
data.listedbooleanDescription Whether gathering is listed for discovery
data.maxMembersnumberDescription Maximum members allowed
data.memberCountnumberDescription Current member count
data.members?object[]Description Members (included in detailed view)
data.namestringDescription Gathering name
data.ownerId?stringDescription Owner participant ID
data.projectIdstringDescription Project ID
data.properties?objectDescription Custom properties
data.roomId?stringDescription Target ODIN room ID
data.sessionId?stringDescription Created session ID
data.startsAt?stringFormat: date-time Description Scheduled start time
data.status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering status
data.tenantIdstringDescription Tenant ID
data.timezone?stringDescription Timezone for scheduled times
data.type"lobby" | "appointment" | "open"Description Gathering type

Returns

Gathering

Inherited from

GatheringResponse.constructor

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:211

Properties

PropertyTypeDescriptionInherited fromDefined in
accessPolicystringDescription Access policyGatheringResponse.accessPolicy4Players/cortex-typescript-sdk/src/types.ts:3272
autoStartSessionbooleanDescription Whether session starts automaticallyGatheringResponse.autoStartSession4Players/cortex-typescript-sdk/src/types.ts:3290
createdAtstringFormat: date-time Description Creation timestampGatheringResponse.createdAt4Players/cortex-typescript-sdk/src/types.ts:3305
description?stringDescription Gathering descriptionGatheringResponse.description4Players/cortex-typescript-sdk/src/types.ts:3252
endsAt?stringFormat: date-time Description Scheduled end timeGatheringResponse.endsAt4Players/cortex-typescript-sdk/src/types.ts:3284
expiresAt?stringFormat: date-time Description Expiration timestampGatheringResponse.expiresAt4Players/cortex-typescript-sdk/src/types.ts:3310
idstringDescription Gathering IDGatheringResponse.id4Players/cortex-typescript-sdk/src/types.ts:3244
inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)GatheringResponse.inviterEmail4Players/cortex-typescript-sdk/src/types.ts:3256
inviterName?stringDescription Display name of the gathering organizerGatheringResponse.inviterName4Players/cortex-typescript-sdk/src/types.ts:3254
joinCodestringDescription Join code for sharingGatheringResponse.joinCode4Players/cortex-typescript-sdk/src/types.ts:3294
listedbooleanDescription Whether gathering is listed for discoveryGatheringResponse.listed4Players/cortex-typescript-sdk/src/types.ts:3274
maxMembersnumberDescription Maximum members allowedGatheringResponse.maxMembers4Players/cortex-typescript-sdk/src/types.ts:3268
memberCountnumberDescription Current member countGatheringResponse.memberCount4Players/cortex-typescript-sdk/src/types.ts:3270
members?object[]Description Members (included in detailed view)GatheringResponse.members4Players/cortex-typescript-sdk/src/types.ts:3312
namestringDescription Gathering nameGatheringResponse.name4Players/cortex-typescript-sdk/src/types.ts:3250
ownerId?stringDescription Owner participant IDGatheringResponse.ownerId4Players/cortex-typescript-sdk/src/types.ts:3300
projectIdstringDescription Project IDGatheringResponse.projectId4Players/cortex-typescript-sdk/src/types.ts:3246
properties?objectDescription Custom propertiesGatheringResponse.properties4Players/cortex-typescript-sdk/src/types.ts:3296
roomId?stringDescription Target ODIN room IDGatheringResponse.roomId4Players/cortex-typescript-sdk/src/types.ts:3288
sessionId?stringDescription Created session IDGatheringResponse.sessionId4Players/cortex-typescript-sdk/src/types.ts:3292
startsAt?stringFormat: date-time Description Scheduled start timeGatheringResponse.startsAt4Players/cortex-typescript-sdk/src/types.ts:3279
status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering statusGatheringResponse.status4Players/cortex-typescript-sdk/src/types.ts:3266
tenantIdstringDescription Tenant IDGatheringResponse.tenantId4Players/cortex-typescript-sdk/src/types.ts:3248
timezone?stringDescription Timezone for scheduled timesGatheringResponse.timezone4Players/cortex-typescript-sdk/src/types.ts:3286
type"lobby" | "appointment" | "open"Description Gathering typeGatheringResponse.type4Players/cortex-typescript-sdk/src/types.ts:3261

Accessors

data

get data(): object

The raw API response object.

Deprecated

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

Returns

object

NameTypeDescriptionDefined in
accessPolicystringDescription Access policy4Players/cortex-typescript-sdk/src/types.ts:3272
autoStartSessionbooleanDescription Whether session starts automatically4Players/cortex-typescript-sdk/src/types.ts:3290
createdAtstringFormat: date-time Description Creation timestamp4Players/cortex-typescript-sdk/src/types.ts:3305
description?stringDescription Gathering description4Players/cortex-typescript-sdk/src/types.ts:3252
endsAt?stringFormat: date-time Description Scheduled end time4Players/cortex-typescript-sdk/src/types.ts:3284
expiresAt?stringFormat: date-time Description Expiration timestamp4Players/cortex-typescript-sdk/src/types.ts:3310
idstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3244
inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)4Players/cortex-typescript-sdk/src/types.ts:3256
inviterName?stringDescription Display name of the gathering organizer4Players/cortex-typescript-sdk/src/types.ts:3254
joinCodestringDescription Join code for sharing4Players/cortex-typescript-sdk/src/types.ts:3294
listedbooleanDescription Whether gathering is listed for discovery4Players/cortex-typescript-sdk/src/types.ts:3274
maxMembersnumberDescription Maximum members allowed4Players/cortex-typescript-sdk/src/types.ts:3268
memberCountnumberDescription Current member count4Players/cortex-typescript-sdk/src/types.ts:3270
members?object[]Description Members (included in detailed view)4Players/cortex-typescript-sdk/src/types.ts:3312
namestringDescription Gathering name4Players/cortex-typescript-sdk/src/types.ts:3250
ownerId?stringDescription Owner participant ID4Players/cortex-typescript-sdk/src/types.ts:3300
projectIdstringDescription Project ID4Players/cortex-typescript-sdk/src/types.ts:3246
properties?objectDescription Custom properties4Players/cortex-typescript-sdk/src/types.ts:3296
roomId?stringDescription Target ODIN room ID4Players/cortex-typescript-sdk/src/types.ts:3288
sessionId?stringDescription Created session ID4Players/cortex-typescript-sdk/src/types.ts:3292
startsAt?stringFormat: date-time Description Scheduled start time4Players/cortex-typescript-sdk/src/types.ts:3279
status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering status4Players/cortex-typescript-sdk/src/types.ts:3266
tenantIdstringDescription Tenant ID4Players/cortex-typescript-sdk/src/types.ts:3248
timezone?stringDescription Timezone for scheduled times4Players/cortex-typescript-sdk/src/types.ts:3286
type"lobby" | "appointment" | "open"Description Gathering type4Players/cortex-typescript-sdk/src/types.ts:3261

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:223

Methods

addMember()

addMember(body): Promise<object>

Add a member to this gathering

Parameters

ParameterTypeDescription
bodyobjectMember addition payload
body.participantIdstringDescription Participant ID to add
body.properties?objectDescription Custom member properties
body.role?"owner" | "member"Description Role for the member (default: member)

Returns

Promise<object>

Added member

NameTypeDescriptionDefined in
displayNamestringDescription Participant display name4Players/cortex-typescript-sdk/src/types.ts:3211
gatheringIdstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3207
idstringDescription Member record ID4Players/cortex-typescript-sdk/src/types.ts:3205
invitedAt?stringFormat: date-time Description When the member was invited4Players/cortex-typescript-sdk/src/types.ts:3230
joinedAt?stringFormat: date-time Description When the member joined4Players/cortex-typescript-sdk/src/types.ts:3235
participantIdstringDescription Participant ID4Players/cortex-typescript-sdk/src/types.ts:3209
properties?objectDescription Custom member properties4Players/cortex-typescript-sdk/src/types.ts:3223
readyAt?stringFormat: date-time Description When the member marked as ready4Players/cortex-typescript-sdk/src/types.ts:3240
role"owner" | "member"Description Member role4Players/cortex-typescript-sdk/src/types.ts:3221
status"invited" | "joined" | "ready" | "left"Description Member status4Players/cortex-typescript-sdk/src/types.ts:3216

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:301


cancel()

cancel(): Promise<object>

Cancel this gathering

Returns

Promise<object>

Cancelled gathering

NameTypeDescriptionDefined in
accessPolicystringDescription Access policy4Players/cortex-typescript-sdk/src/types.ts:3272
autoStartSessionbooleanDescription Whether session starts automatically4Players/cortex-typescript-sdk/src/types.ts:3290
createdAtstringFormat: date-time Description Creation timestamp4Players/cortex-typescript-sdk/src/types.ts:3305
description?stringDescription Gathering description4Players/cortex-typescript-sdk/src/types.ts:3252
endsAt?stringFormat: date-time Description Scheduled end time4Players/cortex-typescript-sdk/src/types.ts:3284
expiresAt?stringFormat: date-time Description Expiration timestamp4Players/cortex-typescript-sdk/src/types.ts:3310
idstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3244
inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)4Players/cortex-typescript-sdk/src/types.ts:3256
inviterName?stringDescription Display name of the gathering organizer4Players/cortex-typescript-sdk/src/types.ts:3254
joinCodestringDescription Join code for sharing4Players/cortex-typescript-sdk/src/types.ts:3294
listedbooleanDescription Whether gathering is listed for discovery4Players/cortex-typescript-sdk/src/types.ts:3274
maxMembersnumberDescription Maximum members allowed4Players/cortex-typescript-sdk/src/types.ts:3268
memberCountnumberDescription Current member count4Players/cortex-typescript-sdk/src/types.ts:3270
members?object[]Description Members (included in detailed view)4Players/cortex-typescript-sdk/src/types.ts:3312
namestringDescription Gathering name4Players/cortex-typescript-sdk/src/types.ts:3250
ownerId?stringDescription Owner participant ID4Players/cortex-typescript-sdk/src/types.ts:3300
projectIdstringDescription Project ID4Players/cortex-typescript-sdk/src/types.ts:3246
properties?objectDescription Custom properties4Players/cortex-typescript-sdk/src/types.ts:3296
roomId?stringDescription Target ODIN room ID4Players/cortex-typescript-sdk/src/types.ts:3288
sessionId?stringDescription Created session ID4Players/cortex-typescript-sdk/src/types.ts:3292
startsAt?stringFormat: date-time Description Scheduled start time4Players/cortex-typescript-sdk/src/types.ts:3279
status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering status4Players/cortex-typescript-sdk/src/types.ts:3266
tenantIdstringDescription Tenant ID4Players/cortex-typescript-sdk/src/types.ts:3248
timezone?stringDescription Timezone for scheduled times4Players/cortex-typescript-sdk/src/types.ts:3286
type"lobby" | "appointment" | "open"Description Gathering type4Players/cortex-typescript-sdk/src/types.ts:3261

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:245


end()

end(): Promise<object>

End this gathering

Returns

Promise<object>

Ended gathering

NameTypeDescriptionDefined in
accessPolicystringDescription Access policy4Players/cortex-typescript-sdk/src/types.ts:3272
autoStartSessionbooleanDescription Whether session starts automatically4Players/cortex-typescript-sdk/src/types.ts:3290
createdAtstringFormat: date-time Description Creation timestamp4Players/cortex-typescript-sdk/src/types.ts:3305
description?stringDescription Gathering description4Players/cortex-typescript-sdk/src/types.ts:3252
endsAt?stringFormat: date-time Description Scheduled end time4Players/cortex-typescript-sdk/src/types.ts:3284
expiresAt?stringFormat: date-time Description Expiration timestamp4Players/cortex-typescript-sdk/src/types.ts:3310
idstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3244
inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)4Players/cortex-typescript-sdk/src/types.ts:3256
inviterName?stringDescription Display name of the gathering organizer4Players/cortex-typescript-sdk/src/types.ts:3254
joinCodestringDescription Join code for sharing4Players/cortex-typescript-sdk/src/types.ts:3294
listedbooleanDescription Whether gathering is listed for discovery4Players/cortex-typescript-sdk/src/types.ts:3274
maxMembersnumberDescription Maximum members allowed4Players/cortex-typescript-sdk/src/types.ts:3268
memberCountnumberDescription Current member count4Players/cortex-typescript-sdk/src/types.ts:3270
members?object[]Description Members (included in detailed view)4Players/cortex-typescript-sdk/src/types.ts:3312
namestringDescription Gathering name4Players/cortex-typescript-sdk/src/types.ts:3250
ownerId?stringDescription Owner participant ID4Players/cortex-typescript-sdk/src/types.ts:3300
projectIdstringDescription Project ID4Players/cortex-typescript-sdk/src/types.ts:3246
properties?objectDescription Custom properties4Players/cortex-typescript-sdk/src/types.ts:3296
roomId?stringDescription Target ODIN room ID4Players/cortex-typescript-sdk/src/types.ts:3288
sessionId?stringDescription Created session ID4Players/cortex-typescript-sdk/src/types.ts:3292
startsAt?stringFormat: date-time Description Scheduled start time4Players/cortex-typescript-sdk/src/types.ts:3279
status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering status4Players/cortex-typescript-sdk/src/types.ts:3266
tenantIdstringDescription Tenant ID4Players/cortex-typescript-sdk/src/types.ts:3248
timezone?stringDescription Timezone for scheduled times4Players/cortex-typescript-sdk/src/types.ts:3286
type"lobby" | "appointment" | "open"Description Gathering type4Players/cortex-typescript-sdk/src/types.ts:3261

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:272


listInvitations()

listInvitations(): Promise<object[]>

List all invitation records for this gathering, regardless of status (pending, accepted, declined). Useful for tracking RSVP state of email invitations sent via CreateGatheringRequest.participants or Gathering.sendInvitations.

Returns

Promise<object[]>

Array of invitation records for this gathering

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:361


listMembers()

listMembers(): Promise<object[]>

List members of this gathering

Returns

Promise<object[]>

Array of gathering members

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:287


removeMember()

removeMember(participantId): Promise<void>

Remove a member from this gathering

Parameters

ParameterTypeDescription
participantIdstringParticipant ID to remove

Returns

Promise<void>

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:329


sendInvitations()

sendInvitations(body): Promise<object[]>

Send invitations to this gathering

Parameters

ParameterTypeDescription
bodyobjectInvitations payload
body.baseUrl?stringDescription Base URL for HTTP join links Example https://game.example.com
body.customProtocol?stringDescription Custom protocol format for join URL Example mygame://
body.emails?string[]Description Email addresses to invite
body.invitedByIdstringDescription Participant UUID of the person sending invitations
body.participantIds?string[]Description Participant IDs to invite

Returns

Promise<object[]>

Array of created invitations

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:344


start()

start(body): Promise<object>

Start this gathering

Parameters

ParameterTypeDescription
bodyobjectStart payload (roomId)
body.roomIdstringDescription ODIN room ID to use Example room-123

Returns

Promise<object>

Started gathering

NameTypeDescriptionDefined in
accessPolicystringDescription Access policy4Players/cortex-typescript-sdk/src/types.ts:3272
autoStartSessionbooleanDescription Whether session starts automatically4Players/cortex-typescript-sdk/src/types.ts:3290
createdAtstringFormat: date-time Description Creation timestamp4Players/cortex-typescript-sdk/src/types.ts:3305
description?stringDescription Gathering description4Players/cortex-typescript-sdk/src/types.ts:3252
endsAt?stringFormat: date-time Description Scheduled end time4Players/cortex-typescript-sdk/src/types.ts:3284
expiresAt?stringFormat: date-time Description Expiration timestamp4Players/cortex-typescript-sdk/src/types.ts:3310
idstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3244
inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)4Players/cortex-typescript-sdk/src/types.ts:3256
inviterName?stringDescription Display name of the gathering organizer4Players/cortex-typescript-sdk/src/types.ts:3254
joinCodestringDescription Join code for sharing4Players/cortex-typescript-sdk/src/types.ts:3294
listedbooleanDescription Whether gathering is listed for discovery4Players/cortex-typescript-sdk/src/types.ts:3274
maxMembersnumberDescription Maximum members allowed4Players/cortex-typescript-sdk/src/types.ts:3268
memberCountnumberDescription Current member count4Players/cortex-typescript-sdk/src/types.ts:3270
members?object[]Description Members (included in detailed view)4Players/cortex-typescript-sdk/src/types.ts:3312
namestringDescription Gathering name4Players/cortex-typescript-sdk/src/types.ts:3250
ownerId?stringDescription Owner participant ID4Players/cortex-typescript-sdk/src/types.ts:3300
projectIdstringDescription Project ID4Players/cortex-typescript-sdk/src/types.ts:3246
properties?objectDescription Custom properties4Players/cortex-typescript-sdk/src/types.ts:3296
roomId?stringDescription Target ODIN room ID4Players/cortex-typescript-sdk/src/types.ts:3288
sessionId?stringDescription Created session ID4Players/cortex-typescript-sdk/src/types.ts:3292
startsAt?stringFormat: date-time Description Scheduled start time4Players/cortex-typescript-sdk/src/types.ts:3279
status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering status4Players/cortex-typescript-sdk/src/types.ts:3266
tenantIdstringDescription Tenant ID4Players/cortex-typescript-sdk/src/types.ts:3248
timezone?stringDescription Timezone for scheduled times4Players/cortex-typescript-sdk/src/types.ts:3286
type"lobby" | "appointment" | "open"Description Gathering type4Players/cortex-typescript-sdk/src/types.ts:3261

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:259


update()

update(body): Promise<object>

Update this gathering

Parameters

ParameterTypeDescription
bodyobjectUpdated gathering data
body.accessPolicy?"public" | "private" | "invite-only"Description Updated access policy
body.description?stringDescription Updated description
body.endsAt?stringDescription Updated scheduled end time
body.inviterEmail?stringDescription Updated inviter email address
body.inviterName?stringDescription Updated inviter display name
body.listed?booleanDescription Updated visibility
body.maxMembers?numberDescription Updated max members
body.name?stringDescription Updated name
body.properties?objectDescription Updated properties
body.searchProperties?objectDescription Updated search properties
body.startsAt?stringDescription Updated scheduled start time

Returns

Promise<object>

Updated gathering

NameTypeDescriptionDefined in
accessPolicystringDescription Access policy4Players/cortex-typescript-sdk/src/types.ts:3272
autoStartSessionbooleanDescription Whether session starts automatically4Players/cortex-typescript-sdk/src/types.ts:3290
createdAtstringFormat: date-time Description Creation timestamp4Players/cortex-typescript-sdk/src/types.ts:3305
description?stringDescription Gathering description4Players/cortex-typescript-sdk/src/types.ts:3252
endsAt?stringFormat: date-time Description Scheduled end time4Players/cortex-typescript-sdk/src/types.ts:3284
expiresAt?stringFormat: date-time Description Expiration timestamp4Players/cortex-typescript-sdk/src/types.ts:3310
idstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3244
inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)4Players/cortex-typescript-sdk/src/types.ts:3256
inviterName?stringDescription Display name of the gathering organizer4Players/cortex-typescript-sdk/src/types.ts:3254
joinCodestringDescription Join code for sharing4Players/cortex-typescript-sdk/src/types.ts:3294
listedbooleanDescription Whether gathering is listed for discovery4Players/cortex-typescript-sdk/src/types.ts:3274
maxMembersnumberDescription Maximum members allowed4Players/cortex-typescript-sdk/src/types.ts:3268
memberCountnumberDescription Current member count4Players/cortex-typescript-sdk/src/types.ts:3270
members?object[]Description Members (included in detailed view)4Players/cortex-typescript-sdk/src/types.ts:3312
namestringDescription Gathering name4Players/cortex-typescript-sdk/src/types.ts:3250
ownerId?stringDescription Owner participant ID4Players/cortex-typescript-sdk/src/types.ts:3300
projectIdstringDescription Project ID4Players/cortex-typescript-sdk/src/types.ts:3246
properties?objectDescription Custom properties4Players/cortex-typescript-sdk/src/types.ts:3296
roomId?stringDescription Target ODIN room ID4Players/cortex-typescript-sdk/src/types.ts:3288
sessionId?stringDescription Created session ID4Players/cortex-typescript-sdk/src/types.ts:3292
startsAt?stringFormat: date-time Description Scheduled start time4Players/cortex-typescript-sdk/src/types.ts:3279
status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering status4Players/cortex-typescript-sdk/src/types.ts:3266
tenantIdstringDescription Tenant ID4Players/cortex-typescript-sdk/src/types.ts:3248
timezone?stringDescription Timezone for scheduled times4Players/cortex-typescript-sdk/src/types.ts:3286
type"lobby" | "appointment" | "open"Description Gathering type4Players/cortex-typescript-sdk/src/types.ts:3261

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:232


updateMember()

updateMember(memberId, body): Promise<object>

Update a gathering member

Parameters

ParameterTypeDescription
memberIdstringMember ID
bodyobjectUpdated member data
body.properties?objectDescription Updated member properties
body.status?"invited" | "joined" | "ready" | "left"Description Updated member status

Returns

Promise<object>

Updated member

NameTypeDescriptionDefined in
displayNamestringDescription Participant display name4Players/cortex-typescript-sdk/src/types.ts:3211
gatheringIdstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3207
idstringDescription Member record ID4Players/cortex-typescript-sdk/src/types.ts:3205
invitedAt?stringFormat: date-time Description When the member was invited4Players/cortex-typescript-sdk/src/types.ts:3230
joinedAt?stringFormat: date-time Description When the member joined4Players/cortex-typescript-sdk/src/types.ts:3235
participantIdstringDescription Participant ID4Players/cortex-typescript-sdk/src/types.ts:3209
properties?objectDescription Custom member properties4Players/cortex-typescript-sdk/src/types.ts:3223
readyAt?stringFormat: date-time Description When the member marked as ready4Players/cortex-typescript-sdk/src/types.ts:3240
role"owner" | "member"Description Member role4Players/cortex-typescript-sdk/src/types.ts:3221
status"invited" | "joined" | "ready" | "left"Description Member status4Players/cortex-typescript-sdk/src/types.ts:3216

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:316


watch()

watch(): DocumentSubscription<object>

Live-subscribe to this gathering. current reflects status changes (started, ended, cancelled) and becomes undefined only if the gathering is deleted.

Returns

DocumentSubscription<object>

A DocumentSubscription for this gathering

NameTypeDescriptionDefined in
accessPolicystringDescription Access policy4Players/cortex-typescript-sdk/src/types.ts:3272
autoStartSessionbooleanDescription Whether session starts automatically4Players/cortex-typescript-sdk/src/types.ts:3290
createdAtstringFormat: date-time Description Creation timestamp4Players/cortex-typescript-sdk/src/types.ts:3305
description?stringDescription Gathering description4Players/cortex-typescript-sdk/src/types.ts:3252
endsAt?stringFormat: date-time Description Scheduled end time4Players/cortex-typescript-sdk/src/types.ts:3284
expiresAt?stringFormat: date-time Description Expiration timestamp4Players/cortex-typescript-sdk/src/types.ts:3310
idstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3244
inviterEmail?stringDescription Email address of the gathering organizer (used as Reply-To in invitation emails)4Players/cortex-typescript-sdk/src/types.ts:3256
inviterName?stringDescription Display name of the gathering organizer4Players/cortex-typescript-sdk/src/types.ts:3254
joinCodestringDescription Join code for sharing4Players/cortex-typescript-sdk/src/types.ts:3294
listedbooleanDescription Whether gathering is listed for discovery4Players/cortex-typescript-sdk/src/types.ts:3274
maxMembersnumberDescription Maximum members allowed4Players/cortex-typescript-sdk/src/types.ts:3268
memberCountnumberDescription Current member count4Players/cortex-typescript-sdk/src/types.ts:3270
members?object[]Description Members (included in detailed view)4Players/cortex-typescript-sdk/src/types.ts:3312
namestringDescription Gathering name4Players/cortex-typescript-sdk/src/types.ts:3250
ownerId?stringDescription Owner participant ID4Players/cortex-typescript-sdk/src/types.ts:3300
projectIdstringDescription Project ID4Players/cortex-typescript-sdk/src/types.ts:3246
properties?objectDescription Custom properties4Players/cortex-typescript-sdk/src/types.ts:3296
roomId?stringDescription Target ODIN room ID4Players/cortex-typescript-sdk/src/types.ts:3288
sessionId?stringDescription Created session ID4Players/cortex-typescript-sdk/src/types.ts:3292
startsAt?stringFormat: date-time Description Scheduled start time4Players/cortex-typescript-sdk/src/types.ts:3279
status| "pending" | "active" | "started" | "ended" | "cancelled" | "expired"Description Gathering status4Players/cortex-typescript-sdk/src/types.ts:3266
tenantIdstringDescription Tenant ID4Players/cortex-typescript-sdk/src/types.ts:3248
timezone?stringDescription Timezone for scheduled times4Players/cortex-typescript-sdk/src/types.ts:3286
type"lobby" | "appointment" | "open"Description Gathering type4Players/cortex-typescript-sdk/src/types.ts:3261

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:377


watchInvitations()

watchInvitations(): CollectionSubscription<object>

Live-subscribe to this gathering's invitations. sent upserts the invitation record; accepted/declined update its status in place. Initial invitations are loaded via REST.

Returns

CollectionSubscription<object>

A CollectionSubscription of invitation records

NameTypeDescriptionDefined in
displayName?stringDescription Display name of the invitee4Players/cortex-typescript-sdk/src/types.ts:3721
email?stringDescription Invited email4Players/cortex-typescript-sdk/src/types.ts:3719
expiresAt?stringFormat: date-time Description When invitation expires4Players/cortex-typescript-sdk/src/types.ts:3742
gatheringIdstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3715
idstringDescription Invitation ID4Players/cortex-typescript-sdk/src/types.ts:3713
invitedAtstringFormat: date-time Description When invitation was sent4Players/cortex-typescript-sdk/src/types.ts:3737
invitedById?stringDescription Who sent the invitation (null for system-generated invitations)4Players/cortex-typescript-sdk/src/types.ts:3723
joinCodestringDescription Join code4Players/cortex-typescript-sdk/src/types.ts:3732
joinUrlstringDescription Join URL4Players/cortex-typescript-sdk/src/types.ts:3730
participantId?stringDescription Invited participant ID4Players/cortex-typescript-sdk/src/types.ts:3717
respondedAt?stringFormat: date-time Description When invitee responded4Players/cortex-typescript-sdk/src/types.ts:3747
status"pending" | "expired" | "accepted" | "declined"Description Invitation status4Players/cortex-typescript-sdk/src/types.ts:3728

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:413


watchMembers()

watchMembers(): CollectionSubscription<object>

Live-subscribe to this gathering's members. Members are keyed by participant ID; joined/ready upsert the member, left removes them. Initial members are loaded via REST.

Returns

CollectionSubscription<object>

A CollectionSubscription of gathering members

NameTypeDescriptionDefined in
displayNamestringDescription Participant display name4Players/cortex-typescript-sdk/src/types.ts:3211
gatheringIdstringDescription Gathering ID4Players/cortex-typescript-sdk/src/types.ts:3207
idstringDescription Member record ID4Players/cortex-typescript-sdk/src/types.ts:3205
invitedAt?stringFormat: date-time Description When the member was invited4Players/cortex-typescript-sdk/src/types.ts:3230
joinedAt?stringFormat: date-time Description When the member joined4Players/cortex-typescript-sdk/src/types.ts:3235
participantIdstringDescription Participant ID4Players/cortex-typescript-sdk/src/types.ts:3209
properties?objectDescription Custom member properties4Players/cortex-typescript-sdk/src/types.ts:3223
readyAt?stringFormat: date-time Description When the member marked as ready4Players/cortex-typescript-sdk/src/types.ts:3240
role"owner" | "member"Description Member role4Players/cortex-typescript-sdk/src/types.ts:3221
status"invited" | "joined" | "ready" | "left"Description Member status4Players/cortex-typescript-sdk/src/types.ts:3216

Defined in

4Players/cortex-typescript-sdk/src/resources/gatherings.ts:387