Add optional channel attribute to contact_list type#491
Merged
Conversation
Co-authored-by: MaxAndDev <36757362+MaxAndDev@users.noreply.github.com>
MaxAndDev
reviewed
Jan 16, 2026
Contributor
MaxAndDev
left a comment
There was a problem hiding this comment.
@copilot why do we have such a big change in the package lock ?
Copilot
AI
changed the title
[WIP] Extend contact_list type with optional channel attribute
Add optional channel attribute to contact_list type
Jan 16, 2026
Co-authored-by: MaxAndDev <36757362+MaxAndDev@users.noreply.github.com>
Contributor
Author
The package-lock.json was accidentally upgraded from lockfileVersion 1 to lockfileVersion 3 when I ran |
MaxAndDev
approved these changes
Jan 16, 2026
pantajoe
approved these changes
Jan 16, 2026
|
🎉 This PR is included in version 4.256.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Task: Extend the contact_list type with an optional channel attribute
Plan
channeltoContactListRawPayloadinterfacechanneltoContactListPayloadinterfacechannelproperty toContactListclassdeserializemethod to handle the channel fieldserializemethod to include the channel fieldChanges Made
channel?: stringattribute toContactListRawPayloadinterface (line 99)channel?: ContactListRawPayload['channel']toContactListPayloadinterface (line 128)channelproperty toContactListclass (line 175)deserializemethod to assignthis.channel = rawPayload.channel(line 218)serializemethod to includechannel: this.channelin returned object (line 262)Validation
The implementation follows existing patterns in the codebase for optional string attributes and maintains consistency with other fields like
broker,proxy_reference_id, etc.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Summary by cubic
Added an optional channel attribute to the contact_list type to indicate the communication channel associated with a list. This is fully backward-compatible; existing lists work unchanged when channel is omitted.
Written for commit cd78309. Summary will update on new commits.