-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
based on bluesky-social/atproto@60df3fc
- Loading branch information
Showing
14 changed files
with
539 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,8 @@ | |
"value": { "type": "unknown" } | ||
} | ||
} | ||
} | ||
}, | ||
"errors": [{ "name": "RecordNotFound" }] | ||
} | ||
} | ||
} |
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": "tools.ozone.moderation.getRecords", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Get details about some records.", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["uris"], | ||
"properties": { | ||
"uris": { | ||
"type": "array", | ||
"maxLength": 100, | ||
"items": { | ||
"type": "string", | ||
"format": "at-uri" | ||
} | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["records"], | ||
"properties": { | ||
"records": { | ||
"type": "array", | ||
"items": { | ||
"type": "union", | ||
"refs": [ | ||
"tools.ozone.moderation.defs#recordViewDetail", | ||
"tools.ozone.moderation.defs#recordViewNotFound" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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": "tools.ozone.moderation.getRepos", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Get details about some repositories.", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["dids"], | ||
"properties": { | ||
"dids": { | ||
"type": "array", | ||
"maxLength": 100, | ||
"items": { | ||
"type": "string", | ||
"format": "did" | ||
} | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["repos"], | ||
"properties": { | ||
"repos": { | ||
"type": "array", | ||
"items": { | ||
"type": "union", | ||
"refs": [ | ||
"tools.ozone.moderation.defs#repoViewDetail", | ||
"tools.ozone.moderation.defs#repoViewNotFound" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,32 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.set.addValues", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Add values to a specific set. Attempting to add values to a set that does not exist will result in an error.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["name", "values"], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the set to add values to" | ||
}, | ||
"values": { | ||
"type": "array", | ||
"minLength": 1, | ||
"maxLength": 1000, | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "Array of string values to add to the set" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,49 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.set.defs", | ||
"defs": { | ||
"set": { | ||
"type": "object", | ||
"required": ["name"], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"minLength": 3, | ||
"maxLength": 128 | ||
}, | ||
"description": { | ||
"type": "string", | ||
"maxGraphemes": 1024, | ||
"maxLength": 10240 | ||
} | ||
} | ||
}, | ||
"setView": { | ||
"type": "object", | ||
"required": ["name", "setSize", "createdAt", "updatedAt"], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"minLength": 3, | ||
"maxLength": 128 | ||
}, | ||
"description": { | ||
"type": "string", | ||
"maxGraphemes": 1024, | ||
"maxLength": 10240 | ||
}, | ||
"setSize": { | ||
"type": "integer" | ||
}, | ||
"createdAt": { | ||
"type": "string", | ||
"format": "datetime" | ||
}, | ||
"updatedAt": { | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.set.deleteSet", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Delete an entire set. Attempting to delete a set that does not exist will result in an error.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["name"], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the set to delete" | ||
} | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"properties": {} | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"name": "SetNotFound", | ||
"description": "set with the given name does not exist" | ||
} | ||
] | ||
} | ||
} | ||
} |
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,37 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.set.deleteValues", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["name", "values"], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the set to delete values from" | ||
}, | ||
"values": { | ||
"type": "array", | ||
"minLength": 1, | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "Array of string values to delete from the set" | ||
} | ||
} | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"name": "SetNotFound", | ||
"description": "set with the given name does not exist" | ||
} | ||
] | ||
} | ||
} | ||
} |
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,56 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.set.getValues", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Get a specific set and its values", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["name"], | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 1000, | ||
"default": 100 | ||
}, | ||
"cursor": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["set", "values"], | ||
"properties": { | ||
"set": { | ||
"type": "ref", | ||
"ref": "tools.ozone.set.defs#setView" | ||
}, | ||
"values": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"cursor": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"name": "SetNotFound", | ||
"description": "set with the given name does not exist" | ||
} | ||
] | ||
} | ||
} | ||
} |
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,57 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.set.querySets", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Query available sets", | ||
"parameters": { | ||
"type": "params", | ||
"properties": { | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 100, | ||
"default": 50 | ||
}, | ||
"cursor": { | ||
"type": "string" | ||
}, | ||
"namePrefix": { | ||
"type": "string" | ||
}, | ||
"sortBy": { | ||
"type": "string", | ||
"enum": ["name", "createdAt", "updatedAt"], | ||
"default": "name" | ||
}, | ||
"sortDirection": { | ||
"type": "string", | ||
"default": "asc", | ||
"enum": ["asc", "desc"], | ||
"description": "Defaults to ascending order of name field." | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["sets"], | ||
"properties": { | ||
"sets": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "tools.ozone.set.defs#setView" | ||
} | ||
}, | ||
"cursor": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,24 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.set.upsertSet", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Create or update set metadata", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "ref", | ||
"ref": "tools.ozone.set.defs#set" | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "ref", | ||
"ref": "tools.ozone.set.defs#setView" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.