-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
99 additions
and
11 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
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,15 @@ | ||
# GENERATED CODE - DO NOT MODIFY | ||
"""""" | ||
from __future__ import annotations | ||
import chitose | ||
import typing | ||
|
||
def _get_quotes(call: chitose.xrpc.XrpcCall, uri: str, cid: typing.Optional[str]=None, limit: typing.Optional[int]=None, cursor: typing.Optional[str]=None) -> bytes: | ||
"""Get a list of quotes for a given post. | ||
:param uri: Reference (AT-URI) of post record | ||
:param cid: If supplied, filters to quotes of specific version (by CID) of the post record. | ||
""" | ||
return call('app.bsky.feed.getQuotes', [('uri', uri), ('cid', cid), ('limit', limit), ('cursor', cursor)], None, {}) |
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,30 @@ | ||
# GENERATED CODE - DO NOT MODIFY | ||
"""""" | ||
from __future__ import annotations | ||
import chitose | ||
import chitose.app.bsky.feed.postgate | ||
import typing | ||
|
||
class Postgate(chitose.Record): | ||
""" | ||
:param post: Reference (AT-URI) to the post record. | ||
:param detached_embedding_uris: List of AT-URIs embedding this post that the author has detached from. | ||
""" | ||
|
||
def __init__(self, created_at: str, post: str, detached_embedding_uris: typing.Optional[list[str]]=None, embedding_rules: typing.Optional[list[chitose.app.bsky.feed.postgate.DisableRule]]=None) -> None: | ||
self.created_at = created_at | ||
self.post = post | ||
self.detached_embedding_uris = detached_embedding_uris | ||
self.embedding_rules = embedding_rules | ||
|
||
def to_dict(self) -> dict[str, typing.Any]: | ||
return {'createdAt': self.created_at, 'post': self.post, 'detachedEmbeddingUris': self.detached_embedding_uris, 'embeddingRules': self.embedding_rules, '$type': 'app.bsky.feed.postgate'} | ||
|
||
class DisableRule(chitose.Object): | ||
"""Disables embedding of this post.""" | ||
|
||
def to_dict(self) -> dict[str, typing.Any]: | ||
return {'$type': 'app.bsky.feed.postgate#disableRule'} |
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