github twentyhq/twenty sdk/v2.67.0

18 minutes ago

Four things break. ViewType.INBOX is gone — use 'LIST'. ValidationRule* expression types are renamed to Expression* — update all imports with that prefix. AiChatToolCallApprovalCardLayout is removed; AiChatToolFrontComponent now owns onToolCallApprovalAnswer. The three legacy export command keys are removed.

ThemeProvider gains accentColor for workspace-scoped theming. Apps can declare inbox channels and address them in sendInboxMessage. definePageLayout now accepts conditionalAvailability on tabs and widgets, and twenty app pull round-trips those rules. twenty-ui ships a new ApprovalCard for custom AI tool shells.

twenty data export flags and output are unchanged; it uses exportQueryResults internally now.

⚠️ Breaking changes

  • ViewType.INBOX is removed — replace any 'INBOX' string literals or type references with 'LIST'. (#32133) by @bosiraphael
  • ValidationRuleFieldDescriptor → ExpressionFieldDescriptor, ValidationRuleExpressionToken → ExpressionToken, and the matching compilation-result, bindings, error-code, error-params, and function-name types are all renamed — update every import that uses the ValidationRule* prefix. (#32157) by @FelixMalfait
  • AiChatToolFrontComponent now receives onToolCallApprovalAnswer and renders with isBoxed={false} during approval flows; AiChatToolCallApprovalCardLayout is removed — migrate custom tool front components to own their approval callback and use ApprovalCard as the shell. (#32167) by @etiennejouan
  • Command menu engine keys EXPORT_FROM_RECORD_INDEX, EXPORT_FROM_RECORD_SHOW, and EXPORT_MULTIPLE_RECORDS are removed — delete any references to these constants. (#32201) by @FelixMalfait

🌟 Highlights

  • ViewType.INBOX is removed — replace any 'INBOX' references with 'LIST' before upgrading. (#32133)
  • ValidationRule* expression types renamed to Expression* — update all imports that use that prefix. (#32157)
  • AiChatToolFrontComponent now owns onToolCallApprovalAnswer directly; AiChatToolCallApprovalCardLayout is removed — rebuild custom tool approval cards using ApprovalCard from twenty-ui. (#32167)
  • ThemeProvider accepts a new accentColor prop to scope accent tokens to a palette other than the default blue. (#31734)
  • Apps can set conditionalAvailability on page layout tabs and widgets in definePageLayout; twenty app pull now includes those rules. (#32287)
  • Apps can declare inbox channels; sendInboxMessage can now address a declared channel directly. (#32294)

✨ New features

  • ThemeProvider gains an accentColor prop; pass a palette name to scope all accent tokens on that subtree to a colour other than blue. (#31734) by @Bonapara
  • New exportQueryResults subscription accepts a raw GraphQL findMany query and streams progress, downloadPath, and errorMessage — use it to export any record set a query describes, including lookup columns. (#31958) by @FelixMalfait
  • PageLayout.filters returns saved date filters; pass a filters array to updatePageLayoutWithTabsAndWidgets to save or clear them, or omit it to leave them unchanged. (#32007) by @ehconitin
  • ApprovalCard is exported from twenty-ui/components/feedback; use it as the shell for custom AI tool approval, question, and form cards with optional title, icon, hint, actions, and contentVariant props. (#32165) by @etiennejouan
  • Apps can set conditionalAvailability on page layout tabs and widgets inside definePageLayout; the SDK exports ConditionalEvaluationNode for sharing one rule across definitions, and twenty app pull round-trips these rules into generated source. (#32287) by @Weiko
  • Apps can declare inbox channels; sendInboxMessage can address a declared channel by reference instead of resolving one at runtime by name. (#32294) by @FelixMalfait

💅 Improvements & UX

  • The AI tool index exposes a nullable operation field on each entry, resolving { operation, objectName } for record calls without name-string parsing. (#32128) by @FelixMalfait
  • View field groups accept a new isCollapsedByDefault flag to pre-collapse a section on the record page. (#32134) by @Bonapara

🐛 Bug fixes

  • Renaming a many-to-one relation field now keeps joinColumnName in sync — fixes stale column references in record-changed events, timeline, and RLS relation hops. (#32242) by @charlesBochet

🔧 Developer & API

  • twenty data export now runs via exportQueryResults internally; all flags (--filter, --order-by), output format, and CSV columns are unchanged. (#32021) by @FelixMalfait
🏗️ Internal changes (12)

🎉 New contributors

Full changelog (27 PRs)

Full Changelog: sdk/v2.66.0...sdk/v2.67.0

Don't miss a new twenty release

NewReleases is sending notifications on new releases.