From dab0fd0c182f0923ccb13de1748f8bad2a5b7b5d Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 28 Sep 2023 22:23:46 +1000 Subject: [PATCH] Add TypedDict for params and data arguments; add type hint for kwargs (#166) --- atproto/codegen/__init__.py | 2 + atproto/codegen/models/generator.py | 99 +++- atproto/codegen/namespaces/generator.py | 20 +- .../models/app/bsky/actor/get_preferences.py | 6 + .../models/app/bsky/actor/get_profile.py | 6 + .../models/app/bsky/actor/get_profiles.py | 5 + .../models/app/bsky/actor/get_suggestions.py | 6 + .../models/app/bsky/actor/put_preferences.py | 6 + .../models/app/bsky/actor/search_actors.py | 7 + .../app/bsky/actor/search_actors_typeahead.py | 6 + .../models/app/bsky/feed/get_actor_feeds.py | 7 + .../models/app/bsky/feed/get_actor_likes.py | 7 + .../models/app/bsky/feed/get_author_feed.py | 8 + .../models/app/bsky/feed/get_feed.py | 7 + .../app/bsky/feed/get_feed_generator.py | 5 + .../app/bsky/feed/get_feed_generators.py | 6 + .../models/app/bsky/feed/get_feed_skeleton.py | 7 + .../models/app/bsky/feed/get_likes.py | 7 + .../models/app/bsky/feed/get_list_feed.py | 7 + .../models/app/bsky/feed/get_post_thread.py | 6 + .../models/app/bsky/feed/get_posts.py | 5 + .../models/app/bsky/feed/get_reposted_by.py | 8 + .../app/bsky/feed/get_suggested_feeds.py | 6 + .../models/app/bsky/feed/get_timeline.py | 7 + .../models/app/bsky/graph/get_blocks.py | 6 + .../models/app/bsky/graph/get_followers.py | 7 + .../models/app/bsky/graph/get_follows.py | 7 + .../models/app/bsky/graph/get_list.py | 7 + .../models/app/bsky/graph/get_list_blocks.py | 6 + .../models/app/bsky/graph/get_list_mutes.py | 6 + .../models/app/bsky/graph/get_lists.py | 7 + .../models/app/bsky/graph/get_mutes.py | 6 + .../graph/get_suggested_follows_by_actor.py | 6 + .../models/app/bsky/graph/mute_actor.py | 6 + .../models/app/bsky/graph/mute_actor_list.py | 6 + .../models/app/bsky/graph/unmute_actor.py | 6 + .../app/bsky/graph/unmute_actor_list.py | 6 + .../app/bsky/notification/get_unread_count.py | 5 + .../bsky/notification/list_notifications.py | 6 + .../app/bsky/notification/register_push.py | 8 + .../app/bsky/notification/update_seen.py | 5 + .../models/app/bsky/unspecced/apply_labels.py | 6 + .../models/app/bsky/unspecced/get_popular.py | 7 + .../unspecced/get_popular_feed_generators.py | 7 + .../bsky/unspecced/get_timeline_skeleton.py | 6 + .../atproto/admin/disable_account_invites.py | 7 + .../com/atproto/admin/disable_invite_codes.py | 7 + .../atproto/admin/enable_account_invites.py | 7 + .../com/atproto/admin/get_invite_codes.py | 7 + .../atproto/admin/get_moderation_action.py | 6 + .../atproto/admin/get_moderation_actions.py | 7 + .../atproto/admin/get_moderation_report.py | 6 + .../atproto/admin/get_moderation_reports.py | 15 + .../models/com/atproto/admin/get_record.py | 7 + .../models/com/atproto/admin/get_repo.py | 6 + .../admin/resolve_moderation_reports.py | 7 + .../admin/reverse_moderation_action.py | 7 + .../models/com/atproto/admin/search_repos.py | 8 + .../models/com/atproto/admin/send_email.py | 7 + .../atproto/admin/take_moderation_action.py | 16 + .../com/atproto/admin/update_account_email.py | 7 + .../atproto/admin/update_account_handle.py | 7 + .../com/atproto/identity/resolve_handle.py | 6 + .../com/atproto/identity/update_handle.py | 6 + .../models/com/atproto/label/query_labels.py | 10 + .../com/atproto/label/subscribe_labels.py | 4 + .../com/atproto/moderation/create_report.py | 9 + .../models/com/atproto/repo/apply_writes.py | 16 + .../models/com/atproto/repo/create_record.py | 14 +- .../models/com/atproto/repo/delete_record.py | 9 + .../models/com/atproto/repo/describe_repo.py | 5 + .../models/com/atproto/repo/get_record.py | 11 + .../models/com/atproto/repo/list_records.py | 10 + .../models/com/atproto/repo/put_record.py | 15 +- .../com/atproto/server/create_account.py | 10 + .../com/atproto/server/create_app_password.py | 4 + .../com/atproto/server/create_invite_code.py | 6 + .../com/atproto/server/create_invite_codes.py | 6 + .../com/atproto/server/create_session.py | 6 + .../com/atproto/server/delete_account.py | 8 + .../server/get_account_invite_codes.py | 6 + .../atproto/server/request_password_reset.py | 6 + .../com/atproto/server/reset_password.py | 7 + .../com/atproto/server/revoke_app_password.py | 6 + .../models/com/atproto/sync/get_blob.py | 5 + .../models/com/atproto/sync/get_blocks.py | 5 + .../models/com/atproto/sync/get_checkout.py | 4 + .../models/com/atproto/sync/get_head.py | 6 + .../com/atproto/sync/get_latest_commit.py | 6 + .../models/com/atproto/sync/get_record.py | 7 + .../models/com/atproto/sync/get_repo.py | 5 + .../models/com/atproto/sync/list_blobs.py | 8 + .../models/com/atproto/sync/list_repos.py | 5 + .../com/atproto/sync/notify_of_update.py | 6 + .../models/com/atproto/sync/request_crawl.py | 6 + .../com/atproto/sync/subscribe_repos.py | 4 + atproto/xrpc_client/models/models_loader.py | 4 +- atproto/xrpc_client/models/unknown_type.py | 1 + atproto/xrpc_client/namespaces/async_ns.py | 484 ++++++++++++++---- atproto/xrpc_client/namespaces/sync_ns.py | 484 ++++++++++++++---- 100 files changed, 1523 insertions(+), 219 deletions(-) diff --git a/atproto/codegen/__init__.py b/atproto/codegen/__init__.py index 0baad0d5..18d14e5d 100644 --- a/atproto/codegen/__init__.py +++ b/atproto/codegen/__init__.py @@ -16,7 +16,9 @@ DISCLAIMER = f'{"#" * _MAX_DISCLAIMER_LEN}\n{DISCLAIMER}\n{"#" * _MAX_DISCLAIMER_LEN}\n\n' PARAMS_MODEL = 'Params' +PARAMS_DICT = 'ParamsDict' INPUT_MODEL = 'Data' +INPUT_DICT = 'DataDict' OUTPUT_MODEL = 'Response' diff --git a/atproto/codegen/models/generator.py b/atproto/codegen/models/generator.py index 5478eac2..c66ed5a0 100644 --- a/atproto/codegen/models/generator.py +++ b/atproto/codegen/models/generator.py @@ -6,8 +6,10 @@ from atproto.codegen import ( DISCLAIMER, + INPUT_DICT, INPUT_MODEL, OUTPUT_MODEL, + PARAMS_DICT, PARAMS_MODEL, _resolve_nsid_ref, append_code, @@ -36,6 +38,11 @@ class ModelType(Enum): RECORD = 'Record' +class TypedDictType(Enum): + PARAMS = 'Parameters' + DATA = 'Input data' + + def save_code(nsid: NSID, code: str) -> None: path_to_file = _MODELS_OUTPUT_DIR.joinpath(*get_file_path_parts(nsid)) write_code(_MODELS_OUTPUT_DIR.joinpath(path_to_file), code) @@ -57,6 +64,7 @@ def _get_model_imports() -> str: 'if t.TYPE_CHECKING:', f'{_(1)}from atproto.xrpc_client import models', f'{_(1)}from atproto.xrpc_client.models.unknown_type import UnknownType', + f'{_(1)}from atproto.xrpc_client.models.unknown_type import UnknownInputType', f'{_(1)}from atproto.xrpc_client.models.blob_ref import BlobRef', f'{_(1)}from atproto import CIDType', 'from atproto.xrpc_client.models import base', @@ -78,7 +86,7 @@ def _save_code_import_if_not_exist(nsid: NSID) -> None: def _get_model_class_def(name: str, model_type: ModelType) -> str: - lines = [] + lines: t.List[str] = [] if model_type is ModelType.PARAMS: lines.append(f'class {PARAMS_MODEL}(base.ParamsModelBase):') @@ -96,6 +104,19 @@ def _get_model_class_def(name: str, model_type: ModelType) -> str: return join_code(lines) +def _get_typeddict_class_def(name: str, model_type: TypedDictType) -> str: + lines: t.List[str] = [] + + if model_type is TypedDictType.PARAMS: + lines.append(f'class {PARAMS_DICT}(te.TypedDict):') + elif model_type is TypedDictType.DATA: + lines.append(f'class {INPUT_DICT}(te.TypedDict):') + + lines.append('') + + return join_code(lines) + + _LEXICON_TYPE_TO_PRIMITIVE_TYPEHINT = { models.LexString: 'str', models.LexInteger: 'int', @@ -135,11 +156,13 @@ def _get_ref_union_typehint(nsid: NSID, field_type_def, *, optional: bool) -> st return _get_optional_typehint(annotated_union, optional=optional) -def _get_model_field_typehint(nsid: NSID, field_type_def, *, optional: bool) -> str: +def _get_model_field_typehint(nsid: NSID, field_type_def, *, optional: bool, is_input_type: bool = False) -> str: field_type = type(field_type_def) if field_type == models.LexUnknown: # unknown type is a generic response with records or any not described type in the lexicon. for example, didDoc + if is_input_type: + return _get_optional_typehint("'UnknownInputType'", optional=optional) return _get_optional_typehint("'UnknownType'", optional=optional) type_hint = _LEXICON_TYPE_TO_PRIMITIVE_TYPEHINT.get(field_type) @@ -147,7 +170,9 @@ def _get_model_field_typehint(nsid: NSID, field_type_def, *, optional: bool) -> return _get_optional_typehint(type_hint, optional=optional) if field_type is models.LexArray: - items_type_hint = _get_model_field_typehint(nsid, field_type_def.items, optional=False) + items_type_hint = _get_model_field_typehint( + nsid, field_type_def.items, optional=False, is_input_type=is_input_type + ) return _get_optional_typehint(f't.List[{items_type_hint}]', optional=optional) if field_type is models.LexRef: @@ -308,7 +333,9 @@ def _is_reserved_pydantic_name(name: str) -> bool: return name in _get_pydantic_reserved_names() -def _get_model(nsid: NSID, lex_object: t.Union[models.LexObject, models.LexXrpcParameters]) -> str: +def _get_model( + nsid: NSID, lex_object: t.Union[models.LexObject, models.LexXrpcParameters], *, is_input_type: bool = False +) -> str: required_fields = _get_req_fields_set(lex_object) fields = [] @@ -329,7 +356,7 @@ def _get_model(nsid: NSID, lex_object: t.Union[models.LexObject, models.LexXrpcP snake_cased_field_name += '_' # add underscore to the end alias_name = field_name - type_hint = _get_model_field_typehint(nsid, field_type_def, optional=is_optional) + type_hint = _get_model_field_typehint(nsid, field_type_def, optional=is_optional, is_input_type=is_input_type) value = _get_model_field_value(field_type_def, alias_name, optional=is_optional) description = _get_field_docstring(field_name, field_type_def) @@ -351,6 +378,44 @@ def _get_model(nsid: NSID, lex_object: t.Union[models.LexObject, models.LexXrpcP return join_code(fields) +def _get_typeddict( + nsid: NSID, lex_object: t.Union[models.LexObject, models.LexXrpcParameters], *, is_input_type: bool = False +) -> str: + required_fields = _get_req_fields_set(lex_object) + + fields: t.List[str] = [] + optional_fields: t.List[str] = [] + + for field_name, field_type_def in lex_object.properties.items(): + is_optional = field_name not in required_fields + + snake_cased_field_name = convert_camel_case_to_snake_case(field_name) + + type_hint = _get_model_field_typehint(nsid, field_type_def, optional=is_optional, is_input_type=is_input_type) + description = _get_field_docstring(field_name, field_type_def) + + # Allow optional params to actually be ommitted from the dict entirely + type_hint_defaulting = f'te.NotRequired[{type_hint}]' if is_optional else type_hint + field_def = f'{_(1)}{snake_cased_field_name}: {type_hint_defaulting} #: {description}' + + if is_optional: + optional_fields.append(field_def) + else: + fields.append(field_def) + + optional_fields.sort() + fields.sort() + + fields.extend(optional_fields) + + if len(fields) == 0: + fields.append(f'{_(1)}pass') + + fields.append('') + + return join_code(fields) + + def _get_model_raw_data(name: str) -> str: lines = [f'#: {name} raw data type.', f'{name}: te.TypeAlias = bytes\n\n'] return join_code(lines) @@ -361,7 +426,12 @@ def _generate_params_model(nsid: NSID, definition: t.Union[models.LexXrpcQuery, if definition.parameters: lines.append(_get_model_docstring(nsid, definition.parameters, ModelType.PARAMS)) - lines.append(_get_model(nsid, definition.parameters)) + lines.append(_get_model(nsid, definition.parameters, is_input_type=True)) + + lines.append(_get_typeddict_class_def(nsid.name, TypedDictType.PARAMS)) + + if definition.parameters: + lines.append(_get_typeddict(nsid, definition.parameters, is_input_type=True)) return join_code(lines) @@ -372,7 +442,7 @@ def _generate_xrpc_body_model(nsid: NSID, body: models.LexXrpcBody, model_type: if isinstance(body.schema, models.LexObject): lines.append(_get_model_class_def(nsid.name, model_type)) lines.append(_get_model_docstring(nsid, body.schema, model_type)) - lines.append(_get_model(nsid, body.schema)) + lines.append(_get_model(nsid, body.schema, is_input_type=(model_type is ModelType.DATA))) else: if model_type is ModelType.DATA: model_name = INPUT_MODEL @@ -386,8 +456,18 @@ def _generate_xrpc_body_model(nsid: NSID, body: models.LexXrpcBody, model_type: return join_code(lines) +def _generate_data_typedict(nsid: NSID, body: models.LexXrpcBody) -> str: + lines: t.List[str] = [] + if isinstance(body.schema, models.LexObject): + lines.append(_get_typeddict_class_def(nsid.name, TypedDictType.DATA)) + lines.append(_get_typeddict(nsid, body.schema, is_input_type=True)) + return join_code(lines) + + def _generate_data_model(nsid: NSID, input_body: models.LexXrpcBody) -> str: - return _generate_xrpc_body_model(nsid, input_body, ModelType.DATA) + return join_code( + [_generate_xrpc_body_model(nsid, input_body, ModelType.DATA), _generate_data_typedict(nsid, input_body)] + ) def _generate_response_model(nsid: NSID, output_body: models.LexXrpcBody) -> str: @@ -560,6 +640,9 @@ def _generate_record_type_database(lex_db: builder.BuiltRecordModels) -> None: unknown_record_type_pydantic_lines.append( "UnknownType: te.TypeAlias = t.Union[UnknownRecordTypePydantic, 'dot_dict.DotDictType']" ) + unknown_record_type_pydantic_lines.append( + 'UnknownInputType: te.TypeAlias = t.Union[UnknownType, t.Dict[str, t.Any]]' + ) unknown_type_lines = [*import_lines, *unknown_record_type_hint_lines, *unknown_record_type_pydantic_lines] write_code(_MODELS_OUTPUT_DIR.joinpath('type_conversion.py'), join_code(type_conversion_lines)) diff --git a/atproto/codegen/namespaces/generator.py b/atproto/codegen/namespaces/generator.py index e2165234..2d895bcd 100644 --- a/atproto/codegen/namespaces/generator.py +++ b/atproto/codegen/namespaces/generator.py @@ -3,8 +3,10 @@ from atproto.codegen import ( DISCLAIMER, + INPUT_DICT, INPUT_MODEL, OUTPUT_MODEL, + PARAMS_DICT, PARAMS_MODEL, _resolve_nsid_ref, convert_camel_case_to_snake_case, @@ -175,13 +177,17 @@ def _override_arg_line(name: str, model_name: str) -> str: def _get_namespace_method_signature_arg( - name: str, nsid: NSID, model_name: str, *, optional: bool, alias: bool = False + name: str, nsid: NSID, model_name: t.Union[t.List[str], str], *, optional: bool, alias: bool = False ) -> str: if alias: return f"{name}: 'models.{get_import_path(nsid)}.{model_name}'" default_value = '' - type_hint = f"t.Union[dict, 'models.{get_import_path(nsid)}.{model_name}']" + type_hint = ( + f"t.Union[dict, 'models.{get_import_path(nsid)}.{model_name}']" + if isinstance(model_name, str) + else 't.Union[' + ', '.join(f'models.{get_import_path(nsid)}.{i}' for i in model_name) + ']' + ) if optional: type_hint = f't.Optional[{type_hint}]' default_value = ' = None' @@ -226,7 +232,9 @@ def is_optional_arg(lex_obj) -> bool: params = method_info.definition.parameters is_optional = is_optional_arg(params) - arg = _get_namespace_method_signature_arg('params', method_info.nsid, PARAMS_MODEL, optional=is_optional) + arg = _get_namespace_method_signature_arg( + 'params', method_info.nsid, [PARAMS_MODEL, PARAMS_DICT], optional=is_optional + ) _add_arg(arg, optional=is_optional) if isinstance(method_info, ProcedureInfo) and method_info.definition.input: @@ -235,7 +243,9 @@ def is_optional_arg(lex_obj) -> bool: is_optional = is_optional_arg(schema) if schema and isinstance(schema, LexObject): - arg = _get_namespace_method_signature_arg('data', method_info.nsid, INPUT_MODEL, optional=is_optional) + arg = _get_namespace_method_signature_arg( + 'data', method_info.nsid, [INPUT_MODEL, INPUT_DICT], optional=is_optional + ) _add_arg(arg, optional=is_optional) else: raise ValueError(f'Bad type {type(schema)}') # probably LexRefVariant @@ -244,7 +254,7 @@ def is_optional_arg(lex_obj) -> bool: _add_arg(arg, optional=False) args.extend(optional_args) - args.append('**kwargs') + args.append('**kwargs: t.Any') return ', '.join(args) diff --git a/atproto/xrpc_client/models/app/bsky/actor/get_preferences.py b/atproto/xrpc_client/models/app/bsky/actor/get_preferences.py index 28d8d431..b83b87a5 100644 --- a/atproto/xrpc_client/models/app/bsky/actor/get_preferences.py +++ b/atproto/xrpc_client/models/app/bsky/actor/get_preferences.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: from atproto.xrpc_client import models from atproto.xrpc_client.models import base @@ -17,6 +19,10 @@ class Params(base.ParamsModelBase): """Parameters model for :obj:`app.bsky.actor.getPreferences`.""" +class ParamsDict(te.TypedDict): + pass + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.actor.getPreferences`.""" diff --git a/atproto/xrpc_client/models/app/bsky/actor/get_profile.py b/atproto/xrpc_client/models/app/bsky/actor/get_profile.py index 4b5868d3..b4cb8a1d 100644 --- a/atproto/xrpc_client/models/app/bsky/actor/get_profile.py +++ b/atproto/xrpc_client/models/app/bsky/actor/get_profile.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Params(base.ParamsModelBase): """Parameters model for :obj:`app.bsky.actor.getProfile`.""" actor: str #: Actor. + + +class ParamsDict(te.TypedDict): + actor: str #: Actor. diff --git a/atproto/xrpc_client/models/app/bsky/actor/get_profiles.py b/atproto/xrpc_client/models/app/bsky/actor/get_profiles.py index 57b2c54f..f9d9782a 100644 --- a/atproto/xrpc_client/models/app/bsky/actor/get_profiles.py +++ b/atproto/xrpc_client/models/app/bsky/actor/get_profiles.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -21,6 +22,10 @@ class Params(base.ParamsModelBase): actors: t.List[str] = Field(max_length=25) #: Actors. +class ParamsDict(te.TypedDict): + actors: t.List[str] #: Actors. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.actor.getProfiles`.""" diff --git a/atproto/xrpc_client/models/app/bsky/actor/get_suggestions.py b/atproto/xrpc_client/models/app/bsky/actor/get_suggestions.py index 2ee28fd2..e7b7a791 100644 --- a/atproto/xrpc_client/models/app/bsky/actor/get_suggestions.py +++ b/atproto/xrpc_client/models/app/bsky/actor/get_suggestions.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.actor.getSuggestions`.""" diff --git a/atproto/xrpc_client/models/app/bsky/actor/put_preferences.py b/atproto/xrpc_client/models/app/bsky/actor/put_preferences.py index 696b5583..453c952e 100644 --- a/atproto/xrpc_client/models/app/bsky/actor/put_preferences.py +++ b/atproto/xrpc_client/models/app/bsky/actor/put_preferences.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: from atproto.xrpc_client import models from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`app.bsky.actor.putPreferences`.""" preferences: 'models.AppBskyActorDefs.Preferences' #: Preferences. + + +class DataDict(te.TypedDict): + preferences: 'models.AppBskyActorDefs.Preferences' #: Preferences. diff --git a/atproto/xrpc_client/models/app/bsky/actor/search_actors.py b/atproto/xrpc_client/models/app/bsky/actor/search_actors.py index 6de7ff84..95e54f16 100644 --- a/atproto/xrpc_client/models/app/bsky/actor/search_actors.py +++ b/atproto/xrpc_client/models/app/bsky/actor/search_actors.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): term: t.Optional[str] = None #: Term. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + term: te.NotRequired[t.Optional[str]] #: Term. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.actor.searchActors`.""" diff --git a/atproto/xrpc_client/models/app/bsky/actor/search_actors_typeahead.py b/atproto/xrpc_client/models/app/bsky/actor/search_actors_typeahead.py index 6acdc494..f0dbf20c 100644 --- a/atproto/xrpc_client/models/app/bsky/actor/search_actors_typeahead.py +++ b/atproto/xrpc_client/models/app/bsky/actor/search_actors_typeahead.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): term: t.Optional[str] = None #: Term. +class ParamsDict(te.TypedDict): + limit: te.NotRequired[t.Optional[int]] #: Limit. + term: te.NotRequired[t.Optional[str]] #: Term. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.actor.searchActorsTypeahead`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_actor_feeds.py b/atproto/xrpc_client/models/app/bsky/feed/get_actor_feeds.py index cbea39f2..42073b2b 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_actor_feeds.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_actor_feeds.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + actor: str #: Actor. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getActorFeeds`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_actor_likes.py b/atproto/xrpc_client/models/app/bsky/feed/get_actor_likes.py index 6db47803..eae2d10e 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_actor_likes.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_actor_likes.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + actor: str #: Actor. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getActorLikes`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_author_feed.py b/atproto/xrpc_client/models/app/bsky/feed/get_author_feed.py index 6578685b..b3e3e1be 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_author_feed.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_author_feed.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -24,6 +25,13 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + actor: str #: Actor. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + filter: te.NotRequired[t.Optional[str]] #: Filter. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getAuthorFeed`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_feed.py b/atproto/xrpc_client/models/app/bsky/feed/get_feed.py index 9148ad3b..d9d41106 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_feed.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_feed.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + feed: str #: Feed. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getFeed`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_feed_generator.py b/atproto/xrpc_client/models/app/bsky/feed/get_feed_generator.py index c4aa26b7..d699d130 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_feed_generator.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_feed_generator.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -21,6 +22,10 @@ class Params(base.ParamsModelBase): feed: str #: Feed. +class ParamsDict(te.TypedDict): + feed: str #: Feed. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getFeedGenerator`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_feed_generators.py b/atproto/xrpc_client/models/app/bsky/feed/get_feed_generators.py index e3d141f6..72a7f04b 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_feed_generators.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_feed_generators.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: from atproto.xrpc_client import models from atproto.xrpc_client.models import base @@ -19,6 +21,10 @@ class Params(base.ParamsModelBase): feeds: t.List[str] #: Feeds. +class ParamsDict(te.TypedDict): + feeds: t.List[str] #: Feeds. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getFeedGenerators`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_feed_skeleton.py b/atproto/xrpc_client/models/app/bsky/feed/get_feed_skeleton.py index 993c9f5d..ebea4dac 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_feed_skeleton.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_feed_skeleton.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + feed: str #: Feed. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getFeedSkeleton`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_likes.py b/atproto/xrpc_client/models/app/bsky/feed/get_likes.py index 3877ae37..3141f563 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_likes.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_likes.py @@ -25,6 +25,13 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + uri: str #: Uri. + cid: te.NotRequired[t.Optional[str]] #: Cid. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getLikes`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_list_feed.py b/atproto/xrpc_client/models/app/bsky/feed/get_list_feed.py index ccc32e41..f7b703d3 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_list_feed.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_list_feed.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + list: str #: List. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getListFeed`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_post_thread.py b/atproto/xrpc_client/models/app/bsky/feed/get_post_thread.py index c725cf9f..62e17ce2 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_post_thread.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_post_thread.py @@ -24,6 +24,12 @@ class Params(base.ParamsModelBase): parent_height: t.Optional[int] = Field(default=80, alias='parentHeight', ge=0, le=1000) #: Parent height. +class ParamsDict(te.TypedDict): + uri: str #: Uri. + depth: te.NotRequired[t.Optional[int]] #: Depth. + parent_height: te.NotRequired[t.Optional[int]] #: Parent height. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getPostThread`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_posts.py b/atproto/xrpc_client/models/app/bsky/feed/get_posts.py index c744a762..49a60594 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_posts.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_posts.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -21,6 +22,10 @@ class Params(base.ParamsModelBase): uris: t.List[str] = Field(max_length=25) #: Uris. +class ParamsDict(te.TypedDict): + uris: t.List[str] #: Uris. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getPosts`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_reposted_by.py b/atproto/xrpc_client/models/app/bsky/feed/get_reposted_by.py index 49f448c3..4c2934fb 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_reposted_by.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_reposted_by.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -24,6 +25,13 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + uri: str #: Uri. + cid: te.NotRequired[t.Optional[str]] #: Cid. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getRepostedBy`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_suggested_feeds.py b/atproto/xrpc_client/models/app/bsky/feed/get_suggested_feeds.py index 29e8fa0b..6d55dc2f 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_suggested_feeds.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_suggested_feeds.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getSuggestedFeeds`.""" diff --git a/atproto/xrpc_client/models/app/bsky/feed/get_timeline.py b/atproto/xrpc_client/models/app/bsky/feed/get_timeline.py index 7e14980f..0c8c6dea 100644 --- a/atproto/xrpc_client/models/app/bsky/feed/get_timeline.py +++ b/atproto/xrpc_client/models/app/bsky/feed/get_timeline.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + algorithm: te.NotRequired[t.Optional[str]] #: Algorithm. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.feed.getTimeline`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_blocks.py b/atproto/xrpc_client/models/app/bsky/graph/get_blocks.py index af2d1cfa..4864ab45 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_blocks.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_blocks.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getBlocks`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_followers.py b/atproto/xrpc_client/models/app/bsky/graph/get_followers.py index 9183a70d..74c0fff1 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_followers.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_followers.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + actor: str #: Actor. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getFollowers`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_follows.py b/atproto/xrpc_client/models/app/bsky/graph/get_follows.py index 74e044b1..cc574d55 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_follows.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_follows.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + actor: str #: Actor. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getFollows`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_list.py b/atproto/xrpc_client/models/app/bsky/graph/get_list.py index 72fa9a15..e9851d92 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_list.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_list.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + list: str #: List. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getList`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_list_blocks.py b/atproto/xrpc_client/models/app/bsky/graph/get_list_blocks.py index 7a96f012..f825ea23 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_list_blocks.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_list_blocks.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getListBlocks`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_list_mutes.py b/atproto/xrpc_client/models/app/bsky/graph/get_list_mutes.py index 63c3e849..9acc089e 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_list_mutes.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_list_mutes.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getListMutes`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_lists.py b/atproto/xrpc_client/models/app/bsky/graph/get_lists.py index bcc88ed5..abd967c7 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_lists.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_lists.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + actor: str #: Actor. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getLists`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_mutes.py b/atproto/xrpc_client/models/app/bsky/graph/get_mutes.py index b044efc1..96272f1c 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_mutes.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_mutes.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getMutes`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/get_suggested_follows_by_actor.py b/atproto/xrpc_client/models/app/bsky/graph/get_suggested_follows_by_actor.py index 42a81715..b62022ea 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/get_suggested_follows_by_actor.py +++ b/atproto/xrpc_client/models/app/bsky/graph/get_suggested_follows_by_actor.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: from atproto.xrpc_client import models from atproto.xrpc_client.models import base @@ -19,6 +21,10 @@ class Params(base.ParamsModelBase): actor: str #: Actor. +class ParamsDict(te.TypedDict): + actor: str #: Actor. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.graph.getSuggestedFollowsByActor`.""" diff --git a/atproto/xrpc_client/models/app/bsky/graph/mute_actor.py b/atproto/xrpc_client/models/app/bsky/graph/mute_actor.py index 9151b388..9e8950ca 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/mute_actor.py +++ b/atproto/xrpc_client/models/app/bsky/graph/mute_actor.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`app.bsky.graph.muteActor`.""" actor: str #: Actor. + + +class DataDict(te.TypedDict): + actor: str #: Actor. diff --git a/atproto/xrpc_client/models/app/bsky/graph/mute_actor_list.py b/atproto/xrpc_client/models/app/bsky/graph/mute_actor_list.py index 93574cd6..485ec682 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/mute_actor_list.py +++ b/atproto/xrpc_client/models/app/bsky/graph/mute_actor_list.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`app.bsky.graph.muteActorList`.""" list: str #: List. + + +class DataDict(te.TypedDict): + list: str #: List. diff --git a/atproto/xrpc_client/models/app/bsky/graph/unmute_actor.py b/atproto/xrpc_client/models/app/bsky/graph/unmute_actor.py index 9e998678..3d31c4e6 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/unmute_actor.py +++ b/atproto/xrpc_client/models/app/bsky/graph/unmute_actor.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`app.bsky.graph.unmuteActor`.""" actor: str #: Actor. + + +class DataDict(te.TypedDict): + actor: str #: Actor. diff --git a/atproto/xrpc_client/models/app/bsky/graph/unmute_actor_list.py b/atproto/xrpc_client/models/app/bsky/graph/unmute_actor_list.py index 4f213702..9cdb6107 100644 --- a/atproto/xrpc_client/models/app/bsky/graph/unmute_actor_list.py +++ b/atproto/xrpc_client/models/app/bsky/graph/unmute_actor_list.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`app.bsky.graph.unmuteActorList`.""" list: str #: List. + + +class DataDict(te.TypedDict): + list: str #: List. diff --git a/atproto/xrpc_client/models/app/bsky/notification/get_unread_count.py b/atproto/xrpc_client/models/app/bsky/notification/get_unread_count.py index f9eadce1..fe12bd13 100644 --- a/atproto/xrpc_client/models/app/bsky/notification/get_unread_count.py +++ b/atproto/xrpc_client/models/app/bsky/notification/get_unread_count.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -21,6 +22,10 @@ class Params(base.ParamsModelBase): seen_at: t.Optional[str] = Field(default=None, alias='seenAt') #: Seen at. +class ParamsDict(te.TypedDict): + seen_at: te.NotRequired[t.Optional[str]] #: Seen at. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.notification.getUnreadCount`.""" diff --git a/atproto/xrpc_client/models/app/bsky/notification/list_notifications.py b/atproto/xrpc_client/models/app/bsky/notification/list_notifications.py index 31b87538..23bb32c3 100644 --- a/atproto/xrpc_client/models/app/bsky/notification/list_notifications.py +++ b/atproto/xrpc_client/models/app/bsky/notification/list_notifications.py @@ -25,6 +25,12 @@ class Params(base.ParamsModelBase): seen_at: t.Optional[str] = Field(default=None, alias='seenAt') #: Seen at. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + seen_at: te.NotRequired[t.Optional[str]] #: Seen at. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.notification.listNotifications`.""" diff --git a/atproto/xrpc_client/models/app/bsky/notification/register_push.py b/atproto/xrpc_client/models/app/bsky/notification/register_push.py index 9793e8b6..0d17fa5b 100644 --- a/atproto/xrpc_client/models/app/bsky/notification/register_push.py +++ b/atproto/xrpc_client/models/app/bsky/notification/register_push.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,3 +23,10 @@ class Data(base.DataModelBase): platform: str #: Platform. service_did: str = Field(alias='serviceDid') #: Service did. token: str #: Token. + + +class DataDict(te.TypedDict): + app_id: str #: App id. + platform: str #: Platform. + service_did: str #: Service did. + token: str #: Token. diff --git a/atproto/xrpc_client/models/app/bsky/notification/update_seen.py b/atproto/xrpc_client/models/app/bsky/notification/update_seen.py index 76128a4c..a1c9aa06 100644 --- a/atproto/xrpc_client/models/app/bsky/notification/update_seen.py +++ b/atproto/xrpc_client/models/app/bsky/notification/update_seen.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -19,3 +20,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`app.bsky.notification.updateSeen`.""" seen_at: str = Field(alias='seenAt') #: Seen at. + + +class DataDict(te.TypedDict): + seen_at: str #: Seen at. diff --git a/atproto/xrpc_client/models/app/bsky/unspecced/apply_labels.py b/atproto/xrpc_client/models/app/bsky/unspecced/apply_labels.py index fe18733b..6ffc1e56 100644 --- a/atproto/xrpc_client/models/app/bsky/unspecced/apply_labels.py +++ b/atproto/xrpc_client/models/app/bsky/unspecced/apply_labels.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: from atproto.xrpc_client import models from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`app.bsky.unspecced.applyLabels`.""" labels: t.List['models.ComAtprotoLabelDefs.Label'] #: Labels. + + +class DataDict(te.TypedDict): + labels: t.List['models.ComAtprotoLabelDefs.Label'] #: Labels. diff --git a/atproto/xrpc_client/models/app/bsky/unspecced/get_popular.py b/atproto/xrpc_client/models/app/bsky/unspecced/get_popular.py index 0fe09518..e6fd6e16 100644 --- a/atproto/xrpc_client/models/app/bsky/unspecced/get_popular.py +++ b/atproto/xrpc_client/models/app/bsky/unspecced/get_popular.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + include_nsfw: te.NotRequired[t.Optional[bool]] #: Include nsfw. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.unspecced.getPopular`.""" diff --git a/atproto/xrpc_client/models/app/bsky/unspecced/get_popular_feed_generators.py b/atproto/xrpc_client/models/app/bsky/unspecced/get_popular_feed_generators.py index f674ab98..68547e31 100644 --- a/atproto/xrpc_client/models/app/bsky/unspecced/get_popular_feed_generators.py +++ b/atproto/xrpc_client/models/app/bsky/unspecced/get_popular_feed_generators.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): query: t.Optional[str] = None #: Query. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + query: te.NotRequired[t.Optional[str]] #: Query. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.unspecced.getPopularFeedGenerators`.""" diff --git a/atproto/xrpc_client/models/app/bsky/unspecced/get_timeline_skeleton.py b/atproto/xrpc_client/models/app/bsky/unspecced/get_timeline_skeleton.py index 6ce6c555..d8103695 100644 --- a/atproto/xrpc_client/models/app/bsky/unspecced/get_timeline_skeleton.py +++ b/atproto/xrpc_client/models/app/bsky/unspecced/get_timeline_skeleton.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`app.bsky.unspecced.getTimelineSkeleton`.""" diff --git a/atproto/xrpc_client/models/com/atproto/admin/disable_account_invites.py b/atproto/xrpc_client/models/com/atproto/admin/disable_account_invites.py index e8ef31c0..95462cb3 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/disable_account_invites.py +++ b/atproto/xrpc_client/models/com/atproto/admin/disable_account_invites.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -18,3 +20,8 @@ class Data(base.DataModelBase): account: str #: Account. note: t.Optional[str] = None #: Additionally add a note describing why the invites were disabled. + + +class DataDict(te.TypedDict): + account: str #: Account. + note: te.NotRequired[t.Optional[str]] #: Additionally add a note describing why the invites were disabled. diff --git a/atproto/xrpc_client/models/com/atproto/admin/disable_invite_codes.py b/atproto/xrpc_client/models/com/atproto/admin/disable_invite_codes.py index 5f84da50..6f6aa479 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/disable_invite_codes.py +++ b/atproto/xrpc_client/models/com/atproto/admin/disable_invite_codes.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -18,3 +20,8 @@ class Data(base.DataModelBase): accounts: t.Optional[t.List[str]] = None #: Accounts. codes: t.Optional[t.List[str]] = None #: Codes. + + +class DataDict(te.TypedDict): + accounts: te.NotRequired[t.Optional[t.List[str]]] #: Accounts. + codes: te.NotRequired[t.Optional[t.List[str]]] #: Codes. diff --git a/atproto/xrpc_client/models/com/atproto/admin/enable_account_invites.py b/atproto/xrpc_client/models/com/atproto/admin/enable_account_invites.py index f0aa4f83..9a0332f1 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/enable_account_invites.py +++ b/atproto/xrpc_client/models/com/atproto/admin/enable_account_invites.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -18,3 +20,8 @@ class Data(base.DataModelBase): account: str #: Account. note: t.Optional[str] = None #: Additionally add a note describing why the invites were enabled. + + +class DataDict(te.TypedDict): + account: str #: Account. + note: te.NotRequired[t.Optional[str]] #: Additionally add a note describing why the invites were enabled. diff --git a/atproto/xrpc_client/models/com/atproto/admin/get_invite_codes.py b/atproto/xrpc_client/models/com/atproto/admin/get_invite_codes.py index b23c3a4f..22ec424b 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/get_invite_codes.py +++ b/atproto/xrpc_client/models/com/atproto/admin/get_invite_codes.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): sort: t.Optional[str] = None #: Sort. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + sort: te.NotRequired[t.Optional[str]] #: Sort. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.admin.getInviteCodes`.""" diff --git a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_action.py b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_action.py index c4142bda..d3fdcc34 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_action.py +++ b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_action.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Params(base.ParamsModelBase): """Parameters model for :obj:`com.atproto.admin.getModerationAction`.""" id: int #: Id. + + +class ParamsDict(te.TypedDict): + id: int #: Id. diff --git a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_actions.py b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_actions.py index 91e9ce2b..1a95fad4 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_actions.py +++ b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_actions.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Params(base.ParamsModelBase): subject: t.Optional[str] = None #: Subject. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + subject: te.NotRequired[t.Optional[str]] #: Subject. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.admin.getModerationActions`.""" diff --git a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_report.py b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_report.py index c6a04b2a..602c1378 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_report.py +++ b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_report.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Params(base.ParamsModelBase): """Parameters model for :obj:`com.atproto.admin.getModerationReport`.""" id: int #: Id. + + +class ParamsDict(te.TypedDict): + id: int #: Id. diff --git a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_reports.py b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_reports.py index 92c3aebc..16b52420 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/get_moderation_reports.py +++ b/atproto/xrpc_client/models/com/atproto/admin/get_moderation_reports.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -33,6 +34,20 @@ class Params(base.ParamsModelBase): subject: t.Optional[str] = None #: Subject. +class ParamsDict(te.TypedDict): + action_type: te.NotRequired[t.Optional[str]] #: Action type. + actioned_by: te.NotRequired[t.Optional[str]] #: Get all reports that were actioned by a specific moderator. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + ignore_subjects: te.NotRequired[t.Optional[t.List[str]]] #: Ignore subjects. + limit: te.NotRequired[t.Optional[int]] #: Limit. + reporters: te.NotRequired[t.Optional[t.List[str]]] #: Filter reports made by one or more DIDs. + resolved: te.NotRequired[t.Optional[bool]] #: Resolved. + reverse: te.NotRequired[ + t.Optional[bool] + ] #: Reverse the order of the returned records? when true, returns reports in chronological order. + subject: te.NotRequired[t.Optional[str]] #: Subject. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.admin.getModerationReports`.""" diff --git a/atproto/xrpc_client/models/com/atproto/admin/get_record.py b/atproto/xrpc_client/models/com/atproto/admin/get_record.py index f00ab62b..7635b1e7 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/get_record.py +++ b/atproto/xrpc_client/models/com/atproto/admin/get_record.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -18,3 +20,8 @@ class Params(base.ParamsModelBase): uri: str #: Uri. cid: t.Optional[str] = None #: Cid. + + +class ParamsDict(te.TypedDict): + uri: str #: Uri. + cid: te.NotRequired[t.Optional[str]] #: Cid. diff --git a/atproto/xrpc_client/models/com/atproto/admin/get_repo.py b/atproto/xrpc_client/models/com/atproto/admin/get_repo.py index 3a5add5c..81941a39 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/get_repo.py +++ b/atproto/xrpc_client/models/com/atproto/admin/get_repo.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Params(base.ParamsModelBase): """Parameters model for :obj:`com.atproto.admin.getRepo`.""" did: str #: Did. + + +class ParamsDict(te.TypedDict): + did: str #: Did. diff --git a/atproto/xrpc_client/models/com/atproto/admin/resolve_moderation_reports.py b/atproto/xrpc_client/models/com/atproto/admin/resolve_moderation_reports.py index 15eda30d..c3de79dc 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/resolve_moderation_reports.py +++ b/atproto/xrpc_client/models/com/atproto/admin/resolve_moderation_reports.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -21,3 +22,9 @@ class Data(base.DataModelBase): action_id: int = Field(alias='actionId') #: Action id. created_by: str = Field(alias='createdBy') #: Created by. report_ids: t.List[int] = Field(alias='reportIds') #: Report ids. + + +class DataDict(te.TypedDict): + action_id: int #: Action id. + created_by: str #: Created by. + report_ids: t.List[int] #: Report ids. diff --git a/atproto/xrpc_client/models/com/atproto/admin/reverse_moderation_action.py b/atproto/xrpc_client/models/com/atproto/admin/reverse_moderation_action.py index 54539ace..bcd087ee 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/reverse_moderation_action.py +++ b/atproto/xrpc_client/models/com/atproto/admin/reverse_moderation_action.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -21,3 +22,9 @@ class Data(base.DataModelBase): created_by: str = Field(alias='createdBy') #: Created by. id: int #: Id. reason: str #: Reason. + + +class DataDict(te.TypedDict): + created_by: str #: Created by. + id: int #: Id. + reason: str #: Reason. diff --git a/atproto/xrpc_client/models/com/atproto/admin/search_repos.py b/atproto/xrpc_client/models/com/atproto/admin/search_repos.py index f1486e0b..4718fc26 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/search_repos.py +++ b/atproto/xrpc_client/models/com/atproto/admin/search_repos.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -24,6 +25,13 @@ class Params(base.ParamsModelBase): term: t.Optional[str] = None #: Term. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + invited_by: te.NotRequired[t.Optional[str]] #: Invited by. + limit: te.NotRequired[t.Optional[int]] #: Limit. + term: te.NotRequired[t.Optional[str]] #: Term. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.admin.searchRepos`.""" diff --git a/atproto/xrpc_client/models/com/atproto/admin/send_email.py b/atproto/xrpc_client/models/com/atproto/admin/send_email.py index 2c59643e..4c51a420 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/send_email.py +++ b/atproto/xrpc_client/models/com/atproto/admin/send_email.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -23,6 +24,12 @@ class Data(base.DataModelBase): subject: t.Optional[str] = None #: Subject. +class DataDict(te.TypedDict): + content: str #: Content. + recipient_did: str #: Recipient did. + subject: te.NotRequired[t.Optional[str]] #: Subject. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.admin.sendEmail`.""" diff --git a/atproto/xrpc_client/models/com/atproto/admin/take_moderation_action.py b/atproto/xrpc_client/models/com/atproto/admin/take_moderation_action.py index 2d93f2a8..9063a99c 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/take_moderation_action.py +++ b/atproto/xrpc_client/models/com/atproto/admin/take_moderation_action.py @@ -32,3 +32,19 @@ class Data(base.DataModelBase): ) #: Indicates how long this action was meant to be in effect before automatically expiring. negate_label_vals: t.Optional[t.List[str]] = Field(default=None, alias='negateLabelVals') #: Negate label vals. subject_blob_cids: t.Optional[t.List[str]] = Field(default=None, alias='subjectBlobCids') #: Subject blob cids. + + +class DataDict(te.TypedDict): + action: str #: Action. + created_by: str #: Created by. + reason: str #: Reason. + subject: te.Annotated[ + t.Union['models.ComAtprotoAdminDefs.RepoRef', 'models.ComAtprotoRepoStrongRef.Main'], + Field(discriminator='py_type'), + ] #: Subject. + create_label_vals: te.NotRequired[t.Optional[t.List[str]]] #: Create label vals. + duration_in_hours: te.NotRequired[ + t.Optional[int] + ] #: Indicates how long this action was meant to be in effect before automatically expiring. + negate_label_vals: te.NotRequired[t.Optional[t.List[str]]] #: Negate label vals. + subject_blob_cids: te.NotRequired[t.Optional[t.List[str]]] #: Subject blob cids. diff --git a/atproto/xrpc_client/models/com/atproto/admin/update_account_email.py b/atproto/xrpc_client/models/com/atproto/admin/update_account_email.py index 5fc55780..5211d451 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/update_account_email.py +++ b/atproto/xrpc_client/models/com/atproto/admin/update_account_email.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -18,3 +20,8 @@ class Data(base.DataModelBase): account: str #: The handle or DID of the repo. email: str #: Email. + + +class DataDict(te.TypedDict): + account: str #: The handle or DID of the repo. + email: str #: Email. diff --git a/atproto/xrpc_client/models/com/atproto/admin/update_account_handle.py b/atproto/xrpc_client/models/com/atproto/admin/update_account_handle.py index 10a82540..b41d71d5 100644 --- a/atproto/xrpc_client/models/com/atproto/admin/update_account_handle.py +++ b/atproto/xrpc_client/models/com/atproto/admin/update_account_handle.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -18,3 +20,8 @@ class Data(base.DataModelBase): did: str #: Did. handle: str #: Handle. + + +class DataDict(te.TypedDict): + did: str #: Did. + handle: str #: Handle. diff --git a/atproto/xrpc_client/models/com/atproto/identity/resolve_handle.py b/atproto/xrpc_client/models/com/atproto/identity/resolve_handle.py index 79b6e5be..d6f9c11a 100644 --- a/atproto/xrpc_client/models/com/atproto/identity/resolve_handle.py +++ b/atproto/xrpc_client/models/com/atproto/identity/resolve_handle.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -19,6 +21,10 @@ class Params(base.ParamsModelBase): handle: str #: The handle to resolve. +class ParamsDict(te.TypedDict): + handle: str #: The handle to resolve. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.identity.resolveHandle`.""" diff --git a/atproto/xrpc_client/models/com/atproto/identity/update_handle.py b/atproto/xrpc_client/models/com/atproto/identity/update_handle.py index a7097709..3f21ad7d 100644 --- a/atproto/xrpc_client/models/com/atproto/identity/update_handle.py +++ b/atproto/xrpc_client/models/com/atproto/identity/update_handle.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`com.atproto.identity.updateHandle`.""" handle: str #: Handle. + + +class DataDict(te.TypedDict): + handle: str #: Handle. diff --git a/atproto/xrpc_client/models/com/atproto/label/query_labels.py b/atproto/xrpc_client/models/com/atproto/label/query_labels.py index 1b19c382..9852e3b5 100644 --- a/atproto/xrpc_client/models/com/atproto/label/query_labels.py +++ b/atproto/xrpc_client/models/com/atproto/label/query_labels.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -26,6 +27,15 @@ class Params(base.ParamsModelBase): sources: t.Optional[t.List[str]] = None #: Optional list of label sources (DIDs) to filter on. +class ParamsDict(te.TypedDict): + uri_patterns: t.List[ + str + ] #: List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + sources: te.NotRequired[t.Optional[t.List[str]]] #: Optional list of label sources (DIDs) to filter on. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.label.queryLabels`.""" diff --git a/atproto/xrpc_client/models/com/atproto/label/subscribe_labels.py b/atproto/xrpc_client/models/com/atproto/label/subscribe_labels.py index 005a33a2..407f6ce9 100644 --- a/atproto/xrpc_client/models/com/atproto/label/subscribe_labels.py +++ b/atproto/xrpc_client/models/com/atproto/label/subscribe_labels.py @@ -22,6 +22,10 @@ class Params(base.ParamsModelBase): cursor: t.Optional[int] = None #: The last known event to backfill from. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[int]] #: The last known event to backfill from. + + class Labels(base.ModelBase): """Definition model for :obj:`com.atproto.label.subscribeLabels`.""" diff --git a/atproto/xrpc_client/models/com/atproto/moderation/create_report.py b/atproto/xrpc_client/models/com/atproto/moderation/create_report.py index d896e732..d7de2ca3 100644 --- a/atproto/xrpc_client/models/com/atproto/moderation/create_report.py +++ b/atproto/xrpc_client/models/com/atproto/moderation/create_report.py @@ -27,6 +27,15 @@ class Data(base.DataModelBase): reason: t.Optional[str] = None #: Reason. +class DataDict(te.TypedDict): + reason_type: 'models.ComAtprotoModerationDefs.ReasonType' #: Reason type. + subject: te.Annotated[ + t.Union['models.ComAtprotoAdminDefs.RepoRef', 'models.ComAtprotoRepoStrongRef.Main'], + Field(discriminator='py_type'), + ] #: Subject. + reason: te.NotRequired[t.Optional[str]] #: Reason. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.moderation.createReport`.""" diff --git a/atproto/xrpc_client/models/com/atproto/repo/apply_writes.py b/atproto/xrpc_client/models/com/atproto/repo/apply_writes.py index f50368fd..cecf562c 100644 --- a/atproto/xrpc_client/models/com/atproto/repo/apply_writes.py +++ b/atproto/xrpc_client/models/com/atproto/repo/apply_writes.py @@ -35,6 +35,22 @@ class Data(base.DataModelBase): validate_: t.Optional[bool] = Field(default=True, alias='validate') #: Validate the records? +class DataDict(te.TypedDict): + repo: str #: The handle or DID of the repo. + writes: t.List[ + te.Annotated[ + t.Union[ + 'models.ComAtprotoRepoApplyWrites.Create', + 'models.ComAtprotoRepoApplyWrites.Update', + 'models.ComAtprotoRepoApplyWrites.Delete', + ], + Field(discriminator='py_type'), + ] + ] #: Writes. + swap_commit: te.NotRequired[t.Optional[str]] #: Swap commit. + validate: te.NotRequired[t.Optional[bool]] #: Validate the records? + + class Create(base.ModelBase): """Definition model for :obj:`com.atproto.repo.applyWrites`. Create a new record.""" diff --git a/atproto/xrpc_client/models/com/atproto/repo/create_record.py b/atproto/xrpc_client/models/com/atproto/repo/create_record.py index f3346728..b56ceaab 100644 --- a/atproto/xrpc_client/models/com/atproto/repo/create_record.py +++ b/atproto/xrpc_client/models/com/atproto/repo/create_record.py @@ -7,10 +7,11 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: - from atproto.xrpc_client.models.unknown_type import UnknownType + from atproto.xrpc_client.models.unknown_type import UnknownInputType from atproto.xrpc_client.models import base @@ -19,7 +20,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`com.atproto.repo.createRecord`.""" collection: str #: The NSID of the record collection. - record: 'UnknownType' #: The record to create. + record: 'UnknownInputType' #: The record to create. repo: str #: The handle or DID of the repo. rkey: t.Optional[str] = Field(default=None, max_length=15) #: The key of the record. swap_commit: t.Optional[str] = Field( @@ -28,6 +29,15 @@ class Data(base.DataModelBase): validate_: t.Optional[bool] = Field(default=True, alias='validate') #: Validate the record? +class DataDict(te.TypedDict): + collection: str #: The NSID of the record collection. + record: 'UnknownInputType' #: The record to create. + repo: str #: The handle or DID of the repo. + rkey: te.NotRequired[t.Optional[str]] #: The key of the record. + swap_commit: te.NotRequired[t.Optional[str]] #: Compare and swap with the previous commit by cid. + validate: te.NotRequired[t.Optional[bool]] #: Validate the record? + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.repo.createRecord`.""" diff --git a/atproto/xrpc_client/models/com/atproto/repo/delete_record.py b/atproto/xrpc_client/models/com/atproto/repo/delete_record.py index 33cc0c6f..4f69bd8b 100644 --- a/atproto/xrpc_client/models/com/atproto/repo/delete_record.py +++ b/atproto/xrpc_client/models/com/atproto/repo/delete_record.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -27,3 +28,11 @@ class Data(base.DataModelBase): swap_record: t.Optional[str] = Field( default=None, alias='swapRecord' ) #: Compare and swap with the previous record by cid. + + +class DataDict(te.TypedDict): + collection: str #: The NSID of the record collection. + repo: str #: The handle or DID of the repo. + rkey: str #: The key of the record. + swap_commit: te.NotRequired[t.Optional[str]] #: Compare and swap with the previous commit by cid. + swap_record: te.NotRequired[t.Optional[str]] #: Compare and swap with the previous record by cid. diff --git a/atproto/xrpc_client/models/com/atproto/repo/describe_repo.py b/atproto/xrpc_client/models/com/atproto/repo/describe_repo.py index 72c3713c..34c55a0a 100644 --- a/atproto/xrpc_client/models/com/atproto/repo/describe_repo.py +++ b/atproto/xrpc_client/models/com/atproto/repo/describe_repo.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -21,6 +22,10 @@ class Params(base.ParamsModelBase): repo: str #: The handle or DID of the repo. +class ParamsDict(te.TypedDict): + repo: str #: The handle or DID of the repo. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.repo.describeRepo`.""" diff --git a/atproto/xrpc_client/models/com/atproto/repo/get_record.py b/atproto/xrpc_client/models/com/atproto/repo/get_record.py index fec8b07d..ee9bdf94 100644 --- a/atproto/xrpc_client/models/com/atproto/repo/get_record.py +++ b/atproto/xrpc_client/models/com/atproto/repo/get_record.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: from atproto.xrpc_client.models.unknown_type import UnknownType from atproto.xrpc_client.models import base @@ -24,6 +26,15 @@ class Params(base.ParamsModelBase): ] = None #: The CID of the version of the record. If not specified, then return the most recent version. +class ParamsDict(te.TypedDict): + collection: str #: The NSID of the record collection. + repo: str #: The handle or DID of the repo. + rkey: str #: The key of the record. + cid: te.NotRequired[ + t.Optional[str] + ] #: The CID of the version of the record. If not specified, then return the most recent version. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.repo.getRecord`.""" diff --git a/atproto/xrpc_client/models/com/atproto/repo/list_records.py b/atproto/xrpc_client/models/com/atproto/repo/list_records.py index 1c4d2a9c..18b1652d 100644 --- a/atproto/xrpc_client/models/com/atproto/repo/list_records.py +++ b/atproto/xrpc_client/models/com/atproto/repo/list_records.py @@ -33,6 +33,16 @@ class Params(base.ParamsModelBase): ) #: DEPRECATED: The lowest sort-ordered rkey to start from (exclusive). +class ParamsDict(te.TypedDict): + collection: str #: The NSID of the record type. + repo: str #: The handle or DID of the repo. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: The number of records to return. + reverse: te.NotRequired[t.Optional[bool]] #: Reverse the order of the returned records? + rkey_end: te.NotRequired[t.Optional[str]] #: DEPRECATED: The highest sort-ordered rkey to stop at (exclusive). + rkey_start: te.NotRequired[t.Optional[str]] #: DEPRECATED: The lowest sort-ordered rkey to start from (exclusive). + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.repo.listRecords`.""" diff --git a/atproto/xrpc_client/models/com/atproto/repo/put_record.py b/atproto/xrpc_client/models/com/atproto/repo/put_record.py index dc9253f4..629cc501 100644 --- a/atproto/xrpc_client/models/com/atproto/repo/put_record.py +++ b/atproto/xrpc_client/models/com/atproto/repo/put_record.py @@ -7,10 +7,11 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: - from atproto.xrpc_client.models.unknown_type import UnknownType + from atproto.xrpc_client.models.unknown_type import UnknownInputType from atproto.xrpc_client.models import base @@ -19,7 +20,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`com.atproto.repo.putRecord`.""" collection: str #: The NSID of the record collection. - record: 'UnknownType' #: The record to write. + record: 'UnknownInputType' #: The record to write. repo: str #: The handle or DID of the repo. rkey: str = Field(max_length=15) #: The key of the record. swap_commit: t.Optional[str] = Field( @@ -31,6 +32,16 @@ class Data(base.DataModelBase): validate_: t.Optional[bool] = Field(default=True, alias='validate') #: Validate the record? +class DataDict(te.TypedDict): + collection: str #: The NSID of the record collection. + record: 'UnknownInputType' #: The record to write. + repo: str #: The handle or DID of the repo. + rkey: str #: The key of the record. + swap_commit: te.NotRequired[t.Optional[str]] #: Compare and swap with the previous commit by cid. + swap_record: te.NotRequired[t.Optional[str]] #: Compare and swap with the previous record by cid. + validate: te.NotRequired[t.Optional[bool]] #: Validate the record? + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.repo.putRecord`.""" diff --git a/atproto/xrpc_client/models/com/atproto/server/create_account.py b/atproto/xrpc_client/models/com/atproto/server/create_account.py index ca5f6253..34495a1f 100644 --- a/atproto/xrpc_client/models/com/atproto/server/create_account.py +++ b/atproto/xrpc_client/models/com/atproto/server/create_account.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -26,6 +27,15 @@ class Data(base.DataModelBase): recovery_key: t.Optional[str] = Field(default=None, alias='recoveryKey') #: Recovery key. +class DataDict(te.TypedDict): + email: str #: Email. + handle: str #: Handle. + password: str #: Password. + did: te.NotRequired[t.Optional[str]] #: Did. + invite_code: te.NotRequired[t.Optional[str]] #: Invite code. + recovery_key: te.NotRequired[t.Optional[str]] #: Recovery key. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.server.createAccount`.""" diff --git a/atproto/xrpc_client/models/com/atproto/server/create_app_password.py b/atproto/xrpc_client/models/com/atproto/server/create_app_password.py index 817ba568..dd3eeca8 100644 --- a/atproto/xrpc_client/models/com/atproto/server/create_app_password.py +++ b/atproto/xrpc_client/models/com/atproto/server/create_app_password.py @@ -22,6 +22,10 @@ class Data(base.DataModelBase): name: str #: Name. +class DataDict(te.TypedDict): + name: str #: Name. + + class AppPassword(base.ModelBase): """Definition model for :obj:`com.atproto.server.createAppPassword`.""" diff --git a/atproto/xrpc_client/models/com/atproto/server/create_invite_code.py b/atproto/xrpc_client/models/com/atproto/server/create_invite_code.py index 379b8059..383a52fc 100644 --- a/atproto/xrpc_client/models/com/atproto/server/create_invite_code.py +++ b/atproto/xrpc_client/models/com/atproto/server/create_invite_code.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Data(base.DataModelBase): for_account: t.Optional[str] = Field(default=None, alias='forAccount') #: For account. +class DataDict(te.TypedDict): + use_count: int #: Use count. + for_account: te.NotRequired[t.Optional[str]] #: For account. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.server.createInviteCode`.""" diff --git a/atproto/xrpc_client/models/com/atproto/server/create_invite_codes.py b/atproto/xrpc_client/models/com/atproto/server/create_invite_codes.py index d4f2569f..bbc5b4a7 100644 --- a/atproto/xrpc_client/models/com/atproto/server/create_invite_codes.py +++ b/atproto/xrpc_client/models/com/atproto/server/create_invite_codes.py @@ -24,6 +24,12 @@ class Data(base.DataModelBase): for_accounts: t.Optional[t.List[str]] = Field(default=None, alias='forAccounts') #: For accounts. +class DataDict(te.TypedDict): + code_count: int #: Code count. + use_count: int #: Use count. + for_accounts: te.NotRequired[t.Optional[t.List[str]]] #: For accounts. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.server.createInviteCodes`.""" diff --git a/atproto/xrpc_client/models/com/atproto/server/create_session.py b/atproto/xrpc_client/models/com/atproto/server/create_session.py index 2f674cb6..fc673bed 100644 --- a/atproto/xrpc_client/models/com/atproto/server/create_session.py +++ b/atproto/xrpc_client/models/com/atproto/server/create_session.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Data(base.DataModelBase): password: str #: Password. +class DataDict(te.TypedDict): + identifier: str #: Handle or other identifier supported by the server for the authenticating user. + password: str #: Password. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.server.createSession`.""" diff --git a/atproto/xrpc_client/models/com/atproto/server/delete_account.py b/atproto/xrpc_client/models/com/atproto/server/delete_account.py index 20068de4..35fc2932 100644 --- a/atproto/xrpc_client/models/com/atproto/server/delete_account.py +++ b/atproto/xrpc_client/models/com/atproto/server/delete_account.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -19,3 +21,9 @@ class Data(base.DataModelBase): did: str #: Did. password: str #: Password. token: str #: Token. + + +class DataDict(te.TypedDict): + did: str #: Did. + password: str #: Password. + token: str #: Token. diff --git a/atproto/xrpc_client/models/com/atproto/server/get_account_invite_codes.py b/atproto/xrpc_client/models/com/atproto/server/get_account_invite_codes.py index 440f8a3e..c10ec8c5 100644 --- a/atproto/xrpc_client/models/com/atproto/server/get_account_invite_codes.py +++ b/atproto/xrpc_client/models/com/atproto/server/get_account_invite_codes.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -22,6 +23,11 @@ class Params(base.ParamsModelBase): include_used: t.Optional[bool] = Field(default=True, alias='includeUsed') #: Include used. +class ParamsDict(te.TypedDict): + create_available: te.NotRequired[t.Optional[bool]] #: Create available. + include_used: te.NotRequired[t.Optional[bool]] #: Include used. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.server.getAccountInviteCodes`.""" diff --git a/atproto/xrpc_client/models/com/atproto/server/request_password_reset.py b/atproto/xrpc_client/models/com/atproto/server/request_password_reset.py index b62f8c10..c68ed108 100644 --- a/atproto/xrpc_client/models/com/atproto/server/request_password_reset.py +++ b/atproto/xrpc_client/models/com/atproto/server/request_password_reset.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`com.atproto.server.requestPasswordReset`.""" email: str #: Email. + + +class DataDict(te.TypedDict): + email: str #: Email. diff --git a/atproto/xrpc_client/models/com/atproto/server/reset_password.py b/atproto/xrpc_client/models/com/atproto/server/reset_password.py index 21756086..028c9a7a 100644 --- a/atproto/xrpc_client/models/com/atproto/server/reset_password.py +++ b/atproto/xrpc_client/models/com/atproto/server/reset_password.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -18,3 +20,8 @@ class Data(base.DataModelBase): password: str #: Password. token: str #: Token. + + +class DataDict(te.TypedDict): + password: str #: Password. + token: str #: Token. diff --git a/atproto/xrpc_client/models/com/atproto/server/revoke_app_password.py b/atproto/xrpc_client/models/com/atproto/server/revoke_app_password.py index f7d0aadb..5085e566 100644 --- a/atproto/xrpc_client/models/com/atproto/server/revoke_app_password.py +++ b/atproto/xrpc_client/models/com/atproto/server/revoke_app_password.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`com.atproto.server.revokeAppPassword`.""" name: str #: Name. + + +class DataDict(te.TypedDict): + name: str #: Name. diff --git a/atproto/xrpc_client/models/com/atproto/sync/get_blob.py b/atproto/xrpc_client/models/com/atproto/sync/get_blob.py index b2a53ee1..fddf1e0d 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/get_blob.py +++ b/atproto/xrpc_client/models/com/atproto/sync/get_blob.py @@ -22,5 +22,10 @@ class Params(base.ParamsModelBase): did: str #: The DID of the repo. +class ParamsDict(te.TypedDict): + cid: str #: The CID of the blob to fetch. + did: str #: The DID of the repo. + + #: Response raw data type. Response: te.TypeAlias = bytes diff --git a/atproto/xrpc_client/models/com/atproto/sync/get_blocks.py b/atproto/xrpc_client/models/com/atproto/sync/get_blocks.py index 0cd1972c..fe6bdd64 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/get_blocks.py +++ b/atproto/xrpc_client/models/com/atproto/sync/get_blocks.py @@ -22,5 +22,10 @@ class Params(base.ParamsModelBase): did: str #: The DID of the repo. +class ParamsDict(te.TypedDict): + cids: t.List[str] #: Cids. + did: str #: The DID of the repo. + + #: Response raw data type. Response: te.TypeAlias = bytes diff --git a/atproto/xrpc_client/models/com/atproto/sync/get_checkout.py b/atproto/xrpc_client/models/com/atproto/sync/get_checkout.py index fbaf0d8f..6ebf7002 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/get_checkout.py +++ b/atproto/xrpc_client/models/com/atproto/sync/get_checkout.py @@ -21,5 +21,9 @@ class Params(base.ParamsModelBase): did: str #: The DID of the repo. +class ParamsDict(te.TypedDict): + did: str #: The DID of the repo. + + #: Response raw data type. Response: te.TypeAlias = bytes diff --git a/atproto/xrpc_client/models/com/atproto/sync/get_head.py b/atproto/xrpc_client/models/com/atproto/sync/get_head.py index 02baae6f..9e8b5b38 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/get_head.py +++ b/atproto/xrpc_client/models/com/atproto/sync/get_head.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -19,6 +21,10 @@ class Params(base.ParamsModelBase): did: str #: The DID of the repo. +class ParamsDict(te.TypedDict): + did: str #: The DID of the repo. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.sync.getHead`.""" diff --git a/atproto/xrpc_client/models/com/atproto/sync/get_latest_commit.py b/atproto/xrpc_client/models/com/atproto/sync/get_latest_commit.py index f3d0bf98..82b1cf36 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/get_latest_commit.py +++ b/atproto/xrpc_client/models/com/atproto/sync/get_latest_commit.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -19,6 +21,10 @@ class Params(base.ParamsModelBase): did: str #: The DID of the repo. +class ParamsDict(te.TypedDict): + did: str #: The DID of the repo. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.sync.getLatestCommit`.""" diff --git a/atproto/xrpc_client/models/com/atproto/sync/get_record.py b/atproto/xrpc_client/models/com/atproto/sync/get_record.py index 11352e1c..7317c00f 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/get_record.py +++ b/atproto/xrpc_client/models/com/atproto/sync/get_record.py @@ -24,5 +24,12 @@ class Params(base.ParamsModelBase): commit: t.Optional[str] = None #: An optional past commit CID. +class ParamsDict(te.TypedDict): + collection: str #: Collection. + did: str #: The DID of the repo. + rkey: str #: Rkey. + commit: te.NotRequired[t.Optional[str]] #: An optional past commit CID. + + #: Response raw data type. Response: te.TypeAlias = bytes diff --git a/atproto/xrpc_client/models/com/atproto/sync/get_repo.py b/atproto/xrpc_client/models/com/atproto/sync/get_repo.py index 8df6ff12..7d08164a 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/get_repo.py +++ b/atproto/xrpc_client/models/com/atproto/sync/get_repo.py @@ -22,5 +22,10 @@ class Params(base.ParamsModelBase): since: t.Optional[str] = None #: The revision of the repo to catch up from. +class ParamsDict(te.TypedDict): + did: str #: The DID of the repo. + since: te.NotRequired[t.Optional[str]] #: The revision of the repo to catch up from. + + #: Response raw data type. Response: te.TypeAlias = bytes diff --git a/atproto/xrpc_client/models/com/atproto/sync/list_blobs.py b/atproto/xrpc_client/models/com/atproto/sync/list_blobs.py index 369a6683..858a2df3 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/list_blobs.py +++ b/atproto/xrpc_client/models/com/atproto/sync/list_blobs.py @@ -7,6 +7,7 @@ import typing as t +import typing_extensions as te from pydantic import Field if t.TYPE_CHECKING: @@ -24,6 +25,13 @@ class Params(base.ParamsModelBase): since: t.Optional[str] = None #: Optional revision of the repo to list blobs since. +class ParamsDict(te.TypedDict): + did: str #: The DID of the repo. + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + since: te.NotRequired[t.Optional[str]] #: Optional revision of the repo to list blobs since. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.sync.listBlobs`.""" diff --git a/atproto/xrpc_client/models/com/atproto/sync/list_repos.py b/atproto/xrpc_client/models/com/atproto/sync/list_repos.py index e969aa61..4fbd5595 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/list_repos.py +++ b/atproto/xrpc_client/models/com/atproto/sync/list_repos.py @@ -23,6 +23,11 @@ class Params(base.ParamsModelBase): limit: t.Optional[int] = Field(default=500, ge=1, le=1000) #: Limit. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[str]] #: Cursor. + limit: te.NotRequired[t.Optional[int]] #: Limit. + + class Response(base.ResponseModelBase): """Output data model for :obj:`com.atproto.sync.listRepos`.""" diff --git a/atproto/xrpc_client/models/com/atproto/sync/notify_of_update.py b/atproto/xrpc_client/models/com/atproto/sync/notify_of_update.py index ef411ff1..f32ea8b5 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/notify_of_update.py +++ b/atproto/xrpc_client/models/com/atproto/sync/notify_of_update.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`com.atproto.sync.notifyOfUpdate`.""" hostname: str #: Hostname of the service that is notifying of update. + + +class DataDict(te.TypedDict): + hostname: str #: Hostname of the service that is notifying of update. diff --git a/atproto/xrpc_client/models/com/atproto/sync/request_crawl.py b/atproto/xrpc_client/models/com/atproto/sync/request_crawl.py index 3b146576..763a8850 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/request_crawl.py +++ b/atproto/xrpc_client/models/com/atproto/sync/request_crawl.py @@ -7,6 +7,8 @@ import typing as t +import typing_extensions as te + if t.TYPE_CHECKING: pass from atproto.xrpc_client.models import base @@ -17,3 +19,7 @@ class Data(base.DataModelBase): """Input data model for :obj:`com.atproto.sync.requestCrawl`.""" hostname: str #: Hostname of the service that is requesting to be crawled. + + +class DataDict(te.TypedDict): + hostname: str #: Hostname of the service that is requesting to be crawled. diff --git a/atproto/xrpc_client/models/com/atproto/sync/subscribe_repos.py b/atproto/xrpc_client/models/com/atproto/sync/subscribe_repos.py index a737ca33..cc724020 100644 --- a/atproto/xrpc_client/models/com/atproto/sync/subscribe_repos.py +++ b/atproto/xrpc_client/models/com/atproto/sync/subscribe_repos.py @@ -23,6 +23,10 @@ class Params(base.ParamsModelBase): cursor: t.Optional[int] = None #: The last known event to backfill from. +class ParamsDict(te.TypedDict): + cursor: te.NotRequired[t.Optional[int]] #: The last known event to backfill from. + + class Commit(base.ModelBase): """Definition model for :obj:`com.atproto.sync.subscribeRepos`.""" diff --git a/atproto/xrpc_client/models/models_loader.py b/atproto/xrpc_client/models/models_loader.py index 827f4272..e84c4c6c 100644 --- a/atproto/xrpc_client/models/models_loader.py +++ b/atproto/xrpc_client/models/models_loader.py @@ -38,12 +38,12 @@ def __get_models_to_rebuild_set() -> set: def __rebuild_all_models(): # load models to the scope from atproto.xrpc_client import models # noqa - from atproto.xrpc_client.models.unknown_type import UnknownType + from atproto.xrpc_client.models.unknown_type import UnknownType, UnknownInputType from atproto.xrpc_client.models.blob_ref import BlobRef from atproto.xrpc_client.models import dot_dict from atproto import CIDType - UnknownType, CIDType, dot_dict # noqa: B018 + UnknownType, UnknownInputType, CIDType, dot_dict # noqa: B018 BlobRef.model_rebuild() for __model in __get_models_to_rebuild_set(): diff --git a/atproto/xrpc_client/models/unknown_type.py b/atproto/xrpc_client/models/unknown_type.py index cab2e906..cac89772 100644 --- a/atproto/xrpc_client/models/unknown_type.py +++ b/atproto/xrpc_client/models/unknown_type.py @@ -37,3 +37,4 @@ Field(discriminator='py_type'), ] UnknownType: te.TypeAlias = t.Union[UnknownRecordTypePydantic, 'dot_dict.DotDictType'] +UnknownInputType: te.TypeAlias = t.Union[UnknownType, t.Dict[str, t.Any]] diff --git a/atproto/xrpc_client/namespaces/async_ns.py b/atproto/xrpc_client/namespaces/async_ns.py index 10450736..79097e4a 100644 --- a/atproto/xrpc_client/namespaces/async_ns.py +++ b/atproto/xrpc_client/namespaces/async_ns.py @@ -33,7 +33,11 @@ def __init__(self, client: 'AsyncClientRaw') -> None: class ActorNamespace(AsyncNamespaceBase): async def get_preferences( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorGetPreferences.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyActorGetPreferences.Params, models.AppBskyActorGetPreferences.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorGetPreferences.Response': """Get private preferences attached to the account. @@ -55,7 +59,9 @@ async def get_preferences( return get_response_model(response, models.AppBskyActorGetPreferences.Response) async def get_profile( - self, params: t.Union[dict, 'models.AppBskyActorGetProfile.Params'], **kwargs + self, + params: t.Union[models.AppBskyActorGetProfile.Params, models.AppBskyActorGetProfile.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyActorDefs.ProfileViewDetailed': """Get profile. @@ -77,7 +83,9 @@ async def get_profile( return get_response_model(response, models.AppBskyActorDefs.ProfileViewDetailed) async def get_profiles( - self, params: t.Union[dict, 'models.AppBskyActorGetProfiles.Params'], **kwargs + self, + params: t.Union[models.AppBskyActorGetProfiles.Params, models.AppBskyActorGetProfiles.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyActorGetProfiles.Response': """Get profiles. @@ -99,7 +107,11 @@ async def get_profiles( return get_response_model(response, models.AppBskyActorGetProfiles.Response) async def get_suggestions( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorGetSuggestions.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyActorGetSuggestions.Params, models.AppBskyActorGetSuggestions.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorGetSuggestions.Response': """Get a list of actors suggested for following. Used in discovery UIs. @@ -120,7 +132,11 @@ async def get_suggestions( ) return get_response_model(response, models.AppBskyActorGetSuggestions.Response) - async def put_preferences(self, data: t.Union[dict, 'models.AppBskyActorPutPreferences.Data'], **kwargs) -> bool: + async def put_preferences( + self, + data: t.Union[models.AppBskyActorPutPreferences.Data, models.AppBskyActorPutPreferences.DataDict], + **kwargs: t.Any, + ) -> bool: """Sets the private preferences attached to the account. Args: @@ -141,7 +157,11 @@ async def put_preferences(self, data: t.Union[dict, 'models.AppBskyActorPutPrefe return get_response_model(response, bool) async def search_actors( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorSearchActors.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyActorSearchActors.Params, models.AppBskyActorSearchActors.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorSearchActors.Response': """Find actors matching search criteria. @@ -163,7 +183,13 @@ async def search_actors( return get_response_model(response, models.AppBskyActorSearchActors.Response) async def search_actors_typeahead( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorSearchActorsTypeahead.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyActorSearchActorsTypeahead.Params, models.AppBskyActorSearchActorsTypeahead.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorSearchActorsTypeahead.Response': """Find actor suggestions for a search term. @@ -186,7 +212,7 @@ async def search_actors_typeahead( class FeedNamespace(AsyncNamespaceBase): - async def describe_feed_generator(self, **kwargs) -> 'models.AppBskyFeedDescribeFeedGenerator.Response': + async def describe_feed_generator(self, **kwargs: t.Any) -> 'models.AppBskyFeedDescribeFeedGenerator.Response': """Returns information about a given feed generator including TOS & offered feed URIs. Args: @@ -205,7 +231,9 @@ async def describe_feed_generator(self, **kwargs) -> 'models.AppBskyFeedDescribe return get_response_model(response, models.AppBskyFeedDescribeFeedGenerator.Response) async def get_actor_feeds( - self, params: t.Union[dict, 'models.AppBskyFeedGetActorFeeds.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetActorFeeds.Params, models.AppBskyFeedGetActorFeeds.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetActorFeeds.Response': """Retrieve a list of feeds created by a given actor. @@ -227,7 +255,9 @@ async def get_actor_feeds( return get_response_model(response, models.AppBskyFeedGetActorFeeds.Response) async def get_actor_likes( - self, params: t.Union[dict, 'models.AppBskyFeedGetActorLikes.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetActorLikes.Params, models.AppBskyFeedGetActorLikes.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetActorLikes.Response': """A view of the posts liked by an actor. @@ -249,7 +279,9 @@ async def get_actor_likes( return get_response_model(response, models.AppBskyFeedGetActorLikes.Response) async def get_author_feed( - self, params: t.Union[dict, 'models.AppBskyFeedGetAuthorFeed.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetAuthorFeed.Params, models.AppBskyFeedGetAuthorFeed.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetAuthorFeed.Response': """A view of an actor's feed. @@ -271,7 +303,7 @@ async def get_author_feed( return get_response_model(response, models.AppBskyFeedGetAuthorFeed.Response) async def get_feed( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeed.Params'], **kwargs + self, params: t.Union[models.AppBskyFeedGetFeed.Params, models.AppBskyFeedGetFeed.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyFeedGetFeed.Response': """Compose and hydrate a feed from a user's selected feed generator. @@ -293,7 +325,9 @@ async def get_feed( return get_response_model(response, models.AppBskyFeedGetFeed.Response) async def get_feed_generator( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeedGenerator.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetFeedGenerator.Params, models.AppBskyFeedGetFeedGenerator.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetFeedGenerator.Response': """Get information about a specific feed offered by a feed generator, such as its online status. @@ -315,7 +349,9 @@ async def get_feed_generator( return get_response_model(response, models.AppBskyFeedGetFeedGenerator.Response) async def get_feed_generators( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeedGenerators.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetFeedGenerators.Params, models.AppBskyFeedGetFeedGenerators.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetFeedGenerators.Response': """Get information about a list of feed generators. @@ -337,7 +373,9 @@ async def get_feed_generators( return get_response_model(response, models.AppBskyFeedGetFeedGenerators.Response) async def get_feed_skeleton( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeedSkeleton.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetFeedSkeleton.Params, models.AppBskyFeedGetFeedSkeleton.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetFeedSkeleton.Response': """A skeleton of a feed provided by a feed generator. @@ -359,7 +397,7 @@ async def get_feed_skeleton( return get_response_model(response, models.AppBskyFeedGetFeedSkeleton.Response) async def get_likes( - self, params: t.Union[dict, 'models.AppBskyFeedGetLikes.Params'], **kwargs + self, params: t.Union[models.AppBskyFeedGetLikes.Params, models.AppBskyFeedGetLikes.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyFeedGetLikes.Response': """Get likes. @@ -381,7 +419,9 @@ async def get_likes( return get_response_model(response, models.AppBskyFeedGetLikes.Response) async def get_list_feed( - self, params: t.Union[dict, 'models.AppBskyFeedGetListFeed.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetListFeed.Params, models.AppBskyFeedGetListFeed.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetListFeed.Response': """A view of a recent posts from actors in a list. @@ -403,7 +443,9 @@ async def get_list_feed( return get_response_model(response, models.AppBskyFeedGetListFeed.Response) async def get_post_thread( - self, params: t.Union[dict, 'models.AppBskyFeedGetPostThread.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetPostThread.Params, models.AppBskyFeedGetPostThread.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetPostThread.Response': """Get post thread. @@ -425,7 +467,7 @@ async def get_post_thread( return get_response_model(response, models.AppBskyFeedGetPostThread.Response) async def get_posts( - self, params: t.Union[dict, 'models.AppBskyFeedGetPosts.Params'], **kwargs + self, params: t.Union[models.AppBskyFeedGetPosts.Params, models.AppBskyFeedGetPosts.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyFeedGetPosts.Response': """A view of an actor's feed. @@ -447,7 +489,9 @@ async def get_posts( return get_response_model(response, models.AppBskyFeedGetPosts.Response) async def get_reposted_by( - self, params: t.Union[dict, 'models.AppBskyFeedGetRepostedBy.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetRepostedBy.Params, models.AppBskyFeedGetRepostedBy.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetRepostedBy.Response': """Get reposted by. @@ -469,7 +513,11 @@ async def get_reposted_by( return get_response_model(response, models.AppBskyFeedGetRepostedBy.Response) async def get_suggested_feeds( - self, params: t.Optional[t.Union[dict, 'models.AppBskyFeedGetSuggestedFeeds.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyFeedGetSuggestedFeeds.Params, models.AppBskyFeedGetSuggestedFeeds.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetSuggestedFeeds.Response': """Get a list of suggested feeds for the viewer. @@ -491,7 +539,11 @@ async def get_suggested_feeds( return get_response_model(response, models.AppBskyFeedGetSuggestedFeeds.Response) async def get_timeline( - self, params: t.Optional[t.Union[dict, 'models.AppBskyFeedGetTimeline.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyFeedGetTimeline.Params, models.AppBskyFeedGetTimeline.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetTimeline.Response': """A view of the user's home timeline. @@ -515,7 +567,11 @@ async def get_timeline( class GraphNamespace(AsyncNamespaceBase): async def get_blocks( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetBlocks.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyGraphGetBlocks.Params, models.AppBskyGraphGetBlocks.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetBlocks.Response': """Who is the requester's account blocking? @@ -537,7 +593,9 @@ async def get_blocks( return get_response_model(response, models.AppBskyGraphGetBlocks.Response) async def get_followers( - self, params: t.Union[dict, 'models.AppBskyGraphGetFollowers.Params'], **kwargs + self, + params: t.Union[models.AppBskyGraphGetFollowers.Params, models.AppBskyGraphGetFollowers.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetFollowers.Response': """Who is following an actor? @@ -559,7 +617,9 @@ async def get_followers( return get_response_model(response, models.AppBskyGraphGetFollowers.Response) async def get_follows( - self, params: t.Union[dict, 'models.AppBskyGraphGetFollows.Params'], **kwargs + self, + params: t.Union[models.AppBskyGraphGetFollows.Params, models.AppBskyGraphGetFollows.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetFollows.Response': """Who is an actor following? @@ -581,7 +641,7 @@ async def get_follows( return get_response_model(response, models.AppBskyGraphGetFollows.Response) async def get_list( - self, params: t.Union[dict, 'models.AppBskyGraphGetList.Params'], **kwargs + self, params: t.Union[models.AppBskyGraphGetList.Params, models.AppBskyGraphGetList.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyGraphGetList.Response': """Fetch a list of actors. @@ -603,7 +663,11 @@ async def get_list( return get_response_model(response, models.AppBskyGraphGetList.Response) async def get_list_blocks( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetListBlocks.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyGraphGetListBlocks.Params, models.AppBskyGraphGetListBlocks.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetListBlocks.Response': """Which lists is the requester's account blocking? @@ -625,7 +689,11 @@ async def get_list_blocks( return get_response_model(response, models.AppBskyGraphGetListBlocks.Response) async def get_list_mutes( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetListMutes.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyGraphGetListMutes.Params, models.AppBskyGraphGetListMutes.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetListMutes.Response': """Which lists is the requester's account muting? @@ -647,7 +715,9 @@ async def get_list_mutes( return get_response_model(response, models.AppBskyGraphGetListMutes.Response) async def get_lists( - self, params: t.Union[dict, 'models.AppBskyGraphGetLists.Params'], **kwargs + self, + params: t.Union[models.AppBskyGraphGetLists.Params, models.AppBskyGraphGetLists.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetLists.Response': """Fetch a list of lists that belong to an actor. @@ -669,7 +739,9 @@ async def get_lists( return get_response_model(response, models.AppBskyGraphGetLists.Response) async def get_mutes( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetMutes.Params']] = None, **kwargs + self, + params: t.Optional[t.Union[models.AppBskyGraphGetMutes.Params, models.AppBskyGraphGetMutes.ParamsDict]] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetMutes.Response': """Who does the viewer mute? @@ -691,7 +763,12 @@ async def get_mutes( return get_response_model(response, models.AppBskyGraphGetMutes.Response) async def get_suggested_follows_by_actor( - self, params: t.Union[dict, 'models.AppBskyGraphGetSuggestedFollowsByActor.Params'], **kwargs + self, + params: t.Union[ + models.AppBskyGraphGetSuggestedFollowsByActor.Params, + models.AppBskyGraphGetSuggestedFollowsByActor.ParamsDict, + ], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetSuggestedFollowsByActor.Response': """Get suggested follows related to a given actor. @@ -715,7 +792,9 @@ async def get_suggested_follows_by_actor( ) return get_response_model(response, models.AppBskyGraphGetSuggestedFollowsByActor.Response) - async def mute_actor(self, data: t.Union[dict, 'models.AppBskyGraphMuteActor.Data'], **kwargs) -> bool: + async def mute_actor( + self, data: t.Union[models.AppBskyGraphMuteActor.Data, models.AppBskyGraphMuteActor.DataDict], **kwargs: t.Any + ) -> bool: """Mute an actor by did or handle. Args: @@ -735,7 +814,11 @@ async def mute_actor(self, data: t.Union[dict, 'models.AppBskyGraphMuteActor.Dat ) return get_response_model(response, bool) - async def mute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphMuteActorList.Data'], **kwargs) -> bool: + async def mute_actor_list( + self, + data: t.Union[models.AppBskyGraphMuteActorList.Data, models.AppBskyGraphMuteActorList.DataDict], + **kwargs: t.Any, + ) -> bool: """Mute a list of actors. Args: @@ -755,7 +838,11 @@ async def mute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphMuteActo ) return get_response_model(response, bool) - async def unmute_actor(self, data: t.Union[dict, 'models.AppBskyGraphUnmuteActor.Data'], **kwargs) -> bool: + async def unmute_actor( + self, + data: t.Union[models.AppBskyGraphUnmuteActor.Data, models.AppBskyGraphUnmuteActor.DataDict], + **kwargs: t.Any, + ) -> bool: """Unmute an actor by did or handle. Args: @@ -775,7 +862,11 @@ async def unmute_actor(self, data: t.Union[dict, 'models.AppBskyGraphUnmuteActor ) return get_response_model(response, bool) - async def unmute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphUnmuteActorList.Data'], **kwargs) -> bool: + async def unmute_actor_list( + self, + data: t.Union[models.AppBskyGraphUnmuteActorList.Data, models.AppBskyGraphUnmuteActorList.DataDict], + **kwargs: t.Any, + ) -> bool: """Unmute a list of actors. Args: @@ -798,7 +889,13 @@ async def unmute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphUnmute class NotificationNamespace(AsyncNamespaceBase): async def get_unread_count( - self, params: t.Optional[t.Union[dict, 'models.AppBskyNotificationGetUnreadCount.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyNotificationGetUnreadCount.Params, models.AppBskyNotificationGetUnreadCount.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyNotificationGetUnreadCount.Response': """Get unread count. @@ -820,7 +917,14 @@ async def get_unread_count( return get_response_model(response, models.AppBskyNotificationGetUnreadCount.Response) async def list_notifications( - self, params: t.Optional[t.Union[dict, 'models.AppBskyNotificationListNotifications.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyNotificationListNotifications.Params, + models.AppBskyNotificationListNotifications.ParamsDict, + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyNotificationListNotifications.Response': """List notifications. @@ -841,7 +945,11 @@ async def list_notifications( ) return get_response_model(response, models.AppBskyNotificationListNotifications.Response) - async def register_push(self, data: t.Union[dict, 'models.AppBskyNotificationRegisterPush.Data'], **kwargs) -> bool: + async def register_push( + self, + data: t.Union[models.AppBskyNotificationRegisterPush.Data, models.AppBskyNotificationRegisterPush.DataDict], + **kwargs: t.Any, + ) -> bool: """Register for push notifications with a service. Args: @@ -861,7 +969,11 @@ async def register_push(self, data: t.Union[dict, 'models.AppBskyNotificationReg ) return get_response_model(response, bool) - async def update_seen(self, data: t.Union[dict, 'models.AppBskyNotificationUpdateSeen.Data'], **kwargs) -> bool: + async def update_seen( + self, + data: t.Union[models.AppBskyNotificationUpdateSeen.Data, models.AppBskyNotificationUpdateSeen.DataDict], + **kwargs: t.Any, + ) -> bool: """Notify server that the user has seen notifications. Args: @@ -883,7 +995,11 @@ async def update_seen(self, data: t.Union[dict, 'models.AppBskyNotificationUpdat class UnspeccedNamespace(AsyncNamespaceBase): - async def apply_labels(self, data: t.Union[dict, 'models.AppBskyUnspeccedApplyLabels.Data'], **kwargs) -> bool: + async def apply_labels( + self, + data: t.Union[models.AppBskyUnspeccedApplyLabels.Data, models.AppBskyUnspeccedApplyLabels.DataDict], + **kwargs: t.Any, + ) -> bool: """Allow a labeler to apply labels directly. Args: @@ -904,7 +1020,11 @@ async def apply_labels(self, data: t.Union[dict, 'models.AppBskyUnspeccedApplyLa return get_response_model(response, bool) async def get_popular( - self, params: t.Optional[t.Union[dict, 'models.AppBskyUnspeccedGetPopular.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyUnspeccedGetPopular.Params, models.AppBskyUnspeccedGetPopular.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyUnspeccedGetPopular.Response': """An unspecced view of globally popular items. @@ -927,8 +1047,13 @@ async def get_popular( async def get_popular_feed_generators( self, - params: t.Optional[t.Union[dict, 'models.AppBskyUnspeccedGetPopularFeedGenerators.Params']] = None, - **kwargs, + params: t.Optional[ + t.Union[ + models.AppBskyUnspeccedGetPopularFeedGenerators.Params, + models.AppBskyUnspeccedGetPopularFeedGenerators.ParamsDict, + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyUnspeccedGetPopularFeedGenerators.Response': """An unspecced view of globally popular feed generators. @@ -953,7 +1078,13 @@ async def get_popular_feed_generators( return get_response_model(response, models.AppBskyUnspeccedGetPopularFeedGenerators.Response) async def get_timeline_skeleton( - self, params: t.Optional[t.Union[dict, 'models.AppBskyUnspeccedGetTimelineSkeleton.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyUnspeccedGetTimelineSkeleton.Params, models.AppBskyUnspeccedGetTimelineSkeleton.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyUnspeccedGetTimelineSkeleton.Response': """A skeleton of a timeline - UNSPECCED & WILL GO AWAY SOON. @@ -995,7 +1126,11 @@ def __init__(self, client: 'AsyncClientRaw') -> None: class AdminNamespace(AsyncNamespaceBase): async def disable_account_invites( - self, data: t.Union[dict, 'models.ComAtprotoAdminDisableAccountInvites.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminDisableAccountInvites.Data, models.ComAtprotoAdminDisableAccountInvites.DataDict + ], + **kwargs: t.Any, ) -> bool: """Disable an account from receiving new invite codes, but does not invalidate existing codes. @@ -1017,7 +1152,11 @@ async def disable_account_invites( return get_response_model(response, bool) async def disable_invite_codes( - self, data: t.Optional[t.Union[dict, 'models.ComAtprotoAdminDisableInviteCodes.Data']] = None, **kwargs + self, + data: t.Optional[ + t.Union[models.ComAtprotoAdminDisableInviteCodes.Data, models.ComAtprotoAdminDisableInviteCodes.DataDict] + ] = None, + **kwargs: t.Any, ) -> bool: """Disable some set of codes and/or all codes associated with a set of users. @@ -1039,7 +1178,11 @@ async def disable_invite_codes( return get_response_model(response, bool) async def enable_account_invites( - self, data: t.Union[dict, 'models.ComAtprotoAdminEnableAccountInvites.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminEnableAccountInvites.Data, models.ComAtprotoAdminEnableAccountInvites.DataDict + ], + **kwargs: t.Any, ) -> bool: """Re-enable an accounts ability to receive invite codes. @@ -1061,7 +1204,11 @@ async def enable_account_invites( return get_response_model(response, bool) async def get_invite_codes( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminGetInviteCodes.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.ComAtprotoAdminGetInviteCodes.Params, models.ComAtprotoAdminGetInviteCodes.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminGetInviteCodes.Response': """Admin view of invite codes. @@ -1083,7 +1230,11 @@ async def get_invite_codes( return get_response_model(response, models.ComAtprotoAdminGetInviteCodes.Response) async def get_moderation_action( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetModerationAction.Params'], **kwargs + self, + params: t.Union[ + models.ComAtprotoAdminGetModerationAction.Params, models.ComAtprotoAdminGetModerationAction.ParamsDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionViewDetail': """View details about a moderation action. @@ -1105,7 +1256,13 @@ async def get_moderation_action( return get_response_model(response, models.ComAtprotoAdminDefs.ActionViewDetail) async def get_moderation_actions( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminGetModerationActions.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.ComAtprotoAdminGetModerationActions.Params, models.ComAtprotoAdminGetModerationActions.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminGetModerationActions.Response': """List moderation actions related to a subject. @@ -1127,7 +1284,11 @@ async def get_moderation_actions( return get_response_model(response, models.ComAtprotoAdminGetModerationActions.Response) async def get_moderation_report( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetModerationReport.Params'], **kwargs + self, + params: t.Union[ + models.ComAtprotoAdminGetModerationReport.Params, models.ComAtprotoAdminGetModerationReport.ParamsDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ReportViewDetail': """View details about a moderation report. @@ -1149,7 +1310,13 @@ async def get_moderation_report( return get_response_model(response, models.ComAtprotoAdminDefs.ReportViewDetail) async def get_moderation_reports( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminGetModerationReports.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.ComAtprotoAdminGetModerationReports.Params, models.ComAtprotoAdminGetModerationReports.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminGetModerationReports.Response': """List moderation reports related to a subject. @@ -1171,7 +1338,9 @@ async def get_moderation_reports( return get_response_model(response, models.ComAtprotoAdminGetModerationReports.Response) async def get_record( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetRecord.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoAdminGetRecord.Params, models.ComAtprotoAdminGetRecord.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.RecordViewDetail': """View details about a record. @@ -1193,7 +1362,9 @@ async def get_record( return get_response_model(response, models.ComAtprotoAdminDefs.RecordViewDetail) async def get_repo( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetRepo.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoAdminGetRepo.Params, models.ComAtprotoAdminGetRepo.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.RepoViewDetail': """View details about a repository. @@ -1215,7 +1386,11 @@ async def get_repo( return get_response_model(response, models.ComAtprotoAdminDefs.RepoViewDetail) async def resolve_moderation_reports( - self, data: t.Union[dict, 'models.ComAtprotoAdminResolveModerationReports.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminResolveModerationReports.Data, models.ComAtprotoAdminResolveModerationReports.DataDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionView': """Resolve moderation reports by an action. @@ -1241,7 +1416,11 @@ async def resolve_moderation_reports( return get_response_model(response, models.ComAtprotoAdminDefs.ActionView) async def reverse_moderation_action( - self, data: t.Union[dict, 'models.ComAtprotoAdminReverseModerationAction.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminReverseModerationAction.Data, models.ComAtprotoAdminReverseModerationAction.DataDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionView': """Reverse a moderation action. @@ -1267,7 +1446,11 @@ async def reverse_moderation_action( return get_response_model(response, models.ComAtprotoAdminDefs.ActionView) async def search_repos( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminSearchRepos.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.ComAtprotoAdminSearchRepos.Params, models.ComAtprotoAdminSearchRepos.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminSearchRepos.Response': """Find repositories based on a search term. @@ -1289,7 +1472,9 @@ async def search_repos( return get_response_model(response, models.ComAtprotoAdminSearchRepos.Response) async def send_email( - self, data: t.Union[dict, 'models.ComAtprotoAdminSendEmail.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoAdminSendEmail.Data, models.ComAtprotoAdminSendEmail.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminSendEmail.Response': """Send email to a user's primary email address. @@ -1315,7 +1500,11 @@ async def send_email( return get_response_model(response, models.ComAtprotoAdminSendEmail.Response) async def take_moderation_action( - self, data: t.Union[dict, 'models.ComAtprotoAdminTakeModerationAction.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminTakeModerationAction.Data, models.ComAtprotoAdminTakeModerationAction.DataDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionView': """Take a moderation action on a repo. @@ -1341,7 +1530,9 @@ async def take_moderation_action( return get_response_model(response, models.ComAtprotoAdminDefs.ActionView) async def update_account_email( - self, data: t.Union[dict, 'models.ComAtprotoAdminUpdateAccountEmail.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoAdminUpdateAccountEmail.Data, models.ComAtprotoAdminUpdateAccountEmail.DataDict], + **kwargs: t.Any, ) -> bool: """Administrative action to update an account's email. @@ -1363,7 +1554,11 @@ async def update_account_email( return get_response_model(response, bool) async def update_account_handle( - self, data: t.Union[dict, 'models.ComAtprotoAdminUpdateAccountHandle.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminUpdateAccountHandle.Data, models.ComAtprotoAdminUpdateAccountHandle.DataDict + ], + **kwargs: t.Any, ) -> bool: """Administrative action to update an account's handle. @@ -1387,7 +1582,11 @@ async def update_account_handle( class IdentityNamespace(AsyncNamespaceBase): async def resolve_handle( - self, params: t.Union[dict, 'models.ComAtprotoIdentityResolveHandle.Params'], **kwargs + self, + params: t.Union[ + models.ComAtprotoIdentityResolveHandle.Params, models.ComAtprotoIdentityResolveHandle.ParamsDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoIdentityResolveHandle.Response': """Provides the DID of a repo. @@ -1408,7 +1607,11 @@ async def resolve_handle( ) return get_response_model(response, models.ComAtprotoIdentityResolveHandle.Response) - async def update_handle(self, data: t.Union[dict, 'models.ComAtprotoIdentityUpdateHandle.Data'], **kwargs) -> bool: + async def update_handle( + self, + data: t.Union[models.ComAtprotoIdentityUpdateHandle.Data, models.ComAtprotoIdentityUpdateHandle.DataDict], + **kwargs: t.Any, + ) -> bool: """Updates the handle of the account. Args: @@ -1431,7 +1634,9 @@ async def update_handle(self, data: t.Union[dict, 'models.ComAtprotoIdentityUpda class LabelNamespace(AsyncNamespaceBase): async def query_labels( - self, params: t.Union[dict, 'models.ComAtprotoLabelQueryLabels.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoLabelQueryLabels.Params, models.ComAtprotoLabelQueryLabels.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoLabelQueryLabels.Response': """Find labels relevant to the provided URI patterns. @@ -1455,7 +1660,9 @@ async def query_labels( class ModerationNamespace(AsyncNamespaceBase): async def create_report( - self, data: t.Union[dict, 'models.ComAtprotoModerationCreateReport.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoModerationCreateReport.Data, models.ComAtprotoModerationCreateReport.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoModerationCreateReport.Response': """Report a repo or a record. @@ -1482,7 +1689,11 @@ async def create_report( class RepoNamespace(AsyncNamespaceBase): - async def apply_writes(self, data: t.Union[dict, 'models.ComAtprotoRepoApplyWrites.Data'], **kwargs) -> bool: + async def apply_writes( + self, + data: t.Union[models.ComAtprotoRepoApplyWrites.Data, models.ComAtprotoRepoApplyWrites.DataDict], + **kwargs: t.Any, + ) -> bool: """Apply a batch transaction of creates, updates, and deletes. Args: @@ -1503,7 +1714,9 @@ async def apply_writes(self, data: t.Union[dict, 'models.ComAtprotoRepoApplyWrit return get_response_model(response, bool) async def create_record( - self, data: t.Union[dict, 'models.ComAtprotoRepoCreateRecord.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoRepoCreateRecord.Data, models.ComAtprotoRepoCreateRecord.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoCreateRecord.Response': """Create a new record. @@ -1528,7 +1741,11 @@ async def create_record( ) return get_response_model(response, models.ComAtprotoRepoCreateRecord.Response) - async def delete_record(self, data: t.Union[dict, 'models.ComAtprotoRepoDeleteRecord.Data'], **kwargs) -> bool: + async def delete_record( + self, + data: t.Union[models.ComAtprotoRepoDeleteRecord.Data, models.ComAtprotoRepoDeleteRecord.DataDict], + **kwargs: t.Any, + ) -> bool: """Delete a record, or ensure it doesn't exist. Args: @@ -1549,7 +1766,9 @@ async def delete_record(self, data: t.Union[dict, 'models.ComAtprotoRepoDeleteRe return get_response_model(response, bool) async def describe_repo( - self, params: t.Union[dict, 'models.ComAtprotoRepoDescribeRepo.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoRepoDescribeRepo.Params, models.ComAtprotoRepoDescribeRepo.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoDescribeRepo.Response': """Get information about the repo, including the list of collections. @@ -1571,7 +1790,9 @@ async def describe_repo( return get_response_model(response, models.ComAtprotoRepoDescribeRepo.Response) async def get_record( - self, params: t.Union[dict, 'models.ComAtprotoRepoGetRecord.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoRepoGetRecord.Params, models.ComAtprotoRepoGetRecord.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoGetRecord.Response': """Get a record. @@ -1593,7 +1814,9 @@ async def get_record( return get_response_model(response, models.ComAtprotoRepoGetRecord.Response) async def list_records( - self, params: t.Union[dict, 'models.ComAtprotoRepoListRecords.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoRepoListRecords.Params, models.ComAtprotoRepoListRecords.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoListRecords.Response': """List a range of records in a collection. @@ -1615,7 +1838,9 @@ async def list_records( return get_response_model(response, models.ComAtprotoRepoListRecords.Response) async def put_record( - self, data: t.Union[dict, 'models.ComAtprotoRepoPutRecord.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoRepoPutRecord.Data, models.ComAtprotoRepoPutRecord.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoPutRecord.Response': """Write a record, creating or updating it as needed. @@ -1641,7 +1866,7 @@ async def put_record( return get_response_model(response, models.ComAtprotoRepoPutRecord.Response) async def upload_blob( - self, data: 'models.ComAtprotoRepoUploadBlob.Data', **kwargs + self, data: 'models.ComAtprotoRepoUploadBlob.Data', **kwargs: t.Any ) -> 'models.ComAtprotoRepoUploadBlob.Response': """Upload a new blob to be added to repo in a later request. @@ -1664,7 +1889,9 @@ async def upload_blob( class ServerNamespace(AsyncNamespaceBase): async def create_account( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateAccount.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateAccount.Data, models.ComAtprotoServerCreateAccount.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateAccount.Response': """Create an account. @@ -1690,7 +1917,9 @@ async def create_account( return get_response_model(response, models.ComAtprotoServerCreateAccount.Response) async def create_app_password( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateAppPassword.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateAppPassword.Data, models.ComAtprotoServerCreateAppPassword.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateAppPassword.AppPassword': """Create an app-specific password. @@ -1716,7 +1945,9 @@ async def create_app_password( return get_response_model(response, models.ComAtprotoServerCreateAppPassword.AppPassword) async def create_invite_code( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateInviteCode.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateInviteCode.Data, models.ComAtprotoServerCreateInviteCode.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateInviteCode.Response': """Create an invite code. @@ -1742,7 +1973,9 @@ async def create_invite_code( return get_response_model(response, models.ComAtprotoServerCreateInviteCode.Response) async def create_invite_codes( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateInviteCodes.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateInviteCodes.Data, models.ComAtprotoServerCreateInviteCodes.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateInviteCodes.Response': """Create an invite code. @@ -1768,7 +2001,9 @@ async def create_invite_codes( return get_response_model(response, models.ComAtprotoServerCreateInviteCodes.Response) async def create_session( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateSession.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateSession.Data, models.ComAtprotoServerCreateSession.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateSession.Response': """Create an authentication session. @@ -1793,7 +2028,11 @@ async def create_session( ) return get_response_model(response, models.ComAtprotoServerCreateSession.Response) - async def delete_account(self, data: t.Union[dict, 'models.ComAtprotoServerDeleteAccount.Data'], **kwargs) -> bool: + async def delete_account( + self, + data: t.Union[models.ComAtprotoServerDeleteAccount.Data, models.ComAtprotoServerDeleteAccount.DataDict], + **kwargs: t.Any, + ) -> bool: """Delete a user account with a token and password. Args: @@ -1813,7 +2052,7 @@ async def delete_account(self, data: t.Union[dict, 'models.ComAtprotoServerDelet ) return get_response_model(response, bool) - async def delete_session(self, **kwargs) -> bool: + async def delete_session(self, **kwargs: t.Any) -> bool: """Delete the current session. Args: @@ -1829,7 +2068,7 @@ async def delete_session(self, **kwargs) -> bool: response = await self._client.invoke_procedure('com.atproto.server.deleteSession', **kwargs) return get_response_model(response, bool) - async def describe_server(self, **kwargs) -> 'models.ComAtprotoServerDescribeServer.Response': + async def describe_server(self, **kwargs: t.Any) -> 'models.ComAtprotoServerDescribeServer.Response': """Get a document describing the service's accounts configuration. Args: @@ -1848,7 +2087,14 @@ async def describe_server(self, **kwargs) -> 'models.ComAtprotoServerDescribeSer return get_response_model(response, models.ComAtprotoServerDescribeServer.Response) async def get_account_invite_codes( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoServerGetAccountInviteCodes.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.ComAtprotoServerGetAccountInviteCodes.Params, + models.ComAtprotoServerGetAccountInviteCodes.ParamsDict, + ] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoServerGetAccountInviteCodes.Response': """Get all invite codes for a given account. @@ -1872,7 +2118,7 @@ async def get_account_invite_codes( ) return get_response_model(response, models.ComAtprotoServerGetAccountInviteCodes.Response) - async def get_session(self, **kwargs) -> 'models.ComAtprotoServerGetSession.Response': + async def get_session(self, **kwargs: t.Any) -> 'models.ComAtprotoServerGetSession.Response': """Get information about the current session. Args: @@ -1890,7 +2136,7 @@ async def get_session(self, **kwargs) -> 'models.ComAtprotoServerGetSession.Resp ) return get_response_model(response, models.ComAtprotoServerGetSession.Response) - async def list_app_passwords(self, **kwargs) -> 'models.ComAtprotoServerListAppPasswords.Response': + async def list_app_passwords(self, **kwargs: t.Any) -> 'models.ComAtprotoServerListAppPasswords.Response': """List all app-specific passwords. Args: @@ -1908,7 +2154,7 @@ async def list_app_passwords(self, **kwargs) -> 'models.ComAtprotoServerListAppP ) return get_response_model(response, models.ComAtprotoServerListAppPasswords.Response) - async def refresh_session(self, **kwargs) -> 'models.ComAtprotoServerRefreshSession.Response': + async def refresh_session(self, **kwargs: t.Any) -> 'models.ComAtprotoServerRefreshSession.Response': """Refresh an authentication session. Args: @@ -1926,7 +2172,7 @@ async def refresh_session(self, **kwargs) -> 'models.ComAtprotoServerRefreshSess ) return get_response_model(response, models.ComAtprotoServerRefreshSession.Response) - async def request_account_delete(self, **kwargs) -> bool: + async def request_account_delete(self, **kwargs: t.Any) -> bool: """Initiate a user account deletion via email. Args: @@ -1943,7 +2189,11 @@ async def request_account_delete(self, **kwargs) -> bool: return get_response_model(response, bool) async def request_password_reset( - self, data: t.Union[dict, 'models.ComAtprotoServerRequestPasswordReset.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoServerRequestPasswordReset.Data, models.ComAtprotoServerRequestPasswordReset.DataDict + ], + **kwargs: t.Any, ) -> bool: """Initiate a user account password reset via email. @@ -1964,7 +2214,11 @@ async def request_password_reset( ) return get_response_model(response, bool) - async def reset_password(self, data: t.Union[dict, 'models.ComAtprotoServerResetPassword.Data'], **kwargs) -> bool: + async def reset_password( + self, + data: t.Union[models.ComAtprotoServerResetPassword.Data, models.ComAtprotoServerResetPassword.DataDict], + **kwargs: t.Any, + ) -> bool: """Reset a user account password using a token. Args: @@ -1985,7 +2239,9 @@ async def reset_password(self, data: t.Union[dict, 'models.ComAtprotoServerReset return get_response_model(response, bool) async def revoke_app_password( - self, data: t.Union[dict, 'models.ComAtprotoServerRevokeAppPassword.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerRevokeAppPassword.Data, models.ComAtprotoServerRevokeAppPassword.DataDict], + **kwargs: t.Any, ) -> bool: """Revoke an app-specific password by name. @@ -2009,7 +2265,9 @@ async def revoke_app_password( class SyncNamespace(AsyncNamespaceBase): async def get_blob( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetBlob.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetBlob.Params, models.ComAtprotoSyncGetBlob.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetBlob.Response': """Get a blob associated with a given repo. @@ -2031,7 +2289,9 @@ async def get_blob( return get_response_model(response, models.ComAtprotoSyncGetBlob.Response) async def get_blocks( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetBlocks.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetBlocks.Params, models.ComAtprotoSyncGetBlocks.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetBlocks.Response': """Gets blocks from a given repo. @@ -2053,7 +2313,9 @@ async def get_blocks( return get_response_model(response, models.ComAtprotoSyncGetBlocks.Response) async def get_checkout( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetCheckout.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetCheckout.Params, models.ComAtprotoSyncGetCheckout.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetCheckout.Response': """DEPRECATED - please use com.atproto.sync.getRepo instead. @@ -2075,7 +2337,9 @@ async def get_checkout( return get_response_model(response, models.ComAtprotoSyncGetCheckout.Response) async def get_head( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetHead.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetHead.Params, models.ComAtprotoSyncGetHead.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetHead.Response': """DEPRECATED - please use com.atproto.sync.getLatestCommit instead. @@ -2097,7 +2361,9 @@ async def get_head( return get_response_model(response, models.ComAtprotoSyncGetHead.Response) async def get_latest_commit( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetLatestCommit.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetLatestCommit.Params, models.ComAtprotoSyncGetLatestCommit.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetLatestCommit.Response': """Gets the current commit CID & revision of the repo. @@ -2119,7 +2385,9 @@ async def get_latest_commit( return get_response_model(response, models.ComAtprotoSyncGetLatestCommit.Response) async def get_record( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetRecord.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetRecord.Params, models.ComAtprotoSyncGetRecord.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetRecord.Response': """Gets blocks needed for existence or non-existence of record. @@ -2141,7 +2409,9 @@ async def get_record( return get_response_model(response, models.ComAtprotoSyncGetRecord.Response) async def get_repo( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetRepo.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetRepo.Params, models.ComAtprotoSyncGetRepo.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetRepo.Response': """Gets the did's repo, optionally catching up from a specific revision. @@ -2163,7 +2433,9 @@ async def get_repo( return get_response_model(response, models.ComAtprotoSyncGetRepo.Response) async def list_blobs( - self, params: t.Union[dict, 'models.ComAtprotoSyncListBlobs.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncListBlobs.Params, models.ComAtprotoSyncListBlobs.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncListBlobs.Response': """List blob cids since some revision. @@ -2185,7 +2457,11 @@ async def list_blobs( return get_response_model(response, models.ComAtprotoSyncListBlobs.Response) async def list_repos( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoSyncListRepos.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.ComAtprotoSyncListRepos.Params, models.ComAtprotoSyncListRepos.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncListRepos.Response': """List dids and root cids of hosted repos. @@ -2206,7 +2482,11 @@ async def list_repos( ) return get_response_model(response, models.ComAtprotoSyncListRepos.Response) - async def notify_of_update(self, data: t.Union[dict, 'models.ComAtprotoSyncNotifyOfUpdate.Data'], **kwargs) -> bool: + async def notify_of_update( + self, + data: t.Union[models.ComAtprotoSyncNotifyOfUpdate.Data, models.ComAtprotoSyncNotifyOfUpdate.DataDict], + **kwargs: t.Any, + ) -> bool: """Notify a crawling service of a recent update. Often when a long break between updates causes the connection with the crawling service to break. Args: @@ -2226,7 +2506,11 @@ async def notify_of_update(self, data: t.Union[dict, 'models.ComAtprotoSyncNotif ) return get_response_model(response, bool) - async def request_crawl(self, data: t.Union[dict, 'models.ComAtprotoSyncRequestCrawl.Data'], **kwargs) -> bool: + async def request_crawl( + self, + data: t.Union[models.ComAtprotoSyncRequestCrawl.Data, models.ComAtprotoSyncRequestCrawl.DataDict], + **kwargs: t.Any, + ) -> bool: """Request a service to persistently crawl hosted repos. Args: diff --git a/atproto/xrpc_client/namespaces/sync_ns.py b/atproto/xrpc_client/namespaces/sync_ns.py index c9ee1081..edbf9daf 100644 --- a/atproto/xrpc_client/namespaces/sync_ns.py +++ b/atproto/xrpc_client/namespaces/sync_ns.py @@ -33,7 +33,11 @@ def __init__(self, client: 'ClientRaw') -> None: class ActorNamespace(NamespaceBase): def get_preferences( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorGetPreferences.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyActorGetPreferences.Params, models.AppBskyActorGetPreferences.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorGetPreferences.Response': """Get private preferences attached to the account. @@ -55,7 +59,9 @@ def get_preferences( return get_response_model(response, models.AppBskyActorGetPreferences.Response) def get_profile( - self, params: t.Union[dict, 'models.AppBskyActorGetProfile.Params'], **kwargs + self, + params: t.Union[models.AppBskyActorGetProfile.Params, models.AppBskyActorGetProfile.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyActorDefs.ProfileViewDetailed': """Get profile. @@ -77,7 +83,9 @@ def get_profile( return get_response_model(response, models.AppBskyActorDefs.ProfileViewDetailed) def get_profiles( - self, params: t.Union[dict, 'models.AppBskyActorGetProfiles.Params'], **kwargs + self, + params: t.Union[models.AppBskyActorGetProfiles.Params, models.AppBskyActorGetProfiles.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyActorGetProfiles.Response': """Get profiles. @@ -99,7 +107,11 @@ def get_profiles( return get_response_model(response, models.AppBskyActorGetProfiles.Response) def get_suggestions( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorGetSuggestions.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyActorGetSuggestions.Params, models.AppBskyActorGetSuggestions.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorGetSuggestions.Response': """Get a list of actors suggested for following. Used in discovery UIs. @@ -120,7 +132,11 @@ def get_suggestions( ) return get_response_model(response, models.AppBskyActorGetSuggestions.Response) - def put_preferences(self, data: t.Union[dict, 'models.AppBskyActorPutPreferences.Data'], **kwargs) -> bool: + def put_preferences( + self, + data: t.Union[models.AppBskyActorPutPreferences.Data, models.AppBskyActorPutPreferences.DataDict], + **kwargs: t.Any, + ) -> bool: """Sets the private preferences attached to the account. Args: @@ -141,7 +157,11 @@ def put_preferences(self, data: t.Union[dict, 'models.AppBskyActorPutPreferences return get_response_model(response, bool) def search_actors( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorSearchActors.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyActorSearchActors.Params, models.AppBskyActorSearchActors.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorSearchActors.Response': """Find actors matching search criteria. @@ -163,7 +183,13 @@ def search_actors( return get_response_model(response, models.AppBskyActorSearchActors.Response) def search_actors_typeahead( - self, params: t.Optional[t.Union[dict, 'models.AppBskyActorSearchActorsTypeahead.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyActorSearchActorsTypeahead.Params, models.AppBskyActorSearchActorsTypeahead.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyActorSearchActorsTypeahead.Response': """Find actor suggestions for a search term. @@ -186,7 +212,7 @@ def search_actors_typeahead( class FeedNamespace(NamespaceBase): - def describe_feed_generator(self, **kwargs) -> 'models.AppBskyFeedDescribeFeedGenerator.Response': + def describe_feed_generator(self, **kwargs: t.Any) -> 'models.AppBskyFeedDescribeFeedGenerator.Response': """Returns information about a given feed generator including TOS & offered feed URIs. Args: @@ -205,7 +231,9 @@ def describe_feed_generator(self, **kwargs) -> 'models.AppBskyFeedDescribeFeedGe return get_response_model(response, models.AppBskyFeedDescribeFeedGenerator.Response) def get_actor_feeds( - self, params: t.Union[dict, 'models.AppBskyFeedGetActorFeeds.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetActorFeeds.Params, models.AppBskyFeedGetActorFeeds.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetActorFeeds.Response': """Retrieve a list of feeds created by a given actor. @@ -227,7 +255,9 @@ def get_actor_feeds( return get_response_model(response, models.AppBskyFeedGetActorFeeds.Response) def get_actor_likes( - self, params: t.Union[dict, 'models.AppBskyFeedGetActorLikes.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetActorLikes.Params, models.AppBskyFeedGetActorLikes.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetActorLikes.Response': """A view of the posts liked by an actor. @@ -249,7 +279,9 @@ def get_actor_likes( return get_response_model(response, models.AppBskyFeedGetActorLikes.Response) def get_author_feed( - self, params: t.Union[dict, 'models.AppBskyFeedGetAuthorFeed.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetAuthorFeed.Params, models.AppBskyFeedGetAuthorFeed.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetAuthorFeed.Response': """A view of an actor's feed. @@ -271,7 +303,7 @@ def get_author_feed( return get_response_model(response, models.AppBskyFeedGetAuthorFeed.Response) def get_feed( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeed.Params'], **kwargs + self, params: t.Union[models.AppBskyFeedGetFeed.Params, models.AppBskyFeedGetFeed.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyFeedGetFeed.Response': """Compose and hydrate a feed from a user's selected feed generator. @@ -293,7 +325,9 @@ def get_feed( return get_response_model(response, models.AppBskyFeedGetFeed.Response) def get_feed_generator( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeedGenerator.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetFeedGenerator.Params, models.AppBskyFeedGetFeedGenerator.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetFeedGenerator.Response': """Get information about a specific feed offered by a feed generator, such as its online status. @@ -315,7 +349,9 @@ def get_feed_generator( return get_response_model(response, models.AppBskyFeedGetFeedGenerator.Response) def get_feed_generators( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeedGenerators.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetFeedGenerators.Params, models.AppBskyFeedGetFeedGenerators.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetFeedGenerators.Response': """Get information about a list of feed generators. @@ -337,7 +373,9 @@ def get_feed_generators( return get_response_model(response, models.AppBskyFeedGetFeedGenerators.Response) def get_feed_skeleton( - self, params: t.Union[dict, 'models.AppBskyFeedGetFeedSkeleton.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetFeedSkeleton.Params, models.AppBskyFeedGetFeedSkeleton.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetFeedSkeleton.Response': """A skeleton of a feed provided by a feed generator. @@ -359,7 +397,7 @@ def get_feed_skeleton( return get_response_model(response, models.AppBskyFeedGetFeedSkeleton.Response) def get_likes( - self, params: t.Union[dict, 'models.AppBskyFeedGetLikes.Params'], **kwargs + self, params: t.Union[models.AppBskyFeedGetLikes.Params, models.AppBskyFeedGetLikes.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyFeedGetLikes.Response': """Get likes. @@ -381,7 +419,9 @@ def get_likes( return get_response_model(response, models.AppBskyFeedGetLikes.Response) def get_list_feed( - self, params: t.Union[dict, 'models.AppBskyFeedGetListFeed.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetListFeed.Params, models.AppBskyFeedGetListFeed.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetListFeed.Response': """A view of a recent posts from actors in a list. @@ -403,7 +443,9 @@ def get_list_feed( return get_response_model(response, models.AppBskyFeedGetListFeed.Response) def get_post_thread( - self, params: t.Union[dict, 'models.AppBskyFeedGetPostThread.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetPostThread.Params, models.AppBskyFeedGetPostThread.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetPostThread.Response': """Get post thread. @@ -425,7 +467,7 @@ def get_post_thread( return get_response_model(response, models.AppBskyFeedGetPostThread.Response) def get_posts( - self, params: t.Union[dict, 'models.AppBskyFeedGetPosts.Params'], **kwargs + self, params: t.Union[models.AppBskyFeedGetPosts.Params, models.AppBskyFeedGetPosts.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyFeedGetPosts.Response': """A view of an actor's feed. @@ -447,7 +489,9 @@ def get_posts( return get_response_model(response, models.AppBskyFeedGetPosts.Response) def get_reposted_by( - self, params: t.Union[dict, 'models.AppBskyFeedGetRepostedBy.Params'], **kwargs + self, + params: t.Union[models.AppBskyFeedGetRepostedBy.Params, models.AppBskyFeedGetRepostedBy.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetRepostedBy.Response': """Get reposted by. @@ -469,7 +513,11 @@ def get_reposted_by( return get_response_model(response, models.AppBskyFeedGetRepostedBy.Response) def get_suggested_feeds( - self, params: t.Optional[t.Union[dict, 'models.AppBskyFeedGetSuggestedFeeds.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyFeedGetSuggestedFeeds.Params, models.AppBskyFeedGetSuggestedFeeds.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetSuggestedFeeds.Response': """Get a list of suggested feeds for the viewer. @@ -491,7 +539,11 @@ def get_suggested_feeds( return get_response_model(response, models.AppBskyFeedGetSuggestedFeeds.Response) def get_timeline( - self, params: t.Optional[t.Union[dict, 'models.AppBskyFeedGetTimeline.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyFeedGetTimeline.Params, models.AppBskyFeedGetTimeline.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyFeedGetTimeline.Response': """A view of the user's home timeline. @@ -515,7 +567,11 @@ def get_timeline( class GraphNamespace(NamespaceBase): def get_blocks( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetBlocks.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyGraphGetBlocks.Params, models.AppBskyGraphGetBlocks.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetBlocks.Response': """Who is the requester's account blocking? @@ -537,7 +593,9 @@ def get_blocks( return get_response_model(response, models.AppBskyGraphGetBlocks.Response) def get_followers( - self, params: t.Union[dict, 'models.AppBskyGraphGetFollowers.Params'], **kwargs + self, + params: t.Union[models.AppBskyGraphGetFollowers.Params, models.AppBskyGraphGetFollowers.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetFollowers.Response': """Who is following an actor? @@ -559,7 +617,9 @@ def get_followers( return get_response_model(response, models.AppBskyGraphGetFollowers.Response) def get_follows( - self, params: t.Union[dict, 'models.AppBskyGraphGetFollows.Params'], **kwargs + self, + params: t.Union[models.AppBskyGraphGetFollows.Params, models.AppBskyGraphGetFollows.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetFollows.Response': """Who is an actor following? @@ -581,7 +641,7 @@ def get_follows( return get_response_model(response, models.AppBskyGraphGetFollows.Response) def get_list( - self, params: t.Union[dict, 'models.AppBskyGraphGetList.Params'], **kwargs + self, params: t.Union[models.AppBskyGraphGetList.Params, models.AppBskyGraphGetList.ParamsDict], **kwargs: t.Any ) -> 'models.AppBskyGraphGetList.Response': """Fetch a list of actors. @@ -603,7 +663,11 @@ def get_list( return get_response_model(response, models.AppBskyGraphGetList.Response) def get_list_blocks( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetListBlocks.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyGraphGetListBlocks.Params, models.AppBskyGraphGetListBlocks.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetListBlocks.Response': """Which lists is the requester's account blocking? @@ -625,7 +689,11 @@ def get_list_blocks( return get_response_model(response, models.AppBskyGraphGetListBlocks.Response) def get_list_mutes( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetListMutes.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyGraphGetListMutes.Params, models.AppBskyGraphGetListMutes.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetListMutes.Response': """Which lists is the requester's account muting? @@ -647,7 +715,9 @@ def get_list_mutes( return get_response_model(response, models.AppBskyGraphGetListMutes.Response) def get_lists( - self, params: t.Union[dict, 'models.AppBskyGraphGetLists.Params'], **kwargs + self, + params: t.Union[models.AppBskyGraphGetLists.Params, models.AppBskyGraphGetLists.ParamsDict], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetLists.Response': """Fetch a list of lists that belong to an actor. @@ -669,7 +739,9 @@ def get_lists( return get_response_model(response, models.AppBskyGraphGetLists.Response) def get_mutes( - self, params: t.Optional[t.Union[dict, 'models.AppBskyGraphGetMutes.Params']] = None, **kwargs + self, + params: t.Optional[t.Union[models.AppBskyGraphGetMutes.Params, models.AppBskyGraphGetMutes.ParamsDict]] = None, + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetMutes.Response': """Who does the viewer mute? @@ -691,7 +763,12 @@ def get_mutes( return get_response_model(response, models.AppBskyGraphGetMutes.Response) def get_suggested_follows_by_actor( - self, params: t.Union[dict, 'models.AppBskyGraphGetSuggestedFollowsByActor.Params'], **kwargs + self, + params: t.Union[ + models.AppBskyGraphGetSuggestedFollowsByActor.Params, + models.AppBskyGraphGetSuggestedFollowsByActor.ParamsDict, + ], + **kwargs: t.Any, ) -> 'models.AppBskyGraphGetSuggestedFollowsByActor.Response': """Get suggested follows related to a given actor. @@ -715,7 +792,9 @@ def get_suggested_follows_by_actor( ) return get_response_model(response, models.AppBskyGraphGetSuggestedFollowsByActor.Response) - def mute_actor(self, data: t.Union[dict, 'models.AppBskyGraphMuteActor.Data'], **kwargs) -> bool: + def mute_actor( + self, data: t.Union[models.AppBskyGraphMuteActor.Data, models.AppBskyGraphMuteActor.DataDict], **kwargs: t.Any + ) -> bool: """Mute an actor by did or handle. Args: @@ -735,7 +814,11 @@ def mute_actor(self, data: t.Union[dict, 'models.AppBskyGraphMuteActor.Data'], * ) return get_response_model(response, bool) - def mute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphMuteActorList.Data'], **kwargs) -> bool: + def mute_actor_list( + self, + data: t.Union[models.AppBskyGraphMuteActorList.Data, models.AppBskyGraphMuteActorList.DataDict], + **kwargs: t.Any, + ) -> bool: """Mute a list of actors. Args: @@ -755,7 +838,11 @@ def mute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphMuteActorList. ) return get_response_model(response, bool) - def unmute_actor(self, data: t.Union[dict, 'models.AppBskyGraphUnmuteActor.Data'], **kwargs) -> bool: + def unmute_actor( + self, + data: t.Union[models.AppBskyGraphUnmuteActor.Data, models.AppBskyGraphUnmuteActor.DataDict], + **kwargs: t.Any, + ) -> bool: """Unmute an actor by did or handle. Args: @@ -775,7 +862,11 @@ def unmute_actor(self, data: t.Union[dict, 'models.AppBskyGraphUnmuteActor.Data' ) return get_response_model(response, bool) - def unmute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphUnmuteActorList.Data'], **kwargs) -> bool: + def unmute_actor_list( + self, + data: t.Union[models.AppBskyGraphUnmuteActorList.Data, models.AppBskyGraphUnmuteActorList.DataDict], + **kwargs: t.Any, + ) -> bool: """Unmute a list of actors. Args: @@ -798,7 +889,13 @@ def unmute_actor_list(self, data: t.Union[dict, 'models.AppBskyGraphUnmuteActorL class NotificationNamespace(NamespaceBase): def get_unread_count( - self, params: t.Optional[t.Union[dict, 'models.AppBskyNotificationGetUnreadCount.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyNotificationGetUnreadCount.Params, models.AppBskyNotificationGetUnreadCount.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyNotificationGetUnreadCount.Response': """Get unread count. @@ -820,7 +917,14 @@ def get_unread_count( return get_response_model(response, models.AppBskyNotificationGetUnreadCount.Response) def list_notifications( - self, params: t.Optional[t.Union[dict, 'models.AppBskyNotificationListNotifications.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyNotificationListNotifications.Params, + models.AppBskyNotificationListNotifications.ParamsDict, + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyNotificationListNotifications.Response': """List notifications. @@ -841,7 +945,11 @@ def list_notifications( ) return get_response_model(response, models.AppBskyNotificationListNotifications.Response) - def register_push(self, data: t.Union[dict, 'models.AppBskyNotificationRegisterPush.Data'], **kwargs) -> bool: + def register_push( + self, + data: t.Union[models.AppBskyNotificationRegisterPush.Data, models.AppBskyNotificationRegisterPush.DataDict], + **kwargs: t.Any, + ) -> bool: """Register for push notifications with a service. Args: @@ -861,7 +969,11 @@ def register_push(self, data: t.Union[dict, 'models.AppBskyNotificationRegisterP ) return get_response_model(response, bool) - def update_seen(self, data: t.Union[dict, 'models.AppBskyNotificationUpdateSeen.Data'], **kwargs) -> bool: + def update_seen( + self, + data: t.Union[models.AppBskyNotificationUpdateSeen.Data, models.AppBskyNotificationUpdateSeen.DataDict], + **kwargs: t.Any, + ) -> bool: """Notify server that the user has seen notifications. Args: @@ -883,7 +995,11 @@ def update_seen(self, data: t.Union[dict, 'models.AppBskyNotificationUpdateSeen. class UnspeccedNamespace(NamespaceBase): - def apply_labels(self, data: t.Union[dict, 'models.AppBskyUnspeccedApplyLabels.Data'], **kwargs) -> bool: + def apply_labels( + self, + data: t.Union[models.AppBskyUnspeccedApplyLabels.Data, models.AppBskyUnspeccedApplyLabels.DataDict], + **kwargs: t.Any, + ) -> bool: """Allow a labeler to apply labels directly. Args: @@ -904,7 +1020,11 @@ def apply_labels(self, data: t.Union[dict, 'models.AppBskyUnspeccedApplyLabels.D return get_response_model(response, bool) def get_popular( - self, params: t.Optional[t.Union[dict, 'models.AppBskyUnspeccedGetPopular.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.AppBskyUnspeccedGetPopular.Params, models.AppBskyUnspeccedGetPopular.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyUnspeccedGetPopular.Response': """An unspecced view of globally popular items. @@ -927,8 +1047,13 @@ def get_popular( def get_popular_feed_generators( self, - params: t.Optional[t.Union[dict, 'models.AppBskyUnspeccedGetPopularFeedGenerators.Params']] = None, - **kwargs, + params: t.Optional[ + t.Union[ + models.AppBskyUnspeccedGetPopularFeedGenerators.Params, + models.AppBskyUnspeccedGetPopularFeedGenerators.ParamsDict, + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyUnspeccedGetPopularFeedGenerators.Response': """An unspecced view of globally popular feed generators. @@ -953,7 +1078,13 @@ def get_popular_feed_generators( return get_response_model(response, models.AppBskyUnspeccedGetPopularFeedGenerators.Response) def get_timeline_skeleton( - self, params: t.Optional[t.Union[dict, 'models.AppBskyUnspeccedGetTimelineSkeleton.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.AppBskyUnspeccedGetTimelineSkeleton.Params, models.AppBskyUnspeccedGetTimelineSkeleton.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.AppBskyUnspeccedGetTimelineSkeleton.Response': """A skeleton of a timeline - UNSPECCED & WILL GO AWAY SOON. @@ -995,7 +1126,11 @@ def __init__(self, client: 'ClientRaw') -> None: class AdminNamespace(NamespaceBase): def disable_account_invites( - self, data: t.Union[dict, 'models.ComAtprotoAdminDisableAccountInvites.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminDisableAccountInvites.Data, models.ComAtprotoAdminDisableAccountInvites.DataDict + ], + **kwargs: t.Any, ) -> bool: """Disable an account from receiving new invite codes, but does not invalidate existing codes. @@ -1017,7 +1152,11 @@ def disable_account_invites( return get_response_model(response, bool) def disable_invite_codes( - self, data: t.Optional[t.Union[dict, 'models.ComAtprotoAdminDisableInviteCodes.Data']] = None, **kwargs + self, + data: t.Optional[ + t.Union[models.ComAtprotoAdminDisableInviteCodes.Data, models.ComAtprotoAdminDisableInviteCodes.DataDict] + ] = None, + **kwargs: t.Any, ) -> bool: """Disable some set of codes and/or all codes associated with a set of users. @@ -1039,7 +1178,11 @@ def disable_invite_codes( return get_response_model(response, bool) def enable_account_invites( - self, data: t.Union[dict, 'models.ComAtprotoAdminEnableAccountInvites.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminEnableAccountInvites.Data, models.ComAtprotoAdminEnableAccountInvites.DataDict + ], + **kwargs: t.Any, ) -> bool: """Re-enable an accounts ability to receive invite codes. @@ -1061,7 +1204,11 @@ def enable_account_invites( return get_response_model(response, bool) def get_invite_codes( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminGetInviteCodes.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.ComAtprotoAdminGetInviteCodes.Params, models.ComAtprotoAdminGetInviteCodes.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminGetInviteCodes.Response': """Admin view of invite codes. @@ -1083,7 +1230,11 @@ def get_invite_codes( return get_response_model(response, models.ComAtprotoAdminGetInviteCodes.Response) def get_moderation_action( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetModerationAction.Params'], **kwargs + self, + params: t.Union[ + models.ComAtprotoAdminGetModerationAction.Params, models.ComAtprotoAdminGetModerationAction.ParamsDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionViewDetail': """View details about a moderation action. @@ -1105,7 +1256,13 @@ def get_moderation_action( return get_response_model(response, models.ComAtprotoAdminDefs.ActionViewDetail) def get_moderation_actions( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminGetModerationActions.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.ComAtprotoAdminGetModerationActions.Params, models.ComAtprotoAdminGetModerationActions.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminGetModerationActions.Response': """List moderation actions related to a subject. @@ -1127,7 +1284,11 @@ def get_moderation_actions( return get_response_model(response, models.ComAtprotoAdminGetModerationActions.Response) def get_moderation_report( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetModerationReport.Params'], **kwargs + self, + params: t.Union[ + models.ComAtprotoAdminGetModerationReport.Params, models.ComAtprotoAdminGetModerationReport.ParamsDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ReportViewDetail': """View details about a moderation report. @@ -1149,7 +1310,13 @@ def get_moderation_report( return get_response_model(response, models.ComAtprotoAdminDefs.ReportViewDetail) def get_moderation_reports( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminGetModerationReports.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.ComAtprotoAdminGetModerationReports.Params, models.ComAtprotoAdminGetModerationReports.ParamsDict + ] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminGetModerationReports.Response': """List moderation reports related to a subject. @@ -1171,7 +1338,9 @@ def get_moderation_reports( return get_response_model(response, models.ComAtprotoAdminGetModerationReports.Response) def get_record( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetRecord.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoAdminGetRecord.Params, models.ComAtprotoAdminGetRecord.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.RecordViewDetail': """View details about a record. @@ -1193,7 +1362,9 @@ def get_record( return get_response_model(response, models.ComAtprotoAdminDefs.RecordViewDetail) def get_repo( - self, params: t.Union[dict, 'models.ComAtprotoAdminGetRepo.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoAdminGetRepo.Params, models.ComAtprotoAdminGetRepo.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.RepoViewDetail': """View details about a repository. @@ -1215,7 +1386,11 @@ def get_repo( return get_response_model(response, models.ComAtprotoAdminDefs.RepoViewDetail) def resolve_moderation_reports( - self, data: t.Union[dict, 'models.ComAtprotoAdminResolveModerationReports.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminResolveModerationReports.Data, models.ComAtprotoAdminResolveModerationReports.DataDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionView': """Resolve moderation reports by an action. @@ -1241,7 +1416,11 @@ def resolve_moderation_reports( return get_response_model(response, models.ComAtprotoAdminDefs.ActionView) def reverse_moderation_action( - self, data: t.Union[dict, 'models.ComAtprotoAdminReverseModerationAction.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminReverseModerationAction.Data, models.ComAtprotoAdminReverseModerationAction.DataDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionView': """Reverse a moderation action. @@ -1267,7 +1446,11 @@ def reverse_moderation_action( return get_response_model(response, models.ComAtprotoAdminDefs.ActionView) def search_repos( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoAdminSearchRepos.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.ComAtprotoAdminSearchRepos.Params, models.ComAtprotoAdminSearchRepos.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminSearchRepos.Response': """Find repositories based on a search term. @@ -1289,7 +1472,9 @@ def search_repos( return get_response_model(response, models.ComAtprotoAdminSearchRepos.Response) def send_email( - self, data: t.Union[dict, 'models.ComAtprotoAdminSendEmail.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoAdminSendEmail.Data, models.ComAtprotoAdminSendEmail.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminSendEmail.Response': """Send email to a user's primary email address. @@ -1315,7 +1500,11 @@ def send_email( return get_response_model(response, models.ComAtprotoAdminSendEmail.Response) def take_moderation_action( - self, data: t.Union[dict, 'models.ComAtprotoAdminTakeModerationAction.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminTakeModerationAction.Data, models.ComAtprotoAdminTakeModerationAction.DataDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoAdminDefs.ActionView': """Take a moderation action on a repo. @@ -1341,7 +1530,9 @@ def take_moderation_action( return get_response_model(response, models.ComAtprotoAdminDefs.ActionView) def update_account_email( - self, data: t.Union[dict, 'models.ComAtprotoAdminUpdateAccountEmail.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoAdminUpdateAccountEmail.Data, models.ComAtprotoAdminUpdateAccountEmail.DataDict], + **kwargs: t.Any, ) -> bool: """Administrative action to update an account's email. @@ -1363,7 +1554,11 @@ def update_account_email( return get_response_model(response, bool) def update_account_handle( - self, data: t.Union[dict, 'models.ComAtprotoAdminUpdateAccountHandle.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoAdminUpdateAccountHandle.Data, models.ComAtprotoAdminUpdateAccountHandle.DataDict + ], + **kwargs: t.Any, ) -> bool: """Administrative action to update an account's handle. @@ -1387,7 +1582,11 @@ def update_account_handle( class IdentityNamespace(NamespaceBase): def resolve_handle( - self, params: t.Union[dict, 'models.ComAtprotoIdentityResolveHandle.Params'], **kwargs + self, + params: t.Union[ + models.ComAtprotoIdentityResolveHandle.Params, models.ComAtprotoIdentityResolveHandle.ParamsDict + ], + **kwargs: t.Any, ) -> 'models.ComAtprotoIdentityResolveHandle.Response': """Provides the DID of a repo. @@ -1408,7 +1607,11 @@ def resolve_handle( ) return get_response_model(response, models.ComAtprotoIdentityResolveHandle.Response) - def update_handle(self, data: t.Union[dict, 'models.ComAtprotoIdentityUpdateHandle.Data'], **kwargs) -> bool: + def update_handle( + self, + data: t.Union[models.ComAtprotoIdentityUpdateHandle.Data, models.ComAtprotoIdentityUpdateHandle.DataDict], + **kwargs: t.Any, + ) -> bool: """Updates the handle of the account. Args: @@ -1431,7 +1634,9 @@ def update_handle(self, data: t.Union[dict, 'models.ComAtprotoIdentityUpdateHand class LabelNamespace(NamespaceBase): def query_labels( - self, params: t.Union[dict, 'models.ComAtprotoLabelQueryLabels.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoLabelQueryLabels.Params, models.ComAtprotoLabelQueryLabels.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoLabelQueryLabels.Response': """Find labels relevant to the provided URI patterns. @@ -1455,7 +1660,9 @@ def query_labels( class ModerationNamespace(NamespaceBase): def create_report( - self, data: t.Union[dict, 'models.ComAtprotoModerationCreateReport.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoModerationCreateReport.Data, models.ComAtprotoModerationCreateReport.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoModerationCreateReport.Response': """Report a repo or a record. @@ -1482,7 +1689,11 @@ def create_report( class RepoNamespace(NamespaceBase): - def apply_writes(self, data: t.Union[dict, 'models.ComAtprotoRepoApplyWrites.Data'], **kwargs) -> bool: + def apply_writes( + self, + data: t.Union[models.ComAtprotoRepoApplyWrites.Data, models.ComAtprotoRepoApplyWrites.DataDict], + **kwargs: t.Any, + ) -> bool: """Apply a batch transaction of creates, updates, and deletes. Args: @@ -1503,7 +1714,9 @@ def apply_writes(self, data: t.Union[dict, 'models.ComAtprotoRepoApplyWrites.Dat return get_response_model(response, bool) def create_record( - self, data: t.Union[dict, 'models.ComAtprotoRepoCreateRecord.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoRepoCreateRecord.Data, models.ComAtprotoRepoCreateRecord.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoCreateRecord.Response': """Create a new record. @@ -1528,7 +1741,11 @@ def create_record( ) return get_response_model(response, models.ComAtprotoRepoCreateRecord.Response) - def delete_record(self, data: t.Union[dict, 'models.ComAtprotoRepoDeleteRecord.Data'], **kwargs) -> bool: + def delete_record( + self, + data: t.Union[models.ComAtprotoRepoDeleteRecord.Data, models.ComAtprotoRepoDeleteRecord.DataDict], + **kwargs: t.Any, + ) -> bool: """Delete a record, or ensure it doesn't exist. Args: @@ -1549,7 +1766,9 @@ def delete_record(self, data: t.Union[dict, 'models.ComAtprotoRepoDeleteRecord.D return get_response_model(response, bool) def describe_repo( - self, params: t.Union[dict, 'models.ComAtprotoRepoDescribeRepo.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoRepoDescribeRepo.Params, models.ComAtprotoRepoDescribeRepo.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoDescribeRepo.Response': """Get information about the repo, including the list of collections. @@ -1571,7 +1790,9 @@ def describe_repo( return get_response_model(response, models.ComAtprotoRepoDescribeRepo.Response) def get_record( - self, params: t.Union[dict, 'models.ComAtprotoRepoGetRecord.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoRepoGetRecord.Params, models.ComAtprotoRepoGetRecord.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoGetRecord.Response': """Get a record. @@ -1593,7 +1814,9 @@ def get_record( return get_response_model(response, models.ComAtprotoRepoGetRecord.Response) def list_records( - self, params: t.Union[dict, 'models.ComAtprotoRepoListRecords.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoRepoListRecords.Params, models.ComAtprotoRepoListRecords.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoListRecords.Response': """List a range of records in a collection. @@ -1615,7 +1838,9 @@ def list_records( return get_response_model(response, models.ComAtprotoRepoListRecords.Response) def put_record( - self, data: t.Union[dict, 'models.ComAtprotoRepoPutRecord.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoRepoPutRecord.Data, models.ComAtprotoRepoPutRecord.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoRepoPutRecord.Response': """Write a record, creating or updating it as needed. @@ -1641,7 +1866,7 @@ def put_record( return get_response_model(response, models.ComAtprotoRepoPutRecord.Response) def upload_blob( - self, data: 'models.ComAtprotoRepoUploadBlob.Data', **kwargs + self, data: 'models.ComAtprotoRepoUploadBlob.Data', **kwargs: t.Any ) -> 'models.ComAtprotoRepoUploadBlob.Response': """Upload a new blob to be added to repo in a later request. @@ -1664,7 +1889,9 @@ def upload_blob( class ServerNamespace(NamespaceBase): def create_account( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateAccount.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateAccount.Data, models.ComAtprotoServerCreateAccount.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateAccount.Response': """Create an account. @@ -1690,7 +1917,9 @@ def create_account( return get_response_model(response, models.ComAtprotoServerCreateAccount.Response) def create_app_password( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateAppPassword.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateAppPassword.Data, models.ComAtprotoServerCreateAppPassword.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateAppPassword.AppPassword': """Create an app-specific password. @@ -1716,7 +1945,9 @@ def create_app_password( return get_response_model(response, models.ComAtprotoServerCreateAppPassword.AppPassword) def create_invite_code( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateInviteCode.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateInviteCode.Data, models.ComAtprotoServerCreateInviteCode.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateInviteCode.Response': """Create an invite code. @@ -1742,7 +1973,9 @@ def create_invite_code( return get_response_model(response, models.ComAtprotoServerCreateInviteCode.Response) def create_invite_codes( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateInviteCodes.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateInviteCodes.Data, models.ComAtprotoServerCreateInviteCodes.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateInviteCodes.Response': """Create an invite code. @@ -1768,7 +2001,9 @@ def create_invite_codes( return get_response_model(response, models.ComAtprotoServerCreateInviteCodes.Response) def create_session( - self, data: t.Union[dict, 'models.ComAtprotoServerCreateSession.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerCreateSession.Data, models.ComAtprotoServerCreateSession.DataDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoServerCreateSession.Response': """Create an authentication session. @@ -1793,7 +2028,11 @@ def create_session( ) return get_response_model(response, models.ComAtprotoServerCreateSession.Response) - def delete_account(self, data: t.Union[dict, 'models.ComAtprotoServerDeleteAccount.Data'], **kwargs) -> bool: + def delete_account( + self, + data: t.Union[models.ComAtprotoServerDeleteAccount.Data, models.ComAtprotoServerDeleteAccount.DataDict], + **kwargs: t.Any, + ) -> bool: """Delete a user account with a token and password. Args: @@ -1813,7 +2052,7 @@ def delete_account(self, data: t.Union[dict, 'models.ComAtprotoServerDeleteAccou ) return get_response_model(response, bool) - def delete_session(self, **kwargs) -> bool: + def delete_session(self, **kwargs: t.Any) -> bool: """Delete the current session. Args: @@ -1829,7 +2068,7 @@ def delete_session(self, **kwargs) -> bool: response = self._client.invoke_procedure('com.atproto.server.deleteSession', **kwargs) return get_response_model(response, bool) - def describe_server(self, **kwargs) -> 'models.ComAtprotoServerDescribeServer.Response': + def describe_server(self, **kwargs: t.Any) -> 'models.ComAtprotoServerDescribeServer.Response': """Get a document describing the service's accounts configuration. Args: @@ -1848,7 +2087,14 @@ def describe_server(self, **kwargs) -> 'models.ComAtprotoServerDescribeServer.Re return get_response_model(response, models.ComAtprotoServerDescribeServer.Response) def get_account_invite_codes( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoServerGetAccountInviteCodes.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[ + models.ComAtprotoServerGetAccountInviteCodes.Params, + models.ComAtprotoServerGetAccountInviteCodes.ParamsDict, + ] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoServerGetAccountInviteCodes.Response': """Get all invite codes for a given account. @@ -1872,7 +2118,7 @@ def get_account_invite_codes( ) return get_response_model(response, models.ComAtprotoServerGetAccountInviteCodes.Response) - def get_session(self, **kwargs) -> 'models.ComAtprotoServerGetSession.Response': + def get_session(self, **kwargs: t.Any) -> 'models.ComAtprotoServerGetSession.Response': """Get information about the current session. Args: @@ -1890,7 +2136,7 @@ def get_session(self, **kwargs) -> 'models.ComAtprotoServerGetSession.Response': ) return get_response_model(response, models.ComAtprotoServerGetSession.Response) - def list_app_passwords(self, **kwargs) -> 'models.ComAtprotoServerListAppPasswords.Response': + def list_app_passwords(self, **kwargs: t.Any) -> 'models.ComAtprotoServerListAppPasswords.Response': """List all app-specific passwords. Args: @@ -1908,7 +2154,7 @@ def list_app_passwords(self, **kwargs) -> 'models.ComAtprotoServerListAppPasswor ) return get_response_model(response, models.ComAtprotoServerListAppPasswords.Response) - def refresh_session(self, **kwargs) -> 'models.ComAtprotoServerRefreshSession.Response': + def refresh_session(self, **kwargs: t.Any) -> 'models.ComAtprotoServerRefreshSession.Response': """Refresh an authentication session. Args: @@ -1926,7 +2172,7 @@ def refresh_session(self, **kwargs) -> 'models.ComAtprotoServerRefreshSession.Re ) return get_response_model(response, models.ComAtprotoServerRefreshSession.Response) - def request_account_delete(self, **kwargs) -> bool: + def request_account_delete(self, **kwargs: t.Any) -> bool: """Initiate a user account deletion via email. Args: @@ -1943,7 +2189,11 @@ def request_account_delete(self, **kwargs) -> bool: return get_response_model(response, bool) def request_password_reset( - self, data: t.Union[dict, 'models.ComAtprotoServerRequestPasswordReset.Data'], **kwargs + self, + data: t.Union[ + models.ComAtprotoServerRequestPasswordReset.Data, models.ComAtprotoServerRequestPasswordReset.DataDict + ], + **kwargs: t.Any, ) -> bool: """Initiate a user account password reset via email. @@ -1964,7 +2214,11 @@ def request_password_reset( ) return get_response_model(response, bool) - def reset_password(self, data: t.Union[dict, 'models.ComAtprotoServerResetPassword.Data'], **kwargs) -> bool: + def reset_password( + self, + data: t.Union[models.ComAtprotoServerResetPassword.Data, models.ComAtprotoServerResetPassword.DataDict], + **kwargs: t.Any, + ) -> bool: """Reset a user account password using a token. Args: @@ -1985,7 +2239,9 @@ def reset_password(self, data: t.Union[dict, 'models.ComAtprotoServerResetPasswo return get_response_model(response, bool) def revoke_app_password( - self, data: t.Union[dict, 'models.ComAtprotoServerRevokeAppPassword.Data'], **kwargs + self, + data: t.Union[models.ComAtprotoServerRevokeAppPassword.Data, models.ComAtprotoServerRevokeAppPassword.DataDict], + **kwargs: t.Any, ) -> bool: """Revoke an app-specific password by name. @@ -2009,7 +2265,9 @@ def revoke_app_password( class SyncNamespace(NamespaceBase): def get_blob( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetBlob.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetBlob.Params, models.ComAtprotoSyncGetBlob.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetBlob.Response': """Get a blob associated with a given repo. @@ -2031,7 +2289,9 @@ def get_blob( return get_response_model(response, models.ComAtprotoSyncGetBlob.Response) def get_blocks( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetBlocks.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetBlocks.Params, models.ComAtprotoSyncGetBlocks.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetBlocks.Response': """Gets blocks from a given repo. @@ -2053,7 +2313,9 @@ def get_blocks( return get_response_model(response, models.ComAtprotoSyncGetBlocks.Response) def get_checkout( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetCheckout.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetCheckout.Params, models.ComAtprotoSyncGetCheckout.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetCheckout.Response': """DEPRECATED - please use com.atproto.sync.getRepo instead. @@ -2075,7 +2337,9 @@ def get_checkout( return get_response_model(response, models.ComAtprotoSyncGetCheckout.Response) def get_head( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetHead.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetHead.Params, models.ComAtprotoSyncGetHead.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetHead.Response': """DEPRECATED - please use com.atproto.sync.getLatestCommit instead. @@ -2097,7 +2361,9 @@ def get_head( return get_response_model(response, models.ComAtprotoSyncGetHead.Response) def get_latest_commit( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetLatestCommit.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetLatestCommit.Params, models.ComAtprotoSyncGetLatestCommit.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetLatestCommit.Response': """Gets the current commit CID & revision of the repo. @@ -2119,7 +2385,9 @@ def get_latest_commit( return get_response_model(response, models.ComAtprotoSyncGetLatestCommit.Response) def get_record( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetRecord.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetRecord.Params, models.ComAtprotoSyncGetRecord.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetRecord.Response': """Gets blocks needed for existence or non-existence of record. @@ -2141,7 +2409,9 @@ def get_record( return get_response_model(response, models.ComAtprotoSyncGetRecord.Response) def get_repo( - self, params: t.Union[dict, 'models.ComAtprotoSyncGetRepo.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncGetRepo.Params, models.ComAtprotoSyncGetRepo.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncGetRepo.Response': """Gets the did's repo, optionally catching up from a specific revision. @@ -2163,7 +2433,9 @@ def get_repo( return get_response_model(response, models.ComAtprotoSyncGetRepo.Response) def list_blobs( - self, params: t.Union[dict, 'models.ComAtprotoSyncListBlobs.Params'], **kwargs + self, + params: t.Union[models.ComAtprotoSyncListBlobs.Params, models.ComAtprotoSyncListBlobs.ParamsDict], + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncListBlobs.Response': """List blob cids since some revision. @@ -2185,7 +2457,11 @@ def list_blobs( return get_response_model(response, models.ComAtprotoSyncListBlobs.Response) def list_repos( - self, params: t.Optional[t.Union[dict, 'models.ComAtprotoSyncListRepos.Params']] = None, **kwargs + self, + params: t.Optional[ + t.Union[models.ComAtprotoSyncListRepos.Params, models.ComAtprotoSyncListRepos.ParamsDict] + ] = None, + **kwargs: t.Any, ) -> 'models.ComAtprotoSyncListRepos.Response': """List dids and root cids of hosted repos. @@ -2206,7 +2482,11 @@ def list_repos( ) return get_response_model(response, models.ComAtprotoSyncListRepos.Response) - def notify_of_update(self, data: t.Union[dict, 'models.ComAtprotoSyncNotifyOfUpdate.Data'], **kwargs) -> bool: + def notify_of_update( + self, + data: t.Union[models.ComAtprotoSyncNotifyOfUpdate.Data, models.ComAtprotoSyncNotifyOfUpdate.DataDict], + **kwargs: t.Any, + ) -> bool: """Notify a crawling service of a recent update. Often when a long break between updates causes the connection with the crawling service to break. Args: @@ -2226,7 +2506,11 @@ def notify_of_update(self, data: t.Union[dict, 'models.ComAtprotoSyncNotifyOfUpd ) return get_response_model(response, bool) - def request_crawl(self, data: t.Union[dict, 'models.ComAtprotoSyncRequestCrawl.Data'], **kwargs) -> bool: + def request_crawl( + self, + data: t.Union[models.ComAtprotoSyncRequestCrawl.Data, models.ComAtprotoSyncRequestCrawl.DataDict], + **kwargs: t.Any, + ) -> bool: """Request a service to persistently crawl hosted repos. Args: