-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12beb29
commit 06758c1
Showing
9 changed files
with
739 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.labeler.defs", | ||
"defs": { | ||
"labelerView": { | ||
"type": "object", | ||
"required": ["uri", "cid", "creator", "indexedAt"], | ||
"properties": { | ||
"uri": { "type": "string", "format": "at-uri" }, | ||
"cid": { "type": "string", "format": "cid" }, | ||
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, | ||
"likeCount": { "type": "integer", "minimum": 0 }, | ||
"viewer": { "type": "ref", "ref": "#labelerViewerState" }, | ||
"indexedAt": { "type": "string", "format": "datetime" }, | ||
"labels": { | ||
"type": "array", | ||
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" } | ||
} | ||
} | ||
}, | ||
"labelerViewDetailed": { | ||
"type": "object", | ||
"required": ["uri", "cid", "creator", "policies", "indexedAt"], | ||
"properties": { | ||
"uri": { "type": "string", "format": "at-uri" }, | ||
"cid": { "type": "string", "format": "cid" }, | ||
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, | ||
"policies": { | ||
"type": "ref", | ||
"ref": "app.bsky.labeler.defs#labelerPolicies" | ||
}, | ||
"likeCount": { "type": "integer", "minimum": 0 }, | ||
"viewer": { "type": "ref", "ref": "#labelerViewerState" }, | ||
"indexedAt": { "type": "string", "format": "datetime" }, | ||
"labels": { | ||
"type": "array", | ||
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" } | ||
} | ||
} | ||
}, | ||
"labelerViewerState": { | ||
"type": "object", | ||
"properties": { | ||
"like": { "type": "string", "format": "at-uri" } | ||
} | ||
}, | ||
"labelerPolicies": { | ||
"type": "object", | ||
"required": ["labelValues"], | ||
"properties": { | ||
"labelValues": { | ||
"type": "array", | ||
"description": "The label values which this labeler publishes. May include global or custom labels.", | ||
"items": { | ||
"type": "ref", | ||
"ref": "com.atproto.label.defs#labelValue" | ||
} | ||
}, | ||
"labelValueDefinitions": { | ||
"type": "array", | ||
"description": "Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.", | ||
"items": { | ||
"type": "ref", | ||
"ref": "com.atproto.label.defs#labelValueDefinition" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.labeler.getServices", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Get information about a list of labeler services.", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["dids"], | ||
"properties": { | ||
"dids": { | ||
"type": "array", | ||
"items": { "type": "string", "format": "did" } | ||
}, | ||
"detailed": { | ||
"type": "boolean", | ||
"default": false | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["views"], | ||
"properties": { | ||
"views": { | ||
"type": "array", | ||
"items": { | ||
"type": "union", | ||
"refs": [ | ||
"app.bsky.labeler.defs#labelerView", | ||
"app.bsky.labeler.defs#labelerViewDetailed" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.labeler.service", | ||
"defs": { | ||
"main": { | ||
"type": "record", | ||
"description": "A declaration of the existence of labeler service.", | ||
"key": "literal:self", | ||
"record": { | ||
"type": "object", | ||
"required": ["policies", "createdAt"], | ||
"properties": { | ||
"policies": { | ||
"type": "ref", | ||
"ref": "app.bsky.labeler.defs#labelerPolicies" | ||
}, | ||
"labels": { | ||
"type": "union", | ||
"refs": ["com.atproto.label.defs#selfLabels"] | ||
}, | ||
"createdAt": { "type": "string", "format": "datetime" } | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters