Skip to content

Commit

Permalink
atproto-openapi-types/spec/api.json updated
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyliu7321 authored and github-actions[bot] committed Oct 31, 2024
1 parent 2d1c35f commit 4fd5999
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 17 deletions.
20 changes: 20 additions & 0 deletions atproto-openapi-types/lexicons/app/bsky/unspecced/getConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getConfig",
"defs": {
"main": {
"type": "query",
"description": "Get miscellaneous runtime configuration.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [],
"properties": {
"checkEmailConfirmed": { "type": "boolean" }
}
}
}
}
}
}
17 changes: 16 additions & 1 deletion atproto-openapi-types/lexicons/com/atproto/admin/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@
"invitesDisabled": { "type": "boolean" },
"emailConfirmedAt": { "type": "string", "format": "datetime" },
"inviteNote": { "type": "string" },
"deactivatedAt": { "type": "string", "format": "datetime" }
"deactivatedAt": { "type": "string", "format": "datetime" },
"threatSignatures": {
"type": "array",
"items": {
"type": "ref",
"ref": "#threatSignature"
}
}
}
},
"repoRef": {
Expand All @@ -51,6 +58,14 @@
"cid": { "type": "string", "format": "cid" },
"recordUri": { "type": "string", "format": "at-uri" }
}
},
"threatSignature": {
"type": "object",
"required": ["property", "value"],
"properties": {
"property": { "type": "string" },
"value": { "type": "string" }
}
}
}
}
18 changes: 16 additions & 2 deletions atproto-openapi-types/lexicons/tools/ozone/moderation/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,14 @@
},
"invitesDisabled": { "type": "boolean" },
"inviteNote": { "type": "string" },
"deactivatedAt": { "type": "string", "format": "datetime" }
"deactivatedAt": { "type": "string", "format": "datetime" },
"threatSignatures": {
"type": "array",
"items": {
"type": "ref",
"ref": "com.atproto.admin.defs#threatSignature"
}
}
}
},
"repoViewDetail": {
Expand Down Expand Up @@ -449,7 +456,14 @@
"invitesDisabled": { "type": "boolean" },
"inviteNote": { "type": "string" },
"emailConfirmedAt": { "type": "string", "format": "datetime" },
"deactivatedAt": { "type": "string", "format": "datetime" }
"deactivatedAt": { "type": "string", "format": "datetime" },
"threatSignatures": {
"type": "array",
"items": {
"type": "ref",
"ref": "com.atproto.admin.defs#threatSignature"
}
}
}
},
"repoViewNotFound": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"properties": {
"types": {
"type": "array",
"items": { "type": "string" },
"items": {
"type": "string"
},
"description": "The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned."
},
"createdBy": {
Expand All @@ -33,11 +35,28 @@
"format": "datetime",
"description": "Retrieve events created before a given timestamp"
},
"subject": { "type": "string", "format": "uri" },
"subject": {
"type": "string",
"format": "uri"
},
"collections": {
"type": "array",
"maxLength": 20,
"description": "If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",
"items": {
"type": "string",
"format": "nsid"
}
},
"subjectType": {
"type": "string",
"description": "If specified, only events where the subject is 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"]
},
"includeAllUserRecords": {
"type": "boolean",
"default": false,
"description": "If true, events on all record types (posts, lists, profile etc.) owned by the did are returned"
"description": "If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned."
},
"limit": {
"type": "integer",
Expand All @@ -55,22 +74,30 @@
},
"addedLabels": {
"type": "array",
"items": { "type": "string" },
"items": {
"type": "string"
},
"description": "If specified, only events where all of these labels were added are returned"
},
"removedLabels": {
"type": "array",
"items": { "type": "string" },
"items": {
"type": "string"
},
"description": "If specified, only events where all of these labels were removed are returned"
},
"addedTags": {
"type": "array",
"items": { "type": "string" },
"items": {
"type": "string"
},
"description": "If specified, only events where all of these tags were added are returned"
},
"removedTags": {
"type": "array",
"items": { "type": "string" },
"items": {
"type": "string"
},
"description": "If specified, only events where all of these tags were removed are returned"
},
"reportTypes": {
Expand All @@ -79,7 +106,9 @@
"type": "string"
}
},
"cursor": { "type": "string" }
"cursor": {
"type": "string"
}
}
},
"output": {
Expand All @@ -88,7 +117,9 @@
"type": "object",
"required": ["events"],
"properties": {
"cursor": { "type": "string" },
"cursor": {
"type": "string"
},
"events": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"properties": {
"includeAllUserRecords": {
"type": "boolean",
"description": "All subjects belonging to the account specified in the 'subject' param will be returned."
"description": "All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned."
},
"subject": {
"type": "string",
Expand Down Expand Up @@ -103,6 +103,20 @@
},
"cursor": {
"type": "string"
},
"collections": {
"type": "array",
"maxLength": 20,
"description": "If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",
"items": {
"type": "string",
"format": "nsid"
}
},
"subjectType": {
"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"]
}
}
},
Expand Down
97 changes: 93 additions & 4 deletions atproto-openapi-types/spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -15855,14 +15855,42 @@
"format": "uri"
}
},
{
"name": "collections",
"in": "query",
"description": "If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"format": "nsid"
},
"maxItems": 20
}
},
{
"name": "subjectType",
"in": "query",
"description": "If specified, only events where the subject is 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.",
"required": false,
"schema": {
"type": "string",
"description": "If specified, only events where the subject is 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.",
"enum": [
"account",
"record"
]
}
},
{
"name": "includeAllUserRecords",
"in": "query",
"description": "If true, events on all record types (posts, lists, profile etc.) owned by the did are returned",
"description": "If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.",
"required": false,
"schema": {
"type": "boolean",
"description": "If true, events on all record types (posts, lists, profile etc.) owned by the did are returned"
"description": "If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned."
}
},
{
Expand Down Expand Up @@ -16057,11 +16085,11 @@
{
"name": "includeAllUserRecords",
"in": "query",
"description": "All subjects belonging to the account specified in the 'subject' param will be returned.",
"description": "All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned.",
"required": false,
"schema": {
"type": "boolean",
"description": "All subjects belonging to the account specified in the 'subject' param will be returned."
"description": "All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned."
}
},
{
Expand Down Expand Up @@ -16260,6 +16288,34 @@
"schema": {
"type": "string"
}
},
{
"name": "collections",
"in": "query",
"description": "If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"format": "nsid"
},
"maxItems": 20
}
},
{
"name": "subjectType",
"in": "query",
"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.",
"required": false,
"schema": {
"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.",
"enum": [
"account",
"record"
]
}
}
],
"responses": {
Expand Down Expand Up @@ -21108,6 +21164,12 @@
"deactivatedAt": {
"type": "string",
"format": "date-time"
},
"threatSignatures": {
"type": "array",
"items": {
"$ref": "#/components/schemas/com.atproto.admin.defs.threatSignature"
}
}
}
},
Expand Down Expand Up @@ -21144,6 +21206,21 @@
}
}
},
"com.atproto.admin.defs.threatSignature": {
"type": "object",
"required": [
"property",
"value"
],
"properties": {
"property": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"com.atproto.label.defs.label": {
"type": "object",
"description": "Metadata tag on an atproto resource (eg, repo or record).",
Expand Down Expand Up @@ -22571,6 +22648,12 @@
"deactivatedAt": {
"type": "string",
"format": "date-time"
},
"threatSignatures": {
"type": "array",
"items": {
"$ref": "#/components/schemas/com.atproto.admin.defs.threatSignature"
}
}
}
},
Expand Down Expand Up @@ -22634,6 +22717,12 @@
"deactivatedAt": {
"type": "string",
"format": "date-time"
},
"threatSignatures": {
"type": "array",
"items": {
"$ref": "#/components/schemas/com.atproto.admin.defs.threatSignature"
}
}
}
},
Expand Down

0 comments on commit 4fd5999

Please sign in to comment.