Repository: svix/svix-webhooks (language: rust)

Issue:
JS SDK missing `with_content` parameter on `v1.message.list` endpoint
## Bug Report


https://api.svix.com/docs#tag/Message/operation/v1.message.list

### Version

`0.85.1`

### Platform

All

### Description

I tried this code:

```
const messages = await svix.message.list(
      "app_...",
      {
        withContent: true
      }
    );
```

I expected to see this happen see the `messages` contain the webhook `payload` but they did not.




Discussion / hints:
Oh, you're right! It looks like the new parameter wasn't added to the libs. We'll take a look this week.

Fix patch:
diff --git a/ChangeLog.md b/ChangeLog.md
index c165265f6..03ccf37bd 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -2,6 +2,7 @@
 
 ## Next
 * Libs/Go: add missing `endpoint_id` option to list attempts by msg.
+* Libs/JavaScript: add missing `withContent` field to `MessageListOptions`.
 
 ## Version 0.85.1
 * Libs: update OpenAPI spec
diff --git a/javascript/src/index.ts b/javascript/src/index.ts
index 024322eb4..5efd572ac 100644
--- a/javascript/src/index.ts
+++ b/javascript/src/index.ts
@@ -199,6 +199,7 @@ export interface MessageListOptions extends ListOptions {
   before?: Date;
   after?: Date;
   channel?: string;
+  withContent?: boolean;
 }
 
 export interface MessageAttemptListOptions extends ListOptions {


Test patch: