com.atproto.admin.take_moderation_action#
- pydantic model atproto.xrpc_client.models.com.atproto.admin.take_moderation_action.Data#
Bases:
DataModelBase
Input data model for
com.atproto.admin.takeModerationAction
.Show JSON schema
{ "title": "Data", "description": "Input data model for :obj:`com.atproto.admin.takeModerationAction`.", "type": "object", "properties": { "action": { "title": "Action", "type": "string" }, "createdBy": { "title": "Createdby", "type": "string" }, "reason": { "title": "Reason", "type": "string" }, "subject": { "discriminator": { "mapping": { "com.atproto.admin.defs#repoRef": "#/$defs/RepoRef", "com.atproto.repo.strongRef": "#/$defs/Main" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/$defs/RepoRef" }, { "$ref": "#/$defs/Main" } ], "title": "Subject" }, "createLabelVals": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Createlabelvals" }, "durationInHours": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Durationinhours" }, "negateLabelVals": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Negatelabelvals" }, "subjectBlobCids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Subjectblobcids" } }, "$defs": { "Main": { "additionalProperties": false, "description": "Definition model for :obj:`com.atproto.repo.strongRef`.", "properties": { "cid": { "title": "Cid", "type": "string" }, "uri": { "title": "Uri", "type": "string" }, "$type": { "const": "com.atproto.repo.strongRef", "default": "com.atproto.repo.strongRef", "title": "$Type" } }, "required": [ "cid", "uri" ], "title": "Main", "type": "object" }, "RepoRef": { "additionalProperties": false, "description": "Definition model for :obj:`com.atproto.admin.defs`.", "properties": { "did": { "title": "Did", "type": "string" }, "$type": { "const": "com.atproto.admin.defs#repoRef", "default": "com.atproto.admin.defs#repoRef", "title": "$Type" } }, "required": [ "did" ], "title": "RepoRef", "type": "object" } }, "additionalProperties": false, "required": [ "action", "createdBy", "reason", "subject" ] }
- Fields:
- field action: str [Required]#
Action.
- field create_label_vals: Optional[List[str]] = None (alias 'createLabelVals')#
Create label vals.
- field created_by: str [Required] (alias 'createdBy')#
Created by.
- field duration_in_hours: Optional[int] = None (alias 'durationInHours')#
Indicates how long this action was meant to be in effect before automatically expiring.
- field negate_label_vals: Optional[List[str]] = None (alias 'negateLabelVals')#
Negate label vals.
- field reason: str [Required]#
Reason.
- field subject: Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main][Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main]] [Required]#
- field subject_blob_cids: Optional[List[str]] = None (alias 'subjectBlobCids')#
Subject blob cids.
- class atproto.xrpc_client.models.com.atproto.admin.take_moderation_action.DataDict#
Bases:
TypedDict
- action: str#
Action.
- create_label_vals: typing_extensions.NotRequired[Optional[List[str]]]#
Create label vals.
- created_by: str#
Created by.
- duration_in_hours: typing_extensions.NotRequired[Optional[int]]#
Indicates how long this action was meant to be in effect before automatically expiring.
- negate_label_vals: typing_extensions.NotRequired[Optional[List[str]]]#
Negate label vals.
- reason: str#
Reason.
- subject: Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main][Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main]]#
- subject_blob_cids: typing_extensions.NotRequired[Optional[List[str]]]#
Subject blob cids.