Skip to content

Commit

Permalink
Update lexicons fetched from 62a8225 committed 2024-09-11T16:26:53Z (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Sep 11, 2024
1 parent d6b10b6 commit 66644d5
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
4 changes: 4 additions & 0 deletions lexicons/tools.ozone.moderation.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@
"durationInHours": {
"type": "integer",
"description": "Indicates how long the takedown should be in effect before automatically expiring."
},
"acknowledgeAccountSubjects": {
"type": "boolean",
"description": "If true, all other reports on content authored by this account will be resolved (acknowledged)."
}
}
},
Expand Down
31 changes: 25 additions & 6 deletions lexicons/tools.ozone.moderation.queryStatuses.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
"parameters": {
"type": "params",
"properties": {
"subject": { "type": "string", "format": "uri" },
"includeAllUserRecords": {
"type": "boolean",
"description": "All subjects belonging to the account specified in the 'subject' param will be returned."
},
"subject": {
"type": "string",
"format": "uri",
"description": "The subject to get the status for."
},
"comment": {
"type": "string",
"description": "Search subjects by keyword from comments"
Expand Down Expand Up @@ -47,7 +55,10 @@
},
"ignoreSubjects": {
"type": "array",
"items": { "type": "string", "format": "uri" }
"items": {
"type": "string",
"format": "uri"
}
},
"lastReviewedBy": {
"type": "string",
Expand Down Expand Up @@ -80,13 +91,19 @@
},
"tags": {
"type": "array",
"items": { "type": "string" }
"items": {
"type": "string"
}
},
"excludeTags": {
"type": "array",
"items": { "type": "string" }
"items": {
"type": "string"
}
},
"cursor": { "type": "string" }
"cursor": {
"type": "string"
}
}
},
"output": {
Expand All @@ -95,7 +112,9 @@
"type": "object",
"required": ["subjectStatuses"],
"properties": {
"cursor": { "type": "string" },
"cursor": {
"type": "string"
},
"subjectStatuses": {
"type": "array",
"items": {
Expand Down
3 changes: 3 additions & 0 deletions packages/atproto_client/models/tools/ozone/moderation/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ class SubjectStatusView(base.ModelBase):
class ModEventTakedown(base.ModelBase):
"""Definition model for :obj:`tools.ozone.moderation.defs`. Take down a subject permanently or temporarily."""

acknowledge_account_subjects: t.Optional[
bool
] = None #: If true, all other reports on content authored by this account will be resolved (acknowledged).
comment: t.Optional[str] = None #: Comment.
duration_in_hours: t.Optional[
int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class Params(base.ParamsModelBase):
cursor: t.Optional[str] = None #: Cursor.
exclude_tags: t.Optional[t.List[str]] = None #: Exclude tags.
ignore_subjects: t.Optional[t.List[str]] = None #: Ignore subjects.
include_all_user_records: t.Optional[
bool
] = None #: All subjects belonging to the account specified in the 'subject' param will be returned.
include_muted: t.Optional[
bool
] = None #: By default, we don't include muted subjects in the results. Set this to true to include them.
Expand All @@ -38,7 +41,7 @@ class Params(base.ParamsModelBase):
sort_field: t.Optional[
t.Union[t.Literal['lastReviewedAt'], t.Literal['lastReportedAt']]
] = 'lastReportedAt' #: Sort field.
subject: t.Optional[str] = None #: Subject.
subject: t.Optional[str] = None #: The subject to get the status for.
tags: t.Optional[t.List[str]] = None #: Tags.
takendown: t.Optional[bool] = None #: Get subjects that were taken down.

Expand All @@ -49,6 +52,9 @@ class ParamsDict(t.TypedDict):
cursor: te.NotRequired[t.Optional[str]] #: Cursor.
exclude_tags: te.NotRequired[t.Optional[t.List[str]]] #: Exclude tags.
ignore_subjects: te.NotRequired[t.Optional[t.List[str]]] #: Ignore subjects.
include_all_user_records: te.NotRequired[
t.Optional[bool]
] #: All subjects belonging to the account specified in the 'subject' param will be returned.
include_muted: te.NotRequired[
t.Optional[bool]
] #: By default, we don't include muted subjects in the results. Set this to true to include them.
Expand All @@ -68,7 +74,7 @@ class ParamsDict(t.TypedDict):
sort_field: te.NotRequired[
t.Optional[t.Union[t.Literal['lastReviewedAt'], t.Literal['lastReportedAt']]]
] #: Sort field.
subject: te.NotRequired[t.Optional[str]] #: Subject.
subject: te.NotRequired[t.Optional[str]] #: The subject to get the status for.
tags: te.NotRequired[t.Optional[t.List[str]]] #: Tags.
takendown: te.NotRequired[t.Optional[bool]] #: Get subjects that were taken down.

Expand Down

0 comments on commit 66644d5

Please sign in to comment.