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[MethodInformationModel]
|
Built-in mutable sequence. If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified. |
<dynamic>
|
backend
|
NameAndVersion
|
Name and version of the backend |
required |
protocol
|
NameAndVersion
|
Name and version of the protocol being used |
required |
Source code in almabtrieb/model.py
MethodInformationModel ¶
Bases: BaseModel
cattle_grid allows to define methods on the exchange through extensions. This class contains a description of them
Parameters:
Name | Type | Description | Default |
---|---|---|---|
routing_key
|
str
|
Name of the method |
required |
module
|
str
|
Module the extension was imported from. This is cattle_grid for build-in methods |
required |
description
|
str | None
|
Description of the method |
None
|