Data model
almabtrieb.model
Data models used in communication with the Cattle Drive protocol
ActorInformation
CreateActorRequest
Bases: BaseModel
Request to create an actor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
base_url
|
str
|
Base url for the actor, the actor URI will be of the form |
required |
preferred_username
|
str | None
|
Add a preferred username. This name will be used in acct:username@domain and supplied to webfinger. Here domain is determine from baseUrl. |
None
|
profile
|
Dict[str, Any]
|
New profile object for the actor. |
{}
|
automatically_accept_followers
|
bool | None
|
Enables setting actors to automatically accept follow requests |
required |
name
|
str | None
|
The name of the actor |
None
|
Source code in almabtrieb/model.py
FetchMessage
FetchResponse
InformationResponse
Bases: BaseModel
Response for the information request
Parameters:
Name | Type | Description | Default |
---|---|---|---|
actors
|
List[ActorInformation]
|
Actors of the account on the server |
required |
base_urls
|
List[str]
|
The base urls of the server |
required |
method_information
|
List[Any]
|
A list of methods to information about the methods implemented by the backend. |
[]
|