Add Linq adapter for iMessage, SMS, and RCS#196
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Would love this 🙏 |
There was a problem hiding this comment.
Hey hey, excited for this.
I think it could make sense to rebuild this off of the latest openapi spec - there's a few (nonbreaking) updates here that I think are meaningful for this use case:
- text decorations
- rich previews on links via LinkParts
+some deprecated fields that will reduce some of the noise =)
| to: [userId], | ||
| // Linq API requires a message to create a chat | ||
| message: { | ||
| parts: [{ type: "text", value: " " }], |
There was a problem hiding this comment.
How could we help support opening a DM to give you a threadId without having to send an empty space? Happy to think through that on our end 👀
| /** | ||
| * This file was auto-generated by openapi-typescript. | ||
| * Do not make direct changes to the file. | ||
| */ | ||
|
|
||
| export interface paths { | ||
| "/v3/attachments": { | ||
| parameters: { | ||
| query?: never; | ||
| header?: never; | ||
| path?: never; | ||
| cookie?: never; |
There was a problem hiding this comment.
👋🏻 Hi. A Linq engineer here, excited to be part of the OSS community! To avoid type and API drift, would it be helpful for me to add a separate lightweight types package on our end for you to use? We already version our spec and sdk in this repo, but I can understand you not wanting to bring in an entire client SDK just for types and API models.
Let me know if that would be helpful! What @jonathanamccann mentioned above is also just as valid and perhaps easier. Would be easier to get updates and release notes too (ie set update triggers on your end if spec changes).
There was a problem hiding this comment.
Hey @jflayhart! Yes, if you're able to create that types package, it would be immensely helpful for us. Please feel free to update the PR accordingly as well once you and your team have that in place.
There was a problem hiding this comment.
❓ Help
Hi bensabic! Here's how I can help:
⭐ Mention me to start a conversation
✨ Mention me with "AI" to enable AI assistant mode
👀 I'll respond to messages in threads where I'm mentioned
🔥 React to my messages and I'll react back!
🚀 Active platforms: discord, slack, teams, gchat, github, telegram, whatsapp
There was a problem hiding this comment.
❓ Help
Hi chat-sdk-demo[bot]! Here's how I can help:
⭐ Mention me to start a conversation
✨ Mention me with "AI" to enable AI assistant mode
👀 I'll respond to messages in threads where I'm mentioned
🔥 React to my messages and I'll react back!
🚀 Active platforms: discord, slack, teams, gchat, github, telegram, whatsapp
There was a problem hiding this comment.
❓ Help
Hi chat-sdk-demo[bot]! Here's how I can help:
⭐ Mention me to start a conversation
✨ Mention me with "AI" to enable AI assistant mode
👀 I'll respond to messages in threads where I'm mentioned
🔥 React to my messages and I'll react back!
🚀 Active platforms: discord, slack, teams, gchat, github, telegram, whatsapp
There was a problem hiding this comment.
❓ Help
Hi chat-sdk-demo[bot]! Here's how I can help:
⭐ Mention me to start a conversation
✨ Mention me with "AI" to enable AI assistant mode
👀 I'll respond to messages in threads where I'm mentioned
🔥 React to my messages and I'll react back!
🚀 Active platforms: discord, slack, teams, gchat, github, telegram, whatsapp
There was a problem hiding this comment.
❓ Help
Hi chat-sdk-demo[bot]! Here's how I can help:
⭐ Mention me to start a conversation
✨ Mention me with "AI" to enable AI assistant mode
👀 I'll respond to messages in threads where I'm mentioned
🔥 React to my messages and I'll react back!
🚀 Active platforms: discord, slack, teams, gchat, github, telegram, whatsapp
There was a problem hiding this comment.
❓ Help
Hi chat-sdk-demo[bot]! Here's how I can help:
⭐ Mention me to start a conversation
✨ Mention me with "AI" to enable AI assistant mode
👀 I'll respond to messages in threads where I'm mentioned
🔥 React to my messages and I'll react back!
🚀 Active platforms: discord, slack, teams, gchat, github, telegram, whatsapp
There was a problem hiding this comment.
❓ Help
Hi chat-sdk-demo[bot]! Here's how I can help:
⭐ Mention me to start a conversation
✨ Mention me with "AI" to enable AI assistant mode
👀 I'll respond to messages in threads where I'm mentioned
🔥 React to my messages and I'll react back!
🚀 Active platforms: discord, slack, teams, gchat, github, telegram, whatsapp
There was a problem hiding this comment.
@bensabic not sure what this demo stuff is but...
if you're able to create that types package, it would be immensely helpful for us. Please feel free to update the PR accordingly as well once you and your team have that in place.
here's a PR to showcase the simplification and keeping things up to date. What do you think? #278
Summary
@chat-adapter/linqadapter for iMessage, SMS, and RCS messaging via the Linq Partner API v3lib/linq/linq-api-v3.yaml)nextjs-chatexample appWhat's included
packages/adapter-linq/— full adapter package withopenapi-fetchclientpackages/adapter-linq/src/index.test.ts— unit tests (~1300 lines)packages/adapter-linq/src/markdown.test.ts— format converter testsapps/docs/content/docs/adapters/linq.mdx— adapter documentationturbo.jsonenv vars,pnpm-lock.yaml, andvitest.config.tsTest plan
pnpm --filter @chat-adapter/linq testpassespnpm buildsucceedspnpm typecheckpasses