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

[Scheduled] Pull Latest Lexicons #1891

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 4 additions & 0 deletions lexicons/app/bsky/actor/getSuggestions.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
},
"recId": {
"type": "integer",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
}
}
}
Expand Down
25 changes: 24 additions & 1 deletion lexicons/app/bsky/feed/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
"pinned": { "type": "boolean" }
}
},
"threadContext": {
"type": "object",
"description": "Metadata about this post within the context of the thread it is in.",
"properties": {
"rootAuthorLike": { "type": "string", "format": "at-uri" }
}
},
"feedViewPost": {
"type": "object",
"required": ["post"],
Expand Down Expand Up @@ -108,7 +115,8 @@
"type": "union",
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
}
}
},
"threadContext": { "type": "ref", "ref": "#threadContext" }
}
},
"notFoundPost": {
Expand Down Expand Up @@ -162,6 +170,13 @@
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
},
"viewer": { "type": "ref", "ref": "#generatorViewerState" },
"contentMode": {
"type": "string",
"knownValues": [
"app.bsky.feed.defs#contentModeUnspecified",
"app.bsky.feed.defs#contentModeVideo"
]
},
"indexedAt": { "type": "string", "format": "datetime" }
}
},
Expand Down Expand Up @@ -262,6 +277,14 @@
"type": "token",
"description": "User clicked through to the embedded content of the feed item"
},
"contentModeUnspecified": {
"type": "token",
"description": "Declares the feed generator returns any types of posts."
},
"contentModeVideo": {
"type": "token",
"description": "Declares the feed generator returns posts containing app.bsky.embed.video embeds."
},
"interactionSeen": {
"type": "token",
"description": "Feed item was seen by user"
Expand Down
7 changes: 7 additions & 0 deletions lexicons/app/bsky/feed/generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
"description": "Self-label values",
"refs": ["com.atproto.label.defs#selfLabels"]
},
"contentMode": {
"type": "string",
"knownValues": [
"app.bsky.feed.defs#contentModeUnspecified",
"app.bsky.feed.defs#contentModeVideo"
]
},
"createdAt": { "type": "string", "format": "datetime" }
}
}
Expand Down
3 changes: 2 additions & 1 deletion lexicons/app/bsky/feed/getAuthorFeed.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"posts_with_replies",
"posts_no_replies",
"posts_with_media",
"posts_and_author_threads"
"posts_and_author_threads",
"posts_with_video"
],
"default": "posts_with_replies"
},
Expand Down
4 changes: 4 additions & 0 deletions lexicons/app/bsky/graph/getSuggestedFollowsByActor.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"type": "boolean",
"description": "If true, response has fallen-back to generic results, and is not scoped using relativeToDid",
"default": false
},
"recId": {
"type": "integer",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions lexicons/app/bsky/unspecced/getSuggestionsSkeleton.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"type": "string",
"format": "did",
"description": "DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer."
},
"recId": {
"type": "integer",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
}
}
}
Expand Down
21 changes: 21 additions & 0 deletions lexicons/com/atproto/lexicon/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"lexicon": 1,
"id": "com.atproto.lexicon.schema",
"defs": {
"main": {
"type": "record",
"description": "Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc).",
"key": "nsid",
"record": {
"type": "object",
"required": ["lexicon"],
"properties": {
"lexicon": {
"type": "integer",
"description": "Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system."
}
}
}
}
}
}
74 changes: 74 additions & 0 deletions lexicons/tools/ozone/moderation/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,80 @@
"tags": {
"type": "array",
"items": { "type": "string" }
},
"accountStats": {
"description": "Statistics related to the account subject",
"type": "ref",
"ref": "#accountStats"
},
"recordsStats": {
"description": "Statistics related to the record subjects authored by the subject's account",
"type": "ref",
"ref": "#recordsStats"
}
}
},
"accountStats": {
"description": "Statistics about a particular account subject",
"type": "object",
"properties": {
"reportCount": {
"description": "Total number of reports on the account",
"type": "integer"
},
"appealCount": {
"description": "Total number of appeals against a moderation action on the account",
"type": "integer"
},
"suspendCount": {
"description": "Number of times the account was suspended",
"type": "integer"
},
"escalateCount": {
"description": "Number of times the account was escalated",
"type": "integer"
},
"takedownCount": {
"description": "Number of times the account was taken down",
"type": "integer"
}
}
},
"recordsStats": {
"description": "Statistics about a set of record subject items",
"type": "object",
"properties": {
"totalReports": {
"description": "Cumulative sum of the number of reports on the items in the set",
"type": "integer"
},
"reportedCount": {
"description": "Number of items that were reported at least once",
"type": "integer"
},
"escalatedCount": {
"description": "Number of items that were escalated at least once",
"type": "integer"
},
"appealedCount": {
"description": "Number of items that were appealed at least once",
"type": "integer"
},
"subjectCount": {
"description": "Total number of item in the set",
"type": "integer"
},
"pendingCount": {
"description": "Number of item currently in \"reviewOpen\" or \"reviewEscalated\" state",
"type": "integer"
},
"processedCount": {
"description": "Number of item currently in \"reviewNone\" or \"reviewClosed\" state",
"type": "integer"
},
"takendownCount": {
"description": "Number of item currently taken down",
"type": "integer"
}
}
},
Expand Down
19 changes: 18 additions & 1 deletion lexicons/tools/ozone/moderation/queryStatuses.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@
"sortField": {
"type": "string",
"default": "lastReportedAt",
"enum": ["lastReviewedAt", "lastReportedAt"]
"enum": [
"lastReviewedAt",
"lastReportedAt",
"reportedRecordsCount",
"takendownRecordsCount"
]
},
"sortDirection": {
"type": "string",
Expand Down Expand Up @@ -158,6 +163,18 @@
"type": "string",
"description": "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.",
"knownValues": ["account", "record"]
},
"minAccountSuspendCount": {
"type": "integer",
"description": "If specified, only subjects that belong to an account that has at least this many suspensions will be returned."
},
"minReportedRecordsCount": {
"type": "integer",
"description": "If specified, only subjects that belong to an account that has at least this many reported records will be returned."
},
"minTakendownRecordsCount": {
"type": "integer",
"description": "If specified, only subjects that belong to an account that has at least this many taken down records will be returned."
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions packages/atproto/lib/src/ids.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ const comAtprotoLabelSubscribeLabelsInfo =
const comAtprotoLabelSubscribeLabelsLabels =
'com.atproto.label.subscribeLabels#labels';

/// `com.atproto.lexicon.schema`
const comAtprotoLexiconSchema = 'com.atproto.lexicon.schema';

/// `com.atproto.moderation.createReport`
const comAtprotoModerationCreateReport = 'com.atproto.moderation.createReport';

Expand Down
3 changes: 3 additions & 0 deletions packages/atproto/lib/src/nsids.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ const comAtprotoLabelSubscribeLabelsInfo =
const comAtprotoLabelSubscribeLabelsLabels =
NSID(ids.comAtprotoLabelSubscribeLabelsLabels);

/// `com.atproto.lexicon.schema`
const comAtprotoLexiconSchema = NSID(ids.comAtprotoLexiconSchema);

/// `com.atproto.moderation.createReport`
const comAtprotoModerationCreateReport =
NSID(ids.comAtprotoModerationCreateReport);
Expand Down
10 changes: 10 additions & 0 deletions packages/bluesky/lib/src/ids.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ const appBskyFeedDefsClickthroughItem = 'app.bsky.feed.defs#clickthroughItem';
const appBskyFeedDefsClickthroughReposter =
'app.bsky.feed.defs#clickthroughReposter';

/// `app.bsky.feed.defs#contentModeUnspecified`
const appBskyFeedDefsContentModeUnspecified =
'app.bsky.feed.defs#contentModeUnspecified';

/// `app.bsky.feed.defs#contentModeVideo`
const appBskyFeedDefsContentModeVideo = 'app.bsky.feed.defs#contentModeVideo';

/// `app.bsky.feed.defs#feedViewPost`
const appBskyFeedDefsFeedViewPost = 'app.bsky.feed.defs#feedViewPost';

Expand Down Expand Up @@ -265,6 +272,9 @@ const appBskyFeedDefsSkeletonReasonPin = 'app.bsky.feed.defs#skeletonReasonPin';
const appBskyFeedDefsSkeletonReasonRepost =
'app.bsky.feed.defs#skeletonReasonRepost';

/// `app.bsky.feed.defs#threadContext`
const appBskyFeedDefsThreadContext = 'app.bsky.feed.defs#threadContext';

/// `app.bsky.feed.defs#threadViewPost`
const appBskyFeedDefsThreadViewPost = 'app.bsky.feed.defs#threadViewPost';

Expand Down
Loading