Skip to content

Commit

Permalink
Update lexicons fetched from 8dd67f5 committed 2024-03-12T21:04:02Z (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Mar 13, 2024
1 parent a7576dc commit 818a9ec
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lexicons/app.bsky.feed.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@
},
"avatar": { "type": "string" },
"likeCount": { "type": "integer", "minimum": 0 },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
},
"viewer": { "type": "ref", "ref": "#generatorViewerState" },
"indexedAt": { "type": "string", "format": "datetime" }
}
Expand Down
8 changes: 8 additions & 0 deletions lexicons/app.bsky.graph.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
"purpose": { "type": "ref", "ref": "#listPurpose" },
"avatar": { "type": "string" },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
},
"viewer": { "type": "ref", "ref": "#listViewerState" },
"indexedAt": { "type": "string", "format": "datetime" }
}
Expand All @@ -34,6 +38,10 @@
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": { "type": "string" },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
},
"viewer": { "type": "ref", "ref": "#listViewerState" },
"indexedAt": { "type": "string", "format": "datetime" }
}
Expand Down
13 changes: 11 additions & 2 deletions lexicons/com.atproto.admin.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"#modEventEscalate",
"#modEventMute",
"#modEventEmail",
"#modEventResolveAppeal"
"#modEventResolveAppeal",
"#modEventDivert"
]
},
"subject": {
Expand Down Expand Up @@ -72,7 +73,8 @@
"#modEventEscalate",
"#modEventMute",
"#modEventEmail",
"#modEventResolveAppeal"
"#modEventResolveAppeal",
"#modEventDivert"
]
},
"subject": {
Expand Down Expand Up @@ -625,6 +627,13 @@
}
}
},
"modEventDivert": {
"type": "object",
"description": "Divert a record's blobs to a 3rd party service for further scanning/tagging",
"properties": {
"comment": { "type": "string" }
}
},
"communicationTemplateView": {
"type": "object",
"required": [
Expand Down
13 changes: 13 additions & 0 deletions lexicons/com.atproto.label.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"description": "Metadata tag on an atproto resource (eg, repo or record).",
"required": ["src", "uri", "val", "cts"],
"properties": {
"ver": {
"type": "integer",
"description": "The AT Protocol version of the label object."
},
"src": {
"type": "string",
"format": "did",
Expand Down Expand Up @@ -35,6 +39,15 @@
"type": "string",
"format": "datetime",
"description": "Timestamp when this label was created."
},
"exp": {
"type": "string",
"format": "datetime",
"description": "Timestamp at which this label expires (no longer applies)."
},
"sig": {
"type": "bytes",
"description": "Signature of dag-cbor encoded label."
}
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/atproto_client/models/app/bsky/feed/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class GeneratorView(base.ModelBase):
avatar: t.Optional[str] = None #: Avatar.
description: t.Optional[str] = Field(default=None, max_length=3000) #: Description.
description_facets: t.Optional[t.List['models.AppBskyRichtextFacet.Main']] = None #: Description facets.
labels: t.Optional[t.List['models.ComAtprotoLabelDefs.Label']] = None #: Labels.
like_count: t.Optional[int] = Field(default=None, ge=0) #: Like count.
viewer: t.Optional['models.AppBskyFeedDefs.GeneratorViewerState'] = None #: Viewer.

Expand Down
2 changes: 2 additions & 0 deletions packages/atproto_client/models/app/bsky/graph/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ListViewBasic(base.ModelBase):
uri: str #: Uri.
avatar: t.Optional[str] = None #: Avatar.
indexed_at: t.Optional[str] = None #: Indexed at.
labels: t.Optional[t.List['models.ComAtprotoLabelDefs.Label']] = None #: Labels.
viewer: t.Optional['models.AppBskyGraphDefs.ListViewerState'] = None #: Viewer.

py_type: te.Literal['app.bsky.graph.defs#listViewBasic'] = Field(
Expand All @@ -43,6 +44,7 @@ class ListView(base.ModelBase):
avatar: t.Optional[str] = None #: Avatar.
description: t.Optional[str] = Field(default=None, max_length=3000) #: Description.
description_facets: t.Optional[t.List['models.AppBskyRichtextFacet.Main']] = None #: Description facets.
labels: t.Optional[t.List['models.ComAtprotoLabelDefs.Label']] = None #: Labels.
viewer: t.Optional['models.AppBskyGraphDefs.ListViewerState'] = None #: Viewer.

py_type: te.Literal['app.bsky.graph.defs#listView'] = Field(
Expand Down
12 changes: 12 additions & 0 deletions packages/atproto_client/models/com/atproto/admin/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class ModEventView(base.ModelBase):
'models.ComAtprotoAdminDefs.ModEventMute',
'models.ComAtprotoAdminDefs.ModEventEmail',
'models.ComAtprotoAdminDefs.ModEventResolveAppeal',
'models.ComAtprotoAdminDefs.ModEventDivert',
],
Field(discriminator='py_type'),
] #: Event.
Expand Down Expand Up @@ -78,6 +79,7 @@ class ModEventViewDetail(base.ModelBase):
'models.ComAtprotoAdminDefs.ModEventMute',
'models.ComAtprotoAdminDefs.ModEventEmail',
'models.ComAtprotoAdminDefs.ModEventResolveAppeal',
'models.ComAtprotoAdminDefs.ModEventDivert',
],
Field(discriminator='py_type'),
] #: Event.
Expand Down Expand Up @@ -528,6 +530,16 @@ class ModEventTag(base.ModelBase):
)


class ModEventDivert(base.ModelBase):
"""Definition model for :obj:`com.atproto.admin.defs`. Divert a record's blobs to a 3rd party service for further scanning/tagging."""

comment: t.Optional[str] = None #: Comment.

py_type: te.Literal['com.atproto.admin.defs#modEventDivert'] = Field(
default='com.atproto.admin.defs#modEventDivert', alias='$type', frozen=True
)


class CommunicationTemplateView(base.ModelBase):
"""Definition model for :obj:`com.atproto.admin.defs`."""

Expand Down
3 changes: 3 additions & 0 deletions packages/atproto_client/models/com/atproto/label/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class Label(base.ModelBase):
cid: t.Optional[
str
] = None #: Optionally, CID specifying the specific version of 'uri' resource this label applies to.
exp: t.Optional[str] = None #: Timestamp at which this label expires (no longer applies).
neg: t.Optional[bool] = None #: If true, this is a negation label, overwriting a previous label.
sig: t.Optional[t.Union[str, bytes]] = None #: Signature of dag-cbor encoded label.
ver: t.Optional[int] = None #: The AT Protocol version of the label object.

py_type: te.Literal['com.atproto.label.defs#label'] = Field(
default='com.atproto.label.defs#label', alias='$type', frozen=True
Expand Down

0 comments on commit 818a9ec

Please sign in to comment.