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

Issue:
[Go SDK] MessageAttemptListOptions doesn't support "endpoint_id" parameter
## Bug Report

### Version

v0.85.1 of Golang SDK

### Platform

Irrelevant

### Description

In API docs for [List Attempts By Msg](https://api.svix.com/docs#tag/Message-Attempt/operation/v1.message-attempt.list-by-msg) it says that it is possible to pass `endpoint_id` parameter (including UID), but I’m struggling to find that parameter in Golang SDK - see the following [structure](https://github.com/svix/svix-webhooks/blob/main/go/messageattempt.go#LL28C3-L28C3).


Discussion / hints:
Ahh, I never replied, sorry for that. We chatted over Slack so I forgot to reply here.

We'll take a look next week!

Fix patch:
diff --git a/ChangeLog.md b/ChangeLog.md
index 6988f6ce2..c165265f6 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,7 +1,7 @@
 # Changelog
 
 ## Next
-* 
+* Libs/Go: add missing `endpoint_id` option to list attempts by msg.
 
 ## Version 0.85.1
 * Libs: update OpenAPI spec
diff --git a/go/messageattempt.go b/go/messageattempt.go
index eda3af8a6..15ea2fafd 100644
--- a/go/messageattempt.go
+++ b/go/messageattempt.go
@@ -34,6 +34,7 @@ type MessageAttemptListOptions struct {
 	After           *time.Time
 	StatusCodeClass *StatusCodeClass
 	Channel         *string
+	EndpointId      *string
 }
 
 // Deprecated: use `ListByMsg` or `ListByEndpoint` instead
@@ -68,6 +69,9 @@ func (m *MessageAttempt) ListByMsg(ctx context.Context, appId string, msgId stri
 		if options.Channel != nil {
 			req = req.Channel(*options.Channel)
 		}
+		if options.EndpointId != nil {
+			req = req.EndpointId(*options.EndpointId)
+		}
 	}
 	out, res, err := req.Execute()
 	if err != nil {


Test patch: