Repository navigation
API: mark a CopilotKit employee on an organization's plan - #2156
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 21:09
OrganizationPlan gains an optional copilotKitEmployee, true when the reading person's verified email is on copilotkit.ai. An employee's own runs are never refused for want of a plan, so past the free allowance the plan read stays free with freeRunsUsedPercent 100, freeRunsAllowance and no addCardUrl. Additive: one optional response property and an example.
The generated client carries the spec's descriptions, and user copy never says CopilotKit alone; say it as the company that makes OpenBot, and say the domain must match exactly.
…s free For a CopilotKit employee the plan read keeps the organization's real status (active, past_due), with addCardUrl for admins on past_due; only none reads free for them. Their own runs are never refused either way.
…mployees An employee who is an owner or an admin reads free with addCardUrl set when the organization needs a card for its other members, so they can pay for them; their own runs still go on.
davidmckayv
force-pushed
the
staff-free-spec
branch
from
November 24, 2026 22:20
43ac02b to
e77a7ed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A CopilotKit employee on OpenBot Cloud gets the same free trial as everyone, but their own runs are never refused for want of a plan. This is the API side: the plan read says when the reading person is one, so the app can tell them so instead of asking for a card. Additive only.
What changed
OrganizationPlangains an optional booleancopilotKitEmployee: true when the reading person's verified email address is on thecopilotkit.aidomain. Present only while a plan is required and the reader is an employee; absent otherwise. It is about the reader alone: other members of the same organization, and the organization's plan, are unchanged.statusstays the organization's own for an employee (active,past_dueand the rest), with one exception: where it would benone, an employee readsfree. So past the free allowance in an organization with no plan they getfree,freeRunsUsedPercent100,freeRunsAllowance(so the app can still say the number) and a nulladdCardUrl, except that an employee who is an owner or an admin getsaddCardUrlwhen the organization needs a card for members who aren't employees, so they can pay for them; onpast_duean admin still getsaddCardUrl, since the organization's payment needs updating for everyone else in it. The employee's own runs are never refused in any status. The descriptions ofstatusandfreeRunsAllowancecover this.copilotKitEmployeeongetOrganizationPlan: statusfree,freeRunsUsedPercent100,freeRunsAllowance500,copilotKitEmployeetrue, no add-card link.The bundle and the app and phone clients are regenerated (the Recorder's client doesn't carry the plan). No screen changes here.
Checks run locally
bun run api:lint: valid.breakingagainst main's bundle with--fail-on WARN: no breaking changes. The changelog shows one info-level change: the new optional response property.bun run api:generaterun again leaves no diff (bundle and client drift clean).bun test api/(client boundary and every spec test) and the user-copy test: 81 pass, 0 fail.