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:
parent
b3eb3d76a0
commit
a7c42cfe39
3
.eslintignore
Normal file
3
.eslintignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
packages/api/src/client
|
||||||
|
packages/bsky/src/lexicon
|
||||||
|
packages/pds/src/lexicon
|
@ -13,7 +13,7 @@
|
|||||||
"plugin:prettier/recommended",
|
"plugin:prettier/recommended",
|
||||||
"prettier"
|
"prettier"
|
||||||
],
|
],
|
||||||
"ignorePatterns":[
|
"ignorePatterns": [
|
||||||
"dist",
|
"dist",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"jest.config.base.js",
|
"jest.config.base.js",
|
||||||
@ -26,7 +26,11 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"no-var": "error",
|
"no-var": "error",
|
||||||
"prefer-const": "warn",
|
"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/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/no-empty-interface": "off",
|
"@typescript-eslint/no-empty-interface": "off",
|
||||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||||
|
6
.github/ISSUE_TEMPLATE/bug_report.md
vendored
6
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -4,10 +4,10 @@ about: Create a report to help us improve
|
|||||||
title: ''
|
title: ''
|
||||||
labels: bug
|
labels: bug
|
||||||
assignees: ''
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Describe the bug**
|
**Describe the bug**
|
||||||
|
|
||||||
<!-- A clear and concise description of what the bug is. -->
|
<!-- A clear and concise description of what the bug is. -->
|
||||||
|
|
||||||
**To Reproduce**
|
**To Reproduce**
|
||||||
@ -22,8 +22,8 @@ Steps to reproduce the behavior:
|
|||||||
|
|
||||||
**Details**
|
**Details**
|
||||||
|
|
||||||
- Operating system:
|
- Operating system:
|
||||||
- Node version:
|
- Node version:
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
|
|
||||||
|
1
.github/ISSUE_TEMPLATE/feature_request.md
vendored
1
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@ -4,7 +4,6 @@ about: Suggest an idea for this project
|
|||||||
title: ''
|
title: ''
|
||||||
labels: feature-request
|
labels: feature-request
|
||||||
assignees: ''
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
6
.github/workflows/publish.yaml
vendored
6
.github/workflows/publish.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: "pnpm"
|
cache: 'pnpm'
|
||||||
- run: pnpm i --frozen-lockfile
|
- run: pnpm i --frozen-lockfile
|
||||||
- run: pnpm verify
|
- run: pnpm verify
|
||||||
- name: Publish
|
- name: Publish
|
||||||
@ -30,5 +30,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
publish: pnpm release
|
publish: pnpm release
|
||||||
version: pnpm version-packages
|
version: pnpm version-packages
|
||||||
commit: "Version packages"
|
commit: 'Version packages'
|
||||||
title: "Version packages"
|
title: 'Version packages'
|
||||||
|
6
.github/workflows/repo.yaml
vendored
6
.github/workflows/repo.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: "pnpm"
|
cache: 'pnpm'
|
||||||
- run: pnpm i --frozen-lockfile
|
- run: pnpm i --frozen-lockfile
|
||||||
- run: pnpm build
|
- run: pnpm build
|
||||||
test:
|
test:
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: "pnpm"
|
cache: 'pnpm'
|
||||||
- run: pnpm i --frozen-lockfile
|
- run: pnpm i --frozen-lockfile
|
||||||
- run: pnpm test:withFlags --maxWorkers=1 --shard=${{ matrix.shard }} --passWithNoTests
|
- run: pnpm test:withFlags --maxWorkers=1 --shard=${{ matrix.shard }} --passWithNoTests
|
||||||
verify:
|
verify:
|
||||||
@ -52,6 +52,6 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: "pnpm"
|
cache: 'pnpm'
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile
|
||||||
- run: pnpm verify
|
- run: pnpm verify
|
||||||
|
9
.prettierignore
Normal file
9
.prettierignore
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
build
|
||||||
|
.nyc_output
|
||||||
|
coverage
|
||||||
|
pnpm-lock.yaml
|
||||||
|
.pnpm*
|
||||||
|
.changeset
|
||||||
|
*.d.ts
|
@ -14,4 +14,4 @@ ATProto receives so many contributions that we could never list everyone who des
|
|||||||
|
|
||||||
#### [TowhidKashem](https://github.com/TowhidKashem), Security disclosure, May 2023
|
#### [TowhidKashem](https://github.com/TowhidKashem), Security disclosure, May 2023
|
||||||
|
|
||||||
#### [DavidBuchanan314](https://github.com/DavidBuchanan314), Security disclosure, May 2023
|
#### [DavidBuchanan314](https://github.com/DavidBuchanan314), Security disclosure, May 2023
|
||||||
|
2
Makefile
2
Makefile
@ -44,7 +44,7 @@ lint: ## Run style checks and verify syntax
|
|||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt: ## Run syntax re-formatting
|
fmt: ## Run syntax re-formatting
|
||||||
pnpm prettier
|
pnpm format
|
||||||
|
|
||||||
.PHONY: deps
|
.PHONY: deps
|
||||||
deps: ## Installs dependent libs using 'pnpm install'
|
deps: ## Installs dependent libs using 'pnpm install'
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
## Reporting a Vulnerability
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
Please do NOT report possible security vulnerabilities in public channels such as GitHub Issues. If you believe you have found a security vulnerability, please email us at `security@bsky.app` with a description of the issue.
|
Please do NOT report possible security vulnerabilities in public channels such as GitHub Issues. If you believe you have found a security vulnerability, please email us at `security@bsky.app` with a description of the issue.
|
||||||
|
|
||||||
We will acknowledge the vulnerability as soon as possible - within 3 business days - and follow up when a fix lands. Please avoid discussing the vulnerability until we do so.
|
We will acknowledge the vulnerability as soon as possible - within 3 business days - and follow up when a fix lands. Please avoid discussing the vulnerability until we do so.
|
||||||
|
|
||||||
With your consent, we will add you to the repository [CONTRIBUTORS](https://github.com/bluesky-social/atproto/blob/main/CONTRIBUTORS.md) file.
|
With your consent, we will add you to the repository [CONTRIBUTORS](https://github.com/bluesky-social/atproto/blob/main/CONTRIBUTORS.md) file.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Jest doesn't like ES modules, so we need to transpile them
|
// Jest doesn't like ES modules, so we need to transpile them
|
||||||
// For each one, add them to this list, add them to
|
// For each one, add them to this list, add them to
|
||||||
// "workspaces.nohoist" in the root package.json, and
|
// "workspaces.nohoist" in the root package.json, and
|
||||||
// make sure that a babel.config.js is in the package root
|
// make sure that a babel.config.js is in the package root
|
||||||
const esModules = ['get-port', 'node-fetch'].join('|')
|
const esModules = ['get-port', 'node-fetch'].join('|')
|
||||||
@ -8,12 +8,12 @@ const esModules = ['get-port', 'node-fetch'].join('|')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
||||||
transform: {
|
transform: {
|
||||||
"^.+\\.(t|j)s?$": "@swc/jest",
|
'^.+\\.(t|j)s?$': '@swc/jest',
|
||||||
},
|
},
|
||||||
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${esModules})`],
|
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${esModules})`],
|
||||||
testRegex: '(/tests/.*.(test|spec)).(jsx?|tsx?)$',
|
testRegex: '(/tests/.*.(test|spec)).(jsx?|tsx?)$',
|
||||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
||||||
setupFiles: ["<rootDir>/../../test-setup.ts"],
|
setupFiles: ['<rootDir>/../../test-setup.ts'],
|
||||||
verbose: true,
|
verbose: true,
|
||||||
testTimeout: 60000
|
testTimeout: 60000,
|
||||||
}
|
}
|
||||||
|
@ -7,18 +7,18 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did", "handle"],
|
"required": ["did", "handle"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"handle": {"type": "string", "format": "handle"},
|
"handle": { "type": "string", "format": "handle" },
|
||||||
"displayName": {
|
"displayName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxGraphemes": 64,
|
"maxGraphemes": 64,
|
||||||
"maxLength": 640
|
"maxLength": 640
|
||||||
},
|
},
|
||||||
"avatar": { "type": "string" },
|
"avatar": { "type": "string" },
|
||||||
"viewer": {"type": "ref", "ref": "#viewerState"},
|
"viewer": { "type": "ref", "ref": "#viewerState" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"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",
|
"type": "object",
|
||||||
"required": ["did", "handle"],
|
"required": ["did", "handle"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format":"did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"handle": {"type": "string", "format":"handle"},
|
"handle": { "type": "string", "format": "handle" },
|
||||||
"displayName": {
|
"displayName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxGraphemes": 64,
|
"maxGraphemes": 64,
|
||||||
@ -39,11 +39,11 @@
|
|||||||
"maxLength": 2560
|
"maxLength": 2560
|
||||||
},
|
},
|
||||||
"avatar": { "type": "string" },
|
"avatar": { "type": "string" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"},
|
"indexedAt": { "type": "string", "format": "datetime" },
|
||||||
"viewer": {"type": "ref", "ref": "#viewerState"},
|
"viewer": { "type": "ref", "ref": "#viewerState" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"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",
|
"type": "object",
|
||||||
"required": ["did", "handle"],
|
"required": ["did", "handle"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"handle": {"type": "string", "format": "handle"},
|
"handle": { "type": "string", "format": "handle" },
|
||||||
"displayName": {
|
"displayName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxGraphemes": 64,
|
"maxGraphemes": 64,
|
||||||
@ -65,52 +65,54 @@
|
|||||||
},
|
},
|
||||||
"avatar": { "type": "string" },
|
"avatar": { "type": "string" },
|
||||||
"banner": { "type": "string" },
|
"banner": { "type": "string" },
|
||||||
"followersCount": {"type": "integer"},
|
"followersCount": { "type": "integer" },
|
||||||
"followsCount": {"type": "integer"},
|
"followsCount": { "type": "integer" },
|
||||||
"postsCount": {"type": "integer"},
|
"postsCount": { "type": "integer" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"},
|
"indexedAt": { "type": "string", "format": "datetime" },
|
||||||
"viewer": {"type": "ref", "ref": "#viewerState"},
|
"viewer": { "type": "ref", "ref": "#viewerState" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
|
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewerState": {
|
"viewerState": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"muted": {"type": "boolean"},
|
"muted": { "type": "boolean" },
|
||||||
"mutedByList": {"type": "ref", "ref": "app.bsky.graph.defs#listViewBasic"},
|
"mutedByList": {
|
||||||
"blockedBy": {"type": "boolean"},
|
"type": "ref",
|
||||||
"blocking": {"type": "string", "format": "at-uri"},
|
"ref": "app.bsky.graph.defs#listViewBasic"
|
||||||
"following": {"type": "string", "format": "at-uri"},
|
},
|
||||||
"followedBy": {"type": "string", "format": "at-uri"}
|
"blockedBy": { "type": "boolean" },
|
||||||
|
"blocking": { "type": "string", "format": "at-uri" },
|
||||||
|
"following": { "type": "string", "format": "at-uri" },
|
||||||
|
"followedBy": { "type": "string", "format": "at-uri" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"preferences": {
|
"preferences": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": ["#adultContentPref", "#contentLabelPref", "#savedFeedsPref"]
|
||||||
"#adultContentPref",
|
|
||||||
"#contentLabelPref",
|
|
||||||
"#savedFeedsPref"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"adultContentPref": {
|
"adultContentPref": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["enabled"],
|
"required": ["enabled"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {"type": "boolean", "default": false}
|
"enabled": { "type": "boolean", "default": false }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"contentLabelPref": {
|
"contentLabelPref": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["label", "visibility"],
|
"required": ["label", "visibility"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"label": {"type": "string"},
|
"label": { "type": "string" },
|
||||||
"visibility": {"type": "string", "knownValues": ["show", "warn", "hide"]}
|
"visibility": {
|
||||||
|
"type": "string",
|
||||||
|
"knownValues": ["show", "warn", "hide"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"savedFeedsPref": {
|
"savedFeedsPref": {
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
"description": "Get private preferences attached to the account.",
|
"description": "Get private preferences attached to the account.",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
|
@ -8,12 +8,15 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["actor"],
|
"required": ["actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actor": {"type": "string", "format": "at-identifier"}
|
"actor": { "type": "string", "format": "at-identifier" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"}
|
"schema": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileViewDetailed"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"actors": {
|
"actors": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string", "format": "at-identifier"},
|
"items": { "type": "string", "format": "at-identifier" },
|
||||||
"maxLength": 25
|
"maxLength": 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -23,7 +23,10 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileViewDetailed"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,13 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,10 +23,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["actors"],
|
"required": ["actors"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"actors": {
|
"actors": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,14 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"term": {"type": "string"},
|
"term": { "type": "string" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -19,10 +24,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["actors"],
|
"required": ["actors"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"actors": {
|
"actors": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,13 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"term": {"type": "string"},
|
"term": { "type": "string" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}
|
"limit": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,7 +25,10 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"actors": {
|
"actors": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
},
|
},
|
||||||
"external": {
|
"external": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "title", "description"],
|
"required": ["uri", "title", "description"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "uri"},
|
"uri": { "type": "string", "format": "uri" },
|
||||||
"title": {"type": "string"},
|
"title": { "type": "string" },
|
||||||
"description": {"type": "string"},
|
"description": { "type": "string" },
|
||||||
"thumb": {
|
"thumb": {
|
||||||
"type": "blob",
|
"type": "blob",
|
||||||
"accept": ["image/*"],
|
"accept": ["image/*"],
|
||||||
@ -39,12 +39,12 @@
|
|||||||
},
|
},
|
||||||
"viewExternal": {
|
"viewExternal": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "title", "description"],
|
"required": ["uri", "title", "description"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "uri"},
|
"uri": { "type": "string", "format": "uri" },
|
||||||
"title": {"type": "string"},
|
"title": { "type": "string" },
|
||||||
"description": {"type": "string"},
|
"description": { "type": "string" },
|
||||||
"thumb": {"type": "string"}
|
"thumb": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"images": {
|
"images": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#image"},
|
"items": { "type": "ref", "ref": "#image" },
|
||||||
"maxLength": 4
|
"maxLength": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -23,8 +23,8 @@
|
|||||||
"accept": ["image/*"],
|
"accept": ["image/*"],
|
||||||
"maxSize": 1000000
|
"maxSize": 1000000
|
||||||
},
|
},
|
||||||
"alt": {"type": "string"},
|
"alt": { "type": "string" },
|
||||||
"aspectRatio": {"type": "ref", "ref": "#aspectRatio"}
|
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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.",
|
"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"],
|
"required": ["width", "height"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"width": {"type": "integer", "minimum": 1},
|
"width": { "type": "integer", "minimum": 1 },
|
||||||
"height": {"type": "integer", "minimum": 1}
|
"height": { "type": "integer", "minimum": 1 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"view": {
|
"view": {
|
||||||
@ -42,7 +42,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"images": {
|
"images": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#viewImage"},
|
"items": { "type": "ref", "ref": "#viewImage" },
|
||||||
"maxLength": 4
|
"maxLength": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -51,10 +51,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["thumb", "fullsize", "alt"],
|
"required": ["thumb", "fullsize", "alt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"thumb": {"type": "string"},
|
"thumb": { "type": "string" },
|
||||||
"fullsize": {"type": "string"},
|
"fullsize": { "type": "string" },
|
||||||
"alt": {"type": "string"},
|
"alt": { "type": "string" },
|
||||||
"aspectRatio": {"type": "ref", "ref": "#aspectRatio"}
|
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["record"],
|
"required": ["record"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"record": {"type": "ref", "ref": "com.atproto.repo.strongRef"}
|
"record": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"view": {
|
"view": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["record"],
|
"required": ["record"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"record": {
|
"record": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
@ -28,15 +28,18 @@
|
|||||||
},
|
},
|
||||||
"viewRecord": {
|
"viewRecord": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid", "author", "value", "indexedAt"],
|
"required": ["uri", "cid", "author", "value", "indexedAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
|
"author": {
|
||||||
"value": {"type": "unknown"},
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||||
|
},
|
||||||
|
"value": { "type": "unknown" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
|
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
||||||
},
|
},
|
||||||
"embeds": {
|
"embeds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@ -50,24 +53,24 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"indexedAt": {"type": "string", "format": "datetime"}
|
"indexedAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewNotFound": {
|
"viewNotFound": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "notFound"],
|
"required": ["uri", "notFound"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"notFound": {"type": "boolean", "const": true}
|
"notFound": { "type": "boolean", "const": true }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewBlocked": {
|
"viewBlocked": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "blocked", "author"],
|
"required": ["uri", "blocked", "author"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"blocked": {"type": "boolean", "const": true},
|
"blocked": { "type": "boolean", "const": true },
|
||||||
"author": {"type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor"}
|
"author": { "type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,7 @@
|
|||||||
},
|
},
|
||||||
"media": {
|
"media": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": ["app.bsky.embed.images", "app.bsky.embed.external"]
|
||||||
"app.bsky.embed.images",
|
|
||||||
"app.bsky.embed.external"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -30,10 +27,7 @@
|
|||||||
},
|
},
|
||||||
"media": {
|
"media": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": ["app.bsky.embed.images#view", "app.bsky.embed.external#view"]
|
||||||
"app.bsky.embed.images#view",
|
|
||||||
"app.bsky.embed.external#view"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,10 +6,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid", "author", "record", "indexedAt"],
|
"required": ["uri", "cid", "author", "record", "indexedAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
|
"author": {
|
||||||
"record": {"type": "unknown"},
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||||
|
},
|
||||||
|
"record": { "type": "unknown" },
|
||||||
"embed": {
|
"embed": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": [
|
||||||
@ -19,58 +22,70 @@
|
|||||||
"app.bsky.embed.recordWithMedia#view"
|
"app.bsky.embed.recordWithMedia#view"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"replyCount": {"type": "integer"},
|
"replyCount": { "type": "integer" },
|
||||||
"repostCount": {"type": "integer"},
|
"repostCount": { "type": "integer" },
|
||||||
"likeCount": {"type": "integer"},
|
"likeCount": { "type": "integer" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"},
|
"indexedAt": { "type": "string", "format": "datetime" },
|
||||||
"viewer": {"type": "ref", "ref": "#viewerState"},
|
"viewer": { "type": "ref", "ref": "#viewerState" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
|
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewerState": {
|
"viewerState": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"repost": {"type": "string", "format": "at-uri"},
|
"repost": { "type": "string", "format": "at-uri" },
|
||||||
"like": {"type": "string", "format": "at-uri"}
|
"like": { "type": "string", "format": "at-uri" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"feedViewPost": {
|
"feedViewPost": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["post"],
|
"required": ["post"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"post": {"type": "ref", "ref": "#postView"},
|
"post": { "type": "ref", "ref": "#postView" },
|
||||||
"reply": {"type": "ref", "ref": "#replyRef"},
|
"reply": { "type": "ref", "ref": "#replyRef" },
|
||||||
"reason": {"type": "union", "refs": ["#reasonRepost"]}
|
"reason": { "type": "union", "refs": ["#reasonRepost"] }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"replyRef": {
|
"replyRef": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["root", "parent"],
|
"required": ["root", "parent"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"root": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]},
|
"root": {
|
||||||
"parent": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]}
|
"type": "union",
|
||||||
|
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
|
||||||
|
},
|
||||||
|
"parent": {
|
||||||
|
"type": "union",
|
||||||
|
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"reasonRepost": {
|
"reasonRepost": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["by", "indexedAt"],
|
"required": ["by", "indexedAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"by": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
|
"by": { "type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"}
|
"indexedAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"threadViewPost": {
|
"threadViewPost": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["post"],
|
"required": ["post"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"post": {"type": "ref", "ref": "#postView"},
|
"post": { "type": "ref", "ref": "#postView" },
|
||||||
"parent": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]},
|
"parent": {
|
||||||
|
"type": "union",
|
||||||
|
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
|
||||||
|
},
|
||||||
"replies": {
|
"replies": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]}
|
"items": {
|
||||||
|
"type": "union",
|
||||||
|
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -78,24 +93,24 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "notFound"],
|
"required": ["uri", "notFound"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"notFound": {"type": "boolean", "const": true}
|
"notFound": { "type": "boolean", "const": true }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"blockedPost": {
|
"blockedPost": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "blocked", "author"],
|
"required": ["uri", "blocked", "author"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"blocked": {"type": "boolean", "const": true},
|
"blocked": { "type": "boolean", "const": true },
|
||||||
"author": {"type": "ref", "ref": "#blockedAuthor"}
|
"author": { "type": "ref", "ref": "#blockedAuthor" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"blockedAuthor": {
|
"blockedAuthor": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did"],
|
"required": ["did"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"viewer": { "type": "ref", "ref": "app.bsky.actor.defs#viewerState" }
|
"viewer": { "type": "ref", "ref": "app.bsky.actor.defs#viewerState" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -103,41 +118,45 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid", "did", "creator", "displayName", "indexedAt"],
|
"required": ["uri", "cid", "did", "creator", "displayName", "indexedAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"creator": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
|
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
|
||||||
"displayName": {"type": "string"},
|
"displayName": { "type": "string" },
|
||||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"maxGraphemes": 300,
|
||||||
|
"maxLength": 3000
|
||||||
|
},
|
||||||
"descriptionFacets": {
|
"descriptionFacets": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
|
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||||
},
|
},
|
||||||
"avatar": {"type": "string"},
|
"avatar": { "type": "string" },
|
||||||
"likeCount": {"type": "integer", "minimum": 0 },
|
"likeCount": { "type": "integer", "minimum": 0 },
|
||||||
"viewer": {"type": "ref", "ref": "#generatorViewerState"},
|
"viewer": { "type": "ref", "ref": "#generatorViewerState" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"}
|
"indexedAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"generatorViewerState": {
|
"generatorViewerState": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"like": {"type": "string", "format": "at-uri"}
|
"like": { "type": "string", "format": "at-uri" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skeletonFeedPost": {
|
"skeletonFeedPost": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["post"],
|
"required": ["post"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"post": {"type": "string", "format": "at-uri"},
|
"post": { "type": "string", "format": "at-uri" },
|
||||||
"reason": {"type": "union", "refs": ["#skeletonReasonRepost"]}
|
"reason": { "type": "union", "refs": ["#skeletonReasonRepost"] }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skeletonReasonRepost": {
|
"skeletonReasonRepost": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["repost"],
|
"required": ["repost"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"repost": {"type": "string", "format": "at-uri"}
|
"repost": { "type": "string", "format": "at-uri" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did", "feeds"],
|
"required": ["did", "feeds"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"feeds": {
|
"feeds": {
|
||||||
"type": "array",
|
"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",
|
"type": "object",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"}
|
"uri": { "type": "string", "format": "at-uri" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"links": {
|
"links": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"privacyPolicy": {"type": "string"},
|
"privacyPolicy": { "type": "string" },
|
||||||
"termsOfService": {"type": "string"}
|
"termsOfService": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,20 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did", "displayName", "createdAt"],
|
"required": ["did", "displayName", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"displayName": {"type": "string", "maxGraphemes": 24, "maxLength": 240},
|
"displayName": {
|
||||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
"type": "string",
|
||||||
|
"maxGraphemes": 24,
|
||||||
|
"maxLength": 240
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"maxGraphemes": 300,
|
||||||
|
"maxLength": 3000
|
||||||
|
},
|
||||||
"descriptionFacets": {
|
"descriptionFacets": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
|
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||||
},
|
},
|
||||||
"avatar": {
|
"avatar": {
|
||||||
"type": "blob",
|
"type": "blob",
|
||||||
@ -26,7 +34,7 @@
|
|||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": ["com.atproto.label.defs#selfLabels"]
|
"refs": ["com.atproto.label.defs#selfLabels"]
|
||||||
},
|
},
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["actor"],
|
"required": ["actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actor": {"type": "string", "format": "at-identifier"},
|
"actor": { "type": "string", "format": "at-identifier" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,10 +25,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feeds"],
|
"required": ["feeds"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feeds": {
|
"feeds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#generatorView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["actor"],
|
"required": ["actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actor": {"type": "string", "format": "at-identifier"},
|
"actor": { "type": "string", "format": "at-identifier" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,18 +25,18 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feed": {
|
"feed": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }]
|
||||||
{"name": "BlockedActor"},
|
|
||||||
{"name": "BlockedByActor"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,23 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["actor"],
|
"required": ["actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actor": {"type": "string", "format": "at-identifier"},
|
"actor": { "type": "string", "format": "at-identifier" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"},
|
"type": "integer",
|
||||||
"filter": {"type": "string", "knownValues": ["posts_with_replies", "posts_no_replies", "posts_with_media"], "default": "posts_with_replies"}
|
"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": {
|
"output": {
|
||||||
@ -21,18 +34,18 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feed": {
|
"feed": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }]
|
||||||
{"name": "BlockedActor"},
|
|
||||||
{"name": "BlockedByActor"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"feed": {"type": "string", "format": "at-uri"},
|
"feed": { "type": "string", "format": "at-uri" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,17 +25,18 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feed": {
|
"feed": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "UnknownFeed" }]
|
||||||
{"name": "UnknownFeed"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"feed": {"type": "string", "format": "at-uri"}
|
"feed": { "type": "string", "format": "at-uri" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,9 +18,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["view", "isOnline", "isValid"],
|
"required": ["view", "isOnline", "isValid"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"view": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"},
|
"view": {
|
||||||
"isOnline": {"type": "boolean"},
|
"type": "ref",
|
||||||
"isValid": {"type": "boolean"}
|
"ref": "app.bsky.feed.defs#generatorView"
|
||||||
|
},
|
||||||
|
"isOnline": { "type": "boolean" },
|
||||||
|
"isValid": { "type": "boolean" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"feeds": {
|
"feeds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string", "format": "at-uri"}
|
"items": { "type": "string", "format": "at-uri" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -23,7 +23,10 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"feeds": {
|
"feeds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#generatorView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"feed": {"type": "string", "format": "at-uri"},
|
"feed": { "type": "string", "format": "at-uri" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,17 +25,18 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feed": {
|
"feed": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#skeletonFeedPost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "UnknownFeed" }]
|
||||||
{"name": "UnknownFeed"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,15 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,12 +25,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "likes"],
|
"required": ["uri", "likes"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"likes": {
|
"likes": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#like"}
|
"items": { "type": "ref", "ref": "#like" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,9 +40,9 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["indexedAt", "createdAt", "actor"],
|
"required": ["indexedAt", "createdAt", "actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"indexedAt": {"type": "string", "format": "datetime"},
|
"indexedAt": { "type": "string", "format": "datetime" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"},
|
"createdAt": { "type": "string", "format": "datetime" },
|
||||||
"actor": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"actor": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"depth": {
|
"depth": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 6,
|
"default": 6,
|
||||||
@ -40,9 +40,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "NotFound" }]
|
||||||
{"name": "NotFound"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"uris": {
|
"uris": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string", "format": "at-uri"},
|
"items": { "type": "string", "format": "at-uri" },
|
||||||
"maxLength": 25
|
"maxLength": 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -24,7 +24,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"posts": {
|
"posts": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#postView"}
|
"items": { "type": "ref", "ref": "app.bsky.feed.defs#postView" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,15 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,12 +25,15 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "repostedBy"],
|
"required": ["uri", "repostedBy"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"repostedBy": {
|
"repostedBy": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,13 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,10 +23,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feeds"],
|
"required": ["feeds"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feeds": {
|
"feeds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#generatorView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,14 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"algorithm": {"type": "string"},
|
"algorithm": { "type": "string" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -19,10 +24,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feed": {
|
"feed": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject", "createdAt"],
|
"required": ["subject", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "ref", "ref": "com.atproto.repo.strongRef"},
|
"subject": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,17 +9,17 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["text", "createdAt"],
|
"required": ["text", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"text": {"type": "string", "maxLength": 3000, "maxGraphemes": 300},
|
"text": { "type": "string", "maxLength": 3000, "maxGraphemes": 300 },
|
||||||
"entities": {
|
"entities": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Deprecated: replaced by app.bsky.richtext.facet.",
|
"description": "Deprecated: replaced by app.bsky.richtext.facet.",
|
||||||
"items": {"type": "ref", "ref": "#entity"}
|
"items": { "type": "ref", "ref": "#entity" }
|
||||||
},
|
},
|
||||||
"facets": {
|
"facets": {
|
||||||
"type": "array",
|
"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": {
|
"embed": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": [
|
||||||
@ -32,22 +32,22 @@
|
|||||||
"langs": {
|
"langs": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"maxLength": 3,
|
"maxLength": 3,
|
||||||
"items": {"type": "string", "format": "language"}
|
"items": { "type": "string", "format": "language" }
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": ["com.atproto.label.defs#selfLabels"]
|
"refs": ["com.atproto.label.defs#selfLabels"]
|
||||||
},
|
},
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"replyRef":{
|
"replyRef": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["root", "parent"],
|
"required": ["root", "parent"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"root": {"type": "ref", "ref": "com.atproto.repo.strongRef"},
|
"root": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
|
||||||
"parent": {"type": "ref", "ref": "com.atproto.repo.strongRef"}
|
"parent": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"entity": {
|
"entity": {
|
||||||
@ -55,12 +55,12 @@
|
|||||||
"description": "Deprecated: use facets instead.",
|
"description": "Deprecated: use facets instead.",
|
||||||
"required": ["index", "type", "value"],
|
"required": ["index", "type", "value"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"index": {"type": "ref", "ref": "#textSlice"},
|
"index": { "type": "ref", "ref": "#textSlice" },
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Expected values are 'mention' and 'link'."
|
"description": "Expected values are 'mention' and 'link'."
|
||||||
},
|
},
|
||||||
"value": {"type": "string"}
|
"value": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"textSlice": {
|
"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.",
|
"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"],
|
"required": ["start", "end"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"start": {"type": "integer", "minimum": 0},
|
"start": { "type": "integer", "minimum": 0 },
|
||||||
"end": {"type": "integer", "minimum": 0}
|
"end": { "type": "integer", "minimum": 0 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject", "createdAt"],
|
"required": ["subject", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "ref", "ref": "com.atproto.repo.strongRef"},
|
"subject": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject", "createdAt"],
|
"required": ["subject", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "string", "format": "did"},
|
"subject": { "type": "string", "format": "did" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,46 +6,48 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid", "name", "purpose"],
|
"required": ["uri", "cid", "name", "purpose"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"name": {"type": "string", "maxLength": 64, "minLength": 1},
|
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
|
||||||
"purpose": {"type": "ref", "ref": "#listPurpose"},
|
"purpose": { "type": "ref", "ref": "#listPurpose" },
|
||||||
"avatar": {"type": "string"},
|
"avatar": { "type": "string" },
|
||||||
"viewer": {"type": "ref", "ref": "#listViewerState"},
|
"viewer": { "type": "ref", "ref": "#listViewerState" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"}
|
"indexedAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"listView": {
|
"listView": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid", "creator", "name", "purpose", "indexedAt"],
|
"required": ["uri", "cid", "creator", "name", "purpose", "indexedAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"creator": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
|
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
|
||||||
"name": {"type": "string", "maxLength": 64, "minLength": 1},
|
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
|
||||||
"purpose": {"type": "ref", "ref": "#listPurpose"},
|
"purpose": { "type": "ref", "ref": "#listPurpose" },
|
||||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"maxGraphemes": 300,
|
||||||
|
"maxLength": 3000
|
||||||
|
},
|
||||||
"descriptionFacets": {
|
"descriptionFacets": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
|
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||||
},
|
},
|
||||||
"avatar": {"type": "string"},
|
"avatar": { "type": "string" },
|
||||||
"viewer": {"type": "ref", "ref": "#listViewerState"},
|
"viewer": { "type": "ref", "ref": "#listViewerState" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"}
|
"indexedAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"listItemView": {
|
"listItemView": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject"],
|
"required": ["subject"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"subject": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"listPurpose": {
|
"listPurpose": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"knownValues": [
|
"knownValues": ["app.bsky.graph.defs#modlist"]
|
||||||
"app.bsky.graph.defs#modlist"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"modlist": {
|
"modlist": {
|
||||||
"type": "token",
|
"type": "token",
|
||||||
@ -54,7 +56,7 @@
|
|||||||
"listViewerState": {
|
"listViewerState": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"muted": {"type": "boolean"}
|
"muted": { "type": "boolean" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject", "createdAt"],
|
"required": ["subject", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "string", "format": "did"},
|
"subject": { "type": "string", "format": "did" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,13 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,10 +23,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["blocks"],
|
"required": ["blocks"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"blocks": {
|
"blocks": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["actor"],
|
"required": ["actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actor": {"type": "string", "format": "at-identifier"},
|
"actor": { "type": "string", "format": "at-identifier" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,11 +25,17 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject", "followers"],
|
"required": ["subject", "followers"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
|
"subject": {
|
||||||
"cursor": {"type": "string"},
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" },
|
||||||
"followers": {
|
"followers": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["actor"],
|
"required": ["actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actor": {"type": "string", "format": "at-identifier"},
|
"actor": { "type": "string", "format": "at-identifier" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,11 +25,17 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject", "follows"],
|
"required": ["subject", "follows"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
|
"subject": {
|
||||||
"cursor": {"type": "string"},
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" },
|
||||||
"follows": {
|
"follows": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["list"],
|
"required": ["list"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"list": {"type": "string", "format": "at-uri"},
|
"list": { "type": "string", "format": "at-uri" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,11 +25,14 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["list", "items"],
|
"required": ["list", "items"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"list": {"type": "ref", "ref": "app.bsky.graph.defs#listView"},
|
"list": { "type": "ref", "ref": "app.bsky.graph.defs#listView" },
|
||||||
"items": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listItemView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.graph.defs#listItemView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,13 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,10 +23,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["lists"],
|
"required": ["lists"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"lists": {
|
"lists": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listView"}
|
"items": { "type": "ref", "ref": "app.bsky.graph.defs#listView" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,14 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["actor"],
|
"required": ["actor"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actor": {"type": "string", "format": "at-identifier"},
|
"actor": { "type": "string", "format": "at-identifier" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,10 +25,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["lists"],
|
"required": ["lists"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"lists": {
|
"lists": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listView"}
|
"items": { "type": "ref", "ref": "app.bsky.graph.defs#listView" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,13 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,10 +23,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["mutes"],
|
"required": ["mutes"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"mutes": {
|
"mutes": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.actor.defs#profileView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,19 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["name", "purpose", "createdAt"],
|
"required": ["name", "purpose", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"purpose": {"type": "ref", "ref": "app.bsky.graph.defs#listPurpose"},
|
"purpose": {
|
||||||
"name": {"type": "string", "maxLength": 64, "minLength": 1},
|
"type": "ref",
|
||||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
"ref": "app.bsky.graph.defs#listPurpose"
|
||||||
|
},
|
||||||
|
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"maxGraphemes": 300,
|
||||||
|
"maxLength": 3000
|
||||||
|
},
|
||||||
"descriptionFacets": {
|
"descriptionFacets": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
|
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||||
},
|
},
|
||||||
"avatar": {
|
"avatar": {
|
||||||
"type": "blob",
|
"type": "blob",
|
||||||
@ -26,7 +33,7 @@
|
|||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": ["com.atproto.label.defs#selfLabels"]
|
"refs": ["com.atproto.label.defs#selfLabels"]
|
||||||
},
|
},
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["subject", "list", "createdAt"],
|
"required": ["subject", "list", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "string", "format": "did"},
|
"subject": { "type": "string", "format": "did" },
|
||||||
"list": {"type": "string", "format": "at-uri"},
|
"list": { "type": "string", "format": "at-uri" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"seenAt": { "type": "string", "format": "datetime"}
|
"seenAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -16,7 +16,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["count"],
|
"required": ["count"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"count": { "type": "integer"}
|
"count": { "type": "integer" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,9 +7,14 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"},
|
"type": "integer",
|
||||||
"seenAt": { "type": "string", "format": "datetime"}
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" },
|
||||||
|
"seenAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,10 +23,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["notifications"],
|
"required": ["notifications"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#notification"}
|
"items": { "type": "ref", "ref": "#notification" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -29,23 +34,38 @@
|
|||||||
},
|
},
|
||||||
"notification": {
|
"notification": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid", "author", "reason", "record", "isRead", "indexedAt"],
|
"required": [
|
||||||
|
"uri",
|
||||||
|
"cid",
|
||||||
|
"author",
|
||||||
|
"reason",
|
||||||
|
"record",
|
||||||
|
"isRead",
|
||||||
|
"indexedAt"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid" },
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
|
"author": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
|
||||||
"reason": {
|
"reason": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'.",
|
"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"},
|
"reasonSubject": { "type": "string", "format": "at-uri" },
|
||||||
"record": {"type": "unknown"},
|
"record": { "type": "unknown" },
|
||||||
"isRead": {"type": "boolean"},
|
"isRead": { "type": "boolean" },
|
||||||
"indexedAt": {"type": "string", "format": "datetime"},
|
"indexedAt": { "type": "string", "format": "datetime" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
|
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["serviceDid", "token", "platform", "appId"],
|
"required": ["serviceDid", "token", "platform", "appId"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"serviceDid": {"type": "string", "format": "did"},
|
"serviceDid": { "type": "string", "format": "did" },
|
||||||
"token": {"type": "string"},
|
"token": { "type": "string" },
|
||||||
"platform": {"type": "string", "knownValues": ["ios", "android", "web"]},
|
"platform": {
|
||||||
"appId": {"type": "string"}
|
"type": "string",
|
||||||
|
"knownValues": ["ios", "android", "web"]
|
||||||
|
},
|
||||||
|
"appId": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["seenAt"],
|
"required": ["seenAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"seenAt": { "type": "string", "format": "datetime"}
|
"seenAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["index", "features"],
|
"required": ["index", "features"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"index": {"type": "ref", "ref": "#byteSlice"},
|
"index": { "type": "ref", "ref": "#byteSlice" },
|
||||||
"features": {
|
"features": {
|
||||||
"type": "array",
|
"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.",
|
"description": "A facet feature for actor mentions.",
|
||||||
"required": ["did"],
|
"required": ["did"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"}
|
"did": { "type": "string", "format": "did" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"link": {
|
"link": {
|
||||||
@ -26,7 +26,7 @@
|
|||||||
"description": "A facet feature for links.",
|
"description": "A facet feature for links.",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "uri"}
|
"uri": { "type": "string", "format": "uri" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"byteSlice": {
|
"byteSlice": {
|
||||||
@ -34,8 +34,8 @@
|
|||||||
"description": "A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.",
|
"description": "A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.",
|
||||||
"required": ["byteStart", "byteEnd"],
|
"required": ["byteStart", "byteEnd"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"byteStart": {"type": "integer", "minimum": 0},
|
"byteStart": { "type": "integer", "minimum": 0 },
|
||||||
"byteEnd": {"type": "integer", "minimum": 0}
|
"byteEnd": { "type": "integer", "minimum": 0 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,14 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"includeNsfw": {"type": "boolean", "default": false},
|
"includeNsfw": { "type": "boolean", "default": false },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -19,10 +24,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feed": {
|
"feed": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,14 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"},
|
"type": "integer",
|
||||||
"query": {"type": "string"}
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" },
|
||||||
|
"query": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -19,10 +24,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feeds"],
|
"required": ["feeds"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feeds": {
|
"feeds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#generatorView"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,13 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -18,17 +23,18 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["feed"],
|
"required": ["feed"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"feed": {
|
"feed": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "app.bsky.feed.defs#skeletonFeedPost"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "UnknownFeed" }]
|
||||||
{"name": "UnknownFeed"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"codes": {
|
"codes": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string"}
|
"items": { "type": "string" }
|
||||||
},
|
},
|
||||||
"accounts": {
|
"accounts": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string"}
|
"items": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,16 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"sort": {
|
"sort": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"knownValues": [
|
"knownValues": ["recent", "usage"],
|
||||||
"recent",
|
|
||||||
"usage"
|
|
||||||
],
|
|
||||||
"default": "recent"
|
"default": "recent"
|
||||||
},
|
},
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 500, "default": 100},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 500,
|
||||||
|
"default": 100
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -26,10 +28,13 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["codes"],
|
"required": ["codes"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"codes": {
|
"codes": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "com.atproto.server.defs#inviteCode"}
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.server.defs#inviteCode"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,12 +9,15 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["id"],
|
"required": ["id"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {"type": "integer"}
|
"id": { "type": "integer" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#actionViewDetail"}
|
"schema": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.admin.defs#actionViewDetail"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,14 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"subject": {"type": "string"},
|
"subject": { "type": "string" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -19,8 +24,14 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["actions"],
|
"required": ["actions"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"actions": {"type": "array", "items": {"type": "ref", "ref": "com.atproto.admin.defs#actionView"}}
|
"actions": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.admin.defs#actionView"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,12 +9,15 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["id"],
|
"required": ["id"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {"type": "integer"}
|
"id": { "type": "integer" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#reportViewDetail"}
|
"schema": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.admin.defs#reportViewDetail"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,17 +9,18 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["uri"],
|
"required": ["uri"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"}
|
"cid": { "type": "string", "format": "cid" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#recordViewDetail"}
|
"schema": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.admin.defs#recordViewDetail"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "RecordNotFound" }]
|
||||||
{"name": "RecordNotFound"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,16 +9,17 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["did"],
|
"required": ["did"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format":"did"}
|
"did": { "type": "string", "format": "did" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#repoViewDetail"}
|
"schema": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.admin.defs#repoViewDetail"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "RepoNotFound" }]
|
||||||
{"name": "RepoNotFound"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["actionId", "reportIds", "createdBy"],
|
"required": ["actionId", "reportIds", "createdBy"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"actionId": {"type": "integer"},
|
"actionId": { "type": "integer" },
|
||||||
"reportIds": {"type": "array", "items": {"type": "integer"}},
|
"reportIds": { "type": "array", "items": { "type": "integer" } },
|
||||||
"createdBy": {"type": "string", "format": "did"}
|
"createdBy": { "type": "string", "format": "did" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["id", "reason", "createdBy"],
|
"required": ["id", "reason", "createdBy"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {"type": "integer"},
|
"id": { "type": "integer" },
|
||||||
"reason": {"type": "string"},
|
"reason": { "type": "string" },
|
||||||
"createdBy": {"type": "string", "format": "did"}
|
"createdBy": { "type": "string", "format": "did" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -8,10 +8,15 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "params",
|
"type": "params",
|
||||||
"properties": {
|
"properties": {
|
||||||
"term": {"type": "string"},
|
"term": { "type": "string" },
|
||||||
"invitedBy": {"type": "string"},
|
"invitedBy": { "type": "string" },
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 100,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -20,8 +25,14 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["repos"],
|
"required": ["repos"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"repos": {"type": "array", "items": {"type": "ref", "ref": "com.atproto.admin.defs#repoView"}}
|
"repos": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.admin.defs#repoView"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
"format": "at-identifier",
|
"format": "at-identifier",
|
||||||
"description": "The handle or DID of the repo."
|
"description": "The handle or DID of the repo."
|
||||||
},
|
},
|
||||||
"email": {"type": "string"}
|
"email": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did", "handle"],
|
"required": ["did", "handle"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"handle": {"type": "string", "format": "handle"}
|
"handle": { "type": "string", "format": "handle" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,10 +22,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did"],
|
"required": ["did"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": {"type": "string", "format": "did"}
|
"did": { "type": "string", "format": "did" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["handle"],
|
"required": ["handle"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"handle": {"type": "string", "format": "handle"}
|
"handle": { "type": "string", "format": "handle" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,17 +10,22 @@
|
|||||||
"required": ["uriPatterns"],
|
"required": ["uriPatterns"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uriPatterns": {
|
"uriPatterns": {
|
||||||
"type": "array",
|
"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"
|
"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": {
|
"sources": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string", "format": "did"},
|
"items": { "type": "string", "format": "did" },
|
||||||
"description": "Optional list of label sources (DIDs) to filter on"
|
"description": "Optional list of label sources (DIDs) to filter on"
|
||||||
},
|
},
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 250, "default": 50},
|
"limit": {
|
||||||
"cursor": {"type": "string"}
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 250,
|
||||||
|
"default": 50
|
||||||
|
},
|
||||||
|
"cursor": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"output": {
|
"output": {
|
||||||
@ -29,10 +34,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["labels"],
|
"required": ["labels"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
|
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,21 +17,16 @@
|
|||||||
"message": {
|
"message": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": ["#labels", "#info"]
|
||||||
"#labels",
|
|
||||||
"#info"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "FutureCursor" }]
|
||||||
{"name": "FutureCursor"}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["seq", "labels"],
|
"required": ["seq", "labels"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"seq": {"type": "integer"},
|
"seq": { "type": "integer" },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
||||||
|
@ -11,8 +11,11 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["reasonType", "subject"],
|
"required": ["reasonType", "subject"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"},
|
"reasonType": {
|
||||||
"reason": {"type": "string"},
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.moderation.defs#reasonType"
|
||||||
|
},
|
||||||
|
"reason": { "type": "string" },
|
||||||
"subject": {
|
"subject": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": [
|
||||||
@ -27,11 +30,20 @@
|
|||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["id", "reasonType", "subject", "reportedBy", "createdAt"],
|
"required": [
|
||||||
|
"id",
|
||||||
|
"reasonType",
|
||||||
|
"subject",
|
||||||
|
"reportedBy",
|
||||||
|
"createdAt"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {"type": "integer"},
|
"id": { "type": "integer" },
|
||||||
"reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"},
|
"reasonType": {
|
||||||
"reason": {"type": "string"},
|
"type": "ref",
|
||||||
|
"ref": "com.atproto.moderation.defs#reasonType"
|
||||||
|
},
|
||||||
|
"reason": { "type": "string" },
|
||||||
"subject": {
|
"subject": {
|
||||||
"type": "union",
|
"type": "union",
|
||||||
"refs": [
|
"refs": [
|
||||||
@ -39,8 +51,8 @@
|
|||||||
"com.atproto.repo.strongRef"
|
"com.atproto.repo.strongRef"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"reportedBy": {"type": "string", "format": "did"},
|
"reportedBy": { "type": "string", "format": "did" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,41 +1,41 @@
|
|||||||
{
|
{
|
||||||
"lexicon": 1,
|
"lexicon": 1,
|
||||||
"id": "com.atproto.moderation.defs",
|
"id": "com.atproto.moderation.defs",
|
||||||
"defs": {
|
"defs": {
|
||||||
"reasonType": {
|
"reasonType": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"knownValues": [
|
"knownValues": [
|
||||||
"com.atproto.moderation.defs#reasonSpam",
|
"com.atproto.moderation.defs#reasonSpam",
|
||||||
"com.atproto.moderation.defs#reasonViolation",
|
"com.atproto.moderation.defs#reasonViolation",
|
||||||
"com.atproto.moderation.defs#reasonMisleading",
|
"com.atproto.moderation.defs#reasonMisleading",
|
||||||
"com.atproto.moderation.defs#reasonSexual",
|
"com.atproto.moderation.defs#reasonSexual",
|
||||||
"com.atproto.moderation.defs#reasonRude",
|
"com.atproto.moderation.defs#reasonRude",
|
||||||
"com.atproto.moderation.defs#reasonOther"
|
"com.atproto.moderation.defs#reasonOther"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"reasonSpam": {
|
"reasonSpam": {
|
||||||
"type": "token",
|
"type": "token",
|
||||||
"description": "Spam: frequent unwanted promotion, replies, mentions"
|
"description": "Spam: frequent unwanted promotion, replies, mentions"
|
||||||
},
|
},
|
||||||
"reasonViolation": {
|
"reasonViolation": {
|
||||||
"type": "token",
|
"type": "token",
|
||||||
"description": "Direct violation of server rules, laws, terms of service"
|
"description": "Direct violation of server rules, laws, terms of service"
|
||||||
},
|
},
|
||||||
"reasonMisleading": {
|
"reasonMisleading": {
|
||||||
"type": "token",
|
"type": "token",
|
||||||
"description": "Misleading identity, affiliation, or content"
|
"description": "Misleading identity, affiliation, or content"
|
||||||
},
|
},
|
||||||
"reasonSexual": {
|
"reasonSexual": {
|
||||||
"type": "token",
|
"type": "token",
|
||||||
"description": "Unwanted or mislabeled sexual content"
|
"description": "Unwanted or mislabeled sexual content"
|
||||||
},
|
},
|
||||||
"reasonRude": {
|
"reasonRude": {
|
||||||
"type": "token",
|
"type": "token",
|
||||||
"description": "Rude, harassing, explicit, or otherwise unwelcoming behavior"
|
"description": "Rude, harassing, explicit, or otherwise unwelcoming behavior"
|
||||||
},
|
},
|
||||||
"reasonOther": {
|
"reasonOther": {
|
||||||
"type": "token",
|
"type": "token",
|
||||||
"description": "Other: reports not falling under another report category"
|
"description": "Other: reports not falling under another report category"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,11 @@
|
|||||||
},
|
},
|
||||||
"writes": {
|
"writes": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "union", "refs": ["#create", "#update", "#delete"], "closed": true}
|
"items": {
|
||||||
|
"type": "union",
|
||||||
|
"refs": ["#create", "#update", "#delete"],
|
||||||
|
"closed": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"swapCommit": {
|
"swapCommit": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -32,18 +36,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "InvalidSwap" }]
|
||||||
{"name": "InvalidSwap"}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"create": {
|
"create": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Create a new record.",
|
"description": "Create a new record.",
|
||||||
"required": ["collection", "value"],
|
"required": ["collection", "value"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"collection": {"type": "string", "format": "nsid"},
|
"collection": { "type": "string", "format": "nsid" },
|
||||||
"rkey": {"type": "string", "maxLength": 15},
|
"rkey": { "type": "string", "maxLength": 15 },
|
||||||
"value": {"type": "unknown"}
|
"value": { "type": "unknown" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"update": {
|
"update": {
|
||||||
@ -51,9 +53,9 @@
|
|||||||
"description": "Update an existing record.",
|
"description": "Update an existing record.",
|
||||||
"required": ["collection", "rkey", "value"],
|
"required": ["collection", "rkey", "value"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"collection": {"type": "string", "format": "nsid"},
|
"collection": { "type": "string", "format": "nsid" },
|
||||||
"rkey": {"type": "string"},
|
"rkey": { "type": "string" },
|
||||||
"value": {"type": "unknown"}
|
"value": { "type": "unknown" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
@ -61,8 +63,8 @@
|
|||||||
"description": "Delete an existing record.",
|
"description": "Delete an existing record.",
|
||||||
"required": ["collection", "rkey"],
|
"required": ["collection", "rkey"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"collection": {"type": "string", "format": "nsid"},
|
"collection": { "type": "string", "format": "nsid" },
|
||||||
"rkey": {"type": "string"}
|
"rkey": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,14 +49,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid"],
|
"required": ["uri", "cid"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"}
|
"cid": { "type": "string", "format": "cid" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "InvalidSwap" }]
|
||||||
{"name": "InvalidSwap"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,9 +38,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "InvalidSwap" }]
|
||||||
{"name": "InvalidSwap"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,16 +20,25 @@
|
|||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["handle", "did", "didDoc", "collections", "handleIsCorrect"],
|
"required": [
|
||||||
|
"handle",
|
||||||
|
"did",
|
||||||
|
"didDoc",
|
||||||
|
"collections",
|
||||||
|
"handleIsCorrect"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"handle": {"type": "string", "format": "handle"},
|
"handle": { "type": "string", "format": "handle" },
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"didDoc": {"type": "unknown"},
|
"didDoc": { "type": "unknown" },
|
||||||
"collections": {"type": "array", "items": {"type": "string", "format": "nsid"}},
|
"collections": {
|
||||||
"handleIsCorrect": {"type": "boolean"}
|
"type": "array",
|
||||||
|
"items": { "type": "string", "format": "nsid" }
|
||||||
|
},
|
||||||
|
"handleIsCorrect": { "type": "boolean" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"format": "nsid",
|
"format": "nsid",
|
||||||
"description": "The NSID of the record collection."
|
"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": {
|
"cid": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "cid",
|
"format": "cid",
|
||||||
@ -33,9 +33,9 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "value"],
|
"required": ["uri", "value"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"value": {"type": "unknown"}
|
"value": { "type": "unknown" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,13 +9,36 @@
|
|||||||
"type": "params",
|
"type": "params",
|
||||||
"required": ["repo", "collection"],
|
"required": ["repo", "collection"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"repo": {"type": "string", "format": "at-identifier", "description": "The handle or DID of the repo."},
|
"repo": {
|
||||||
"collection": {"type": "string", "format": "nsid", "description": "The NSID of the record type."},
|
"type": "string",
|
||||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50, "description": "The number of records to return."},
|
"format": "at-identifier",
|
||||||
"cursor": {"type": "string"},
|
"description": "The handle or DID of the repo."
|
||||||
"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)"},
|
"collection": {
|
||||||
"reverse": {"type": "boolean", "description": "Reverse the order of the returned records?"}
|
"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": {
|
"output": {
|
||||||
@ -24,10 +47,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["records"],
|
"required": ["records"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"cursor": {"type": "string"},
|
"cursor": { "type": "string" },
|
||||||
"records": {
|
"records": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#record"}
|
"items": { "type": "ref", "ref": "#record" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -37,10 +60,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid", "value"],
|
"required": ["uri", "cid", "value"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"},
|
"cid": { "type": "string", "format": "cid" },
|
||||||
"value": {"type": "unknown"}
|
"value": { "type": "unknown" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,14 +55,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid"],
|
"required": ["uri", "cid"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"}
|
"cid": { "type": "string", "format": "cid" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "InvalidSwap" }]
|
||||||
{"name": "InvalidSwap"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["uri", "cid"],
|
"required": ["uri", "cid"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"uri": {"type": "string", "format": "at-uri"},
|
"uri": { "type": "string", "format": "at-uri" },
|
||||||
"cid": {"type": "string", "format": "cid"}
|
"cid": { "type": "string", "format": "cid" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["blob"],
|
"required": ["blob"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"blob": {"type": "blob"}
|
"blob": { "type": "blob" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["handle", "email", "password"],
|
"required": ["handle", "email", "password"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"email": {"type": "string"},
|
"email": { "type": "string" },
|
||||||
"handle": {"type": "string", "format": "handle"},
|
"handle": { "type": "string", "format": "handle" },
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"inviteCode": {"type": "string"},
|
"inviteCode": { "type": "string" },
|
||||||
"password": {"type": "string"},
|
"password": { "type": "string" },
|
||||||
"recoveryKey": {"type": "string"}
|
"recoveryKey": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -34,14 +34,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [
|
||||||
{"name": "InvalidHandle"},
|
{ "name": "InvalidHandle" },
|
||||||
{"name": "InvalidPassword"},
|
{ "name": "InvalidPassword" },
|
||||||
{"name": "InvalidInviteCode"},
|
{ "name": "InvalidInviteCode" },
|
||||||
{"name": "HandleNotAvailable"},
|
{ "name": "HandleNotAvailable" },
|
||||||
{"name": "UnsupportedDomain"},
|
{ "name": "UnsupportedDomain" },
|
||||||
{"name": "UnresolvableDid"},
|
{ "name": "UnresolvableDid" },
|
||||||
{"name": "IncompatibleDidDoc"}
|
{ "name": "IncompatibleDidDoc" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["name"],
|
"required": ["name"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {"type": "string"}
|
"name": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -22,17 +22,15 @@
|
|||||||
"ref": "#appPassword"
|
"ref": "#appPassword"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "AccountTakedown" }]
|
||||||
{"name": "AccountTakedown"}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"appPassword": {
|
"appPassword": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["name", "password", "createdAt"],
|
"required": ["name", "password", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {"type": "string"},
|
"name": { "type": "string" },
|
||||||
"password": {"type": "string"},
|
"password": { "type": "string" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["useCount"],
|
"required": ["useCount"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"useCount": {"type": "integer"},
|
"useCount": { "type": "integer" },
|
||||||
"forAccount": {"type": "string", "format": "did"}
|
"forAccount": { "type": "string", "format": "did" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["codeCount", "useCount"],
|
"required": ["codeCount", "useCount"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"codeCount": {"type": "integer", "default": 1},
|
"codeCount": { "type": "integer", "default": 1 },
|
||||||
"useCount": {"type": "integer"},
|
"useCount": { "type": "integer" },
|
||||||
"forAccounts": {
|
"forAccounts": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string", "format": "did"}
|
"items": { "type": "string", "format": "did" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -26,9 +26,9 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["codes"],
|
"required": ["codes"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"codes": {
|
"codes": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#accountCodes"}
|
"items": { "type": "ref", "ref": "#accountCodes" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -38,10 +38,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["account", "codes"],
|
"required": ["account", "codes"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"account": {"type": "string"},
|
"account": { "type": "string" },
|
||||||
"codes": {
|
"codes": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string"}
|
"items": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Handle or other identifier supported by the server for the authenticating user."
|
"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",
|
"type": "object",
|
||||||
"required": ["accessJwt", "refreshJwt", "handle", "did"],
|
"required": ["accessJwt", "refreshJwt", "handle", "did"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"accessJwt": {"type": "string"},
|
"accessJwt": { "type": "string" },
|
||||||
"refreshJwt": {"type": "string"},
|
"refreshJwt": { "type": "string" },
|
||||||
"handle": {"type": "string", "format": "handle"},
|
"handle": { "type": "string", "format": "handle" },
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"email": {"type": "string"}
|
"email": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "AccountTakedown" }]
|
||||||
{"name": "AccountTakedown"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,17 +4,25 @@
|
|||||||
"defs": {
|
"defs": {
|
||||||
"inviteCode": {
|
"inviteCode": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["code", "available", "disabled", "forAccount", "createdBy", "createdAt", "uses"],
|
"required": [
|
||||||
|
"code",
|
||||||
|
"available",
|
||||||
|
"disabled",
|
||||||
|
"forAccount",
|
||||||
|
"createdBy",
|
||||||
|
"createdAt",
|
||||||
|
"uses"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"code": {"type": "string"},
|
"code": { "type": "string" },
|
||||||
"available": {"type": "integer"},
|
"available": { "type": "integer" },
|
||||||
"disabled": {"type": "boolean"},
|
"disabled": { "type": "boolean" },
|
||||||
"forAccount": {"type": "string"},
|
"forAccount": { "type": "string" },
|
||||||
"createdBy": {"type": "string"},
|
"createdBy": { "type": "string" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"},
|
"createdAt": { "type": "string", "format": "datetime" },
|
||||||
"uses": {
|
"uses": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#inviteCodeUse"}
|
"items": { "type": "ref", "ref": "#inviteCodeUse" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -22,8 +30,8 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["usedBy", "usedAt"],
|
"required": ["usedBy", "usedAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"usedBy": {"type": "string", "format": "did"},
|
"usedBy": { "type": "string", "format": "did" },
|
||||||
"usedAt": {"type": "string", "format": "datetime"}
|
"usedAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"encoding": "application/json",
|
"encoding": "application/json",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["did", "password", "token"],
|
"required": ["did", "password", "token"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"did": { "type": "string", "format": "did" },
|
"did": { "type": "string", "format": "did" },
|
||||||
"password": { "type": "string" },
|
"password": { "type": "string" },
|
||||||
@ -20,4 +20,4 @@
|
|||||||
"errors": [{ "name": "ExpiredToken" }, { "name": "InvalidToken" }]
|
"errors": [{ "name": "ExpiredToken" }, { "name": "InvalidToken" }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
"description": "Delete the current session."
|
"description": "Delete the current session."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["availableUserDomains"],
|
"required": ["availableUserDomains"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"inviteCodeRequired": {"type": "boolean"},
|
"inviteCodeRequired": { "type": "boolean" },
|
||||||
"availableUserDomains": {"type": "array", "items": {"type": "string"}},
|
"availableUserDomains": {
|
||||||
"links": {"type": "ref", "ref": "#links"}
|
"type": "array",
|
||||||
|
"items": { "type": "string" }
|
||||||
|
},
|
||||||
|
"links": { "type": "ref", "ref": "#links" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -21,9 +24,9 @@
|
|||||||
"links": {
|
"links": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"privacyPolicy": {"type": "string"},
|
"privacyPolicy": { "type": "string" },
|
||||||
"termsOfService": {"type": "string"}
|
"termsOfService": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,9 +28,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "DuplicateCreate" }]
|
||||||
{"name": "DuplicateCreate"}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["handle", "did"],
|
"required": ["handle", "did"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"handle": {"type": "string", "format": "handle"},
|
"handle": { "type": "string", "format": "handle" },
|
||||||
"did": {"type": "string", "format": "did"},
|
"did": { "type": "string", "format": "did" },
|
||||||
"email": {"type": "string"}
|
"email": { "type": "string" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,21 +13,19 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"passwords": {
|
"passwords": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "ref", "ref": "#appPassword"}
|
"items": { "type": "ref", "ref": "#appPassword" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": [
|
"errors": [{ "name": "AccountTakedown" }]
|
||||||
{"name": "AccountTakedown"}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"appPassword": {
|
"appPassword": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["name", "createdAt"],
|
"required": ["name", "createdAt"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {"type": "string"},
|
"name": { "type": "string" },
|
||||||
"createdAt": {"type": "string", "format": "datetime"}
|
"createdAt": { "type": "string", "format": "datetime" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user