Skip to content

feat(realtimekit): added partial set of types as per phase 1 - #8032

Open
ravindra-cloudflare wants to merge 3 commits into
cloudflare:mainfrom
ravindra-cloudflare:feat/realtimekit-binding-types-phase-1
Open

ravindra-cloudflare wants to merge 3 commits into
cloudflare:mainfrom
ravindra-cloudflare:feat/realtimekit-binding-types-phase-1

Conversation

@ravindra-cloudflare

@ravindra-cloudflare ravindra-cloudflare commented Oct 27, 2026 •

Copy link
Copy Markdown

RealtimeKit product has a huge API surface https://developers.cloudflare.com/api/resources/realtime_kit/.

To keep the scope limited, work has been split into 2 phases.

Phase 1: Add bindings to create participant auth token for a quick test. This PR adds this.

Code once bindings are ready. (Follows snake_case, similar to API response)

using meeting = await env.RTK.createMeeting({
  title: "Support call",
  record_on_start: true,
});

const participant = await meeting.addParticipant({
    custom_participant_id: 'ANY_UNIQUE_CUSTOMER_PROVIDED_ID',
    name: 'Jane Doe',
    preset_name: "group_call_participant",
  });

return Response.json({
  meetingId: meeting.id,
  authToken: participant.token,
  title: meeting.title,
  recordOnStart: meeting.record_on_start
});

Phase 2: Once bindings are tested and end-to-end flow has been verified, introduce all remaining types of APIs/Bindings RPC methods. Upcoming PR(s) will add these remaining types.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@clanky-the-clanker

Copy link
Copy Markdown

This pull request was not reviewed automatically because its author does not have write access to this repository. A maintainer with write access can start a review by commenting clanky review (or clanker review or @clanky-the-clanker review), optionally followed by instructions (e.g. clanky review focus on the retry logic).

@ravindra-cloudflare

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 27, 2026
Comment thread types/defines/realtimekit.d.ts Outdated
interface RealtimeKitCreateMeetingOptions {
/** Human-readable meeting title. */
title?: string | null;
/** Start recording when a participant joins. Defaults to false. */

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit pick: Default values should use the respective tag. In this case @default.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I have fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants