Skip to content

Commit

Permalink
Update lexicons fetched from dc471da committed 2024-08-05T20:09:50Z (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Aug 15, 2024
1 parent 2cc248a commit 1c4f4f0
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 5 deletions.
12 changes: 12 additions & 0 deletions lexicons/app.bsky.actor.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@
"description": "A word that the account owner has muted.",
"required": ["value", "targets"],
"properties": {
"id": { "type": "string" },
"value": {
"type": "string",
"description": "The muted word itself.",
Expand All @@ -343,6 +344,17 @@
"type": "ref",
"ref": "app.bsky.actor.defs#mutedWordTarget"
}
},
"actorTarget": {
"type": "string",
"description": "Groups of users to apply the muted word to. If undefined, applies to all users.",
"knownValues": ["all", "exclude-following"],
"default": "all"
},
"expiresAt": {
"type": "string",
"format": "datetime",
"description": "The date and time at which the muted word will expire and no longer be applied."
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion lexicons/app.bsky.feed.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
},
"feedContext": {
"type": "string",
"description": "Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.",
"description": "Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.",
"maxLength": 2000
}
}
Expand Down
2 changes: 1 addition & 1 deletion lexicons/com.atproto.label.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
},
"labelValueDefinition": {
"type": "object",
"description": "Declares a label value and its expected interpertations and behaviors.",
"description": "Declares a label value and its expected interpretations and behaviors.",
"required": ["identifier", "severity", "blurs", "locales"],
"properties": {
"identifier": {
Expand Down
17 changes: 16 additions & 1 deletion lexicons/com.atproto.server.getServiceAuth.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
"type": "string",
"format": "did",
"description": "The DID of the service that the token will be used to authenticate with"
},
"exp": {
"type": "integer",
"description": "The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope."
},
"lxm": {
"type": "string",
"format": "nsid",
"description": "Lexicon (XRPC) method to bind the requested token to"
}
}
},
Expand All @@ -27,7 +36,13 @@
}
}
}
}
},
"errors": [
{
"name": "BadExpiration",
"description": "Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes."
}
]
}
}
}
7 changes: 7 additions & 0 deletions packages/atproto_client/models/app/bsky/actor/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,13 @@ class MutedWord(base.ModelBase):

targets: t.List['models.AppBskyActorDefs.MutedWordTarget'] #: The intended targets of the muted word.
value: str = Field(max_length=10000) #: The muted word itself.
actor_target: t.Optional[
str
] = None #: Groups of users to apply the muted word to. If undefined, applies to all users.
expires_at: t.Optional[
str
] = None #: The date and time at which the muted word will expire and no longer be applied.
id: t.Optional[str] = None #: Id.

py_type: t.Literal['app.bsky.actor.defs#mutedWord'] = Field(
default='app.bsky.actor.defs#mutedWord', alias='$type', frozen=True
Expand Down
2 changes: 1 addition & 1 deletion packages/atproto_client/models/app/bsky/feed/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Interaction(base.ModelBase):
event: t.Optional[str] = None #: Event.
feed_context: t.Optional[str] = Field(
default=None, max_length=2000
) #: Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.
) #: Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.
item: t.Optional[str] = None #: Item.

py_type: t.Literal['app.bsky.feed.defs#interaction'] = Field(
Expand Down
2 changes: 1 addition & 1 deletion packages/atproto_client/models/com/atproto/label/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SelfLabel(base.ModelBase):


class LabelValueDefinition(base.ModelBase):
"""Definition model for :obj:`com.atproto.label.defs`. Declares a label value and its expected interpertations and behaviors."""
"""Definition model for :obj:`com.atproto.label.defs`. Declares a label value and its expected interpretations and behaviors."""

blurs: str #: What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.
identifier: str = Field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,27 @@

import typing as t

import typing_extensions as te

from atproto_client.models import base


class Params(base.ParamsModelBase):
"""Parameters model for :obj:`com.atproto.server.getServiceAuth`."""

aud: str #: The DID of the service that the token will be used to authenticate with.
exp: t.Optional[
int
] = None #: The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.
lxm: t.Optional[str] = None #: Lexicon (XRPC) method to bind the requested token to.


class ParamsDict(t.TypedDict):
aud: str #: The DID of the service that the token will be used to authenticate with.
exp: te.NotRequired[
t.Optional[int]
] #: The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.
lxm: te.NotRequired[t.Optional[str]] #: Lexicon (XRPC) method to bind the requested token to.


class Response(base.ResponseModelBase):
Expand Down

0 comments on commit 1c4f4f0

Please sign in to comment.