Skip to content

fix: contact imports segments typing#222

Merged
drish merged 3 commits into
mainfrom
fix/contact-imports-segments-type
Jun 17, 2026
Merged

fix: contact imports segments typing#222
drish merged 3 commits into
mainfrom
fix/contact-imports-segments-type

Conversation

@drish

@drish drish commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Fixes contact import segments to accept an array of segment objects instead of string IDs, aligning with the API. Examples/tests updated and version bumped to 2.32.1.

  • Bug Fixes

    • CreateParams.segments now expects [{"id": "uuid"}] and is sent as-is; removed conversion from string IDs.
  • Migration

    • Change segments=["60a2ac5e-0774-456e-817d-ebf40f6dba31"] to segments=[{"id": "60a2ac5e-0774-456e-817d-ebf40f6dba31"}].

Written for commit 57c35cb. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

0 issues found across 1 file (changes from recent commits).

Auto-approved: Fixes contact import segments typing to use objects instead of strings, matching the API. Small, isolated change with updated example and test.

Re-trigger cubic

@drish drish requested review from gabrielmfern and vcapretz June 17, 2026 18:58
@drish drish merged commit 7519910 into main Jun 17, 2026
22 checks passed
@drish drish deleted the fix/contact-imports-segments-type branch June 17, 2026 19:01
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