Skip to content

Commit 78716ad

Browse files
Add 'tag' parameter to list-message for go,js,python (#1145)
1 parent 89bf78e commit 78716ad

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

go/message.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type MessageListOptions struct {
2424
Before *time.Time
2525
After *time.Time
2626
Channel *string
27+
Tag *string
2728
}
2829

2930
func (m *Message) List(ctx context.Context, appId string, options *MessageListOptions) (*ListResponseMessageOut, error) {
@@ -47,6 +48,9 @@ func (m *Message) List(ctx context.Context, appId string, options *MessageListOp
4748
if options.Channel != nil {
4849
req = req.Channel(*options.Channel)
4950
}
51+
if options.Tag != nil {
52+
req = req.Tag(*options.Tag)
53+
}
5054
}
5155
out, res, err := req.Execute()
5256
if err != nil {

javascript/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export interface MessageListOptions extends ListOptions {
211211
after?: Date;
212212
channel?: string;
213213
withContent?: boolean;
214+
tag?: string;
214215
}
215216

216217
export interface MessageAttemptListOptions extends ListOptions {

python/svix/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class MessageListOptions(ListOptions):
170170
before: t.Optional[datetime] = None
171171
after: t.Optional[datetime] = None
172172
channel: t.Optional[str] = None
173+
tag: t.Optional[str] = None
173174

174175

175176
@dataclass

0 commit comments

Comments
 (0)