Skip to content

Commit

Permalink
Update lexicons fetched from 8f22a25 committed 2024-07-11T21:14:54Z (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Jul 22, 2024
1 parent 10a41c7 commit ddc6e35
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lexicons/app.bsky.unspecced.getSuggestionsSkeleton.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
"cursor": { "type": "string" },
"relativeToDid": {
"type": "string",
"format": "did",
"description": "DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer."
}
}
},
"output": {
Expand Down
6 changes: 4 additions & 2 deletions lexicons/tools.ozone.moderation.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"#modEventUnmuteReporter",
"#modEventEmail",
"#modEventResolveAppeal",
"#modEventDivert"
"#modEventDivert",
"#modEventTag"
]
},
"subject": {
Expand Down Expand Up @@ -76,7 +77,8 @@
"#modEventUnmuteReporter",
"#modEventEmail",
"#modEventResolveAppeal",
"#modEventDivert"
"#modEventDivert",
"#modEventTag"
]
},
"subject": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class Params(base.ParamsModelBase):

cursor: t.Optional[str] = None #: Cursor.
limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit.
relative_to_did: t.Optional[
str
] = (
None
) #: DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer.
viewer: t.Optional[
str
] = None #: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
Expand All @@ -28,6 +33,9 @@ class Params(base.ParamsModelBase):
class ParamsDict(t.TypedDict):
cursor: te.NotRequired[t.Optional[str]] #: Cursor.
limit: te.NotRequired[t.Optional[int]] #: Limit.
relative_to_did: te.NotRequired[
t.Optional[str]
] #: DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer.
viewer: te.NotRequired[
t.Optional[str]
] #: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
Expand Down
2 changes: 2 additions & 0 deletions packages/atproto_client/models/tools/ozone/moderation/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ModEventView(base.ModelBase):
'models.ToolsOzoneModerationDefs.ModEventEmail',
'models.ToolsOzoneModerationDefs.ModEventResolveAppeal',
'models.ToolsOzoneModerationDefs.ModEventDivert',
'models.ToolsOzoneModerationDefs.ModEventTag',
],
Field(discriminator='py_type'),
] #: Event.
Expand Down Expand Up @@ -79,6 +80,7 @@ class ModEventViewDetail(base.ModelBase):
'models.ToolsOzoneModerationDefs.ModEventEmail',
'models.ToolsOzoneModerationDefs.ModEventResolveAppeal',
'models.ToolsOzoneModerationDefs.ModEventDivert',
'models.ToolsOzoneModerationDefs.ModEventTag',
],
Field(discriminator='py_type'),
] #: Event.
Expand Down

0 comments on commit ddc6e35

Please sign in to comment.