summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/api/swagger.yaml13
-rw-r--r--internal/api/client/streaming/stream.go13
2 files changed, 24 insertions, 2 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index d67a01284..87d5d81c2 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -13940,13 +13940,23 @@ paths:
Options are:
- `user`: receive updates for the account's home timeline.
+ `user`: receive updates for the account's home timeline, and notifications for the account.
+ `user:notification`: receive notifications for the account.
`public`: receive updates for the public timeline.
`public:local`: receive updates for the local timeline.
`hashtag`: receive updates for a given hashtag.
`hashtag:local`: receive local updates for a given hashtag.
`list`: receive updates for a certain list of accounts.
`direct`: receive updates for direct messages.
+ enum:
+ - user
+ - user:notification
+ - public
+ - public:local
+ - hashtag
+ - hashtag:local
+ - list
+ - direct
in: query
name: stream
required: true
@@ -14001,6 +14011,7 @@ paths:
items:
enum:
- user
+ - user:notification
- public
- public:local
- hashtag
diff --git a/internal/api/client/streaming/stream.go b/internal/api/client/streaming/stream.go
index 7af540651..8a018cae6 100644
--- a/internal/api/client/streaming/stream.go
+++ b/internal/api/client/streaming/stream.go
@@ -71,12 +71,22 @@ var pingMsg = []byte("ping!")
// -
// name: stream
// type: string
+// enum:
+// - user
+// - user:notification
+// - public
+// - public:local
+// - hashtag
+// - hashtag:local
+// - list
+// - direct
// description: |-
// Type of stream to request.
//
// Options are:
//
-// `user`: receive updates for the account's home timeline.
+// `user`: receive updates for the account's home timeline, and notifications for the account.
+// `user:notification`: receive notifications for the account.
// `public`: receive updates for the public timeline.
// `public:local`: receive updates for the local timeline.
// `hashtag`: receive updates for a given hashtag.
@@ -115,6 +125,7 @@ var pingMsg = []byte("ping!")
// type: string
// enum:
// - user
+// - user:notification
// - public
// - public:local
// - hashtag