Clean up prettier/eslint scripts (#1514)

* add prettierignore, hoist script

* upgrade prettier

* bump prettier eslint deps

* format all files

* hoist prettier check

* remove unused scripts, hoist lint:fix

* remove npm-run-all, unused

* hoist lint

* remove lint scripts

* improve lint scripts

* remove prettierignores

* downgrade prettier deps to fix codgen

* reformat all files

* update makefile, format

* fix locklife

* final format

---------

Co-authored-by: dholms <dtholmgren@gmail.com>
This commit is contained in:
Eric Bailey 2023-09-06 19:27:50 -05:00 committed by GitHub
parent b3eb3d76a0
commit a7c42cfe39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
202 changed files with 1825 additions and 2170 deletions

3
.eslintignore Normal file
View File

@ -0,0 +1,3 @@
packages/api/src/client
packages/bsky/src/lexicon
packages/pds/src/lexicon

View File

@ -13,7 +13,7 @@
"plugin:prettier/recommended",
"prettier"
],
"ignorePatterns":[
"ignorePatterns": [
"dist",
"node_modules",
"jest.config.base.js",
@ -26,7 +26,11 @@
"rules": {
"no-var": "error",
"prefer-const": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-misleading-character-class": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",

View File

@ -4,10 +4,10 @@ about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
**To Reproduce**
@ -22,8 +22,8 @@ Steps to reproduce the behavior:
**Details**
- Operating system:
- Node version:
- Operating system:
- Node version:
**Additional context**

View File

@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: feature-request
assignees: ''
---
**Is your feature request related to a problem? Please describe.**

View File

@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- run: pnpm verify
- name: Publish
@ -30,5 +30,5 @@ jobs:
with:
publish: pnpm release
version: pnpm version-packages
commit: "Version packages"
title: "Version packages"
commit: 'Version packages'
title: 'Version packages'

View File

@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- run: pnpm build
test:
@ -38,7 +38,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- run: pnpm test:withFlags --maxWorkers=1 --shard=${{ matrix.shard }} --passWithNoTests
verify:
@ -52,6 +52,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm verify

9
.prettierignore Normal file
View File

@ -0,0 +1,9 @@
node_modules
dist
build
.nyc_output
coverage
pnpm-lock.yaml
.pnpm*
.changeset
*.d.ts

View File

@ -44,7 +44,7 @@ lint: ## Run style checks and verify syntax
.PHONY: fmt
fmt: ## Run syntax re-formatting
pnpm prettier
pnpm format
.PHONY: deps
deps: ## Installs dependent libs using 'pnpm install'

View File

@ -8,12 +8,12 @@ const esModules = ['get-port', 'node-fetch'].join('|')
module.exports = {
roots: ['<rootDir>/src', '<rootDir>/tests'],
transform: {
"^.+\\.(t|j)s?$": "@swc/jest",
'^.+\\.(t|j)s?$': '@swc/jest',
},
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${esModules})`],
testRegex: '(/tests/.*.(test|spec)).(jsx?|tsx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFiles: ["<rootDir>/../../test-setup.ts"],
setupFiles: ['<rootDir>/../../test-setup.ts'],
verbose: true,
testTimeout: 60000
testTimeout: 60000,
}

View File

@ -7,18 +7,18 @@
"type": "object",
"required": ["did", "handle"],
"properties": {
"did": {"type": "string", "format": "did"},
"handle": {"type": "string", "format": "handle"},
"did": { "type": "string", "format": "did" },
"handle": { "type": "string", "format": "handle" },
"displayName": {
"type": "string",
"maxGraphemes": 64,
"maxLength": 640
},
"avatar": { "type": "string" },
"viewer": {"type": "ref", "ref": "#viewerState"},
"viewer": { "type": "ref", "ref": "#viewerState" },
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
}
}
},
@ -26,8 +26,8 @@
"type": "object",
"required": ["did", "handle"],
"properties": {
"did": {"type": "string", "format":"did"},
"handle": {"type": "string", "format":"handle"},
"did": { "type": "string", "format": "did" },
"handle": { "type": "string", "format": "handle" },
"displayName": {
"type": "string",
"maxGraphemes": 64,
@ -39,11 +39,11 @@
"maxLength": 2560
},
"avatar": { "type": "string" },
"indexedAt": {"type": "string", "format": "datetime"},
"viewer": {"type": "ref", "ref": "#viewerState"},
"indexedAt": { "type": "string", "format": "datetime" },
"viewer": { "type": "ref", "ref": "#viewerState" },
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
}
}
},
@ -51,8 +51,8 @@
"type": "object",
"required": ["did", "handle"],
"properties": {
"did": {"type": "string", "format": "did"},
"handle": {"type": "string", "format": "handle"},
"did": { "type": "string", "format": "did" },
"handle": { "type": "string", "format": "handle" },
"displayName": {
"type": "string",
"maxGraphemes": 64,
@ -65,52 +65,54 @@
},
"avatar": { "type": "string" },
"banner": { "type": "string" },
"followersCount": {"type": "integer"},
"followsCount": {"type": "integer"},
"postsCount": {"type": "integer"},
"indexedAt": {"type": "string", "format": "datetime"},
"viewer": {"type": "ref", "ref": "#viewerState"},
"followersCount": { "type": "integer" },
"followsCount": { "type": "integer" },
"postsCount": { "type": "integer" },
"indexedAt": { "type": "string", "format": "datetime" },
"viewer": { "type": "ref", "ref": "#viewerState" },
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
}
}
},
"viewerState": {
"type": "object",
"properties": {
"muted": {"type": "boolean"},
"mutedByList": {"type": "ref", "ref": "app.bsky.graph.defs#listViewBasic"},
"blockedBy": {"type": "boolean"},
"blocking": {"type": "string", "format": "at-uri"},
"following": {"type": "string", "format": "at-uri"},
"followedBy": {"type": "string", "format": "at-uri"}
"muted": { "type": "boolean" },
"mutedByList": {
"type": "ref",
"ref": "app.bsky.graph.defs#listViewBasic"
},
"blockedBy": { "type": "boolean" },
"blocking": { "type": "string", "format": "at-uri" },
"following": { "type": "string", "format": "at-uri" },
"followedBy": { "type": "string", "format": "at-uri" }
}
},
"preferences": {
"type": "array",
"items": {
"type": "union",
"refs": [
"#adultContentPref",
"#contentLabelPref",
"#savedFeedsPref"
]
"refs": ["#adultContentPref", "#contentLabelPref", "#savedFeedsPref"]
}
},
"adultContentPref": {
"type": "object",
"required": ["enabled"],
"properties": {
"enabled": {"type": "boolean", "default": false}
"enabled": { "type": "boolean", "default": false }
}
},
"contentLabelPref": {
"type": "object",
"required": ["label", "visibility"],
"properties": {
"label": {"type": "string"},
"visibility": {"type": "string", "knownValues": ["show", "warn", "hide"]}
"label": { "type": "string" },
"visibility": {
"type": "string",
"knownValues": ["show", "warn", "hide"]
}
}
},
"savedFeedsPref": {

View File

@ -7,8 +7,7 @@
"description": "Get private preferences attached to the account.",
"parameters": {
"type": "params",
"properties": {
}
"properties": {}
},
"output": {
"encoding": "application/json",

View File

@ -8,12 +8,15 @@
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"}
"actor": { "type": "string", "format": "at-identifier" }
}
},
"output": {
"encoding": "application/json",
"schema": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"}
"schema": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewDetailed"
}
}
}
}

View File

@ -10,7 +10,7 @@
"properties": {
"actors": {
"type": "array",
"items": {"type": "string", "format": "at-identifier"},
"items": { "type": "string", "format": "at-identifier" },
"maxLength": 25
}
}
@ -23,7 +23,10 @@
"properties": {
"profiles": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewDetailed"
}
}
}
}

View File

@ -8,8 +8,13 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -18,10 +23,13 @@
"type": "object",
"required": ["actors"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"actors": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
}
}
}

View File

@ -8,9 +8,14 @@
"parameters": {
"type": "params",
"properties": {
"term": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"term": { "type": "string" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -19,10 +24,13 @@
"type": "object",
"required": ["actors"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"actors": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
}
}
}

View File

@ -8,8 +8,13 @@
"parameters": {
"type": "params",
"properties": {
"term": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}
"term": { "type": "string" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}
}
},
"output": {
@ -20,7 +25,10 @@
"properties": {
"actors": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
}
}
}
}

View File

@ -17,9 +17,9 @@
"type": "object",
"required": ["uri", "title", "description"],
"properties": {
"uri": {"type": "string", "format": "uri"},
"title": {"type": "string"},
"description": {"type": "string"},
"uri": { "type": "string", "format": "uri" },
"title": { "type": "string" },
"description": { "type": "string" },
"thumb": {
"type": "blob",
"accept": ["image/*"],
@ -41,10 +41,10 @@
"type": "object",
"required": ["uri", "title", "description"],
"properties": {
"uri": {"type": "string", "format": "uri"},
"title": {"type": "string"},
"description": {"type": "string"},
"thumb": {"type": "string"}
"uri": { "type": "string", "format": "uri" },
"title": { "type": "string" },
"description": { "type": "string" },
"thumb": { "type": "string" }
}
}
}

View File

@ -9,7 +9,7 @@
"properties": {
"images": {
"type": "array",
"items": {"type": "ref", "ref": "#image"},
"items": { "type": "ref", "ref": "#image" },
"maxLength": 4
}
}
@ -23,8 +23,8 @@
"accept": ["image/*"],
"maxSize": 1000000
},
"alt": {"type": "string"},
"aspectRatio": {"type": "ref", "ref": "#aspectRatio"}
"alt": { "type": "string" },
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
}
},
"aspectRatio": {
@ -32,8 +32,8 @@
"description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.",
"required": ["width", "height"],
"properties": {
"width": {"type": "integer", "minimum": 1},
"height": {"type": "integer", "minimum": 1}
"width": { "type": "integer", "minimum": 1 },
"height": { "type": "integer", "minimum": 1 }
}
},
"view": {
@ -42,7 +42,7 @@
"properties": {
"images": {
"type": "array",
"items": {"type": "ref", "ref": "#viewImage"},
"items": { "type": "ref", "ref": "#viewImage" },
"maxLength": 4
}
}
@ -51,10 +51,10 @@
"type": "object",
"required": ["thumb", "fullsize", "alt"],
"properties": {
"thumb": {"type": "string"},
"fullsize": {"type": "string"},
"alt": {"type": "string"},
"aspectRatio": {"type": "ref", "ref": "#aspectRatio"}
"thumb": { "type": "string" },
"fullsize": { "type": "string" },
"alt": { "type": "string" },
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
}
}
}

View File

@ -7,7 +7,7 @@
"type": "object",
"required": ["record"],
"properties": {
"record": {"type": "ref", "ref": "com.atproto.repo.strongRef"}
"record": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
}
},
"view": {
@ -30,13 +30,16 @@
"type": "object",
"required": ["uri", "cid", "author", "value", "indexedAt"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
"value": {"type": "unknown"},
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"author": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
},
"value": { "type": "unknown" },
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
},
"embeds": {
"type": "array",
@ -50,24 +53,24 @@
]
}
},
"indexedAt": {"type": "string", "format": "datetime"}
"indexedAt": { "type": "string", "format": "datetime" }
}
},
"viewNotFound": {
"type": "object",
"required": ["uri", "notFound"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"notFound": {"type": "boolean", "const": true}
"uri": { "type": "string", "format": "at-uri" },
"notFound": { "type": "boolean", "const": true }
}
},
"viewBlocked": {
"type": "object",
"required": ["uri", "blocked", "author"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"blocked": {"type": "boolean", "const": true},
"author": {"type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor"}
"uri": { "type": "string", "format": "at-uri" },
"blocked": { "type": "boolean", "const": true },
"author": { "type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor" }
}
}
}

View File

@ -13,10 +13,7 @@
},
"media": {
"type": "union",
"refs": [
"app.bsky.embed.images",
"app.bsky.embed.external"
]
"refs": ["app.bsky.embed.images", "app.bsky.embed.external"]
}
}
},
@ -30,10 +27,7 @@
},
"media": {
"type": "union",
"refs": [
"app.bsky.embed.images#view",
"app.bsky.embed.external#view"
]
"refs": ["app.bsky.embed.images#view", "app.bsky.embed.external#view"]
}
}
}

View File

@ -6,10 +6,13 @@
"type": "object",
"required": ["uri", "cid", "author", "record", "indexedAt"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
"record": {"type": "unknown"},
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"author": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
},
"record": { "type": "unknown" },
"embed": {
"type": "union",
"refs": [
@ -19,58 +22,70 @@
"app.bsky.embed.recordWithMedia#view"
]
},
"replyCount": {"type": "integer"},
"repostCount": {"type": "integer"},
"likeCount": {"type": "integer"},
"indexedAt": {"type": "string", "format": "datetime"},
"viewer": {"type": "ref", "ref": "#viewerState"},
"replyCount": { "type": "integer" },
"repostCount": { "type": "integer" },
"likeCount": { "type": "integer" },
"indexedAt": { "type": "string", "format": "datetime" },
"viewer": { "type": "ref", "ref": "#viewerState" },
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
}
}
},
"viewerState": {
"type": "object",
"properties": {
"repost": {"type": "string", "format": "at-uri"},
"like": {"type": "string", "format": "at-uri"}
"repost": { "type": "string", "format": "at-uri" },
"like": { "type": "string", "format": "at-uri" }
}
},
"feedViewPost": {
"type": "object",
"required": ["post"],
"properties": {
"post": {"type": "ref", "ref": "#postView"},
"reply": {"type": "ref", "ref": "#replyRef"},
"reason": {"type": "union", "refs": ["#reasonRepost"]}
"post": { "type": "ref", "ref": "#postView" },
"reply": { "type": "ref", "ref": "#replyRef" },
"reason": { "type": "union", "refs": ["#reasonRepost"] }
}
},
"replyRef": {
"type": "object",
"required": ["root", "parent"],
"properties": {
"root": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]},
"parent": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]}
"root": {
"type": "union",
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
},
"parent": {
"type": "union",
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
}
}
},
"reasonRepost": {
"type": "object",
"required": ["by", "indexedAt"],
"properties": {
"by": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
"indexedAt": {"type": "string", "format": "datetime"}
"by": { "type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic" },
"indexedAt": { "type": "string", "format": "datetime" }
}
},
"threadViewPost": {
"type": "object",
"required": ["post"],
"properties": {
"post": {"type": "ref", "ref": "#postView"},
"parent": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]},
"post": { "type": "ref", "ref": "#postView" },
"parent": {
"type": "union",
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
},
"replies": {
"type": "array",
"items": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]}
"items": {
"type": "union",
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
}
}
}
},
@ -78,24 +93,24 @@
"type": "object",
"required": ["uri", "notFound"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"notFound": {"type": "boolean", "const": true}
"uri": { "type": "string", "format": "at-uri" },
"notFound": { "type": "boolean", "const": true }
}
},
"blockedPost": {
"type": "object",
"required": ["uri", "blocked", "author"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"blocked": {"type": "boolean", "const": true},
"author": {"type": "ref", "ref": "#blockedAuthor"}
"uri": { "type": "string", "format": "at-uri" },
"blocked": { "type": "boolean", "const": true },
"author": { "type": "ref", "ref": "#blockedAuthor" }
}
},
"blockedAuthor": {
"type": "object",
"required": ["did"],
"properties": {
"did": {"type": "string", "format": "did"},
"did": { "type": "string", "format": "did" },
"viewer": { "type": "ref", "ref": "app.bsky.actor.defs#viewerState" }
}
},
@ -103,41 +118,45 @@
"type": "object",
"required": ["uri", "cid", "did", "creator", "displayName", "indexedAt"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"did": {"type": "string", "format": "did"},
"creator": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
"displayName": {"type": "string"},
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"did": { "type": "string", "format": "did" },
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
"displayName": { "type": "string" },
"description": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"descriptionFacets": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": {"type": "string"},
"likeCount": {"type": "integer", "minimum": 0 },
"viewer": {"type": "ref", "ref": "#generatorViewerState"},
"indexedAt": {"type": "string", "format": "datetime"}
"avatar": { "type": "string" },
"likeCount": { "type": "integer", "minimum": 0 },
"viewer": { "type": "ref", "ref": "#generatorViewerState" },
"indexedAt": { "type": "string", "format": "datetime" }
}
},
"generatorViewerState": {
"type": "object",
"properties": {
"like": {"type": "string", "format": "at-uri"}
"like": { "type": "string", "format": "at-uri" }
}
},
"skeletonFeedPost": {
"type": "object",
"required": ["post"],
"properties": {
"post": {"type": "string", "format": "at-uri"},
"reason": {"type": "union", "refs": ["#skeletonReasonRepost"]}
"post": { "type": "string", "format": "at-uri" },
"reason": { "type": "union", "refs": ["#skeletonReasonRepost"] }
}
},
"skeletonReasonRepost": {
"type": "object",
"required": ["repost"],
"properties": {
"repost": {"type": "string", "format": "at-uri"}
"repost": { "type": "string", "format": "at-uri" }
}
}
}

View File

@ -11,12 +11,12 @@
"type": "object",
"required": ["did", "feeds"],
"properties": {
"did": {"type": "string", "format": "did"},
"did": { "type": "string", "format": "did" },
"feeds": {
"type": "array",
"items": {"type": "ref", "ref": "#feed"}
"items": { "type": "ref", "ref": "#feed" }
},
"links": {"type": "ref", "ref": "#links"}
"links": { "type": "ref", "ref": "#links" }
}
}
}
@ -25,14 +25,14 @@
"type": "object",
"required": ["uri"],
"properties": {
"uri": {"type": "string", "format": "at-uri"}
"uri": { "type": "string", "format": "at-uri" }
}
},
"links": {
"type": "object",
"properties": {
"privacyPolicy": {"type": "string"},
"termsOfService": {"type": "string"}
"privacyPolicy": { "type": "string" },
"termsOfService": { "type": "string" }
}
}
}

View File

@ -10,12 +10,20 @@
"type": "object",
"required": ["did", "displayName", "createdAt"],
"properties": {
"did": {"type": "string", "format": "did"},
"displayName": {"type": "string", "maxGraphemes": 24, "maxLength": 240},
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
"did": { "type": "string", "format": "did" },
"displayName": {
"type": "string",
"maxGraphemes": 24,
"maxLength": 240
},
"description": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"descriptionFacets": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": {
"type": "blob",
@ -26,7 +34,7 @@
"type": "union",
"refs": ["com.atproto.label.defs#selfLabels"]
},
"createdAt": {"type": "string", "format": "datetime"}
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"actor": { "type": "string", "format": "at-identifier" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,10 +25,13 @@
"type": "object",
"required": ["feeds"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feeds": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#generatorView"
}
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"actor": { "type": "string", "format": "at-identifier" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,18 +25,18 @@
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#feedViewPost"
}
}
}
}
},
"errors": [
{"name": "BlockedActor"},
{"name": "BlockedByActor"}
]
"errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }]
}
}
}

View File

@ -9,10 +9,23 @@
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"},
"filter": {"type": "string", "knownValues": ["posts_with_replies", "posts_no_replies", "posts_with_media"], "default": "posts_with_replies"}
"actor": { "type": "string", "format": "at-identifier" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" },
"filter": {
"type": "string",
"knownValues": [
"posts_with_replies",
"posts_no_replies",
"posts_with_media"
],
"default": "posts_with_replies"
}
}
},
"output": {
@ -21,18 +34,18 @@
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#feedViewPost"
}
}
}
}
},
"errors": [
{"name": "BlockedActor"},
{"name": "BlockedByActor"}
]
"errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }]
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["feed"],
"properties": {
"feed": {"type": "string", "format": "at-uri"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"feed": { "type": "string", "format": "at-uri" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,17 +25,18 @@
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#feedViewPost"
}
}
}
}
},
"errors": [
{"name": "UnknownFeed"}
]
"errors": [{ "name": "UnknownFeed" }]
}
}
}

View File

@ -9,7 +9,7 @@
"type": "params",
"required": ["feed"],
"properties": {
"feed": {"type": "string", "format": "at-uri"}
"feed": { "type": "string", "format": "at-uri" }
}
},
"output": {
@ -18,9 +18,12 @@
"type": "object",
"required": ["view", "isOnline", "isValid"],
"properties": {
"view": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"},
"isOnline": {"type": "boolean"},
"isValid": {"type": "boolean"}
"view": {
"type": "ref",
"ref": "app.bsky.feed.defs#generatorView"
},
"isOnline": { "type": "boolean" },
"isValid": { "type": "boolean" }
}
}
}

View File

@ -11,7 +11,7 @@
"properties": {
"feeds": {
"type": "array",
"items": {"type": "string", "format": "at-uri"}
"items": { "type": "string", "format": "at-uri" }
}
}
},
@ -23,7 +23,10 @@
"properties": {
"feeds": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#generatorView"
}
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["feed"],
"properties": {
"feed": {"type": "string", "format": "at-uri"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"feed": { "type": "string", "format": "at-uri" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,17 +25,18 @@
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#skeletonFeedPost"
}
}
}
}
},
"errors": [
{"name": "UnknownFeed"}
]
"errors": [{ "name": "UnknownFeed" }]
}
}
}

View File

@ -8,10 +8,15 @@
"type": "params",
"required": ["uri"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,12 +25,12 @@
"type": "object",
"required": ["uri", "likes"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"cursor": {"type": "string"},
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"cursor": { "type": "string" },
"likes": {
"type": "array",
"items": {"type": "ref", "ref": "#like"}
"items": { "type": "ref", "ref": "#like" }
}
}
}
@ -35,9 +40,9 @@
"type": "object",
"required": ["indexedAt", "createdAt", "actor"],
"properties": {
"indexedAt": {"type": "string", "format": "datetime"},
"createdAt": {"type": "string", "format": "datetime"},
"actor": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"indexedAt": { "type": "string", "format": "datetime" },
"createdAt": { "type": "string", "format": "datetime" },
"actor": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }
}
}
}

View File

@ -8,7 +8,7 @@
"type": "params",
"required": ["uri"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"uri": { "type": "string", "format": "at-uri" },
"depth": {
"type": "integer",
"default": 6,
@ -40,9 +40,7 @@
}
}
},
"errors": [
{"name": "NotFound"}
]
"errors": [{ "name": "NotFound" }]
}
}
}

View File

@ -11,7 +11,7 @@
"properties": {
"uris": {
"type": "array",
"items": {"type": "string", "format": "at-uri"},
"items": { "type": "string", "format": "at-uri" },
"maxLength": 25
}
}
@ -24,7 +24,7 @@
"properties": {
"posts": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#postView"}
"items": { "type": "ref", "ref": "app.bsky.feed.defs#postView" }
}
}
}

View File

@ -8,10 +8,15 @@
"type": "params",
"required": ["uri"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,12 +25,15 @@
"type": "object",
"required": ["uri", "repostedBy"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"cursor": {"type": "string"},
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"cursor": { "type": "string" },
"repostedBy": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
}
}
}

View File

@ -8,8 +8,13 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -18,10 +23,13 @@
"type": "object",
"required": ["feeds"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feeds": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#generatorView"
}
}
}
}

View File

@ -8,9 +8,14 @@
"parameters": {
"type": "params",
"properties": {
"algorithm": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"algorithm": { "type": "string" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -19,10 +24,13 @@
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#feedViewPost"
}
}
}
}

View File

@ -9,8 +9,8 @@
"type": "object",
"required": ["subject", "createdAt"],
"properties": {
"subject": {"type": "ref", "ref": "com.atproto.repo.strongRef"},
"createdAt": {"type": "string", "format": "datetime"}
"subject": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -9,17 +9,17 @@
"type": "object",
"required": ["text", "createdAt"],
"properties": {
"text": {"type": "string", "maxLength": 3000, "maxGraphemes": 300},
"text": { "type": "string", "maxLength": 3000, "maxGraphemes": 300 },
"entities": {
"type": "array",
"description": "Deprecated: replaced by app.bsky.richtext.facet.",
"items": {"type": "ref", "ref": "#entity"}
"items": { "type": "ref", "ref": "#entity" }
},
"facets": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"reply": {"type": "ref", "ref": "#replyRef"},
"reply": { "type": "ref", "ref": "#replyRef" },
"embed": {
"type": "union",
"refs": [
@ -32,22 +32,22 @@
"langs": {
"type": "array",
"maxLength": 3,
"items": {"type": "string", "format": "language"}
"items": { "type": "string", "format": "language" }
},
"labels": {
"type": "union",
"refs": ["com.atproto.label.defs#selfLabels"]
},
"createdAt": {"type": "string", "format": "datetime"}
"createdAt": { "type": "string", "format": "datetime" }
}
}
},
"replyRef":{
"replyRef": {
"type": "object",
"required": ["root", "parent"],
"properties": {
"root": {"type": "ref", "ref": "com.atproto.repo.strongRef"},
"parent": {"type": "ref", "ref": "com.atproto.repo.strongRef"}
"root": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
"parent": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
}
},
"entity": {
@ -55,12 +55,12 @@
"description": "Deprecated: use facets instead.",
"required": ["index", "type", "value"],
"properties": {
"index": {"type": "ref", "ref": "#textSlice"},
"index": { "type": "ref", "ref": "#textSlice" },
"type": {
"type": "string",
"description": "Expected values are 'mention' and 'link'."
},
"value": {"type": "string"}
"value": { "type": "string" }
}
},
"textSlice": {
@ -68,8 +68,8 @@
"description": "Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.",
"required": ["start", "end"],
"properties": {
"start": {"type": "integer", "minimum": 0},
"end": {"type": "integer", "minimum": 0}
"start": { "type": "integer", "minimum": 0 },
"end": { "type": "integer", "minimum": 0 }
}
}
}

View File

@ -9,8 +9,8 @@
"type": "object",
"required": ["subject", "createdAt"],
"properties": {
"subject": {"type": "ref", "ref": "com.atproto.repo.strongRef"},
"createdAt": {"type": "string", "format": "datetime"}
"subject": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -10,8 +10,8 @@
"type": "object",
"required": ["subject", "createdAt"],
"properties": {
"subject": {"type": "string", "format": "did"},
"createdAt": {"type": "string", "format": "datetime"}
"subject": { "type": "string", "format": "did" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -6,46 +6,48 @@
"type": "object",
"required": ["uri", "cid", "name", "purpose"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"name": {"type": "string", "maxLength": 64, "minLength": 1},
"purpose": {"type": "ref", "ref": "#listPurpose"},
"avatar": {"type": "string"},
"viewer": {"type": "ref", "ref": "#listViewerState"},
"indexedAt": {"type": "string", "format": "datetime"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
"purpose": { "type": "ref", "ref": "#listPurpose" },
"avatar": { "type": "string" },
"viewer": { "type": "ref", "ref": "#listViewerState" },
"indexedAt": { "type": "string", "format": "datetime" }
}
},
"listView": {
"type": "object",
"required": ["uri", "cid", "creator", "name", "purpose", "indexedAt"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"creator": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
"name": {"type": "string", "maxLength": 64, "minLength": 1},
"purpose": {"type": "ref", "ref": "#listPurpose"},
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
"purpose": { "type": "ref", "ref": "#listPurpose" },
"description": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"descriptionFacets": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": {"type": "string"},
"viewer": {"type": "ref", "ref": "#listViewerState"},
"indexedAt": {"type": "string", "format": "datetime"}
"avatar": { "type": "string" },
"viewer": { "type": "ref", "ref": "#listViewerState" },
"indexedAt": { "type": "string", "format": "datetime" }
}
},
"listItemView": {
"type": "object",
"required": ["subject"],
"properties": {
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"subject": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }
}
},
"listPurpose": {
"type": "string",
"knownValues": [
"app.bsky.graph.defs#modlist"
]
"knownValues": ["app.bsky.graph.defs#modlist"]
},
"modlist": {
"type": "token",
@ -54,7 +56,7 @@
"listViewerState": {
"type": "object",
"properties": {
"muted": {"type": "boolean"}
"muted": { "type": "boolean" }
}
}
}

View File

@ -10,8 +10,8 @@
"type": "object",
"required": ["subject", "createdAt"],
"properties": {
"subject": {"type": "string", "format": "did"},
"createdAt": {"type": "string", "format": "datetime"}
"subject": { "type": "string", "format": "did" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -8,8 +8,13 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -18,10 +23,13 @@
"type": "object",
"required": ["blocks"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"blocks": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"actor": { "type": "string", "format": "at-identifier" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,11 +25,17 @@
"type": "object",
"required": ["subject", "followers"],
"properties": {
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
"cursor": {"type": "string"},
"subject": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
},
"cursor": { "type": "string" },
"followers": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"actor": { "type": "string", "format": "at-identifier" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,11 +25,17 @@
"type": "object",
"required": ["subject", "follows"],
"properties": {
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
"cursor": {"type": "string"},
"subject": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
},
"cursor": { "type": "string" },
"follows": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["list"],
"properties": {
"list": {"type": "string", "format": "at-uri"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"list": { "type": "string", "format": "at-uri" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,11 +25,14 @@
"type": "object",
"required": ["list", "items"],
"properties": {
"cursor": {"type": "string"},
"list": {"type": "ref", "ref": "app.bsky.graph.defs#listView"},
"cursor": { "type": "string" },
"list": { "type": "ref", "ref": "app.bsky.graph.defs#listView" },
"items": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listItemView"}
"items": {
"type": "ref",
"ref": "app.bsky.graph.defs#listItemView"
}
}
}
}

View File

@ -8,8 +8,13 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -18,10 +23,10 @@
"type": "object",
"required": ["lists"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"lists": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listView"}
"items": { "type": "ref", "ref": "app.bsky.graph.defs#listView" }
}
}
}

View File

@ -9,9 +9,14 @@
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"actor": { "type": "string", "format": "at-identifier" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,10 +25,10 @@
"type": "object",
"required": ["lists"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"lists": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listView"}
"items": { "type": "ref", "ref": "app.bsky.graph.defs#listView" }
}
}
}

View File

@ -8,8 +8,13 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -18,10 +23,13 @@
"type": "object",
"required": ["mutes"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"mutes": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileView"
}
}
}
}

View File

@ -10,12 +10,19 @@
"type": "object",
"required": ["name", "purpose", "createdAt"],
"properties": {
"purpose": {"type": "ref", "ref": "app.bsky.graph.defs#listPurpose"},
"name": {"type": "string", "maxLength": 64, "minLength": 1},
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
"purpose": {
"type": "ref",
"ref": "app.bsky.graph.defs#listPurpose"
},
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
"description": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"descriptionFacets": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": {
"type": "blob",
@ -26,7 +33,7 @@
"type": "union",
"refs": ["com.atproto.label.defs#selfLabels"]
},
"createdAt": {"type": "string", "format": "datetime"}
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -10,9 +10,9 @@
"type": "object",
"required": ["subject", "list", "createdAt"],
"properties": {
"subject": {"type": "string", "format": "did"},
"list": {"type": "string", "format": "at-uri"},
"createdAt": {"type": "string", "format": "datetime"}
"subject": { "type": "string", "format": "did" },
"list": { "type": "string", "format": "at-uri" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -7,7 +7,7 @@
"parameters": {
"type": "params",
"properties": {
"seenAt": { "type": "string", "format": "datetime"}
"seenAt": { "type": "string", "format": "datetime" }
}
},
"output": {
@ -16,7 +16,7 @@
"type": "object",
"required": ["count"],
"properties": {
"count": { "type": "integer"}
"count": { "type": "integer" }
}
}
}

View File

@ -7,9 +7,14 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"},
"seenAt": { "type": "string", "format": "datetime"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" },
"seenAt": { "type": "string", "format": "datetime" }
}
},
"output": {
@ -18,10 +23,10 @@
"type": "object",
"required": ["notifications"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"notifications": {
"type": "array",
"items": {"type": "ref", "ref": "#notification"}
"items": { "type": "ref", "ref": "#notification" }
}
}
}
@ -29,23 +34,38 @@
},
"notification": {
"type": "object",
"required": ["uri", "cid", "author", "reason", "record", "isRead", "indexedAt"],
"required": [
"uri",
"cid",
"author",
"reason",
"record",
"isRead",
"indexedAt"
],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid" },
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"author": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
"reason": {
"type": "string",
"description": "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'.",
"knownValues": ["like", "repost", "follow", "mention", "reply", "quote"]
"knownValues": [
"like",
"repost",
"follow",
"mention",
"reply",
"quote"
]
},
"reasonSubject": {"type": "string", "format": "at-uri"},
"record": {"type": "unknown"},
"isRead": {"type": "boolean"},
"indexedAt": {"type": "string", "format": "datetime"},
"reasonSubject": { "type": "string", "format": "at-uri" },
"record": { "type": "unknown" },
"isRead": { "type": "boolean" },
"indexedAt": { "type": "string", "format": "datetime" },
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
}
}
}

View File

@ -11,10 +11,13 @@
"type": "object",
"required": ["serviceDid", "token", "platform", "appId"],
"properties": {
"serviceDid": {"type": "string", "format": "did"},
"token": {"type": "string"},
"platform": {"type": "string", "knownValues": ["ios", "android", "web"]},
"appId": {"type": "string"}
"serviceDid": { "type": "string", "format": "did" },
"token": { "type": "string" },
"platform": {
"type": "string",
"knownValues": ["ios", "android", "web"]
},
"appId": { "type": "string" }
}
}
}

View File

@ -11,7 +11,7 @@
"type": "object",
"required": ["seenAt"],
"properties": {
"seenAt": { "type": "string", "format": "datetime"}
"seenAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -6,10 +6,10 @@
"type": "object",
"required": ["index", "features"],
"properties": {
"index": {"type": "ref", "ref": "#byteSlice"},
"index": { "type": "ref", "ref": "#byteSlice" },
"features": {
"type": "array",
"items": {"type": "union", "refs": ["#mention", "#link"]}
"items": { "type": "union", "refs": ["#mention", "#link"] }
}
}
},
@ -18,7 +18,7 @@
"description": "A facet feature for actor mentions.",
"required": ["did"],
"properties": {
"did": {"type": "string", "format": "did"}
"did": { "type": "string", "format": "did" }
}
},
"link": {
@ -26,7 +26,7 @@
"description": "A facet feature for links.",
"required": ["uri"],
"properties": {
"uri": {"type": "string", "format": "uri"}
"uri": { "type": "string", "format": "uri" }
}
},
"byteSlice": {
@ -34,8 +34,8 @@
"description": "A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.",
"required": ["byteStart", "byteEnd"],
"properties": {
"byteStart": {"type": "integer", "minimum": 0},
"byteEnd": {"type": "integer", "minimum": 0}
"byteStart": { "type": "integer", "minimum": 0 },
"byteEnd": { "type": "integer", "minimum": 0 }
}
}
}

View File

@ -8,9 +8,14 @@
"parameters": {
"type": "params",
"properties": {
"includeNsfw": {"type": "boolean", "default": false},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"includeNsfw": { "type": "boolean", "default": false },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -19,10 +24,13 @@
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#feedViewPost"
}
}
}
}

View File

@ -8,9 +8,14 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"},
"query": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" },
"query": { "type": "string" }
}
},
"output": {
@ -19,10 +24,13 @@
"type": "object",
"required": ["feeds"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feeds": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#generatorView"
}
}
}
}

View File

@ -8,8 +8,13 @@
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -18,17 +23,18 @@
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"}
"items": {
"type": "ref",
"ref": "app.bsky.feed.defs#skeletonFeedPost"
}
}
}
}
},
"errors": [
{"name": "UnknownFeed"}
]
"errors": [{ "name": "UnknownFeed" }]
}
}
}

View File

@ -12,11 +12,11 @@
"properties": {
"codes": {
"type": "array",
"items": {"type": "string"}
"items": { "type": "string" }
},
"accounts": {
"type": "array",
"items": {"type": "string"}
"items": { "type": "string" }
}
}
}

View File

@ -10,14 +10,16 @@
"properties": {
"sort": {
"type": "string",
"knownValues": [
"recent",
"usage"
],
"knownValues": ["recent", "usage"],
"default": "recent"
},
"limit": {"type": "integer", "minimum": 1, "maximum": 500, "default": 100},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"default": 100
},
"cursor": { "type": "string" }
}
},
"output": {
@ -26,10 +28,13 @@
"type": "object",
"required": ["codes"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"codes": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.server.defs#inviteCode"}
"items": {
"type": "ref",
"ref": "com.atproto.server.defs#inviteCode"
}
}
}
}

View File

@ -9,12 +9,15 @@
"type": "params",
"required": ["id"],
"properties": {
"id": {"type": "integer"}
"id": { "type": "integer" }
}
},
"output": {
"encoding": "application/json",
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#actionViewDetail"}
"schema": {
"type": "ref",
"ref": "com.atproto.admin.defs#actionViewDetail"
}
}
}
}

View File

@ -8,9 +8,14 @@
"parameters": {
"type": "params",
"properties": {
"subject": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"subject": { "type": "string" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -19,8 +24,14 @@
"type": "object",
"required": ["actions"],
"properties": {
"cursor": {"type": "string"},
"actions": {"type": "array", "items": {"type": "ref", "ref": "com.atproto.admin.defs#actionView"}}
"cursor": { "type": "string" },
"actions": {
"type": "array",
"items": {
"type": "ref",
"ref": "com.atproto.admin.defs#actionView"
}
}
}
}
}

View File

@ -9,12 +9,15 @@
"type": "params",
"required": ["id"],
"properties": {
"id": {"type": "integer"}
"id": { "type": "integer" }
}
},
"output": {
"encoding": "application/json",
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#reportViewDetail"}
"schema": {
"type": "ref",
"ref": "com.atproto.admin.defs#reportViewDetail"
}
}
}
}

View File

@ -9,17 +9,18 @@
"type": "params",
"required": ["uri"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" }
}
},
"output": {
"encoding": "application/json",
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#recordViewDetail"}
"schema": {
"type": "ref",
"ref": "com.atproto.admin.defs#recordViewDetail"
}
},
"errors": [
{"name": "RecordNotFound"}
]
"errors": [{ "name": "RecordNotFound" }]
}
}
}

View File

@ -9,16 +9,17 @@
"type": "params",
"required": ["did"],
"properties": {
"did": {"type": "string", "format":"did"}
"did": { "type": "string", "format": "did" }
}
},
"output": {
"encoding": "application/json",
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#repoViewDetail"}
"schema": {
"type": "ref",
"ref": "com.atproto.admin.defs#repoViewDetail"
}
},
"errors": [
{"name": "RepoNotFound"}
]
"errors": [{ "name": "RepoNotFound" }]
}
}
}

View File

@ -11,9 +11,9 @@
"type": "object",
"required": ["actionId", "reportIds", "createdBy"],
"properties": {
"actionId": {"type": "integer"},
"reportIds": {"type": "array", "items": {"type": "integer"}},
"createdBy": {"type": "string", "format": "did"}
"actionId": { "type": "integer" },
"reportIds": { "type": "array", "items": { "type": "integer" } },
"createdBy": { "type": "string", "format": "did" }
}
}
},

View File

@ -11,9 +11,9 @@
"type": "object",
"required": ["id", "reason", "createdBy"],
"properties": {
"id": {"type": "integer"},
"reason": {"type": "string"},
"createdBy": {"type": "string", "format": "did"}
"id": { "type": "integer" },
"reason": { "type": "string" },
"createdBy": { "type": "string", "format": "did" }
}
}
},

View File

@ -8,10 +8,15 @@
"parameters": {
"type": "params",
"properties": {
"term": {"type": "string"},
"invitedBy": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
"term": { "type": "string" },
"invitedBy": { "type": "string" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -20,8 +25,14 @@
"type": "object",
"required": ["repos"],
"properties": {
"cursor": {"type": "string"},
"repos": {"type": "array", "items": {"type": "ref", "ref": "com.atproto.admin.defs#repoView"}}
"cursor": { "type": "string" },
"repos": {
"type": "array",
"items": {
"type": "ref",
"ref": "com.atproto.admin.defs#repoView"
}
}
}
}
}

View File

@ -16,7 +16,7 @@
"format": "at-identifier",
"description": "The handle or DID of the repo."
},
"email": {"type": "string"}
"email": { "type": "string" }
}
}
}

View File

@ -11,8 +11,8 @@
"type": "object",
"required": ["did", "handle"],
"properties": {
"did": {"type": "string", "format": "did"},
"handle": {"type": "string", "format": "handle"}
"did": { "type": "string", "format": "did" },
"handle": { "type": "string", "format": "handle" }
}
}
}

View File

@ -22,7 +22,7 @@
"type": "object",
"required": ["did"],
"properties": {
"did": {"type": "string", "format": "did"}
"did": { "type": "string", "format": "did" }
}
}
}

View File

@ -11,7 +11,7 @@
"type": "object",
"required": ["handle"],
"properties": {
"handle": {"type": "string", "format": "handle"}
"handle": { "type": "string", "format": "handle" }
}
}
}

View File

@ -11,16 +11,21 @@
"properties": {
"uriPatterns": {
"type": "array",
"items": {"type": "string"},
"items": { "type": "string" },
"description": "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI"
},
"sources": {
"type": "array",
"items": {"type": "string", "format": "did"},
"items": { "type": "string", "format": "did" },
"description": "Optional list of label sources (DIDs) to filter on"
},
"limit": {"type": "integer", "minimum": 1, "maximum": 250, "default": 50},
"cursor": {"type": "string"}
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 250,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
@ -29,10 +34,10 @@
"type": "object",
"required": ["labels"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
}
}
}

View File

@ -17,21 +17,16 @@
"message": {
"schema": {
"type": "union",
"refs": [
"#labels",
"#info"
]
"refs": ["#labels", "#info"]
}
},
"errors": [
{"name": "FutureCursor"}
]
"errors": [{ "name": "FutureCursor" }]
},
"labels": {
"type": "object",
"required": ["seq", "labels"],
"properties": {
"seq": {"type": "integer"},
"seq": { "type": "integer" },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }

View File

@ -11,8 +11,11 @@
"type": "object",
"required": ["reasonType", "subject"],
"properties": {
"reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"},
"reason": {"type": "string"},
"reasonType": {
"type": "ref",
"ref": "com.atproto.moderation.defs#reasonType"
},
"reason": { "type": "string" },
"subject": {
"type": "union",
"refs": [
@ -27,11 +30,20 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["id", "reasonType", "subject", "reportedBy", "createdAt"],
"required": [
"id",
"reasonType",
"subject",
"reportedBy",
"createdAt"
],
"properties": {
"id": {"type": "integer"},
"reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"},
"reason": {"type": "string"},
"id": { "type": "integer" },
"reasonType": {
"type": "ref",
"ref": "com.atproto.moderation.defs#reasonType"
},
"reason": { "type": "string" },
"subject": {
"type": "union",
"refs": [
@ -39,8 +51,8 @@
"com.atproto.repo.strongRef"
]
},
"reportedBy": {"type": "string", "format": "did"},
"createdAt": {"type": "string", "format": "datetime"}
"reportedBy": { "type": "string", "format": "did" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -23,7 +23,11 @@
},
"writes": {
"type": "array",
"items": {"type": "union", "refs": ["#create", "#update", "#delete"], "closed": true}
"items": {
"type": "union",
"refs": ["#create", "#update", "#delete"],
"closed": true
}
},
"swapCommit": {
"type": "string",
@ -32,18 +36,16 @@
}
}
},
"errors": [
{"name": "InvalidSwap"}
]
"errors": [{ "name": "InvalidSwap" }]
},
"create": {
"type": "object",
"description": "Create a new record.",
"required": ["collection", "value"],
"properties": {
"collection": {"type": "string", "format": "nsid"},
"rkey": {"type": "string", "maxLength": 15},
"value": {"type": "unknown"}
"collection": { "type": "string", "format": "nsid" },
"rkey": { "type": "string", "maxLength": 15 },
"value": { "type": "unknown" }
}
},
"update": {
@ -51,9 +53,9 @@
"description": "Update an existing record.",
"required": ["collection", "rkey", "value"],
"properties": {
"collection": {"type": "string", "format": "nsid"},
"rkey": {"type": "string"},
"value": {"type": "unknown"}
"collection": { "type": "string", "format": "nsid" },
"rkey": { "type": "string" },
"value": { "type": "unknown" }
}
},
"delete": {
@ -61,8 +63,8 @@
"description": "Delete an existing record.",
"required": ["collection", "rkey"],
"properties": {
"collection": {"type": "string", "format": "nsid"},
"rkey": {"type": "string"}
"collection": { "type": "string", "format": "nsid" },
"rkey": { "type": "string" }
}
}
}

View File

@ -49,14 +49,12 @@
"type": "object",
"required": ["uri", "cid"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" }
}
}
},
"errors": [
{"name": "InvalidSwap"}
]
"errors": [{ "name": "InvalidSwap" }]
}
}
}

View File

@ -38,9 +38,7 @@
}
}
},
"errors": [
{"name": "InvalidSwap"}
]
"errors": [{ "name": "InvalidSwap" }]
}
}
}

View File

@ -20,13 +20,22 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["handle", "did", "didDoc", "collections", "handleIsCorrect"],
"required": [
"handle",
"did",
"didDoc",
"collections",
"handleIsCorrect"
],
"properties": {
"handle": {"type": "string", "format": "handle"},
"did": {"type": "string", "format": "did"},
"didDoc": {"type": "unknown"},
"collections": {"type": "array", "items": {"type": "string", "format": "nsid"}},
"handleIsCorrect": {"type": "boolean"}
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" },
"didDoc": { "type": "unknown" },
"collections": {
"type": "array",
"items": { "type": "string", "format": "nsid" }
},
"handleIsCorrect": { "type": "boolean" }
}
}
}

View File

@ -19,7 +19,7 @@
"format": "nsid",
"description": "The NSID of the record collection."
},
"rkey": {"type": "string", "description": "The key of the record."},
"rkey": { "type": "string", "description": "The key of the record." },
"cid": {
"type": "string",
"format": "cid",
@ -33,9 +33,9 @@
"type": "object",
"required": ["uri", "value"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"value": {"type": "unknown"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"value": { "type": "unknown" }
}
}
}

View File

@ -9,13 +9,36 @@
"type": "params",
"required": ["repo", "collection"],
"properties": {
"repo": {"type": "string", "format": "at-identifier", "description": "The handle or DID of the repo."},
"collection": {"type": "string", "format": "nsid", "description": "The NSID of the record type."},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50, "description": "The number of records to return."},
"cursor": {"type": "string"},
"rkeyStart": {"type": "string", "description": "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)"},
"rkeyEnd": {"type": "string", "description": "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)"},
"reverse": {"type": "boolean", "description": "Reverse the order of the returned records?"}
"repo": {
"type": "string",
"format": "at-identifier",
"description": "The handle or DID of the repo."
},
"collection": {
"type": "string",
"format": "nsid",
"description": "The NSID of the record type."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50,
"description": "The number of records to return."
},
"cursor": { "type": "string" },
"rkeyStart": {
"type": "string",
"description": "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)"
},
"rkeyEnd": {
"type": "string",
"description": "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)"
},
"reverse": {
"type": "boolean",
"description": "Reverse the order of the returned records?"
}
}
},
"output": {
@ -24,10 +47,10 @@
"type": "object",
"required": ["records"],
"properties": {
"cursor": {"type": "string"},
"cursor": { "type": "string" },
"records": {
"type": "array",
"items": {"type": "ref", "ref": "#record"}
"items": { "type": "ref", "ref": "#record" }
}
}
}
@ -37,9 +60,9 @@
"type": "object",
"required": ["uri", "cid", "value"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"},
"value": {"type": "unknown"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"value": { "type": "unknown" }
}
}
}

View File

@ -55,14 +55,12 @@
"type": "object",
"required": ["uri", "cid"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" }
}
}
},
"errors": [
{"name": "InvalidSwap"}
]
"errors": [{ "name": "InvalidSwap" }]
}
}
}

View File

@ -7,8 +7,8 @@
"type": "object",
"required": ["uri", "cid"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"cid": {"type": "string", "format": "cid"}
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" }
}
}
}

View File

@ -14,7 +14,7 @@
"type": "object",
"required": ["blob"],
"properties": {
"blob": {"type": "blob"}
"blob": { "type": "blob" }
}
}
}

View File

@ -11,12 +11,12 @@
"type": "object",
"required": ["handle", "email", "password"],
"properties": {
"email": {"type": "string"},
"handle": {"type": "string", "format": "handle"},
"did": {"type": "string", "format": "did"},
"inviteCode": {"type": "string"},
"password": {"type": "string"},
"recoveryKey": {"type": "string"}
"email": { "type": "string" },
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" },
"inviteCode": { "type": "string" },
"password": { "type": "string" },
"recoveryKey": { "type": "string" }
}
}
},
@ -34,13 +34,13 @@
}
},
"errors": [
{"name": "InvalidHandle"},
{"name": "InvalidPassword"},
{"name": "InvalidInviteCode"},
{"name": "HandleNotAvailable"},
{"name": "UnsupportedDomain"},
{"name": "UnresolvableDid"},
{"name": "IncompatibleDidDoc"}
{ "name": "InvalidHandle" },
{ "name": "InvalidPassword" },
{ "name": "InvalidInviteCode" },
{ "name": "HandleNotAvailable" },
{ "name": "UnsupportedDomain" },
{ "name": "UnresolvableDid" },
{ "name": "IncompatibleDidDoc" }
]
}
}

View File

@ -11,7 +11,7 @@
"type": "object",
"required": ["name"],
"properties": {
"name": {"type": "string"}
"name": { "type": "string" }
}
}
},
@ -22,17 +22,15 @@
"ref": "#appPassword"
}
},
"errors": [
{"name": "AccountTakedown"}
]
"errors": [{ "name": "AccountTakedown" }]
},
"appPassword": {
"type": "object",
"required": ["name", "password", "createdAt"],
"properties": {
"name": {"type": "string"},
"password": {"type": "string"},
"createdAt": {"type": "string", "format": "datetime"}
"name": { "type": "string" },
"password": { "type": "string" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -11,8 +11,8 @@
"type": "object",
"required": ["useCount"],
"properties": {
"useCount": {"type": "integer"},
"forAccount": {"type": "string", "format": "did"}
"useCount": { "type": "integer" },
"forAccount": { "type": "string", "format": "did" }
}
}
},

View File

@ -11,11 +11,11 @@
"type": "object",
"required": ["codeCount", "useCount"],
"properties": {
"codeCount": {"type": "integer", "default": 1},
"useCount": {"type": "integer"},
"codeCount": { "type": "integer", "default": 1 },
"useCount": { "type": "integer" },
"forAccounts": {
"type": "array",
"items": {"type": "string", "format": "did"}
"items": { "type": "string", "format": "did" }
}
}
}
@ -28,7 +28,7 @@
"properties": {
"codes": {
"type": "array",
"items": {"type": "ref", "ref": "#accountCodes"}
"items": { "type": "ref", "ref": "#accountCodes" }
}
}
}
@ -38,10 +38,10 @@
"type": "object",
"required": ["account", "codes"],
"properties": {
"account": {"type": "string"},
"account": { "type": "string" },
"codes": {
"type": "array",
"items": {"type": "string"}
"items": { "type": "string" }
}
}
}

View File

@ -15,7 +15,7 @@
"type": "string",
"description": "Handle or other identifier supported by the server for the authenticating user."
},
"password": {"type": "string"}
"password": { "type": "string" }
}
}
},
@ -25,17 +25,15 @@
"type": "object",
"required": ["accessJwt", "refreshJwt", "handle", "did"],
"properties": {
"accessJwt": {"type": "string"},
"refreshJwt": {"type": "string"},
"handle": {"type": "string", "format": "handle"},
"did": {"type": "string", "format": "did"},
"email": {"type": "string"}
"accessJwt": { "type": "string" },
"refreshJwt": { "type": "string" },
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" },
"email": { "type": "string" }
}
}
},
"errors": [
{"name": "AccountTakedown"}
]
"errors": [{ "name": "AccountTakedown" }]
}
}
}

View File

@ -4,17 +4,25 @@
"defs": {
"inviteCode": {
"type": "object",
"required": ["code", "available", "disabled", "forAccount", "createdBy", "createdAt", "uses"],
"required": [
"code",
"available",
"disabled",
"forAccount",
"createdBy",
"createdAt",
"uses"
],
"properties": {
"code": {"type": "string"},
"available": {"type": "integer"},
"disabled": {"type": "boolean"},
"forAccount": {"type": "string"},
"createdBy": {"type": "string"},
"createdAt": {"type": "string", "format": "datetime"},
"code": { "type": "string" },
"available": { "type": "integer" },
"disabled": { "type": "boolean" },
"forAccount": { "type": "string" },
"createdBy": { "type": "string" },
"createdAt": { "type": "string", "format": "datetime" },
"uses": {
"type": "array",
"items": {"type": "ref", "ref": "#inviteCodeUse"}
"items": { "type": "ref", "ref": "#inviteCodeUse" }
}
}
},
@ -22,8 +30,8 @@
"type": "object",
"required": ["usedBy", "usedAt"],
"properties": {
"usedBy": {"type": "string", "format": "did"},
"usedAt": {"type": "string", "format": "datetime"}
"usedBy": { "type": "string", "format": "did" },
"usedAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -11,9 +11,12 @@
"type": "object",
"required": ["availableUserDomains"],
"properties": {
"inviteCodeRequired": {"type": "boolean"},
"availableUserDomains": {"type": "array", "items": {"type": "string"}},
"links": {"type": "ref", "ref": "#links"}
"inviteCodeRequired": { "type": "boolean" },
"availableUserDomains": {
"type": "array",
"items": { "type": "string" }
},
"links": { "type": "ref", "ref": "#links" }
}
}
}
@ -21,8 +24,8 @@
"links": {
"type": "object",
"properties": {
"privacyPolicy": {"type": "string"},
"termsOfService": {"type": "string"}
"privacyPolicy": { "type": "string" },
"termsOfService": { "type": "string" }
}
}
}

View File

@ -28,9 +28,7 @@
}
}
},
"errors": [
{"name": "DuplicateCreate"}
]
"errors": [{ "name": "DuplicateCreate" }]
}
}
}

View File

@ -11,9 +11,9 @@
"type": "object",
"required": ["handle", "did"],
"properties": {
"handle": {"type": "string", "format": "handle"},
"did": {"type": "string", "format": "did"},
"email": {"type": "string"}
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" },
"email": { "type": "string" }
}
}
}

View File

@ -13,21 +13,19 @@
"properties": {
"passwords": {
"type": "array",
"items": {"type": "ref", "ref": "#appPassword"}
"items": { "type": "ref", "ref": "#appPassword" }
}
}
}
},
"errors": [
{"name": "AccountTakedown"}
]
"errors": [{ "name": "AccountTakedown" }]
},
"appPassword": {
"type": "object",
"required": ["name", "createdAt"],
"properties": {
"name": {"type": "string"},
"createdAt": {"type": "string", "format": "datetime"}
"name": { "type": "string" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}

View File

@ -11,16 +11,14 @@
"type": "object",
"required": ["accessJwt", "refreshJwt", "handle", "did"],
"properties": {
"accessJwt": {"type": "string"},
"refreshJwt": {"type": "string"},
"handle": {"type": "string", "format": "handle"},
"did": {"type": "string", "format": "did"}
"accessJwt": { "type": "string" },
"refreshJwt": { "type": "string" },
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" }
}
}
},
"errors": [
{"name": "AccountTakedown"}
]
"errors": [{ "name": "AccountTakedown" }]
}
}
}

View File

@ -11,7 +11,7 @@
"type": "object",
"required": ["name"],
"properties": {
"name": {"type": "string"}
"name": { "type": "string" }
}
}
}

View File

@ -9,8 +9,16 @@
"type": "params",
"required": ["did", "cid"],
"properties": {
"did": {"type": "string", "format": "did", "description": "The DID of the repo."},
"cid": {"type": "string", "format": "cid", "description": "The CID of the blob to fetch"}
"did": {
"type": "string",
"format": "did",
"description": "The DID of the repo."
},
"cid": {
"type": "string",
"format": "cid",
"description": "The CID of the blob to fetch"
}
}
},
"output": {

View File

@ -16,7 +16,7 @@
},
"cids": {
"type": "array",
"items": {"type": "string", "format": "cid"}
"items": { "type": "string", "format": "cid" }
}
}
},

View File

@ -22,13 +22,11 @@
"type": "object",
"required": ["root"],
"properties": {
"root": {"type": "string", "format": "cid"}
"root": { "type": "string", "format": "cid" }
}
}
},
"errors": [
{"name": "HeadNotFound"}
]
"errors": [{ "name": "HeadNotFound" }]
}
}
}

Some files were not shown because too many files have changed in this diff Show More