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
|
@ -26,7 +26,11 @@
|
||||
"rules": {
|
||||
"no-var": "error",
|
||||
"prefer-const": "warn",
|
||||
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
||||
"no-misleading-character-class": "warn",
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"warn",
|
||||
{ "argsIgnorePattern": "^_" }
|
||||
],
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-empty-interface": "off",
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||
|
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -4,10 +4,10 @@ about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
|
||||
<!-- A clear and concise description of what the bug is. -->
|
||||
|
||||
**To Reproduce**
|
||||
|
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: ''
|
||||
labels: feature-request
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**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
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
cache: 'pnpm'
|
||||
- run: pnpm i --frozen-lockfile
|
||||
- run: pnpm verify
|
||||
- name: Publish
|
||||
@ -30,5 +30,5 @@ jobs:
|
||||
with:
|
||||
publish: pnpm release
|
||||
version: pnpm version-packages
|
||||
commit: "Version packages"
|
||||
title: "Version packages"
|
||||
commit: 'Version packages'
|
||||
title: 'Version packages'
|
||||
|
6
.github/workflows/repo.yaml
vendored
6
.github/workflows/repo.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
cache: 'pnpm'
|
||||
- run: pnpm i --frozen-lockfile
|
||||
- run: pnpm build
|
||||
test:
|
||||
@ -38,7 +38,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
cache: 'pnpm'
|
||||
- run: pnpm i --frozen-lockfile
|
||||
- run: pnpm test:withFlags --maxWorkers=1 --shard=${{ matrix.shard }} --passWithNoTests
|
||||
verify:
|
||||
@ -52,6 +52,6 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
cache: 'pnpm'
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm verify
|
||||
|
9
.prettierignore
Normal file
9
.prettierignore
Normal file
@ -0,0 +1,9 @@
|
||||
node_modules
|
||||
dist
|
||||
build
|
||||
.nyc_output
|
||||
coverage
|
||||
pnpm-lock.yaml
|
||||
.pnpm*
|
||||
.changeset
|
||||
*.d.ts
|
2
Makefile
2
Makefile
@ -44,7 +44,7 @@ lint: ## Run style checks and verify syntax
|
||||
|
||||
.PHONY: fmt
|
||||
fmt: ## Run syntax re-formatting
|
||||
pnpm prettier
|
||||
pnpm format
|
||||
|
||||
.PHONY: deps
|
||||
deps: ## Installs dependent libs using 'pnpm install'
|
||||
|
@ -8,12 +8,12 @@ const esModules = ['get-port', 'node-fetch'].join('|')
|
||||
module.exports = {
|
||||
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
||||
transform: {
|
||||
"^.+\\.(t|j)s?$": "@swc/jest",
|
||||
'^.+\\.(t|j)s?$': '@swc/jest',
|
||||
},
|
||||
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${esModules})`],
|
||||
testRegex: '(/tests/.*.(test|spec)).(jsx?|tsx?)$',
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
||||
setupFiles: ["<rootDir>/../../test-setup.ts"],
|
||||
setupFiles: ['<rootDir>/../../test-setup.ts'],
|
||||
verbose: true,
|
||||
testTimeout: 60000
|
||||
testTimeout: 60000,
|
||||
}
|
||||
|
@ -80,7 +80,10 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"muted": { "type": "boolean" },
|
||||
"mutedByList": {"type": "ref", "ref": "app.bsky.graph.defs#listViewBasic"},
|
||||
"mutedByList": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.graph.defs#listViewBasic"
|
||||
},
|
||||
"blockedBy": { "type": "boolean" },
|
||||
"blocking": { "type": "string", "format": "at-uri" },
|
||||
"following": { "type": "string", "format": "at-uri" },
|
||||
@ -91,11 +94,7 @@
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"#adultContentPref",
|
||||
"#contentLabelPref",
|
||||
"#savedFeedsPref"
|
||||
]
|
||||
"refs": ["#adultContentPref", "#contentLabelPref", "#savedFeedsPref"]
|
||||
}
|
||||
},
|
||||
"adultContentPref": {
|
||||
@ -110,7 +109,10 @@
|
||||
"required": ["label", "visibility"],
|
||||
"properties": {
|
||||
"label": { "type": "string" },
|
||||
"visibility": {"type": "string", "knownValues": ["show", "warn", "hide"]}
|
||||
"visibility": {
|
||||
"type": "string",
|
||||
"knownValues": ["show", "warn", "hide"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"savedFeedsPref": {
|
||||
|
@ -7,8 +7,7 @@
|
||||
"description": "Get private preferences attached to the account.",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
}
|
||||
"properties": {}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
|
@ -13,7 +13,10 @@
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"}
|
||||
"schema": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewDetailed"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,10 @@
|
||||
"properties": {
|
||||
"profiles": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewDetailed"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -21,7 +26,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"actors": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,12 @@
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"term": { "type": "string" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -22,7 +27,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"actors": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,12 @@
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"term": { "type": "string" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
@ -20,7 +25,10 @@
|
||||
"properties": {
|
||||
"actors": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,10 @@
|
||||
"properties": {
|
||||
"uri": { "type": "string", "format": "at-uri" },
|
||||
"cid": { "type": "string", "format": "cid" },
|
||||
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
|
||||
"author": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||
},
|
||||
"value": { "type": "unknown" },
|
||||
"labels": {
|
||||
"type": "array",
|
||||
|
@ -13,10 +13,7 @@
|
||||
},
|
||||
"media": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"app.bsky.embed.images",
|
||||
"app.bsky.embed.external"
|
||||
]
|
||||
"refs": ["app.bsky.embed.images", "app.bsky.embed.external"]
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -30,10 +27,7 @@
|
||||
},
|
||||
"media": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"app.bsky.embed.images#view",
|
||||
"app.bsky.embed.external#view"
|
||||
]
|
||||
"refs": ["app.bsky.embed.images#view", "app.bsky.embed.external#view"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,10 @@
|
||||
"properties": {
|
||||
"uri": { "type": "string", "format": "at-uri" },
|
||||
"cid": { "type": "string", "format": "cid" },
|
||||
"author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"},
|
||||
"author": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||
},
|
||||
"record": { "type": "unknown" },
|
||||
"embed": {
|
||||
"type": "union",
|
||||
@ -50,8 +53,14 @@
|
||||
"type": "object",
|
||||
"required": ["root", "parent"],
|
||||
"properties": {
|
||||
"root": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]},
|
||||
"parent": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]}
|
||||
"root": {
|
||||
"type": "union",
|
||||
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
|
||||
},
|
||||
"parent": {
|
||||
"type": "union",
|
||||
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"reasonRepost": {
|
||||
@ -67,10 +76,16 @@
|
||||
"required": ["post"],
|
||||
"properties": {
|
||||
"post": { "type": "ref", "ref": "#postView" },
|
||||
"parent": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]},
|
||||
"parent": {
|
||||
"type": "union",
|
||||
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
|
||||
},
|
||||
"replies": {
|
||||
"type": "array",
|
||||
"items": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]}
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -108,7 +123,11 @@
|
||||
"did": { "type": "string", "format": "did" },
|
||||
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
|
||||
"displayName": { "type": "string" },
|
||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 300,
|
||||
"maxLength": 3000
|
||||
},
|
||||
"descriptionFacets": {
|
||||
"type": "array",
|
||||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||
|
@ -11,8 +11,16 @@
|
||||
"required": ["did", "displayName", "createdAt"],
|
||||
"properties": {
|
||||
"did": { "type": "string", "format": "did" },
|
||||
"displayName": {"type": "string", "maxGraphemes": 24, "maxLength": 240},
|
||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 24,
|
||||
"maxLength": 240
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 300,
|
||||
"maxLength": 3000
|
||||
},
|
||||
"descriptionFacets": {
|
||||
"type": "array",
|
||||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "at-identifier" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -23,7 +28,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "at-identifier" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -23,15 +28,15 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "BlockedActor"},
|
||||
{"name": "BlockedByActor"}
|
||||
]
|
||||
"errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,9 +10,22 @@
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "at-identifier" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" },
|
||||
"filter": {"type": "string", "knownValues": ["posts_with_replies", "posts_no_replies", "posts_with_media"], "default": "posts_with_replies"}
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"posts_with_replies",
|
||||
"posts_no_replies",
|
||||
"posts_with_media"
|
||||
],
|
||||
"default": "posts_with_replies"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
@ -24,15 +37,15 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "BlockedActor"},
|
||||
{"name": "BlockedByActor"}
|
||||
]
|
||||
"errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"feed": { "type": "string", "format": "at-uri" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -23,14 +28,15 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "UnknownFeed"}
|
||||
]
|
||||
"errors": [{ "name": "UnknownFeed" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,10 @@
|
||||
"type": "object",
|
||||
"required": ["view", "isOnline", "isValid"],
|
||||
"properties": {
|
||||
"view": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"},
|
||||
"view": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
},
|
||||
"isOnline": { "type": "boolean" },
|
||||
"isValid": { "type": "boolean" }
|
||||
}
|
||||
|
@ -23,7 +23,10 @@
|
||||
"properties": {
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["feed"],
|
||||
"properties": {
|
||||
"feed": { "type": "string", "format": "at-uri" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -23,14 +28,15 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#skeletonFeedPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "UnknownFeed"}
|
||||
]
|
||||
"errors": [{ "name": "UnknownFeed" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"properties": {
|
||||
"uri": { "type": "string", "format": "at-uri" },
|
||||
"cid": { "type": "string", "format": "cid" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
|
@ -40,9 +40,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "NotFound"}
|
||||
]
|
||||
"errors": [{ "name": "NotFound" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"properties": {
|
||||
"uri": { "type": "string", "format": "at-uri" },
|
||||
"cid": { "type": "string", "format": "cid" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -25,7 +30,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"repostedBy": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -21,7 +26,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,12 @@
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"algorithm": { "type": "string" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -22,7 +27,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,11 @@
|
||||
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
|
||||
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
|
||||
"purpose": { "type": "ref", "ref": "#listPurpose" },
|
||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 300,
|
||||
"maxLength": 3000
|
||||
},
|
||||
"descriptionFacets": {
|
||||
"type": "array",
|
||||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||
@ -43,9 +47,7 @@
|
||||
},
|
||||
"listPurpose": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"app.bsky.graph.defs#modlist"
|
||||
]
|
||||
"knownValues": ["app.bsky.graph.defs#modlist"]
|
||||
},
|
||||
"modlist": {
|
||||
"type": "token",
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -21,7 +26,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"blocks": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "at-identifier" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -20,11 +25,17 @@
|
||||
"type": "object",
|
||||
"required": ["subject", "followers"],
|
||||
"properties": {
|
||||
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
|
||||
"subject": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
},
|
||||
"cursor": { "type": "string" },
|
||||
"followers": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "at-identifier" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -20,11 +25,17 @@
|
||||
"type": "object",
|
||||
"required": ["subject", "follows"],
|
||||
"properties": {
|
||||
"subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
|
||||
"subject": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
},
|
||||
"cursor": { "type": "string" },
|
||||
"follows": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["list"],
|
||||
"properties": {
|
||||
"list": { "type": "string", "format": "at-uri" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -24,7 +29,10 @@
|
||||
"list": { "type": "ref", "ref": "app.bsky.graph.defs#listView" },
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listItemView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.graph.defs#listItemView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
|
@ -10,7 +10,12 @@
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "at-identifier" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -21,7 +26,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"mutes": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,9 +10,16 @@
|
||||
"type": "object",
|
||||
"required": ["name", "purpose", "createdAt"],
|
||||
"properties": {
|
||||
"purpose": {"type": "ref", "ref": "app.bsky.graph.defs#listPurpose"},
|
||||
"purpose": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.graph.defs#listPurpose"
|
||||
},
|
||||
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
|
||||
"description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 300,
|
||||
"maxLength": 3000
|
||||
},
|
||||
"descriptionFacets": {
|
||||
"type": "array",
|
||||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
||||
|
@ -7,7 +7,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" },
|
||||
"seenAt": { "type": "string", "format": "datetime" }
|
||||
}
|
||||
@ -29,7 +34,15 @@
|
||||
},
|
||||
"notification": {
|
||||
"type": "object",
|
||||
"required": ["uri", "cid", "author", "reason", "record", "isRead", "indexedAt"],
|
||||
"required": [
|
||||
"uri",
|
||||
"cid",
|
||||
"author",
|
||||
"reason",
|
||||
"record",
|
||||
"isRead",
|
||||
"indexedAt"
|
||||
],
|
||||
"properties": {
|
||||
"uri": { "type": "string", "format": "at-uri" },
|
||||
"cid": { "type": "string", "format": "cid" },
|
||||
@ -37,7 +50,14 @@
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"description": "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'.",
|
||||
"knownValues": ["like", "repost", "follow", "mention", "reply", "quote"]
|
||||
"knownValues": [
|
||||
"like",
|
||||
"repost",
|
||||
"follow",
|
||||
"mention",
|
||||
"reply",
|
||||
"quote"
|
||||
]
|
||||
},
|
||||
"reasonSubject": { "type": "string", "format": "at-uri" },
|
||||
"record": { "type": "unknown" },
|
||||
|
@ -13,7 +13,10 @@
|
||||
"properties": {
|
||||
"serviceDid": { "type": "string", "format": "did" },
|
||||
"token": { "type": "string" },
|
||||
"platform": {"type": "string", "knownValues": ["ios", "android", "web"]},
|
||||
"platform": {
|
||||
"type": "string",
|
||||
"knownValues": ["ios", "android", "web"]
|
||||
},
|
||||
"appId": { "type": "string" }
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,12 @@
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"includeNsfw": { "type": "boolean", "default": false },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -22,7 +27,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" },
|
||||
"query": { "type": "string" }
|
||||
}
|
||||
@ -22,7 +27,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feeds": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#generatorView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -21,14 +26,15 @@
|
||||
"cursor": { "type": "string" },
|
||||
"feed": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.feed.defs#skeletonFeedPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "UnknownFeed"}
|
||||
]
|
||||
"errors": [{ "name": "UnknownFeed" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,13 +10,15 @@
|
||||
"properties": {
|
||||
"sort": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"recent",
|
||||
"usage"
|
||||
],
|
||||
"knownValues": ["recent", "usage"],
|
||||
"default": "recent"
|
||||
},
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 500, "default": 100},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 500,
|
||||
"default": 100
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -29,7 +31,10 @@
|
||||
"cursor": { "type": "string" },
|
||||
"codes": {
|
||||
"type": "array",
|
||||
"items": {"type": "ref", "ref": "com.atproto.server.defs#inviteCode"}
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.server.defs#inviteCode"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,10 @@
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#actionViewDetail"}
|
||||
"schema": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.admin.defs#actionViewDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,12 @@
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"subject": { "type": "string" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -20,7 +25,13 @@
|
||||
"required": ["actions"],
|
||||
"properties": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,10 @@
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#reportViewDetail"}
|
||||
"schema": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.admin.defs#reportViewDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,11 +15,12 @@
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#recordViewDetail"}
|
||||
"schema": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.admin.defs#recordViewDetail"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "RecordNotFound"}
|
||||
]
|
||||
"errors": [{ "name": "RecordNotFound" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,11 +14,12 @@
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {"type": "ref", "ref": "com.atproto.admin.defs#repoViewDetail"}
|
||||
"schema": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.admin.defs#repoViewDetail"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "RepoNotFound"}
|
||||
]
|
||||
"errors": [{ "name": "RepoNotFound" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,12 @@
|
||||
"properties": {
|
||||
"term": { "type": "string" },
|
||||
"invitedBy": { "type": "string" },
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
@ -21,7 +26,13 @@
|
||||
"required": ["repos"],
|
||||
"properties": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,12 @@
|
||||
"items": { "type": "string", "format": "did" },
|
||||
"description": "Optional list of label sources (DIDs) to filter on"
|
||||
},
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 250, "default": 50},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 250,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
|
@ -17,15 +17,10 @@
|
||||
"message": {
|
||||
"schema": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"#labels",
|
||||
"#info"
|
||||
]
|
||||
"refs": ["#labels", "#info"]
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "FutureCursor"}
|
||||
]
|
||||
"errors": [{ "name": "FutureCursor" }]
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
|
@ -11,7 +11,10 @@
|
||||
"type": "object",
|
||||
"required": ["reasonType", "subject"],
|
||||
"properties": {
|
||||
"reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"},
|
||||
"reasonType": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.moderation.defs#reasonType"
|
||||
},
|
||||
"reason": { "type": "string" },
|
||||
"subject": {
|
||||
"type": "union",
|
||||
@ -27,10 +30,19 @@
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["id", "reasonType", "subject", "reportedBy", "createdAt"],
|
||||
"required": [
|
||||
"id",
|
||||
"reasonType",
|
||||
"subject",
|
||||
"reportedBy",
|
||||
"createdAt"
|
||||
],
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"},
|
||||
"reasonType": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.moderation.defs#reasonType"
|
||||
},
|
||||
"reason": { "type": "string" },
|
||||
"subject": {
|
||||
"type": "union",
|
||||
|
@ -23,7 +23,11 @@
|
||||
},
|
||||
"writes": {
|
||||
"type": "array",
|
||||
"items": {"type": "union", "refs": ["#create", "#update", "#delete"], "closed": true}
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": ["#create", "#update", "#delete"],
|
||||
"closed": true
|
||||
}
|
||||
},
|
||||
"swapCommit": {
|
||||
"type": "string",
|
||||
@ -32,9 +36,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "InvalidSwap"}
|
||||
]
|
||||
"errors": [{ "name": "InvalidSwap" }]
|
||||
},
|
||||
"create": {
|
||||
"type": "object",
|
||||
|
@ -54,9 +54,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "InvalidSwap"}
|
||||
]
|
||||
"errors": [{ "name": "InvalidSwap" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,9 +38,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "InvalidSwap"}
|
||||
]
|
||||
"errors": [{ "name": "InvalidSwap" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -20,12 +20,21 @@
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["handle", "did", "didDoc", "collections", "handleIsCorrect"],
|
||||
"required": [
|
||||
"handle",
|
||||
"did",
|
||||
"didDoc",
|
||||
"collections",
|
||||
"handleIsCorrect"
|
||||
],
|
||||
"properties": {
|
||||
"handle": { "type": "string", "format": "handle" },
|
||||
"did": { "type": "string", "format": "did" },
|
||||
"didDoc": { "type": "unknown" },
|
||||
"collections": {"type": "array", "items": {"type": "string", "format": "nsid"}},
|
||||
"collections": {
|
||||
"type": "array",
|
||||
"items": { "type": "string", "format": "nsid" }
|
||||
},
|
||||
"handleIsCorrect": { "type": "boolean" }
|
||||
}
|
||||
}
|
||||
|
@ -9,13 +9,36 @@
|
||||
"type": "params",
|
||||
"required": ["repo", "collection"],
|
||||
"properties": {
|
||||
"repo": {"type": "string", "format": "at-identifier", "description": "The handle or DID of the repo."},
|
||||
"collection": {"type": "string", "format": "nsid", "description": "The NSID of the record type."},
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50, "description": "The number of records to return."},
|
||||
"repo": {
|
||||
"type": "string",
|
||||
"format": "at-identifier",
|
||||
"description": "The handle or DID of the repo."
|
||||
},
|
||||
"collection": {
|
||||
"type": "string",
|
||||
"format": "nsid",
|
||||
"description": "The NSID of the record type."
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50,
|
||||
"description": "The number of records to return."
|
||||
},
|
||||
"cursor": { "type": "string" },
|
||||
"rkeyStart": {"type": "string", "description": "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)"},
|
||||
"rkeyEnd": {"type": "string", "description": "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)"},
|
||||
"reverse": {"type": "boolean", "description": "Reverse the order of the returned records?"}
|
||||
"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": {
|
||||
|
@ -60,9 +60,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "InvalidSwap"}
|
||||
]
|
||||
"errors": [{ "name": "InvalidSwap" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,9 +22,7 @@
|
||||
"ref": "#appPassword"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "AccountTakedown"}
|
||||
]
|
||||
"errors": [{ "name": "AccountTakedown" }]
|
||||
},
|
||||
"appPassword": {
|
||||
"type": "object",
|
||||
|
@ -33,9 +33,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "AccountTakedown"}
|
||||
]
|
||||
"errors": [{ "name": "AccountTakedown" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,15 @@
|
||||
"defs": {
|
||||
"inviteCode": {
|
||||
"type": "object",
|
||||
"required": ["code", "available", "disabled", "forAccount", "createdBy", "createdAt", "uses"],
|
||||
"required": [
|
||||
"code",
|
||||
"available",
|
||||
"disabled",
|
||||
"forAccount",
|
||||
"createdBy",
|
||||
"createdAt",
|
||||
"uses"
|
||||
],
|
||||
"properties": {
|
||||
"code": { "type": "string" },
|
||||
"available": { "type": "integer" },
|
||||
|
@ -12,7 +12,10 @@
|
||||
"required": ["availableUserDomains"],
|
||||
"properties": {
|
||||
"inviteCodeRequired": { "type": "boolean" },
|
||||
"availableUserDomains": {"type": "array", "items": {"type": "string"}},
|
||||
"availableUserDomains": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" }
|
||||
},
|
||||
"links": { "type": "ref", "ref": "#links" }
|
||||
}
|
||||
}
|
||||
|
@ -28,9 +28,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "DuplicateCreate"}
|
||||
]
|
||||
"errors": [{ "name": "DuplicateCreate" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -18,9 +18,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "AccountTakedown"}
|
||||
]
|
||||
"errors": [{ "name": "AccountTakedown" }]
|
||||
},
|
||||
"appPassword": {
|
||||
"type": "object",
|
||||
|
@ -18,9 +18,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "AccountTakedown"}
|
||||
]
|
||||
"errors": [{ "name": "AccountTakedown" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,8 +9,16 @@
|
||||
"type": "params",
|
||||
"required": ["did", "cid"],
|
||||
"properties": {
|
||||
"did": {"type": "string", "format": "did", "description": "The DID of the repo."},
|
||||
"cid": {"type": "string", "format": "cid", "description": "The CID of the blob to fetch"}
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did",
|
||||
"description": "The DID of the repo."
|
||||
},
|
||||
"cid": {
|
||||
"type": "string",
|
||||
"format": "cid",
|
||||
"description": "The CID of the blob to fetch"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
|
@ -26,9 +26,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "HeadNotFound"}
|
||||
]
|
||||
"errors": [{ "name": "HeadNotFound" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,9 +27,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "RepoNotFound"}
|
||||
]
|
||||
"errors": [{ "name": "RepoNotFound" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,9 +9,22 @@
|
||||
"type": "params",
|
||||
"required": ["did"],
|
||||
"properties": {
|
||||
"did": {"type": "string", "format": "did", "description": "The DID of the repo."},
|
||||
"since": { "type": "string", "format": "cid", "description": "Optional revision of the repo to list blobs since"},
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 1000, "default": 500},
|
||||
"did": {
|
||||
"type": "string",
|
||||
"format": "did",
|
||||
"description": "The DID of the repo."
|
||||
},
|
||||
"since": {
|
||||
"type": "string",
|
||||
"format": "cid",
|
||||
"description": "Optional revision of the repo to list blobs since"
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 1000,
|
||||
"default": 500
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
|
@ -8,7 +8,12 @@
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {"type": "integer", "minimum": 1, "maximum": 1000, "default": 500},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 1000,
|
||||
"default": 500
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
|
@ -11,7 +11,10 @@
|
||||
"type": "object",
|
||||
"required": ["hostname"],
|
||||
"properties": {
|
||||
"hostname": {"type": "string", "description": "Hostname of the service that is notifying of update."}
|
||||
"hostname": {
|
||||
"type": "string",
|
||||
"description": "Hostname of the service that is notifying of update."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,10 @@
|
||||
"type": "object",
|
||||
"required": ["hostname"],
|
||||
"properties": {
|
||||
"hostname": {"type": "string", "description": "Hostname of the service that is requesting to be crawled."}
|
||||
"hostname": {
|
||||
"type": "string",
|
||||
"description": "Hostname of the service that is requesting to be crawled."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,23 +17,26 @@
|
||||
"message": {
|
||||
"schema": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"#commit",
|
||||
"#handle",
|
||||
"#migrate",
|
||||
"#tombstone",
|
||||
"#info"
|
||||
]
|
||||
"refs": ["#commit", "#handle", "#migrate", "#tombstone", "#info"]
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{"name": "FutureCursor"},
|
||||
{"name": "ConsumerTooSlow"}
|
||||
]
|
||||
"errors": [{ "name": "FutureCursor" }, { "name": "ConsumerTooSlow" }]
|
||||
},
|
||||
"commit": {
|
||||
"type": "object",
|
||||
"required": ["seq", "rebase", "tooBig", "repo", "commit", "rev", "since", "blocks", "ops", "blobs", "time"],
|
||||
"required": [
|
||||
"seq",
|
||||
"rebase",
|
||||
"tooBig",
|
||||
"repo",
|
||||
"commit",
|
||||
"rev",
|
||||
"since",
|
||||
"blocks",
|
||||
"ops",
|
||||
"blobs",
|
||||
"time"
|
||||
],
|
||||
"nullable": ["prev", "since"],
|
||||
"properties": {
|
||||
"seq": { "type": "integer" },
|
||||
@ -118,11 +121,7 @@
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"knownValues": [
|
||||
"create",
|
||||
"update",
|
||||
"delete"
|
||||
]
|
||||
"knownValues": ["create", "update", "delete"]
|
||||
},
|
||||
"path": { "type": "string" },
|
||||
"cid": { "type": "cid-link" }
|
||||
|
@ -9,8 +9,10 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"scripts": {
|
||||
"verify": "pnpm -r --stream lint && pnpm -r --stream prettier",
|
||||
"format": "pnpm -r --stream prettier:fix",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"verify": "prettier --check . && pnpm lint",
|
||||
"format": "prettier --write .",
|
||||
"build": "pnpm -r --stream build",
|
||||
"update-main-to-dist": "pnpm -r --stream update-main-to-dist",
|
||||
"test": "LOG_ENABLED=false NODE_ENV=development ./packages/dev-infra/with-test-redis-and-db.sh pnpm --stream -r test",
|
||||
@ -41,7 +43,6 @@
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"jest": "^28.1.2",
|
||||
"node-gyp": "^9.3.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"pino-pretty": "^9.1.0",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-config-standard": "^5.0.0",
|
||||
|
@ -35,7 +35,7 @@ const agent = new BskyAgent({
|
||||
service: 'https://example.com',
|
||||
persistSession: (evt: AtpSessionEvent, sess?: AtpSessionData) => {
|
||||
// store the session-data for reuse
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
await agent.login({ identifier: 'alice@mail.com', password: 'hunter2' })
|
||||
@ -43,7 +43,7 @@ await agent.resumeSession(savedSessionData)
|
||||
await agent.createAccount({
|
||||
email: 'alice@mail.com',
|
||||
password: 'hunter2',
|
||||
handle: 'alice.example.com'
|
||||
handle: 'alice.example.com',
|
||||
})
|
||||
```
|
||||
|
||||
@ -130,13 +130,15 @@ Some records (ie posts) use the `app.bsky.richtext` lexicon. At the moment richt
|
||||
import { RichText } from '@atproto/api'
|
||||
|
||||
// creating richtext
|
||||
const rt = new RichText({text: 'Hello @alice.com, check out this link: https://example.com'})
|
||||
const rt = new RichText({
|
||||
text: 'Hello @alice.com, check out this link: https://example.com',
|
||||
})
|
||||
await rt.detectFacets(agent) // automatically detects mentions and links
|
||||
const postRecord = {
|
||||
$type: 'app.bsky.feed.post',
|
||||
text: rt.text,
|
||||
facets: rt.facets,
|
||||
createdAt: new Date().toISOString()
|
||||
createdAt: new Date().toISOString(),
|
||||
}
|
||||
|
||||
// rendering as markdown
|
||||
@ -235,16 +237,16 @@ function getOpts() {
|
||||
{
|
||||
labeler: {
|
||||
did: '...',
|
||||
displayName: 'My mod service'
|
||||
displayName: 'My mod service',
|
||||
},
|
||||
labels: {
|
||||
porn: 'hide',
|
||||
sexual: 'warn',
|
||||
nudity: 'ignore',
|
||||
// ...
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
```
|
||||
@ -258,23 +260,27 @@ The methods above are convenience wrappers. It covers most but not all available
|
||||
The AT Protocol identifies methods and records with reverse-DNS names. You can use them on the agent as well:
|
||||
|
||||
```typescript
|
||||
const res1 = await agent.com.atproto.repo.createRecord(
|
||||
{
|
||||
const res1 = await agent.com.atproto.repo.createRecord({
|
||||
did: alice.did,
|
||||
collection: 'app.bsky.feed.post',
|
||||
record: {
|
||||
$type: 'app.bsky.feed.post',
|
||||
text: 'Hello, world!',
|
||||
createdAt: new Date().toISOString()
|
||||
}
|
||||
}
|
||||
)
|
||||
const res2 = await agent.com.atproto.repo.listRecords({repo: alice.did, collection: 'app.bsky.feed.post'})
|
||||
|
||||
const res3 = await agent.app.bsky.feed.post.create({repo: alice.did}, {
|
||||
text: 'Hello, world!',
|
||||
createdAt: new Date().toISOString()
|
||||
createdAt: new Date().toISOString(),
|
||||
},
|
||||
})
|
||||
const res2 = await agent.com.atproto.repo.listRecords({
|
||||
repo: alice.did,
|
||||
collection: 'app.bsky.feed.post',
|
||||
})
|
||||
|
||||
const res3 = await agent.app.bsky.feed.post.create(
|
||||
{ repo: alice.did },
|
||||
{
|
||||
text: 'Hello, world!',
|
||||
createdAt: new Date().toISOString(),
|
||||
},
|
||||
)
|
||||
const res4 = await agent.app.bsky.feed.post.list({ repo: alice.did })
|
||||
```
|
||||
|
||||
@ -298,7 +304,10 @@ import { BskyAgent } from '@atproto/api'
|
||||
const agent = new BskyAgent({ service: 'https://example.com' })
|
||||
|
||||
// provide a custom fetch implementation (shouldnt be needed in node or the browser)
|
||||
import {AtpAgentFetchHeaders, AtpAgentFetchHandlerResponse} from '@atproto/api'
|
||||
import {
|
||||
AtpAgentFetchHeaders,
|
||||
AtpAgentFetchHandlerResponse,
|
||||
} from '@atproto/api'
|
||||
BskyAgent.configure({
|
||||
async fetch(
|
||||
httpUri: string,
|
||||
@ -307,8 +316,8 @@ BskyAgent.configure({
|
||||
httpReqBody: any,
|
||||
): Promise<AtpAgentFetchHandlerResponse> {
|
||||
// insert definition here...
|
||||
return {status: 200, /*...*/}
|
||||
}
|
||||
return { status: 200 /*...*/ }
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { BskyAgent } from "@atproto/api";
|
||||
import { BskyAgent } from '@atproto/api'
|
||||
|
||||
describe('Agent Benchmarks', () => {
|
||||
it('Creates new Agent instance 10 times', () => {
|
||||
for (let i = 0; i < 10; i++) {
|
||||
new BskyAgent({ service: 'https://bsky.social' });
|
||||
new BskyAgent({ service: 'https://bsky.social' })
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -1,13 +1,47 @@
|
||||
|
||||
{
|
||||
"users": {
|
||||
"self": {"blocking": false, "blockedBy": false, "muted": false, "mutedByList": false},
|
||||
"alice": {"blocking": false, "blockedBy": false, "muted": false, "mutedByList": false},
|
||||
"bob": {"blocking": true, "blockedBy": false, "muted": false, "mutedByList": false},
|
||||
"carla": {"blocking": false, "blockedBy": true, "muted": false, "mutedByList": false},
|
||||
"dan": {"blocking": false, "blockedBy": false, "muted": true, "mutedByList": false},
|
||||
"elise": {"blocking": false, "blockedBy": false, "muted": false, "mutedByList": true},
|
||||
"fern": {"blocking": true, "blockedBy": true, "muted": false, "mutedByList": false}
|
||||
"self": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"alice": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"bob": {
|
||||
"blocking": true,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"carla": {
|
||||
"blocking": false,
|
||||
"blockedBy": true,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"dan": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": true,
|
||||
"mutedByList": false
|
||||
},
|
||||
"elise": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": true
|
||||
},
|
||||
"fern": {
|
||||
"blocking": true,
|
||||
"blockedBy": true,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"none": {},
|
||||
@ -64,7 +98,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "post": ["!hide"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}
|
||||
"content": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"Imperative label ('!hide') on author profile": {
|
||||
@ -82,7 +121,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["!hide"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "cause": "label:!hide", "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -228,7 +272,11 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["intolerant"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:intolerant", "filter": true, "blur": true},
|
||||
"content": {
|
||||
"cause": "label:intolerant",
|
||||
"filter": true,
|
||||
"blur": true
|
||||
},
|
||||
"avatar": { "blur": true }
|
||||
}
|
||||
},
|
||||
@ -438,8 +486,7 @@
|
||||
"author": "alice",
|
||||
"quoteAuthor": "alice",
|
||||
"labels": { "quotedAccount": ["porn"] },
|
||||
"behaviors": {
|
||||
}
|
||||
"behaviors": {}
|
||||
},
|
||||
|
||||
"Blur-media label ('porn') on post (ignore)": {
|
||||
@ -624,7 +671,11 @@
|
||||
"author": "alice",
|
||||
"labels": { "post": ["porn"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:porn", "filter": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "label:porn",
|
||||
"filter": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"embed": { "cause": "label:porn", "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -643,7 +694,11 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["porn"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:porn", "filter": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "label:porn",
|
||||
"filter": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "cause": "label:porn", "blur": true, "noOverride": true },
|
||||
"embed": { "cause": "label:porn", "blur": true, "noOverride": true }
|
||||
}
|
||||
@ -768,16 +823,14 @@
|
||||
"subject": "post",
|
||||
"author": "self",
|
||||
"labels": { "profile": ["porn"] },
|
||||
"behaviors": {
|
||||
}
|
||||
"behaviors": {}
|
||||
},
|
||||
"Self-post: Blur-media label ('porn') on author account (hide)": {
|
||||
"cfg": "porn-hide",
|
||||
"subject": "post",
|
||||
"author": "self",
|
||||
"labels": { "account": ["porn"] },
|
||||
"behaviors": {
|
||||
}
|
||||
"behaviors": {}
|
||||
},
|
||||
"Self-post: Blur-media label ('porn') on quoted post (hide)": {
|
||||
"cfg": "porn-hide",
|
||||
@ -795,8 +848,7 @@
|
||||
"author": "self",
|
||||
"quoteAuthor": "self",
|
||||
"labels": { "quotedAccount": ["porn"] },
|
||||
"behaviors": {
|
||||
}
|
||||
"behaviors": {}
|
||||
},
|
||||
|
||||
"Self-post: Blur-media label ('porn') on post (warn)": {
|
||||
@ -813,16 +865,14 @@
|
||||
"subject": "post",
|
||||
"author": "self",
|
||||
"labels": { "profile": ["porn"] },
|
||||
"behaviors": {
|
||||
}
|
||||
"behaviors": {}
|
||||
},
|
||||
"Self-post: Blur-media label ('porn') on author account (warn)": {
|
||||
"cfg": "porn-warn",
|
||||
"subject": "post",
|
||||
"author": "self",
|
||||
"labels": { "account": ["porn"] },
|
||||
"behaviors": {
|
||||
}
|
||||
"behaviors": {}
|
||||
},
|
||||
"Self-post: Blur-media label ('porn') on quoted post (warn)": {
|
||||
"cfg": "porn-warn",
|
||||
@ -840,8 +890,7 @@
|
||||
"author": "self",
|
||||
"quoteAuthor": "self",
|
||||
"labels": { "quotedAccount": ["porn"] },
|
||||
"behaviors": {
|
||||
}
|
||||
"behaviors": {}
|
||||
},
|
||||
|
||||
"Post with blocked author": {
|
||||
@ -850,7 +899,12 @@
|
||||
"author": "bob",
|
||||
"labels": {},
|
||||
"behaviors": {
|
||||
"content": {"cause": "blocking", "filter": true, "blur": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "blocking",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -872,7 +926,12 @@
|
||||
"author": "carla",
|
||||
"labels": {},
|
||||
"behaviors": {
|
||||
"content": {"cause": "blocked-by", "filter": true, "blur": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "blocked-by",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -936,7 +995,12 @@
|
||||
"author": "fern",
|
||||
"labels": {},
|
||||
"behaviors": {
|
||||
"content": {"cause": "blocking", "filter": true, "blur": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "blocking",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -957,7 +1021,12 @@
|
||||
"author": "bob",
|
||||
"labels": { "post": ["!hide"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -968,7 +1037,12 @@
|
||||
"quoteAuthor": "alice",
|
||||
"labels": { "quotedPost": ["!hide"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "blocking", "filter": true, "blur": true, "noOverride": true},
|
||||
"content": {
|
||||
"cause": "blocking",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true },
|
||||
"embed": { "cause": "label:!hide", "blur": true, "noOverride": true }
|
||||
}
|
||||
@ -979,7 +1053,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "post": ["!hide", "intolerant"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}
|
||||
"content": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prioritization: '!warn' and 'intolerant' labels on post (hide)": {
|
||||
@ -997,7 +1076,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "post": ["!hide", "porn"] },
|
||||
"behaviors": {
|
||||
"content": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}
|
||||
"content": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prioritization: '!warn' and 'porn' labels on post (hide)": {
|
||||
|
@ -1,13 +1,47 @@
|
||||
|
||||
{
|
||||
"users": {
|
||||
"self": {"blocking": false, "blockedBy": false, "muted": false, "mutedByList": false},
|
||||
"alice": {"blocking": false, "blockedBy": false, "muted": false, "mutedByList": false},
|
||||
"bob": {"blocking": true, "blockedBy": false, "muted": false, "mutedByList": false},
|
||||
"carla": {"blocking": false, "blockedBy": true, "muted": false, "mutedByList": false},
|
||||
"dan": {"blocking": false, "blockedBy": false, "muted": true, "mutedByList": false},
|
||||
"elise": {"blocking": false, "blockedBy": false, "muted": false, "mutedByList": true},
|
||||
"fern": {"blocking": true, "blockedBy": true, "muted": false, "mutedByList": false}
|
||||
"self": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"alice": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"bob": {
|
||||
"blocking": true,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"carla": {
|
||||
"blocking": false,
|
||||
"blockedBy": true,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
},
|
||||
"dan": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": true,
|
||||
"mutedByList": false
|
||||
},
|
||||
"elise": {
|
||||
"blocking": false,
|
||||
"blockedBy": false,
|
||||
"muted": false,
|
||||
"mutedByList": true
|
||||
},
|
||||
"fern": {
|
||||
"blocking": true,
|
||||
"blockedBy": true,
|
||||
"muted": false,
|
||||
"mutedByList": false
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"none": {},
|
||||
@ -55,7 +89,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["!hide"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true},
|
||||
"account": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -114,7 +153,11 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["intolerant"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:intolerant", "filter": true, "blur": true},
|
||||
"account": {
|
||||
"cause": "label:intolerant",
|
||||
"filter": true,
|
||||
"blur": true
|
||||
},
|
||||
"avatar": { "blur": true }
|
||||
}
|
||||
},
|
||||
@ -283,7 +326,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["porn"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:porn", "filter": true, "blur": true, "noOverride": true},
|
||||
"account": {
|
||||
"cause": "label:porn",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -376,7 +424,12 @@
|
||||
"author": "bob",
|
||||
"labels": { "account": ["!hide"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true},
|
||||
"account": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -386,7 +439,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["!hide", "intolerant"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true},
|
||||
"account": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
},
|
||||
@ -396,7 +454,11 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["!warn", "intolerant"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:intolerant", "filter": true, "blur": true},
|
||||
"account": {
|
||||
"cause": "label:intolerant",
|
||||
"filter": true,
|
||||
"blur": true
|
||||
},
|
||||
"avatar": { "blur": true }
|
||||
}
|
||||
},
|
||||
@ -416,7 +478,11 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["intolerant"], "profile": ["scam"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:intolerant", "filter": true, "blur": true},
|
||||
"account": {
|
||||
"cause": "label:intolerant",
|
||||
"filter": true,
|
||||
"blur": true
|
||||
},
|
||||
"profile": { "cause": "label:scam", "alert": true },
|
||||
"avatar": { "blur": true, "alert": true }
|
||||
}
|
||||
@ -427,7 +493,12 @@
|
||||
"author": "alice",
|
||||
"labels": { "account": ["!hide"], "profile": ["!warn"] },
|
||||
"behaviors": {
|
||||
"account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true},
|
||||
"account": {
|
||||
"cause": "label:!hide",
|
||||
"filter": true,
|
||||
"blur": true,
|
||||
"noOverride": true
|
||||
},
|
||||
"profile": { "cause": "label:!warn", "blur": true },
|
||||
"avatar": { "blur": true, "noOverride": true }
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -38,7 +38,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -46,9 +45,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Imperative label ('!hide') on profile</strong></td>
|
||||
<td>
|
||||
@ -56,7 +52,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -68,9 +63,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Imperative label ('!no-promote') on account</strong></td>
|
||||
<td>
|
||||
@ -78,21 +70,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Imperative label ('!no-promote') on profile</strong></td>
|
||||
<td>
|
||||
@ -100,21 +86,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Imperative label ('!warn') on account</strong></td>
|
||||
<td>
|
||||
@ -126,7 +106,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -134,9 +113,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Imperative label ('!warn') on profile</strong></td>
|
||||
<td>
|
||||
@ -144,7 +120,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -156,8 +131,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr>
|
||||
<tr>
|
||||
<td><strong>Blur label ('intolerant') on account (hide)</strong></td>
|
||||
@ -170,7 +143,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -178,9 +150,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur label ('intolerant') on profile (hide)</strong></td>
|
||||
<td>
|
||||
@ -188,7 +157,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -200,9 +168,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur label ('intolerant') on account (warn)</strong></td>
|
||||
<td>
|
||||
@ -214,7 +179,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -222,9 +186,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur label ('intolerant') on profile (warn)</strong></td>
|
||||
<td>
|
||||
@ -232,7 +193,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -244,9 +204,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur label ('intolerant') on account (ignore)</strong></td>
|
||||
<td>
|
||||
@ -254,21 +211,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur label ('intolerant') on profile (ignore)</strong></td>
|
||||
<td>
|
||||
@ -276,20 +227,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr>
|
||||
<tr>
|
||||
<td><strong>Blur-media label ('porn') on account (hide)</strong></td>
|
||||
@ -302,7 +248,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -310,9 +255,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur-media label ('porn') on profile (hide)</strong></td>
|
||||
<td>
|
||||
@ -320,11 +262,9 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -332,9 +272,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur-media label ('porn') on account (warn)</strong></td>
|
||||
<td>
|
||||
@ -346,7 +283,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -354,9 +290,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur-media label ('porn') on profile (warn)</strong></td>
|
||||
<td>
|
||||
@ -364,11 +297,9 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -376,9 +307,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur-media label ('porn') on account (ignore)</strong></td>
|
||||
<td>
|
||||
@ -386,21 +314,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Blur-media label ('porn') on profile (ignore)</strong></td>
|
||||
<td>
|
||||
@ -408,20 +330,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr>
|
||||
<tr>
|
||||
<td><strong>Notice label ('scam') on account (hide)</strong></td>
|
||||
@ -431,20 +348,18 @@ Key:
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Notice label ('scam') on profile (hide)</strong></td>
|
||||
<td>
|
||||
@ -452,21 +367,19 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Notice label ('scam') on account (warn)</strong></td>
|
||||
<td>
|
||||
@ -475,20 +388,18 @@ Key:
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Notice label ('scam') on profile (warn)</strong></td>
|
||||
<td>
|
||||
@ -496,21 +407,19 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Notice label ('scam') on account (ignore)</strong></td>
|
||||
<td>
|
||||
@ -518,21 +427,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Notice label ('scam') on profile (ignore)</strong></td>
|
||||
<td>
|
||||
@ -540,20 +443,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr>
|
||||
<tr>
|
||||
<td><strong>Adult-only label on account when adult content is disabled</strong></td>
|
||||
@ -566,7 +464,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -574,9 +471,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Adult-only label on profile when adult content is disabled</strong></td>
|
||||
<td>
|
||||
@ -584,11 +478,9 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -596,8 +488,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr>
|
||||
<tr>
|
||||
<td><strong>Self-profile: !hide on account</strong></td>
|
||||
@ -607,20 +497,18 @@ Key:
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Self-profile: !hide on profile</strong></td>
|
||||
<td>
|
||||
@ -628,20 +516,19 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
</td>
|
||||
<td>
|
||||
|
||||
🪧
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr>
|
||||
<tr>
|
||||
<td><strong>Mute/block: Blocking user</strong></td>
|
||||
@ -650,11 +537,9 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -662,9 +547,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Mute/block: Blocked by user</strong></td>
|
||||
<td>
|
||||
@ -672,11 +554,9 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -684,9 +564,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Mute/block: Muted user</strong></td>
|
||||
<td>
|
||||
@ -694,21 +571,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Mute/block: Muted-by-list user</strong></td>
|
||||
<td>
|
||||
@ -716,20 +587,15 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr>
|
||||
<tr>
|
||||
<td><strong>Prioritization: blocking & blocked-by user</strong></td>
|
||||
@ -738,11 +604,9 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -750,9 +614,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Prioritization: '!hide' label on account of blocked user</strong></td>
|
||||
<td>
|
||||
@ -764,7 +625,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -772,9 +632,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Prioritization: '!hide' and 'intolerant' labels on account (hide)</strong></td>
|
||||
<td>
|
||||
@ -786,7 +643,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🚫
|
||||
@ -794,9 +650,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Prioritization: '!warn' and 'intolerant' labels on account (hide)</strong></td>
|
||||
<td>
|
||||
@ -808,7 +661,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -816,9 +668,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Prioritization: '!warn' and 'porn' labels on account (hide)</strong></td>
|
||||
<td>
|
||||
@ -830,7 +679,6 @@ Key:
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -838,9 +686,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Prioritization: intolerant label on account (hide) and scam label on profile (warn)</strong></td>
|
||||
<td>
|
||||
@ -853,6 +698,7 @@ Key:
|
||||
<td>
|
||||
|
||||
🪧
|
||||
|
||||
</td>
|
||||
<td>
|
||||
✋
|
||||
@ -860,9 +706,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Prioritization: !hide on account, !warn on profile</strong></td>
|
||||
<td>
|
||||
@ -882,9 +725,6 @@ Key:
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><strong>Prioritization: !warn on account, !hide on profile</strong></td>
|
||||
<td>
|
||||
|
@ -13,12 +13,6 @@
|
||||
"directory": "packages/aws"
|
||||
},
|
||||
"scripts": {
|
||||
"prettier": "prettier --check src/",
|
||||
"prettier:fix": "prettier --write src/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix",
|
||||
"build": "node ./build.js",
|
||||
"postbuild": "tsc --build tsconfig.build.json",
|
||||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/aws"
|
||||
|
@ -1 +0,0 @@
|
||||
lexicon
|
@ -1 +0,0 @@
|
||||
src/lexicon/**/*
|
@ -22,12 +22,6 @@
|
||||
"test": "../dev-infra/with-test-redis-and-db.sh jest",
|
||||
"test:log": "tail -50 test.log | pino-pretty",
|
||||
"test:updateSnapshot": "jest --updateSnapshot",
|
||||
"prettier": "prettier --check src/ tests/",
|
||||
"prettier:fix": "prettier --write src/ tests/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix",
|
||||
"migration:create": "ts-node ./bin/migration-create.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -14,12 +14,6 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"prettier": "prettier --check src/ tests/",
|
||||
"prettier:fix": "prettier --write src/ tests/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix",
|
||||
"build": "node ./build.js",
|
||||
"postbuild": "tsc --build tsconfig.build.json",
|
||||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/common-web"
|
||||
|
@ -5,5 +5,5 @@
|
||||
"outDir": "./dist", // Your outDir,
|
||||
"emitDeclarationOnly": true
|
||||
},
|
||||
"include": ["./src","__tests__/**/**.ts"],
|
||||
"include": ["./src", "__tests__/**/**.ts"]
|
||||
}
|
@ -14,12 +14,6 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"prettier": "prettier --check src/ tests/",
|
||||
"prettier:fix": "prettier --write src/ tests/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix",
|
||||
"build": "node ./build.js",
|
||||
"postbuild": "tsc --build tsconfig.build.json",
|
||||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/common"
|
||||
|
@ -6,7 +6,5 @@
|
||||
"emitDeclarationOnly": true
|
||||
},
|
||||
"include": ["./src", "__tests__/**/**.ts"],
|
||||
"references": [
|
||||
{ "path": "../common-web/tsconfig.build.json" }
|
||||
]
|
||||
"references": [{ "path": "../common-web/tsconfig.build.json" }]
|
||||
}
|
@ -2,5 +2,5 @@ const base = require('../../jest.config.base.js')
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
displayName: 'Crypto'
|
||||
displayName: 'Crypto',
|
||||
}
|
||||
|
@ -14,12 +14,6 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest ",
|
||||
"prettier": "prettier --check src/ tests/",
|
||||
"prettier:fix": "prettier --write src/ tests/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix",
|
||||
"build": "node ./build.js",
|
||||
"postbuild": "tsc --build tsconfig.build.json",
|
||||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/crypto"
|
||||
|
@ -18,13 +18,7 @@
|
||||
"postbuild": "tsc --build tsconfig.build.json",
|
||||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/dev-env",
|
||||
"start": "node dist/bin.js",
|
||||
"start:network": "../dev-infra/with-test-redis-and-db.sh node dist/bin-network.js",
|
||||
"prettier": "prettier --check src/",
|
||||
"prettier:fix": "prettier --write src/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix"
|
||||
"start:network": "../dev-infra/with-test-redis-and-db.sh node dist/bin-network.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@atproto/api": "workspace:^",
|
||||
|
@ -13,6 +13,6 @@
|
||||
{ "path": "../crypto/tsconfig.build.json" },
|
||||
{ "path": "../identity/tsconfig.build.json" },
|
||||
{ "path": "../pds/tsconfig.json" },
|
||||
{ "path": "../uri/tsconfig.build.json" },
|
||||
{ "path": "../uri/tsconfig.build.json" }
|
||||
]
|
||||
}
|
@ -8,12 +8,6 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "true",
|
||||
"prettier": "prettier --check src/",
|
||||
"prettier:fix": "prettier --write src/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix",
|
||||
"build": "node ./build.js",
|
||||
"postbuild": "tsc --build tsconfig.build.json",
|
||||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/identifier"
|
||||
|
@ -6,7 +6,5 @@
|
||||
"emitDeclarationOnly": true
|
||||
},
|
||||
"include": ["./src", "__tests__/**/**.ts"],
|
||||
"references": [
|
||||
{ "path": "../common/tsconfig.build.json" },
|
||||
]
|
||||
"references": [{ "path": "../common/tsconfig.build.json" }]
|
||||
}
|
@ -2,5 +2,5 @@ const base = require('../../jest.config.base.js')
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
displayName: 'Identity'
|
||||
displayName: 'Identity',
|
||||
}
|
||||
|
@ -15,12 +15,6 @@
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"test:log": "cat test.log | pino-pretty",
|
||||
"prettier": "prettier --check src/ tests/",
|
||||
"prettier:fix": "prettier --write src/ tests/",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "pnpm prettier:fix && pnpm lint:fix",
|
||||
"build": "node ./build.js",
|
||||
"postbuild": "tsc --build tsconfig.build.json",
|
||||
"update-main-to-dist": "node ../../update-main-to-dist.js packages/identity"
|
||||
|
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