-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lexicons fetched from dced566 committed 2024-12-16T23:20:46Z
- Loading branch information
Showing
10 changed files
with
183 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...source/atproto/atproto_client.models.app.bsky.unspecced.get_trending_topics.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
app.bsky.unspecced.get\_trending\_topics | ||
=============================================================== | ||
|
||
.. automodule:: atproto_client.models.app.bsky.unspecced.get_trending_topics | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.unspecced.getTrendingTopics", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Get a list of trending topics", | ||
"parameters": { | ||
"type": "params", | ||
"properties": { | ||
"viewer": { | ||
"type": "string", | ||
"format": "did", | ||
"description": "DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking." | ||
}, | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 25, | ||
"default": 10 | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["topics", "suggested"], | ||
"properties": { | ||
"topics": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "app.bsky.unspecced.defs#trendingTopic" | ||
} | ||
}, | ||
"suggested": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "app.bsky.unspecced.defs#trendingTopic" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
packages/atproto_client/models/app/bsky/unspecced/get_trending_topics.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
import typing_extensions as te | ||
from pydantic import Field | ||
|
||
from atproto_client.models import string_formats | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Params(base.ParamsModelBase): | ||
"""Parameters model for :obj:`app.bsky.unspecced.getTrendingTopics`.""" | ||
|
||
limit: t.Optional[int] = Field(default=10, ge=1, le=25) #: Limit. | ||
viewer: t.Optional[string_formats.Did] = ( | ||
None #: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. | ||
) | ||
|
||
|
||
class ParamsDict(t.TypedDict): | ||
limit: te.NotRequired[t.Optional[int]] #: Limit. | ||
viewer: te.NotRequired[ | ||
t.Optional[string_formats.Did] | ||
] #: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. | ||
|
||
|
||
class Response(base.ResponseModelBase): | ||
"""Output data model for :obj:`app.bsky.unspecced.getTrendingTopics`.""" | ||
|
||
suggested: t.List['models.AppBskyUnspeccedDefs.TrendingTopic'] #: Suggested. | ||
topics: t.List['models.AppBskyUnspeccedDefs.TrendingTopic'] #: Topics. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters