do some more adding and fixing, add entity descriptions

pull/350/head
halcy 2023-06-04 20:04:56 +03:00
rodzic 560bf1b054
commit 18d85031e1
2 zmienionych plików z 8440 dodań i 4 usunięć

Wyświetl plik

@ -2877,6 +2877,8 @@
"field_subtype": null,
"is_optional": false,
"is_nullable": false,
"field_structuretype": "DomainName",
"api_version": "v2",
"version_history": {
"4.0.0": "added"
}
@ -2939,7 +2941,7 @@
"field_type": "str",
"deprecated:": true,
"moved_path": "domain",
"field_structuretype": "URL",
"field_structuretype": "DomainName",
"field_subtype": null,
"is_optional": false,
"is_nullable": false,
@ -2979,6 +2981,7 @@
"field_subtype": null,
"is_optional": true,
"is_nullable": false,
"api_version": "v1",
"version_history": {
"1.6.0": "added",
"4.0.0": "removed (still present in instance_v1())"
@ -3071,6 +3074,7 @@
"field_subtype": null,
"is_optional": false,
"is_nullable": false,
"api_version": "v1",
"version_history": {
"3.1.4": "added",
"4.0.0": "removed (still present in instance_v1()). Changed specifics of when field is true."
@ -3377,6 +3381,7 @@
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"api_versions": ["v1", "v2"],
"fields": {
"accounts": {
"description": "Account-related instance configuration fields",
@ -3424,6 +3429,7 @@
"field_subtype": null,
"is_optional": false,
"is_nullable": false,
"api_version": "v2",
"version_history": {
"4.0.0": "added"
}
@ -3434,6 +3440,7 @@
"field_subtype": null,
"is_optional": false,
"is_nullable": false,
"api_version": "v2",
"version_history": {
"4.0.0": "added"
}
@ -5477,11 +5484,15 @@
"field_subtype": null,
"is_optional": false,
"is_nullable": false,
"field_structuretype": "DomainLimitEnum",
"field_structuretype": "AdminDomainLimitEnum",
"version_history": {
"4.0.0": "added"
},
"enum": null
"enum": {
"silence": "Users from this domain will be hidden from timelines, threads, and notifications, except for followed users.",
"suspend": "Incoming messages from this domain will be rejected and dropped entirely.",
"noop": "Do nothing to statuses. May be used to only media-reject or report-reject."
}
},
"reject_media": {
"description": "Whether to reject media attachments from this domain",
@ -5539,5 +5550,624 @@
"enum": null
}
}
},
{
"name": "AdminCanonicalEmailBlock",
"python_name": "AdminCanonicalEmailBlock",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_CanonicalEmailBlock",
"fields": {
"id": {
"description": "The ID of the email block in the database.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"canonical_email_hash": {
"description": "The SHA256 hash of the canonical email address.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "AdminDomainAllow",
"python_name": "AdminDomainAllow",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_DomainAllow",
"fields": {
"id": {
"description": "The ID of the DomainAllow in the database.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"domain": {
"description": "The domain that is allowed to federate.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "When the domain was allowed to federate.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "datetime",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "AdminEmailDomainBlock",
"python_name": "AdminEmailDomainBlock",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_EmailDomainBlock",
"fields": {
"id": {
"description": "The ID of the EmailDomainBlock in the database.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"domain": {
"description": "The email domain that is not allowed to be used for signups.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "When the email domain was disallowed from signups.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "datetime",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"history": {
"description": "Usage statistics for given days (typically the past week).",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "List[HASHREPLACEMETODO]",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "AdminIpBlock",
"python_name": "AdminIpBlock",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_IpBlock",
"fields": {
"id": {
"description": "The ID of the DomainBlock in the database.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"ip": {
"description": "The IP address range that is not allowed to federate.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"severity": {
"description": "The associated policy with this IP block.",
"enum": {
"sign_up_requires_approval": "Any signup from this IP range will create a pending account",
"sign_up_block": "Any signup from this IP range will be rejected",
"no_access": "Any activity from this IP range will be rejected entirely"
},
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"comment": {
"description": "The recorded reason for this IP block.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "When the IP block was created.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "datetime",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"expires_at": {
"description": "When the IP block will expire.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "datetime",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": true
}
}
},
{
"name": "DomainBlock",
"python_name": "DomainBlock",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/DomainBlock",
"fields": {
"domain": {
"description": "The domain which is blocked. This may be obfuscated or partially censored.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"digest": {
"description": "The SHA256 hash digest of the domain string.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"severity": {
"description": "The level to which the domain is blocked.",
"enum": {
"silence": "Users from this domain will be hidden from timelines, threads, and notifications, except for followed users.",
"suspend": "Incoming messages from this domain will be rejected and dropped entirely."
},
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": "DomainLimitEnum",
"is_optional": false,
"is_nullable": false
},
"comment": {
"description": "An optional reason for the domain block.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "ExtendedDescription",
"python_name": "ExtendedDescription",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/ExtendedDescription",
"fields": {
"updated_at": {
"description": "A timestamp of when the extended description was last updated.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "datetime",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"content": {
"description": "The rendered HTML content of the extended description.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "FilterKeyword",
"python_name": "FilterKeyword",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/FilterKeyword",
"fields": {
"id": {
"description": "The ID of the FilterKeyword in the database.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"keyword": {
"description": "The phrase to be matched against.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"whole_word": {
"description": "Should the filter consider word boundaries? See implementation guidelines for filters().",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "bool",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "FilterStatus",
"python_name": "FilterStatus",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/FilterStatus",
"fields": {
"id": {
"description": "The ID of the FilterStatus in the database.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"status_id": {
"description": "The ID of the Status that will be filtered.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "IdentityProof",
"python_name": "IdentityProof",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/IdentityProof",
"fields": {
"provider": {
"description": "The name of the identity provider.",
"enum": null,
"version_history": {
"2.8.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"provider_username": {
"description": "The account owner's username on the identity provider's service.",
"enum": null,
"version_history": {
"2.8.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"updated_at": {
"description": "When the identity proof was last updated.",
"enum": null,
"version_history": {
"2.8.0": "added"
},
"field_type": "datetime",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"proof_url": {
"description": "A link to a statement of identity proof, hosted by the identity provider.",
"enum": null,
"version_history": {
"2.8.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"profile_url": {
"description": "The account owner's profile URL on the identity provider.",
"enum": null,
"version_history": {
"2.8.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "StatusSource",
"python_name": "StatusSource",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/StatusSource",
"fields": {
"id": {
"description": "ID of the status in the database.",
"enum": null,
"version_history": {
"3.5.0": "added"
},
"field_type": "IdType",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"text": {
"description": "The plain text used to compose the status.",
"enum": null,
"version_history": {
"3.5.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"spoiler_text": {
"description": "The plain text used to compose the status's subject or content warning.",
"enum": null,
"version_history": {
"3.5.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Suggestion",
"python_name": "Suggestion",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/Suggestion",
"fields": {
"source": {
"description": "The reason this account is being suggested.",
"enum": null,
"version_history": {
"3.4.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"account": {
"description": "The account being recommended to follow.",
"enum": null,
"version_history": {
"3.4.0": "added"
},
"field_type": "Account",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Translation",
"python_name": "Translation",
"func_call": "TODO_TO_BE_IMPLEMENTED",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/entities/Translation",
"fields": {
"content": {
"description": "The translated text of the status.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"detected_source_language": {
"description": "The language of the source text, as auto-detected by the machine translation provider.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
},
"provider": {
"description": "The service that provided the machine translation.",
"enum": null,
"version_history": {
"4.0.0": "added"
},
"field_type": "str",
"field_subtype": null,
"field_structuretype": null,
"is_optional": false,
"is_nullable": false
}
}
}
]
]