Skip to content

Fix(PE-1558): regenerate both schemas and unblock the weekly schema update - #114

Merged
plain-thinh-tran merged 1 commit into
mainfrom
PE-1558/regenerate-both-schemas-and-unblock-the-weekly
Oct 23, 2026
Merged

plain-thinh-tran merged 1 commit into
mainfrom
PE-1558/regenerate-both-schemas-and-unblock-the-weekly

Conversation

@plain-thinh-tran

@plain-thinh-tran plain-thinh-tran commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes PE-1558, Plain T-37358

Ships the pending GraphQL regeneration and webhooks 2026-10-06 in one PR, and fixes the two things that kept the weekly schema update red. Contains the main changes from the weekly generated #98.


Note

High Risk
Major GraphQL/ui-components releases drop deprecated company/tenant fields from generated types and add many API changes; webhooks require retargeting to 2026-10-06 or parsing fails.

Overview
Regenerates @team-plain/graphql and @team-plain/ui-components against the current Plain API (major releases) and bumps @team-plain/webhooks to schema 2026-10-06 (minor).

The GraphQL schema/SDK refresh continues the company/tenant → account migration: many fields and operations are marked deprecated in schema.graphql, and the codegen changeset notes that deprecated fields are no longer included in generated result types (e.g. Customer.company, thread/tenant filters). New surface area includes OAuth apps, business hours overrides, account import APIs, member seat cap checks, workflow NOTE steps, billing committed credits / USER_SEATS, and assorted Sidekick/workflow/billing tweaks. Client tests now exercise lazy-loading via company.accountOwner instead of customer.company, and drop company from customer fixtures where the generator no longer selects it.

@team-plain/webhooks adds eight account lifecycle events plus discussion.turn_stop_requested, extends SLA payloads with FIRST_RESOLUTION_TIME / TOTAL_RESOLUTION_TIME, policy, and businessHoursSchedules, and pins parsing to webhookTargetVersion: 2026-10-06 (upgrade webhook targets when bumping the package). Webhook codegen is invoked via bash instead of sh.

Reviewed by Cursor Bugbot for commit c2ac285. Bugbot is set up for automated code reviews on this repo. Configure here.

@plain-thinh-tran plain-thinh-tran self-assigned this Oct 23, 2026
@plain-thinh-tran
plain-thinh-tran marked this pull request as ready for review October 23, 2026 13:57
@plain-thinh-tran
plain-thinh-tran requested a review from mpsq October 23, 2026 13:58
@plain-thinh-tran
plain-thinh-tran enabled auto-merge (squash) October 23, 2026 13:58
@mpsq
mpsq requested a review from mattvagni October 23, 2026 14:37
- Field 'SlackThreadChannelAssociation.companyId' is deprecated
- Field 'SlackThreadChannelAssociation.tenantId' is deprecated
- Field 'SlackThreadChannelAssociation.tenantMembershipPolicy' is deprecated
- Field 'Thread.tenant' is deprecated

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.

Something is wrong with how this changelog is generated as this has not been removed, just marked as deprecated which is quite different.

I'm going to be taking this over from @mpsq and can then fix this script plus the pending release.

If you want to have a look at this in the meantime, please be my guest!

@mattvagni mattvagni left a comment

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.

Minus the comment on the changeset.

@plain-thinh-tran
plain-thinh-tran merged commit 04354f1 into main Oct 23, 2026
8 checks passed
@plain-thinh-tran
plain-thinh-tran deleted the PE-1558/regenerate-both-schemas-and-unblock-the-weekly branch October 23, 2026 14:41
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