Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lexicons fetched from 53621f8 committed 2025-01-03T01:46:53Z #508

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lexicons/com.atproto.server.createSession.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"description": "Handle or other identifier supported by the server for the authenticating user."
},
"password": { "type": "string" },
"authFactorToken": { "type": "string" }
"authFactorToken": { "type": "string" },
"allowTakendown": {
"type": "boolean",
"description": "When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned"
}
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions lexicons/tools.ozone.moderation.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@
"acknowledgeAccountSubjects": {
"type": "boolean",
"description": "If true, all other reports on content authored by this account will be resolved (acknowledged)."
},
"policies": {
"type": "array",
"maxLength": 5,
"items": { "type": "string" },
"description": "Names/Keywords of the policies that drove the decision."
}
}
},
Expand Down
7 changes: 7 additions & 0 deletions lexicons/tools.ozone.moderation.queryEvents.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@
"type": "string"
}
},
"policies": {
"type": "array",
"items": {
"type": "string",
"description": "If specified, only events where the action policies match any of the given policies are returned"
}
},
"cursor": {
"type": "string"
}
Expand Down
14 changes: 13 additions & 1 deletion lexicons/tools.ozone.moderation.queryStatuses.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
"parameters": {
"type": "params",
"properties": {
"queueCount": {
"type": "integer",
"description": "Number of queues being used by moderators. Subjects will be split among all queues."
},
"queueIndex": {
"type": "integer",
"description": "Index of the queue to fetch subjects from. Works only when queueCount value is specified."
},
"queueSeed": {
"type": "string",
"description": "A seeder to shuffle/balance the queue items."
},
"includeAllUserRecords": {
"type": "boolean",
"description": "All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned."
Expand Down Expand Up @@ -118,9 +130,9 @@
},
"tags": {
"type": "array",
"maxLength": 25,
"items": {
"type": "string",
"maxLength": 25,
"description": "Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ class Data(base.DataModelBase):

identifier: str #: Handle or other identifier supported by the server for the authenticating user.
password: str #: Password.
allow_takendown: t.Optional[bool] = (
None #: When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned.
)
auth_factor_token: t.Optional[str] = None #: Auth factor token.


class DataDict(t.TypedDict):
identifier: str #: Handle or other identifier supported by the server for the authenticating user.
password: str #: Password.
allow_takendown: te.NotRequired[
t.Optional[bool]
] #: When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned.
auth_factor_token: te.NotRequired[t.Optional[str]] #: Auth factor token.


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 @@ -188,6 +188,9 @@ class ModEventTakedown(base.ModelBase):
duration_in_hours: t.Optional[int] = (
None #: Indicates how long the takedown should be in effect before automatically expiring.
)
policies: t.Optional[t.List[str]] = Field(
default=None, max_length=5
) #: Names/Keywords of the policies that drove the decision.

py_type: t.Literal['tools.ozone.moderation.defs#modEventTakedown'] = Field(
default='tools.ozone.moderation.defs#modEventTakedown', alias='$type', frozen=True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Params(base.ParamsModelBase):
False #: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
)
limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit.
policies: t.Optional[t.List[str]] = None #: Policies.
removed_labels: t.Optional[t.List[str]] = (
None #: If specified, only events where all of these labels were removed are returned.
)
Expand Down Expand Up @@ -86,6 +87,7 @@ class ParamsDict(t.TypedDict):
t.Optional[bool]
] #: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
limit: te.NotRequired[t.Optional[int]] #: Limit.
policies: te.NotRequired[t.Optional[t.List[str]]] #: Policies.
removed_labels: te.NotRequired[
t.Optional[t.List[str]]
] #: If specified, only events where all of these labels were removed are returned.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ class Params(base.ParamsModelBase):
)
limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit.
only_muted: t.Optional[bool] = None #: When set to true, only muted subjects and reporters will be returned.
queue_count: t.Optional[int] = (
None #: Number of queues being used by moderators. Subjects will be split among all queues.
)
queue_index: t.Optional[int] = (
None #: Index of the queue to fetch subjects from. Works only when queueCount value is specified.
)
queue_seed: t.Optional[str] = None #: A seeder to shuffle/balance the queue items.
reported_after: t.Optional[string_formats.DateTime] = None #: Search subjects reported after a given timestamp.
reported_before: t.Optional[string_formats.DateTime] = None #: Search subjects reported before a given timestamp.
review_state: t.Optional[str] = None #: Specify when fetching subjects in a certain state.
Expand All @@ -65,7 +72,7 @@ class Params(base.ParamsModelBase):
subject_type: t.Optional[t.Union[t.Literal['account'], t.Literal['record'], str]] = (
None #: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
)
tags: t.Optional[t.List[str]] = None #: Tags.
tags: t.Optional[t.List[str]] = Field(default=None, max_length=25) #: Tags.
takendown: t.Optional[bool] = None #: Get subjects that were taken down.


Expand Down Expand Up @@ -106,6 +113,13 @@ class ParamsDict(t.TypedDict):
only_muted: te.NotRequired[
t.Optional[bool]
] #: When set to true, only muted subjects and reporters will be returned.
queue_count: te.NotRequired[
t.Optional[int]
] #: Number of queues being used by moderators. Subjects will be split among all queues.
queue_index: te.NotRequired[
t.Optional[int]
] #: Index of the queue to fetch subjects from. Works only when queueCount value is specified.
queue_seed: te.NotRequired[t.Optional[str]] #: A seeder to shuffle/balance the queue items.
reported_after: te.NotRequired[
t.Optional[string_formats.DateTime]
] #: Search subjects reported after a given timestamp.
Expand Down
Loading