knocklabs / knock-node

Official Node SDK for interacting with the Knock API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[messages.list] returns Promise<Message>

AAorris opened this issue · comments

Typescript is treating the list endpoint as if it returns a single message — I'm assuming that instead we expect something closer to the shape at https://docs.knock.app/reference#list-messages?

https://github.com/knocklabs/knock-node/blob/main/src/resources/messages/index.ts#L21

@AAorris great catch! that's right, the message list endpoint should return a paginated response!

@AAorris We have just released this fix, you can find it on 0.4.6 🎉