diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..fc66834cb --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +packages/api/src/client +packages/bsky/src/lexicon +packages/pds/src/lexicon diff --git a/.eslintrc b/.eslintrc index 9d8f724f1..8a278deb2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -13,7 +13,7 @@ "plugin:prettier/recommended", "prettier" ], - "ignorePatterns":[ + "ignorePatterns": [ "dist", "node_modules", "jest.config.base.js", @@ -26,7 +26,11 @@ "rules": { "no-var": "error", "prefer-const": "warn", - "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], + "no-misleading-character-class": "warn", + "@typescript-eslint/no-unused-vars": [ + "warn", + { "argsIgnorePattern": "^_" } + ], "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/explicit-module-boundary-types": "off", diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f02d83fa7..e6f81a12d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,10 +4,10 @@ about: Create a report to help us improve title: '' labels: bug assignees: '' - --- **Describe the bug** + **To Reproduce** @@ -22,8 +22,8 @@ Steps to reproduce the behavior: **Details** - - Operating system: - - Node version: +- Operating system: +- Node version: **Additional context** diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 0ac6b3c41..0103c283e 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -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.** diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4e93a6df1..ba7febd4b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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' diff --git a/.github/workflows/repo.yaml b/.github/workflows/repo.yaml index 7fbe3b9f7..e387c4423 100644 --- a/.github/workflows/repo.yaml +++ b/.github/workflows/repo.yaml @@ -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 diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..f45dcc122 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,9 @@ +node_modules +dist +build +.nyc_output +coverage +pnpm-lock.yaml +.pnpm* +.changeset +*.d.ts diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 059698053..f10293dc0 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -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 -#### [DavidBuchanan314](https://github.com/DavidBuchanan314), Security disclosure, May 2023 \ No newline at end of file +#### [DavidBuchanan314](https://github.com/DavidBuchanan314), Security disclosure, May 2023 diff --git a/Makefile b/Makefile index 1ed13a81f..f8c36ce2b 100644 --- a/Makefile +++ b/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' diff --git a/SECURITY.md b/SECURITY.md index d1602659f..0d6086fb2 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,8 +2,8 @@ ## 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. -With your consent, we will add you to the repository [CONTRIBUTORS](https://github.com/bluesky-social/atproto/blob/main/CONTRIBUTORS.md) file. \ No newline at end of file +With your consent, we will add you to the repository [CONTRIBUTORS](https://github.com/bluesky-social/atproto/blob/main/CONTRIBUTORS.md) file. diff --git a/jest.config.base.js b/jest.config.base.js index 31a393e14..2b914a54e 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -1,5 +1,5 @@ // 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 // make sure that a babel.config.js is in the package root const esModules = ['get-port', 'node-fetch'].join('|') @@ -8,12 +8,12 @@ const esModules = ['get-port', 'node-fetch'].join('|') module.exports = { roots: ['/src', '/tests'], transform: { - "^.+\\.(t|j)s?$": "@swc/jest", + '^.+\\.(t|j)s?$': '@swc/jest', }, transformIgnorePatterns: [`/node_modules/(?!${esModules})`], testRegex: '(/tests/.*.(test|spec)).(jsx?|tsx?)$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], - setupFiles: ["/../../test-setup.ts"], + setupFiles: ['/../../test-setup.ts'], verbose: true, - testTimeout: 60000 + testTimeout: 60000, } diff --git a/lexicons/app/bsky/actor/defs.json b/lexicons/app/bsky/actor/defs.json index cf2cafe06..bd321aa60 100644 --- a/lexicons/app/bsky/actor/defs.json +++ b/lexicons/app/bsky/actor/defs.json @@ -7,18 +7,18 @@ "type": "object", "required": ["did", "handle"], "properties": { - "did": {"type": "string", "format": "did"}, - "handle": {"type": "string", "format": "handle"}, + "did": { "type": "string", "format": "did" }, + "handle": { "type": "string", "format": "handle" }, "displayName": { "type": "string", "maxGraphemes": 64, "maxLength": 640 }, "avatar": { "type": "string" }, - "viewer": {"type": "ref", "ref": "#viewerState"}, + "viewer": { "type": "ref", "ref": "#viewerState" }, "labels": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.label.defs#label"} + "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } } } }, @@ -26,8 +26,8 @@ "type": "object", "required": ["did", "handle"], "properties": { - "did": {"type": "string", "format":"did"}, - "handle": {"type": "string", "format":"handle"}, + "did": { "type": "string", "format": "did" }, + "handle": { "type": "string", "format": "handle" }, "displayName": { "type": "string", "maxGraphemes": 64, @@ -39,11 +39,11 @@ "maxLength": 2560 }, "avatar": { "type": "string" }, - "indexedAt": {"type": "string", "format": "datetime"}, - "viewer": {"type": "ref", "ref": "#viewerState"}, + "indexedAt": { "type": "string", "format": "datetime" }, + "viewer": { "type": "ref", "ref": "#viewerState" }, "labels": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.label.defs#label"} + "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } } } }, @@ -51,8 +51,8 @@ "type": "object", "required": ["did", "handle"], "properties": { - "did": {"type": "string", "format": "did"}, - "handle": {"type": "string", "format": "handle"}, + "did": { "type": "string", "format": "did" }, + "handle": { "type": "string", "format": "handle" }, "displayName": { "type": "string", "maxGraphemes": 64, @@ -65,52 +65,54 @@ }, "avatar": { "type": "string" }, "banner": { "type": "string" }, - "followersCount": {"type": "integer"}, - "followsCount": {"type": "integer"}, - "postsCount": {"type": "integer"}, - "indexedAt": {"type": "string", "format": "datetime"}, - "viewer": {"type": "ref", "ref": "#viewerState"}, + "followersCount": { "type": "integer" }, + "followsCount": { "type": "integer" }, + "postsCount": { "type": "integer" }, + "indexedAt": { "type": "string", "format": "datetime" }, + "viewer": { "type": "ref", "ref": "#viewerState" }, "labels": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.label.defs#label"} + "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } } } }, "viewerState": { "type": "object", "properties": { - "muted": {"type": "boolean"}, - "mutedByList": {"type": "ref", "ref": "app.bsky.graph.defs#listViewBasic"}, - "blockedBy": {"type": "boolean"}, - "blocking": {"type": "string", "format": "at-uri"}, - "following": {"type": "string", "format": "at-uri"}, - "followedBy": {"type": "string", "format": "at-uri"} + "muted": { "type": "boolean" }, + "mutedByList": { + "type": "ref", + "ref": "app.bsky.graph.defs#listViewBasic" + }, + "blockedBy": { "type": "boolean" }, + "blocking": { "type": "string", "format": "at-uri" }, + "following": { "type": "string", "format": "at-uri" }, + "followedBy": { "type": "string", "format": "at-uri" } } }, "preferences": { "type": "array", "items": { "type": "union", - "refs": [ - "#adultContentPref", - "#contentLabelPref", - "#savedFeedsPref" - ] + "refs": ["#adultContentPref", "#contentLabelPref", "#savedFeedsPref"] } }, "adultContentPref": { "type": "object", "required": ["enabled"], "properties": { - "enabled": {"type": "boolean", "default": false} + "enabled": { "type": "boolean", "default": false } } }, "contentLabelPref": { "type": "object", "required": ["label", "visibility"], "properties": { - "label": {"type": "string"}, - "visibility": {"type": "string", "knownValues": ["show", "warn", "hide"]} + "label": { "type": "string" }, + "visibility": { + "type": "string", + "knownValues": ["show", "warn", "hide"] + } } }, "savedFeedsPref": { diff --git a/lexicons/app/bsky/actor/getPreferences.json b/lexicons/app/bsky/actor/getPreferences.json index c6285cffb..cbd6b60bd 100644 --- a/lexicons/app/bsky/actor/getPreferences.json +++ b/lexicons/app/bsky/actor/getPreferences.json @@ -7,8 +7,7 @@ "description": "Get private preferences attached to the account.", "parameters": { "type": "params", - "properties": { - } + "properties": {} }, "output": { "encoding": "application/json", diff --git a/lexicons/app/bsky/actor/getProfile.json b/lexicons/app/bsky/actor/getProfile.json index d5f44b622..d04ed0e15 100644 --- a/lexicons/app/bsky/actor/getProfile.json +++ b/lexicons/app/bsky/actor/getProfile.json @@ -8,12 +8,15 @@ "type": "params", "required": ["actor"], "properties": { - "actor": {"type": "string", "format": "at-identifier"} + "actor": { "type": "string", "format": "at-identifier" } } }, "output": { "encoding": "application/json", - "schema": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"} + "schema": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileViewDetailed" + } } } } diff --git a/lexicons/app/bsky/actor/getProfiles.json b/lexicons/app/bsky/actor/getProfiles.json index cf4aac6fc..ded213b66 100644 --- a/lexicons/app/bsky/actor/getProfiles.json +++ b/lexicons/app/bsky/actor/getProfiles.json @@ -10,7 +10,7 @@ "properties": { "actors": { "type": "array", - "items": {"type": "string", "format": "at-identifier"}, + "items": { "type": "string", "format": "at-identifier" }, "maxLength": 25 } } @@ -23,7 +23,10 @@ "properties": { "profiles": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewDetailed"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileViewDetailed" + } } } } diff --git a/lexicons/app/bsky/actor/getSuggestions.json b/lexicons/app/bsky/actor/getSuggestions.json index de16ff7e2..38c30c2c9 100644 --- a/lexicons/app/bsky/actor/getSuggestions.json +++ b/lexicons/app/bsky/actor/getSuggestions.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -18,10 +23,13 @@ "type": "object", "required": ["actors"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "actors": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } } } } diff --git a/lexicons/app/bsky/actor/searchActors.json b/lexicons/app/bsky/actor/searchActors.json index 7ad715301..dc76ad8fc 100644 --- a/lexicons/app/bsky/actor/searchActors.json +++ b/lexicons/app/bsky/actor/searchActors.json @@ -8,9 +8,14 @@ "parameters": { "type": "params", "properties": { - "term": {"type": "string"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "term": { "type": "string" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -19,10 +24,13 @@ "type": "object", "required": ["actors"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "actors": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } } } } diff --git a/lexicons/app/bsky/actor/searchActorsTypeahead.json b/lexicons/app/bsky/actor/searchActorsTypeahead.json index 3402b230f..7065f3d71 100644 --- a/lexicons/app/bsky/actor/searchActorsTypeahead.json +++ b/lexicons/app/bsky/actor/searchActorsTypeahead.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "term": {"type": "string"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50} + "term": { "type": "string" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + } } }, "output": { @@ -20,7 +25,10 @@ "properties": { "actors": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileViewBasic" + } } } } diff --git a/lexicons/app/bsky/embed/external.json b/lexicons/app/bsky/embed/external.json index 02b96b387..694787eb5 100644 --- a/lexicons/app/bsky/embed/external.json +++ b/lexicons/app/bsky/embed/external.json @@ -15,11 +15,11 @@ }, "external": { "type": "object", - "required": ["uri", "title", "description"], + "required": ["uri", "title", "description"], "properties": { - "uri": {"type": "string", "format": "uri"}, - "title": {"type": "string"}, - "description": {"type": "string"}, + "uri": { "type": "string", "format": "uri" }, + "title": { "type": "string" }, + "description": { "type": "string" }, "thumb": { "type": "blob", "accept": ["image/*"], @@ -39,12 +39,12 @@ }, "viewExternal": { "type": "object", - "required": ["uri", "title", "description"], + "required": ["uri", "title", "description"], "properties": { - "uri": {"type": "string", "format": "uri"}, - "title": {"type": "string"}, - "description": {"type": "string"}, - "thumb": {"type": "string"} + "uri": { "type": "string", "format": "uri" }, + "title": { "type": "string" }, + "description": { "type": "string" }, + "thumb": { "type": "string" } } } } diff --git a/lexicons/app/bsky/embed/images.json b/lexicons/app/bsky/embed/images.json index 732b0d9a4..48975a60a 100644 --- a/lexicons/app/bsky/embed/images.json +++ b/lexicons/app/bsky/embed/images.json @@ -9,7 +9,7 @@ "properties": { "images": { "type": "array", - "items": {"type": "ref", "ref": "#image"}, + "items": { "type": "ref", "ref": "#image" }, "maxLength": 4 } } @@ -23,8 +23,8 @@ "accept": ["image/*"], "maxSize": 1000000 }, - "alt": {"type": "string"}, - "aspectRatio": {"type": "ref", "ref": "#aspectRatio"} + "alt": { "type": "string" }, + "aspectRatio": { "type": "ref", "ref": "#aspectRatio" } } }, "aspectRatio": { @@ -32,8 +32,8 @@ "description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.", "required": ["width", "height"], "properties": { - "width": {"type": "integer", "minimum": 1}, - "height": {"type": "integer", "minimum": 1} + "width": { "type": "integer", "minimum": 1 }, + "height": { "type": "integer", "minimum": 1 } } }, "view": { @@ -42,7 +42,7 @@ "properties": { "images": { "type": "array", - "items": {"type": "ref", "ref": "#viewImage"}, + "items": { "type": "ref", "ref": "#viewImage" }, "maxLength": 4 } } @@ -51,10 +51,10 @@ "type": "object", "required": ["thumb", "fullsize", "alt"], "properties": { - "thumb": {"type": "string"}, - "fullsize": {"type": "string"}, - "alt": {"type": "string"}, - "aspectRatio": {"type": "ref", "ref": "#aspectRatio"} + "thumb": { "type": "string" }, + "fullsize": { "type": "string" }, + "alt": { "type": "string" }, + "aspectRatio": { "type": "ref", "ref": "#aspectRatio" } } } } diff --git a/lexicons/app/bsky/embed/record.json b/lexicons/app/bsky/embed/record.json index 3cd27d495..0d7cb830b 100644 --- a/lexicons/app/bsky/embed/record.json +++ b/lexicons/app/bsky/embed/record.json @@ -7,12 +7,12 @@ "type": "object", "required": ["record"], "properties": { - "record": {"type": "ref", "ref": "com.atproto.repo.strongRef"} + "record": { "type": "ref", "ref": "com.atproto.repo.strongRef" } } }, "view": { "type": "object", - "required": ["record"], + "required": ["record"], "properties": { "record": { "type": "union", @@ -28,15 +28,18 @@ }, "viewRecord": { "type": "object", - "required": ["uri", "cid", "author", "value", "indexedAt"], + "required": ["uri", "cid", "author", "value", "indexedAt"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"}, - "value": {"type": "unknown"}, + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "author": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileViewBasic" + }, + "value": { "type": "unknown" }, "labels": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.label.defs#label"} + "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } }, "embeds": { "type": "array", @@ -50,24 +53,24 @@ ] } }, - "indexedAt": {"type": "string", "format": "datetime"} + "indexedAt": { "type": "string", "format": "datetime" } } }, "viewNotFound": { "type": "object", - "required": ["uri", "notFound"], + "required": ["uri", "notFound"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "notFound": {"type": "boolean", "const": true} + "uri": { "type": "string", "format": "at-uri" }, + "notFound": { "type": "boolean", "const": true } } }, "viewBlocked": { "type": "object", - "required": ["uri", "blocked", "author"], + "required": ["uri", "blocked", "author"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "blocked": {"type": "boolean", "const": true}, - "author": {"type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor"} + "uri": { "type": "string", "format": "at-uri" }, + "blocked": { "type": "boolean", "const": true }, + "author": { "type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor" } } } } diff --git a/lexicons/app/bsky/embed/recordWithMedia.json b/lexicons/app/bsky/embed/recordWithMedia.json index 1e5346a8b..296494d9e 100644 --- a/lexicons/app/bsky/embed/recordWithMedia.json +++ b/lexicons/app/bsky/embed/recordWithMedia.json @@ -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"] } } } diff --git a/lexicons/app/bsky/feed/defs.json b/lexicons/app/bsky/feed/defs.json index 0dd61eadc..7a9fcf5e6 100644 --- a/lexicons/app/bsky/feed/defs.json +++ b/lexicons/app/bsky/feed/defs.json @@ -6,10 +6,13 @@ "type": "object", "required": ["uri", "cid", "author", "record", "indexedAt"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "author": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"}, - "record": {"type": "unknown"}, + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "author": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileViewBasic" + }, + "record": { "type": "unknown" }, "embed": { "type": "union", "refs": [ @@ -19,58 +22,70 @@ "app.bsky.embed.recordWithMedia#view" ] }, - "replyCount": {"type": "integer"}, - "repostCount": {"type": "integer"}, - "likeCount": {"type": "integer"}, - "indexedAt": {"type": "string", "format": "datetime"}, - "viewer": {"type": "ref", "ref": "#viewerState"}, + "replyCount": { "type": "integer" }, + "repostCount": { "type": "integer" }, + "likeCount": { "type": "integer" }, + "indexedAt": { "type": "string", "format": "datetime" }, + "viewer": { "type": "ref", "ref": "#viewerState" }, "labels": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.label.defs#label"} + "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } } } }, "viewerState": { "type": "object", "properties": { - "repost": {"type": "string", "format": "at-uri"}, - "like": {"type": "string", "format": "at-uri"} + "repost": { "type": "string", "format": "at-uri" }, + "like": { "type": "string", "format": "at-uri" } } }, "feedViewPost": { "type": "object", "required": ["post"], "properties": { - "post": {"type": "ref", "ref": "#postView"}, - "reply": {"type": "ref", "ref": "#replyRef"}, - "reason": {"type": "union", "refs": ["#reasonRepost"]} + "post": { "type": "ref", "ref": "#postView" }, + "reply": { "type": "ref", "ref": "#replyRef" }, + "reason": { "type": "union", "refs": ["#reasonRepost"] } } }, "replyRef": { "type": "object", "required": ["root", "parent"], "properties": { - "root": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]}, - "parent": {"type": "union", "refs": ["#postView", "#notFoundPost", "#blockedPost"]} + "root": { + "type": "union", + "refs": ["#postView", "#notFoundPost", "#blockedPost"] + }, + "parent": { + "type": "union", + "refs": ["#postView", "#notFoundPost", "#blockedPost"] + } } }, "reasonRepost": { "type": "object", "required": ["by", "indexedAt"], "properties": { - "by": {"type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic"}, - "indexedAt": {"type": "string", "format": "datetime"} + "by": { "type": "ref", "ref": "app.bsky.actor.defs#profileViewBasic" }, + "indexedAt": { "type": "string", "format": "datetime" } } }, "threadViewPost": { "type": "object", "required": ["post"], "properties": { - "post": {"type": "ref", "ref": "#postView"}, - "parent": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]}, + "post": { "type": "ref", "ref": "#postView" }, + "parent": { + "type": "union", + "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"] + }, "replies": { "type": "array", - "items": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]} + "items": { + "type": "union", + "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"] + } } } }, @@ -78,24 +93,24 @@ "type": "object", "required": ["uri", "notFound"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "notFound": {"type": "boolean", "const": true} + "uri": { "type": "string", "format": "at-uri" }, + "notFound": { "type": "boolean", "const": true } } }, "blockedPost": { "type": "object", "required": ["uri", "blocked", "author"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "blocked": {"type": "boolean", "const": true}, - "author": {"type": "ref", "ref": "#blockedAuthor"} + "uri": { "type": "string", "format": "at-uri" }, + "blocked": { "type": "boolean", "const": true }, + "author": { "type": "ref", "ref": "#blockedAuthor" } } }, "blockedAuthor": { "type": "object", "required": ["did"], "properties": { - "did": {"type": "string", "format": "did"}, + "did": { "type": "string", "format": "did" }, "viewer": { "type": "ref", "ref": "app.bsky.actor.defs#viewerState" } } }, @@ -103,41 +118,45 @@ "type": "object", "required": ["uri", "cid", "did", "creator", "displayName", "indexedAt"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "did": {"type": "string", "format": "did"}, - "creator": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}, - "displayName": {"type": "string"}, - "description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000}, + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "did": { "type": "string", "format": "did" }, + "creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, + "displayName": { "type": "string" }, + "description": { + "type": "string", + "maxGraphemes": 300, + "maxLength": 3000 + }, "descriptionFacets": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.richtext.facet"} + "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } }, - "avatar": {"type": "string"}, - "likeCount": {"type": "integer", "minimum": 0 }, - "viewer": {"type": "ref", "ref": "#generatorViewerState"}, - "indexedAt": {"type": "string", "format": "datetime"} + "avatar": { "type": "string" }, + "likeCount": { "type": "integer", "minimum": 0 }, + "viewer": { "type": "ref", "ref": "#generatorViewerState" }, + "indexedAt": { "type": "string", "format": "datetime" } } }, "generatorViewerState": { "type": "object", "properties": { - "like": {"type": "string", "format": "at-uri"} + "like": { "type": "string", "format": "at-uri" } } }, "skeletonFeedPost": { "type": "object", "required": ["post"], "properties": { - "post": {"type": "string", "format": "at-uri"}, - "reason": {"type": "union", "refs": ["#skeletonReasonRepost"]} + "post": { "type": "string", "format": "at-uri" }, + "reason": { "type": "union", "refs": ["#skeletonReasonRepost"] } } }, "skeletonReasonRepost": { "type": "object", "required": ["repost"], "properties": { - "repost": {"type": "string", "format": "at-uri"} + "repost": { "type": "string", "format": "at-uri" } } } } diff --git a/lexicons/app/bsky/feed/describeFeedGenerator.json b/lexicons/app/bsky/feed/describeFeedGenerator.json index 265b72c8b..69c143e60 100644 --- a/lexicons/app/bsky/feed/describeFeedGenerator.json +++ b/lexicons/app/bsky/feed/describeFeedGenerator.json @@ -11,12 +11,12 @@ "type": "object", "required": ["did", "feeds"], "properties": { - "did": {"type": "string", "format": "did"}, + "did": { "type": "string", "format": "did" }, "feeds": { "type": "array", - "items": {"type": "ref", "ref": "#feed"} + "items": { "type": "ref", "ref": "#feed" } }, - "links": {"type": "ref", "ref": "#links"} + "links": { "type": "ref", "ref": "#links" } } } } @@ -25,14 +25,14 @@ "type": "object", "required": ["uri"], "properties": { - "uri": {"type": "string", "format": "at-uri"} + "uri": { "type": "string", "format": "at-uri" } } }, "links": { "type": "object", "properties": { - "privacyPolicy": {"type": "string"}, - "termsOfService": {"type": "string"} + "privacyPolicy": { "type": "string" }, + "termsOfService": { "type": "string" } } } } diff --git a/lexicons/app/bsky/feed/generator.json b/lexicons/app/bsky/feed/generator.json index 78742b120..e31bb4484 100644 --- a/lexicons/app/bsky/feed/generator.json +++ b/lexicons/app/bsky/feed/generator.json @@ -10,12 +10,20 @@ "type": "object", "required": ["did", "displayName", "createdAt"], "properties": { - "did": {"type": "string", "format": "did"}, - "displayName": {"type": "string", "maxGraphemes": 24, "maxLength": 240}, - "description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000}, + "did": { "type": "string", "format": "did" }, + "displayName": { + "type": "string", + "maxGraphemes": 24, + "maxLength": 240 + }, + "description": { + "type": "string", + "maxGraphemes": 300, + "maxLength": 3000 + }, "descriptionFacets": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.richtext.facet"} + "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } }, "avatar": { "type": "blob", @@ -26,7 +34,7 @@ "type": "union", "refs": ["com.atproto.label.defs#selfLabels"] }, - "createdAt": {"type": "string", "format": "datetime"} + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/app/bsky/feed/getActorFeeds.json b/lexicons/app/bsky/feed/getActorFeeds.json index b47bd90e6..f34aece16 100644 --- a/lexicons/app/bsky/feed/getActorFeeds.json +++ b/lexicons/app/bsky/feed/getActorFeeds.json @@ -9,9 +9,14 @@ "type": "params", "required": ["actor"], "properties": { - "actor": {"type": "string", "format": "at-identifier"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "actor": { "type": "string", "format": "at-identifier" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,10 +25,13 @@ "type": "object", "required": ["feeds"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feeds": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#generatorView" + } } } } diff --git a/lexicons/app/bsky/feed/getActorLikes.json b/lexicons/app/bsky/feed/getActorLikes.json index 38bb353aa..df5e45a42 100644 --- a/lexicons/app/bsky/feed/getActorLikes.json +++ b/lexicons/app/bsky/feed/getActorLikes.json @@ -9,9 +9,14 @@ "type": "params", "required": ["actor"], "properties": { - "actor": {"type": "string", "format": "at-identifier"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "actor": { "type": "string", "format": "at-identifier" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,18 +25,18 @@ "type": "object", "required": ["feed"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feed": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#feedViewPost" + } } } } }, - "errors": [ - {"name": "BlockedActor"}, - {"name": "BlockedByActor"} - ] + "errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }] } } } diff --git a/lexicons/app/bsky/feed/getAuthorFeed.json b/lexicons/app/bsky/feed/getAuthorFeed.json index fe7d4cae5..c1edfb213 100644 --- a/lexicons/app/bsky/feed/getAuthorFeed.json +++ b/lexicons/app/bsky/feed/getAuthorFeed.json @@ -9,10 +9,23 @@ "type": "params", "required": ["actor"], "properties": { - "actor": {"type": "string", "format": "at-identifier"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"}, - "filter": {"type": "string", "knownValues": ["posts_with_replies", "posts_no_replies", "posts_with_media"], "default": "posts_with_replies"} + "actor": { "type": "string", "format": "at-identifier" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" }, + "filter": { + "type": "string", + "knownValues": [ + "posts_with_replies", + "posts_no_replies", + "posts_with_media" + ], + "default": "posts_with_replies" + } } }, "output": { @@ -21,18 +34,18 @@ "type": "object", "required": ["feed"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feed": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#feedViewPost" + } } } } }, - "errors": [ - {"name": "BlockedActor"}, - {"name": "BlockedByActor"} - ] + "errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }] } } } diff --git a/lexicons/app/bsky/feed/getFeed.json b/lexicons/app/bsky/feed/getFeed.json index 5ca96e11f..9aaeb24c7 100644 --- a/lexicons/app/bsky/feed/getFeed.json +++ b/lexicons/app/bsky/feed/getFeed.json @@ -9,9 +9,14 @@ "type": "params", "required": ["feed"], "properties": { - "feed": {"type": "string", "format": "at-uri"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "feed": { "type": "string", "format": "at-uri" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,17 +25,18 @@ "type": "object", "required": ["feed"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feed": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#feedViewPost" + } } } } }, - "errors": [ - {"name": "UnknownFeed"} - ] + "errors": [{ "name": "UnknownFeed" }] } } } diff --git a/lexicons/app/bsky/feed/getFeedGenerator.json b/lexicons/app/bsky/feed/getFeedGenerator.json index 0bb588bae..5af09254f 100644 --- a/lexicons/app/bsky/feed/getFeedGenerator.json +++ b/lexicons/app/bsky/feed/getFeedGenerator.json @@ -9,7 +9,7 @@ "type": "params", "required": ["feed"], "properties": { - "feed": {"type": "string", "format": "at-uri"} + "feed": { "type": "string", "format": "at-uri" } } }, "output": { @@ -18,9 +18,12 @@ "type": "object", "required": ["view", "isOnline", "isValid"], "properties": { - "view": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"}, - "isOnline": {"type": "boolean"}, - "isValid": {"type": "boolean"} + "view": { + "type": "ref", + "ref": "app.bsky.feed.defs#generatorView" + }, + "isOnline": { "type": "boolean" }, + "isValid": { "type": "boolean" } } } } diff --git a/lexicons/app/bsky/feed/getFeedGenerators.json b/lexicons/app/bsky/feed/getFeedGenerators.json index 595e4e96f..d0cae3b39 100644 --- a/lexicons/app/bsky/feed/getFeedGenerators.json +++ b/lexicons/app/bsky/feed/getFeedGenerators.json @@ -11,7 +11,7 @@ "properties": { "feeds": { "type": "array", - "items": {"type": "string", "format": "at-uri"} + "items": { "type": "string", "format": "at-uri" } } } }, @@ -23,7 +23,10 @@ "properties": { "feeds": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#generatorView" + } } } } diff --git a/lexicons/app/bsky/feed/getFeedSkeleton.json b/lexicons/app/bsky/feed/getFeedSkeleton.json index 013e7bacb..d12b4bdc2 100644 --- a/lexicons/app/bsky/feed/getFeedSkeleton.json +++ b/lexicons/app/bsky/feed/getFeedSkeleton.json @@ -9,9 +9,14 @@ "type": "params", "required": ["feed"], "properties": { - "feed": {"type": "string", "format": "at-uri"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "feed": { "type": "string", "format": "at-uri" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,17 +25,18 @@ "type": "object", "required": ["feed"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feed": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#skeletonFeedPost" + } } } } }, - "errors": [ - {"name": "UnknownFeed"} - ] + "errors": [{ "name": "UnknownFeed" }] } } } diff --git a/lexicons/app/bsky/feed/getLikes.json b/lexicons/app/bsky/feed/getLikes.json index b10a75ada..e9b632684 100644 --- a/lexicons/app/bsky/feed/getLikes.json +++ b/lexicons/app/bsky/feed/getLikes.json @@ -8,10 +8,15 @@ "type": "params", "required": ["uri"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,12 +25,12 @@ "type": "object", "required": ["uri", "likes"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "cursor": {"type": "string"}, + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "cursor": { "type": "string" }, "likes": { "type": "array", - "items": {"type": "ref", "ref": "#like"} + "items": { "type": "ref", "ref": "#like" } } } } @@ -35,9 +40,9 @@ "type": "object", "required": ["indexedAt", "createdAt", "actor"], "properties": { - "indexedAt": {"type": "string", "format": "datetime"}, - "createdAt": {"type": "string", "format": "datetime"}, - "actor": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "indexedAt": { "type": "string", "format": "datetime" }, + "createdAt": { "type": "string", "format": "datetime" }, + "actor": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" } } } } diff --git a/lexicons/app/bsky/feed/getPostThread.json b/lexicons/app/bsky/feed/getPostThread.json index f69a30c5f..2d5c2e29a 100644 --- a/lexicons/app/bsky/feed/getPostThread.json +++ b/lexicons/app/bsky/feed/getPostThread.json @@ -8,7 +8,7 @@ "type": "params", "required": ["uri"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, + "uri": { "type": "string", "format": "at-uri" }, "depth": { "type": "integer", "default": 6, @@ -40,9 +40,7 @@ } } }, - "errors": [ - {"name": "NotFound"} - ] + "errors": [{ "name": "NotFound" }] } } } diff --git a/lexicons/app/bsky/feed/getPosts.json b/lexicons/app/bsky/feed/getPosts.json index 10d8d609a..37056417a 100644 --- a/lexicons/app/bsky/feed/getPosts.json +++ b/lexicons/app/bsky/feed/getPosts.json @@ -11,7 +11,7 @@ "properties": { "uris": { "type": "array", - "items": {"type": "string", "format": "at-uri"}, + "items": { "type": "string", "format": "at-uri" }, "maxLength": 25 } } @@ -24,7 +24,7 @@ "properties": { "posts": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#postView"} + "items": { "type": "ref", "ref": "app.bsky.feed.defs#postView" } } } } diff --git a/lexicons/app/bsky/feed/getRepostedBy.json b/lexicons/app/bsky/feed/getRepostedBy.json index 4298b8966..247ca305e 100644 --- a/lexicons/app/bsky/feed/getRepostedBy.json +++ b/lexicons/app/bsky/feed/getRepostedBy.json @@ -8,10 +8,15 @@ "type": "params", "required": ["uri"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,12 +25,15 @@ "type": "object", "required": ["uri", "repostedBy"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "cursor": {"type": "string"}, + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "cursor": { "type": "string" }, "repostedBy": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } } } } diff --git a/lexicons/app/bsky/feed/getSuggestedFeeds.json b/lexicons/app/bsky/feed/getSuggestedFeeds.json index db62ddd52..de7c4fef7 100644 --- a/lexicons/app/bsky/feed/getSuggestedFeeds.json +++ b/lexicons/app/bsky/feed/getSuggestedFeeds.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -18,10 +23,13 @@ "type": "object", "required": ["feeds"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feeds": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#generatorView" + } } } } diff --git a/lexicons/app/bsky/feed/getTimeline.json b/lexicons/app/bsky/feed/getTimeline.json index e5e13c496..49e1ae84b 100644 --- a/lexicons/app/bsky/feed/getTimeline.json +++ b/lexicons/app/bsky/feed/getTimeline.json @@ -8,9 +8,14 @@ "parameters": { "type": "params", "properties": { - "algorithm": {"type": "string"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "algorithm": { "type": "string" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -19,10 +24,13 @@ "type": "object", "required": ["feed"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feed": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#feedViewPost" + } } } } diff --git a/lexicons/app/bsky/feed/like.json b/lexicons/app/bsky/feed/like.json index ea0a7fa5f..01d9a08a7 100644 --- a/lexicons/app/bsky/feed/like.json +++ b/lexicons/app/bsky/feed/like.json @@ -9,8 +9,8 @@ "type": "object", "required": ["subject", "createdAt"], "properties": { - "subject": {"type": "ref", "ref": "com.atproto.repo.strongRef"}, - "createdAt": {"type": "string", "format": "datetime"} + "subject": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/app/bsky/feed/post.json b/lexicons/app/bsky/feed/post.json index acefc29bf..5622b5cfd 100644 --- a/lexicons/app/bsky/feed/post.json +++ b/lexicons/app/bsky/feed/post.json @@ -9,17 +9,17 @@ "type": "object", "required": ["text", "createdAt"], "properties": { - "text": {"type": "string", "maxLength": 3000, "maxGraphemes": 300}, + "text": { "type": "string", "maxLength": 3000, "maxGraphemes": 300 }, "entities": { "type": "array", "description": "Deprecated: replaced by app.bsky.richtext.facet.", - "items": {"type": "ref", "ref": "#entity"} + "items": { "type": "ref", "ref": "#entity" } }, "facets": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.richtext.facet"} + "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } }, - "reply": {"type": "ref", "ref": "#replyRef"}, + "reply": { "type": "ref", "ref": "#replyRef" }, "embed": { "type": "union", "refs": [ @@ -32,22 +32,22 @@ "langs": { "type": "array", "maxLength": 3, - "items": {"type": "string", "format": "language"} + "items": { "type": "string", "format": "language" } }, "labels": { "type": "union", "refs": ["com.atproto.label.defs#selfLabels"] }, - "createdAt": {"type": "string", "format": "datetime"} + "createdAt": { "type": "string", "format": "datetime" } } } }, - "replyRef":{ + "replyRef": { "type": "object", "required": ["root", "parent"], "properties": { - "root": {"type": "ref", "ref": "com.atproto.repo.strongRef"}, - "parent": {"type": "ref", "ref": "com.atproto.repo.strongRef"} + "root": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, + "parent": { "type": "ref", "ref": "com.atproto.repo.strongRef" } } }, "entity": { @@ -55,12 +55,12 @@ "description": "Deprecated: use facets instead.", "required": ["index", "type", "value"], "properties": { - "index": {"type": "ref", "ref": "#textSlice"}, + "index": { "type": "ref", "ref": "#textSlice" }, "type": { "type": "string", "description": "Expected values are 'mention' and 'link'." }, - "value": {"type": "string"} + "value": { "type": "string" } } }, "textSlice": { @@ -68,8 +68,8 @@ "description": "Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.", "required": ["start", "end"], "properties": { - "start": {"type": "integer", "minimum": 0}, - "end": {"type": "integer", "minimum": 0} + "start": { "type": "integer", "minimum": 0 }, + "end": { "type": "integer", "minimum": 0 } } } } diff --git a/lexicons/app/bsky/feed/repost.json b/lexicons/app/bsky/feed/repost.json index 752a032ec..3b809a53a 100644 --- a/lexicons/app/bsky/feed/repost.json +++ b/lexicons/app/bsky/feed/repost.json @@ -9,10 +9,10 @@ "type": "object", "required": ["subject", "createdAt"], "properties": { - "subject": {"type": "ref", "ref": "com.atproto.repo.strongRef"}, - "createdAt": {"type": "string", "format": "datetime"} + "subject": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, + "createdAt": { "type": "string", "format": "datetime" } } } } } -} \ No newline at end of file +} diff --git a/lexicons/app/bsky/graph/block.json b/lexicons/app/bsky/graph/block.json index 919a9c75e..67821908d 100644 --- a/lexicons/app/bsky/graph/block.json +++ b/lexicons/app/bsky/graph/block.json @@ -10,8 +10,8 @@ "type": "object", "required": ["subject", "createdAt"], "properties": { - "subject": {"type": "string", "format": "did"}, - "createdAt": {"type": "string", "format": "datetime"} + "subject": { "type": "string", "format": "did" }, + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/app/bsky/graph/defs.json b/lexicons/app/bsky/graph/defs.json index d5de7e542..4366f9df3 100644 --- a/lexicons/app/bsky/graph/defs.json +++ b/lexicons/app/bsky/graph/defs.json @@ -6,46 +6,48 @@ "type": "object", "required": ["uri", "cid", "name", "purpose"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "name": {"type": "string", "maxLength": 64, "minLength": 1}, - "purpose": {"type": "ref", "ref": "#listPurpose"}, - "avatar": {"type": "string"}, - "viewer": {"type": "ref", "ref": "#listViewerState"}, - "indexedAt": {"type": "string", "format": "datetime"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "name": { "type": "string", "maxLength": 64, "minLength": 1 }, + "purpose": { "type": "ref", "ref": "#listPurpose" }, + "avatar": { "type": "string" }, + "viewer": { "type": "ref", "ref": "#listViewerState" }, + "indexedAt": { "type": "string", "format": "datetime" } } }, "listView": { "type": "object", "required": ["uri", "cid", "creator", "name", "purpose", "indexedAt"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "creator": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}, - "name": {"type": "string", "maxLength": 64, "minLength": 1}, - "purpose": {"type": "ref", "ref": "#listPurpose"}, - "description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000}, + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, + "name": { "type": "string", "maxLength": 64, "minLength": 1 }, + "purpose": { "type": "ref", "ref": "#listPurpose" }, + "description": { + "type": "string", + "maxGraphemes": 300, + "maxLength": 3000 + }, "descriptionFacets": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.richtext.facet"} + "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } }, - "avatar": {"type": "string"}, - "viewer": {"type": "ref", "ref": "#listViewerState"}, - "indexedAt": {"type": "string", "format": "datetime"} + "avatar": { "type": "string" }, + "viewer": { "type": "ref", "ref": "#listViewerState" }, + "indexedAt": { "type": "string", "format": "datetime" } } }, "listItemView": { "type": "object", "required": ["subject"], "properties": { - "subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "subject": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" } } }, "listPurpose": { "type": "string", - "knownValues": [ - "app.bsky.graph.defs#modlist" - ] + "knownValues": ["app.bsky.graph.defs#modlist"] }, "modlist": { "type": "token", @@ -54,7 +56,7 @@ "listViewerState": { "type": "object", "properties": { - "muted": {"type": "boolean"} + "muted": { "type": "boolean" } } } } diff --git a/lexicons/app/bsky/graph/follow.json b/lexicons/app/bsky/graph/follow.json index 5c04a3501..64783ae1d 100644 --- a/lexicons/app/bsky/graph/follow.json +++ b/lexicons/app/bsky/graph/follow.json @@ -10,8 +10,8 @@ "type": "object", "required": ["subject", "createdAt"], "properties": { - "subject": {"type": "string", "format": "did"}, - "createdAt": {"type": "string", "format": "datetime"} + "subject": { "type": "string", "format": "did" }, + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/app/bsky/graph/getBlocks.json b/lexicons/app/bsky/graph/getBlocks.json index 5b1d28f4e..1573e57fa 100644 --- a/lexicons/app/bsky/graph/getBlocks.json +++ b/lexicons/app/bsky/graph/getBlocks.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -18,10 +23,13 @@ "type": "object", "required": ["blocks"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "blocks": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } } } } diff --git a/lexicons/app/bsky/graph/getFollowers.json b/lexicons/app/bsky/graph/getFollowers.json index f9990de7c..f3824bbd6 100644 --- a/lexicons/app/bsky/graph/getFollowers.json +++ b/lexicons/app/bsky/graph/getFollowers.json @@ -9,9 +9,14 @@ "type": "params", "required": ["actor"], "properties": { - "actor": {"type": "string", "format": "at-identifier"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "actor": { "type": "string", "format": "at-identifier" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,11 +25,17 @@ "type": "object", "required": ["subject", "followers"], "properties": { - "subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}, - "cursor": {"type": "string"}, + "subject": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + }, + "cursor": { "type": "string" }, "followers": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } } } } diff --git a/lexicons/app/bsky/graph/getFollows.json b/lexicons/app/bsky/graph/getFollows.json index 3a20b8419..04ce9fef8 100644 --- a/lexicons/app/bsky/graph/getFollows.json +++ b/lexicons/app/bsky/graph/getFollows.json @@ -9,9 +9,14 @@ "type": "params", "required": ["actor"], "properties": { - "actor": {"type": "string", "format": "at-identifier"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "actor": { "type": "string", "format": "at-identifier" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,11 +25,17 @@ "type": "object", "required": ["subject", "follows"], "properties": { - "subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}, - "cursor": {"type": "string"}, + "subject": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + }, + "cursor": { "type": "string" }, "follows": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } } } } diff --git a/lexicons/app/bsky/graph/getList.json b/lexicons/app/bsky/graph/getList.json index 47b7bf9d4..0241ee1e7 100644 --- a/lexicons/app/bsky/graph/getList.json +++ b/lexicons/app/bsky/graph/getList.json @@ -9,9 +9,14 @@ "type": "params", "required": ["list"], "properties": { - "list": {"type": "string", "format": "at-uri"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "list": { "type": "string", "format": "at-uri" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,11 +25,14 @@ "type": "object", "required": ["list", "items"], "properties": { - "cursor": {"type": "string"}, - "list": {"type": "ref", "ref": "app.bsky.graph.defs#listView"}, + "cursor": { "type": "string" }, + "list": { "type": "ref", "ref": "app.bsky.graph.defs#listView" }, "items": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.graph.defs#listItemView"} + "items": { + "type": "ref", + "ref": "app.bsky.graph.defs#listItemView" + } } } } diff --git a/lexicons/app/bsky/graph/getListMutes.json b/lexicons/app/bsky/graph/getListMutes.json index f1ec812e5..44b3b652f 100644 --- a/lexicons/app/bsky/graph/getListMutes.json +++ b/lexicons/app/bsky/graph/getListMutes.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -18,10 +23,10 @@ "type": "object", "required": ["lists"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "lists": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.graph.defs#listView"} + "items": { "type": "ref", "ref": "app.bsky.graph.defs#listView" } } } } diff --git a/lexicons/app/bsky/graph/getLists.json b/lexicons/app/bsky/graph/getLists.json index 09c6bcc9f..de83a50d3 100644 --- a/lexicons/app/bsky/graph/getLists.json +++ b/lexicons/app/bsky/graph/getLists.json @@ -9,9 +9,14 @@ "type": "params", "required": ["actor"], "properties": { - "actor": {"type": "string", "format": "at-identifier"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "actor": { "type": "string", "format": "at-identifier" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,10 +25,10 @@ "type": "object", "required": ["lists"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "lists": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.graph.defs#listView"} + "items": { "type": "ref", "ref": "app.bsky.graph.defs#listView" } } } } diff --git a/lexicons/app/bsky/graph/getMutes.json b/lexicons/app/bsky/graph/getMutes.json index 150d68582..aba63ea30 100644 --- a/lexicons/app/bsky/graph/getMutes.json +++ b/lexicons/app/bsky/graph/getMutes.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -18,10 +23,13 @@ "type": "object", "required": ["mutes"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "mutes": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"} + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } } } } diff --git a/lexicons/app/bsky/graph/list.json b/lexicons/app/bsky/graph/list.json index c3583b55e..ccc845a69 100644 --- a/lexicons/app/bsky/graph/list.json +++ b/lexicons/app/bsky/graph/list.json @@ -10,12 +10,19 @@ "type": "object", "required": ["name", "purpose", "createdAt"], "properties": { - "purpose": {"type": "ref", "ref": "app.bsky.graph.defs#listPurpose"}, - "name": {"type": "string", "maxLength": 64, "minLength": 1}, - "description": {"type": "string", "maxGraphemes": 300, "maxLength": 3000}, + "purpose": { + "type": "ref", + "ref": "app.bsky.graph.defs#listPurpose" + }, + "name": { "type": "string", "maxLength": 64, "minLength": 1 }, + "description": { + "type": "string", + "maxGraphemes": 300, + "maxLength": 3000 + }, "descriptionFacets": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.richtext.facet"} + "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } }, "avatar": { "type": "blob", @@ -26,7 +33,7 @@ "type": "union", "refs": ["com.atproto.label.defs#selfLabels"] }, - "createdAt": {"type": "string", "format": "datetime"} + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/app/bsky/graph/listitem.json b/lexicons/app/bsky/graph/listitem.json index c8f82e7fd..f05a1641e 100644 --- a/lexicons/app/bsky/graph/listitem.json +++ b/lexicons/app/bsky/graph/listitem.json @@ -10,9 +10,9 @@ "type": "object", "required": ["subject", "list", "createdAt"], "properties": { - "subject": {"type": "string", "format": "did"}, - "list": {"type": "string", "format": "at-uri"}, - "createdAt": {"type": "string", "format": "datetime"} + "subject": { "type": "string", "format": "did" }, + "list": { "type": "string", "format": "at-uri" }, + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/app/bsky/notification/getUnreadCount.json b/lexicons/app/bsky/notification/getUnreadCount.json index ba2136228..8b0cdc3af 100644 --- a/lexicons/app/bsky/notification/getUnreadCount.json +++ b/lexicons/app/bsky/notification/getUnreadCount.json @@ -7,7 +7,7 @@ "parameters": { "type": "params", "properties": { - "seenAt": { "type": "string", "format": "datetime"} + "seenAt": { "type": "string", "format": "datetime" } } }, "output": { @@ -16,7 +16,7 @@ "type": "object", "required": ["count"], "properties": { - "count": { "type": "integer"} + "count": { "type": "integer" } } } } diff --git a/lexicons/app/bsky/notification/listNotifications.json b/lexicons/app/bsky/notification/listNotifications.json index d3775e617..c5a9aee0f 100644 --- a/lexicons/app/bsky/notification/listNotifications.json +++ b/lexicons/app/bsky/notification/listNotifications.json @@ -7,9 +7,14 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"}, - "seenAt": { "type": "string", "format": "datetime"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" }, + "seenAt": { "type": "string", "format": "datetime" } } }, "output": { @@ -18,10 +23,10 @@ "type": "object", "required": ["notifications"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "notifications": { "type": "array", - "items": {"type": "ref", "ref": "#notification"} + "items": { "type": "ref", "ref": "#notification" } } } } @@ -29,23 +34,38 @@ }, "notification": { "type": "object", - "required": ["uri", "cid", "author", "reason", "record", "isRead", "indexedAt"], + "required": [ + "uri", + "cid", + "author", + "reason", + "record", + "isRead", + "indexedAt" + ], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid" }, - "author": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}, + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "author": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, "reason": { "type": "string", "description": "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'.", - "knownValues": ["like", "repost", "follow", "mention", "reply", "quote"] + "knownValues": [ + "like", + "repost", + "follow", + "mention", + "reply", + "quote" + ] }, - "reasonSubject": {"type": "string", "format": "at-uri"}, - "record": {"type": "unknown"}, - "isRead": {"type": "boolean"}, - "indexedAt": {"type": "string", "format": "datetime"}, + "reasonSubject": { "type": "string", "format": "at-uri" }, + "record": { "type": "unknown" }, + "isRead": { "type": "boolean" }, + "indexedAt": { "type": "string", "format": "datetime" }, "labels": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.label.defs#label"} + "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } } } } diff --git a/lexicons/app/bsky/notification/registerPush.json b/lexicons/app/bsky/notification/registerPush.json index af83cfaf8..159dd3700 100644 --- a/lexicons/app/bsky/notification/registerPush.json +++ b/lexicons/app/bsky/notification/registerPush.json @@ -11,10 +11,13 @@ "type": "object", "required": ["serviceDid", "token", "platform", "appId"], "properties": { - "serviceDid": {"type": "string", "format": "did"}, - "token": {"type": "string"}, - "platform": {"type": "string", "knownValues": ["ios", "android", "web"]}, - "appId": {"type": "string"} + "serviceDid": { "type": "string", "format": "did" }, + "token": { "type": "string" }, + "platform": { + "type": "string", + "knownValues": ["ios", "android", "web"] + }, + "appId": { "type": "string" } } } } diff --git a/lexicons/app/bsky/notification/updateSeen.json b/lexicons/app/bsky/notification/updateSeen.json index 5f54d9ae1..33626343e 100644 --- a/lexicons/app/bsky/notification/updateSeen.json +++ b/lexicons/app/bsky/notification/updateSeen.json @@ -11,7 +11,7 @@ "type": "object", "required": ["seenAt"], "properties": { - "seenAt": { "type": "string", "format": "datetime"} + "seenAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/app/bsky/richtext/facet.json b/lexicons/app/bsky/richtext/facet.json index 714fe8151..9addf2f34 100644 --- a/lexicons/app/bsky/richtext/facet.json +++ b/lexicons/app/bsky/richtext/facet.json @@ -6,10 +6,10 @@ "type": "object", "required": ["index", "features"], "properties": { - "index": {"type": "ref", "ref": "#byteSlice"}, + "index": { "type": "ref", "ref": "#byteSlice" }, "features": { "type": "array", - "items": {"type": "union", "refs": ["#mention", "#link"]} + "items": { "type": "union", "refs": ["#mention", "#link"] } } } }, @@ -18,7 +18,7 @@ "description": "A facet feature for actor mentions.", "required": ["did"], "properties": { - "did": {"type": "string", "format": "did"} + "did": { "type": "string", "format": "did" } } }, "link": { @@ -26,7 +26,7 @@ "description": "A facet feature for links.", "required": ["uri"], "properties": { - "uri": {"type": "string", "format": "uri"} + "uri": { "type": "string", "format": "uri" } } }, "byteSlice": { @@ -34,8 +34,8 @@ "description": "A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.", "required": ["byteStart", "byteEnd"], "properties": { - "byteStart": {"type": "integer", "minimum": 0}, - "byteEnd": {"type": "integer", "minimum": 0} + "byteStart": { "type": "integer", "minimum": 0 }, + "byteEnd": { "type": "integer", "minimum": 0 } } } } diff --git a/lexicons/app/bsky/unspecced/getPopular.json b/lexicons/app/bsky/unspecced/getPopular.json index c6fe559c5..791968c5e 100644 --- a/lexicons/app/bsky/unspecced/getPopular.json +++ b/lexicons/app/bsky/unspecced/getPopular.json @@ -8,9 +8,14 @@ "parameters": { "type": "params", "properties": { - "includeNsfw": {"type": "boolean", "default": false}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "includeNsfw": { "type": "boolean", "default": false }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -19,10 +24,13 @@ "type": "object", "required": ["feed"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feed": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#feedViewPost" + } } } } diff --git a/lexicons/app/bsky/unspecced/getPopularFeedGenerators.json b/lexicons/app/bsky/unspecced/getPopularFeedGenerators.json index 55a85bcb5..ddeb7e7fa 100644 --- a/lexicons/app/bsky/unspecced/getPopularFeedGenerators.json +++ b/lexicons/app/bsky/unspecced/getPopularFeedGenerators.json @@ -8,9 +8,14 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"}, - "query": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" }, + "query": { "type": "string" } } }, "output": { @@ -19,10 +24,13 @@ "type": "object", "required": ["feeds"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feeds": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#generatorView"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#generatorView" + } } } } diff --git a/lexicons/app/bsky/unspecced/getTimelineSkeleton.json b/lexicons/app/bsky/unspecced/getTimelineSkeleton.json index 7ac6d7dbd..c720b8183 100644 --- a/lexicons/app/bsky/unspecced/getTimelineSkeleton.json +++ b/lexicons/app/bsky/unspecced/getTimelineSkeleton.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -18,17 +23,18 @@ "type": "object", "required": ["feed"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "feed": { "type": "array", - "items": {"type": "ref", "ref": "app.bsky.feed.defs#skeletonFeedPost"} + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#skeletonFeedPost" + } } } } }, - "errors": [ - {"name": "UnknownFeed"} - ] + "errors": [{ "name": "UnknownFeed" }] } } } diff --git a/lexicons/com/atproto/admin/disableInviteCodes.json b/lexicons/com/atproto/admin/disableInviteCodes.json index bfab5479a..f84bc05f2 100644 --- a/lexicons/com/atproto/admin/disableInviteCodes.json +++ b/lexicons/com/atproto/admin/disableInviteCodes.json @@ -11,12 +11,12 @@ "type": "object", "properties": { "codes": { - "type": "array", - "items": {"type": "string"} + "type": "array", + "items": { "type": "string" } }, "accounts": { - "type": "array", - "items": {"type": "string"} + "type": "array", + "items": { "type": "string" } } } } diff --git a/lexicons/com/atproto/admin/getInviteCodes.json b/lexicons/com/atproto/admin/getInviteCodes.json index c74a6d09b..895f1259d 100644 --- a/lexicons/com/atproto/admin/getInviteCodes.json +++ b/lexicons/com/atproto/admin/getInviteCodes.json @@ -10,14 +10,16 @@ "properties": { "sort": { "type": "string", - "knownValues": [ - "recent", - "usage" - ], + "knownValues": ["recent", "usage"], "default": "recent" }, - "limit": {"type": "integer", "minimum": 1, "maximum": 500, "default": 100}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 500, + "default": 100 + }, + "cursor": { "type": "string" } } }, "output": { @@ -26,10 +28,13 @@ "type": "object", "required": ["codes"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "codes": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.server.defs#inviteCode"} + "items": { + "type": "ref", + "ref": "com.atproto.server.defs#inviteCode" + } } } } diff --git a/lexicons/com/atproto/admin/getModerationAction.json b/lexicons/com/atproto/admin/getModerationAction.json index b733ba670..b25ccc227 100644 --- a/lexicons/com/atproto/admin/getModerationAction.json +++ b/lexicons/com/atproto/admin/getModerationAction.json @@ -9,12 +9,15 @@ "type": "params", "required": ["id"], "properties": { - "id": {"type": "integer"} + "id": { "type": "integer" } } }, "output": { "encoding": "application/json", - "schema": {"type": "ref", "ref": "com.atproto.admin.defs#actionViewDetail"} + "schema": { + "type": "ref", + "ref": "com.atproto.admin.defs#actionViewDetail" + } } } } diff --git a/lexicons/com/atproto/admin/getModerationActions.json b/lexicons/com/atproto/admin/getModerationActions.json index 20ac9144a..89e16fd69 100644 --- a/lexicons/com/atproto/admin/getModerationActions.json +++ b/lexicons/com/atproto/admin/getModerationActions.json @@ -8,9 +8,14 @@ "parameters": { "type": "params", "properties": { - "subject": {"type": "string"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "subject": { "type": "string" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -19,8 +24,14 @@ "type": "object", "required": ["actions"], "properties": { - "cursor": {"type": "string"}, - "actions": {"type": "array", "items": {"type": "ref", "ref": "com.atproto.admin.defs#actionView"}} + "cursor": { "type": "string" }, + "actions": { + "type": "array", + "items": { + "type": "ref", + "ref": "com.atproto.admin.defs#actionView" + } + } } } } diff --git a/lexicons/com/atproto/admin/getModerationReport.json b/lexicons/com/atproto/admin/getModerationReport.json index 2f1eed8d9..3e84e13e6 100644 --- a/lexicons/com/atproto/admin/getModerationReport.json +++ b/lexicons/com/atproto/admin/getModerationReport.json @@ -9,12 +9,15 @@ "type": "params", "required": ["id"], "properties": { - "id": {"type": "integer"} + "id": { "type": "integer" } } }, "output": { "encoding": "application/json", - "schema": {"type": "ref", "ref": "com.atproto.admin.defs#reportViewDetail"} + "schema": { + "type": "ref", + "ref": "com.atproto.admin.defs#reportViewDetail" + } } } } diff --git a/lexicons/com/atproto/admin/getRecord.json b/lexicons/com/atproto/admin/getRecord.json index b0790187b..a16fe484f 100644 --- a/lexicons/com/atproto/admin/getRecord.json +++ b/lexicons/com/atproto/admin/getRecord.json @@ -9,17 +9,18 @@ "type": "params", "required": ["uri"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" } } }, "output": { "encoding": "application/json", - "schema": {"type": "ref", "ref": "com.atproto.admin.defs#recordViewDetail"} + "schema": { + "type": "ref", + "ref": "com.atproto.admin.defs#recordViewDetail" + } }, - "errors": [ - {"name": "RecordNotFound"} - ] + "errors": [{ "name": "RecordNotFound" }] } } } diff --git a/lexicons/com/atproto/admin/getRepo.json b/lexicons/com/atproto/admin/getRepo.json index 972c00ced..d8cfd883f 100644 --- a/lexicons/com/atproto/admin/getRepo.json +++ b/lexicons/com/atproto/admin/getRepo.json @@ -9,16 +9,17 @@ "type": "params", "required": ["did"], "properties": { - "did": {"type": "string", "format":"did"} + "did": { "type": "string", "format": "did" } } }, "output": { "encoding": "application/json", - "schema": {"type": "ref", "ref": "com.atproto.admin.defs#repoViewDetail"} + "schema": { + "type": "ref", + "ref": "com.atproto.admin.defs#repoViewDetail" + } }, - "errors": [ - {"name": "RepoNotFound"} - ] + "errors": [{ "name": "RepoNotFound" }] } } } diff --git a/lexicons/com/atproto/admin/resolveModerationReports.json b/lexicons/com/atproto/admin/resolveModerationReports.json index 536379e19..0cc5c1df2 100644 --- a/lexicons/com/atproto/admin/resolveModerationReports.json +++ b/lexicons/com/atproto/admin/resolveModerationReports.json @@ -11,9 +11,9 @@ "type": "object", "required": ["actionId", "reportIds", "createdBy"], "properties": { - "actionId": {"type": "integer"}, - "reportIds": {"type": "array", "items": {"type": "integer"}}, - "createdBy": {"type": "string", "format": "did"} + "actionId": { "type": "integer" }, + "reportIds": { "type": "array", "items": { "type": "integer" } }, + "createdBy": { "type": "string", "format": "did" } } } }, diff --git a/lexicons/com/atproto/admin/reverseModerationAction.json b/lexicons/com/atproto/admin/reverseModerationAction.json index 496be245c..9b479dcc8 100644 --- a/lexicons/com/atproto/admin/reverseModerationAction.json +++ b/lexicons/com/atproto/admin/reverseModerationAction.json @@ -11,9 +11,9 @@ "type": "object", "required": ["id", "reason", "createdBy"], "properties": { - "id": {"type": "integer"}, - "reason": {"type": "string"}, - "createdBy": {"type": "string", "format": "did"} + "id": { "type": "integer" }, + "reason": { "type": "string" }, + "createdBy": { "type": "string", "format": "did" } } } }, diff --git a/lexicons/com/atproto/admin/searchRepos.json b/lexicons/com/atproto/admin/searchRepos.json index 8955866ff..fb9c90f34 100644 --- a/lexicons/com/atproto/admin/searchRepos.json +++ b/lexicons/com/atproto/admin/searchRepos.json @@ -8,10 +8,15 @@ "parameters": { "type": "params", "properties": { - "term": {"type": "string"}, - "invitedBy": {"type": "string"}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50}, - "cursor": {"type": "string"} + "term": { "type": "string" }, + "invitedBy": { "type": "string" }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -20,8 +25,14 @@ "type": "object", "required": ["repos"], "properties": { - "cursor": {"type": "string"}, - "repos": {"type": "array", "items": {"type": "ref", "ref": "com.atproto.admin.defs#repoView"}} + "cursor": { "type": "string" }, + "repos": { + "type": "array", + "items": { + "type": "ref", + "ref": "com.atproto.admin.defs#repoView" + } + } } } } diff --git a/lexicons/com/atproto/admin/updateAccountEmail.json b/lexicons/com/atproto/admin/updateAccountEmail.json index 98a66e843..a4cf711de 100644 --- a/lexicons/com/atproto/admin/updateAccountEmail.json +++ b/lexicons/com/atproto/admin/updateAccountEmail.json @@ -16,10 +16,10 @@ "format": "at-identifier", "description": "The handle or DID of the repo." }, - "email": {"type": "string"} + "email": { "type": "string" } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/admin/updateAccountHandle.json b/lexicons/com/atproto/admin/updateAccountHandle.json index c9809b97a..15442e98b 100644 --- a/lexicons/com/atproto/admin/updateAccountHandle.json +++ b/lexicons/com/atproto/admin/updateAccountHandle.json @@ -11,11 +11,11 @@ "type": "object", "required": ["did", "handle"], "properties": { - "did": {"type": "string", "format": "did"}, - "handle": {"type": "string", "format": "handle"} + "did": { "type": "string", "format": "did" }, + "handle": { "type": "string", "format": "handle" } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/identity/resolveHandle.json b/lexicons/com/atproto/identity/resolveHandle.json index 5c22f78d6..ae5aab8f8 100644 --- a/lexicons/com/atproto/identity/resolveHandle.json +++ b/lexicons/com/atproto/identity/resolveHandle.json @@ -22,10 +22,10 @@ "type": "object", "required": ["did"], "properties": { - "did": {"type": "string", "format": "did"} + "did": { "type": "string", "format": "did" } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/identity/updateHandle.json b/lexicons/com/atproto/identity/updateHandle.json index 53789d539..2b595d189 100644 --- a/lexicons/com/atproto/identity/updateHandle.json +++ b/lexicons/com/atproto/identity/updateHandle.json @@ -11,10 +11,10 @@ "type": "object", "required": ["handle"], "properties": { - "handle": {"type": "string", "format": "handle"} + "handle": { "type": "string", "format": "handle" } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/label/queryLabels.json b/lexicons/com/atproto/label/queryLabels.json index c51597ceb..f4773f255 100644 --- a/lexicons/com/atproto/label/queryLabels.json +++ b/lexicons/com/atproto/label/queryLabels.json @@ -10,17 +10,22 @@ "required": ["uriPatterns"], "properties": { "uriPatterns": { - "type": "array", - "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" + "type": "array", + "items": { "type": "string" }, + "description": "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI" }, "sources": { - "type": "array", - "items": {"type": "string", "format": "did"}, - "description": "Optional list of label sources (DIDs) to filter on" + "type": "array", + "items": { "type": "string", "format": "did" }, + "description": "Optional list of label sources (DIDs) to filter on" }, - "limit": {"type": "integer", "minimum": 1, "maximum": 250, "default": 50}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 250, + "default": 50 + }, + "cursor": { "type": "string" } } }, "output": { @@ -29,10 +34,10 @@ "type": "object", "required": ["labels"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "labels": { "type": "array", - "items": {"type": "ref", "ref": "com.atproto.label.defs#label"} + "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } } } } diff --git a/lexicons/com/atproto/label/subscribeLabels.json b/lexicons/com/atproto/label/subscribeLabels.json index 65a9e1a4a..044036cfa 100644 --- a/lexicons/com/atproto/label/subscribeLabels.json +++ b/lexicons/com/atproto/label/subscribeLabels.json @@ -17,21 +17,16 @@ "message": { "schema": { "type": "union", - "refs": [ - "#labels", - "#info" - ] + "refs": ["#labels", "#info"] } }, - "errors": [ - {"name": "FutureCursor"} - ] + "errors": [{ "name": "FutureCursor" }] }, "labels": { "type": "object", "required": ["seq", "labels"], "properties": { - "seq": {"type": "integer"}, + "seq": { "type": "integer" }, "labels": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } diff --git a/lexicons/com/atproto/moderation/createReport.json b/lexicons/com/atproto/moderation/createReport.json index c0c8d3b25..0f34ed432 100644 --- a/lexicons/com/atproto/moderation/createReport.json +++ b/lexicons/com/atproto/moderation/createReport.json @@ -11,8 +11,11 @@ "type": "object", "required": ["reasonType", "subject"], "properties": { - "reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"}, - "reason": {"type": "string"}, + "reasonType": { + "type": "ref", + "ref": "com.atproto.moderation.defs#reasonType" + }, + "reason": { "type": "string" }, "subject": { "type": "union", "refs": [ @@ -27,11 +30,20 @@ "encoding": "application/json", "schema": { "type": "object", - "required": ["id", "reasonType", "subject", "reportedBy", "createdAt"], + "required": [ + "id", + "reasonType", + "subject", + "reportedBy", + "createdAt" + ], "properties": { - "id": {"type": "integer"}, - "reasonType": {"type": "ref", "ref": "com.atproto.moderation.defs#reasonType"}, - "reason": {"type": "string"}, + "id": { "type": "integer" }, + "reasonType": { + "type": "ref", + "ref": "com.atproto.moderation.defs#reasonType" + }, + "reason": { "type": "string" }, "subject": { "type": "union", "refs": [ @@ -39,8 +51,8 @@ "com.atproto.repo.strongRef" ] }, - "reportedBy": {"type": "string", "format": "did"}, - "createdAt": {"type": "string", "format": "datetime"} + "reportedBy": { "type": "string", "format": "did" }, + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/com/atproto/moderation/defs.json b/lexicons/com/atproto/moderation/defs.json index 3d4e54555..a06579a50 100644 --- a/lexicons/com/atproto/moderation/defs.json +++ b/lexicons/com/atproto/moderation/defs.json @@ -1,41 +1,41 @@ { - "lexicon": 1, - "id": "com.atproto.moderation.defs", - "defs": { - "reasonType": { - "type": "string", - "knownValues": [ - "com.atproto.moderation.defs#reasonSpam", - "com.atproto.moderation.defs#reasonViolation", - "com.atproto.moderation.defs#reasonMisleading", - "com.atproto.moderation.defs#reasonSexual", - "com.atproto.moderation.defs#reasonRude", - "com.atproto.moderation.defs#reasonOther" - ] - }, - "reasonSpam": { - "type": "token", - "description": "Spam: frequent unwanted promotion, replies, mentions" - }, - "reasonViolation": { - "type": "token", - "description": "Direct violation of server rules, laws, terms of service" - }, - "reasonMisleading": { - "type": "token", - "description": "Misleading identity, affiliation, or content" - }, - "reasonSexual": { - "type": "token", - "description": "Unwanted or mislabeled sexual content" - }, - "reasonRude": { - "type": "token", - "description": "Rude, harassing, explicit, or otherwise unwelcoming behavior" - }, - "reasonOther": { - "type": "token", - "description": "Other: reports not falling under another report category" - } + "lexicon": 1, + "id": "com.atproto.moderation.defs", + "defs": { + "reasonType": { + "type": "string", + "knownValues": [ + "com.atproto.moderation.defs#reasonSpam", + "com.atproto.moderation.defs#reasonViolation", + "com.atproto.moderation.defs#reasonMisleading", + "com.atproto.moderation.defs#reasonSexual", + "com.atproto.moderation.defs#reasonRude", + "com.atproto.moderation.defs#reasonOther" + ] + }, + "reasonSpam": { + "type": "token", + "description": "Spam: frequent unwanted promotion, replies, mentions" + }, + "reasonViolation": { + "type": "token", + "description": "Direct violation of server rules, laws, terms of service" + }, + "reasonMisleading": { + "type": "token", + "description": "Misleading identity, affiliation, or content" + }, + "reasonSexual": { + "type": "token", + "description": "Unwanted or mislabeled sexual content" + }, + "reasonRude": { + "type": "token", + "description": "Rude, harassing, explicit, or otherwise unwelcoming behavior" + }, + "reasonOther": { + "type": "token", + "description": "Other: reports not falling under another report category" } + } } diff --git a/lexicons/com/atproto/repo/applyWrites.json b/lexicons/com/atproto/repo/applyWrites.json index 6d3a375b2..5c37340cf 100644 --- a/lexicons/com/atproto/repo/applyWrites.json +++ b/lexicons/com/atproto/repo/applyWrites.json @@ -23,7 +23,11 @@ }, "writes": { "type": "array", - "items": {"type": "union", "refs": ["#create", "#update", "#delete"], "closed": true} + "items": { + "type": "union", + "refs": ["#create", "#update", "#delete"], + "closed": true + } }, "swapCommit": { "type": "string", @@ -32,18 +36,16 @@ } } }, - "errors": [ - {"name": "InvalidSwap"} - ] + "errors": [{ "name": "InvalidSwap" }] }, "create": { "type": "object", "description": "Create a new record.", "required": ["collection", "value"], "properties": { - "collection": {"type": "string", "format": "nsid"}, - "rkey": {"type": "string", "maxLength": 15}, - "value": {"type": "unknown"} + "collection": { "type": "string", "format": "nsid" }, + "rkey": { "type": "string", "maxLength": 15 }, + "value": { "type": "unknown" } } }, "update": { @@ -51,9 +53,9 @@ "description": "Update an existing record.", "required": ["collection", "rkey", "value"], "properties": { - "collection": {"type": "string", "format": "nsid"}, - "rkey": {"type": "string"}, - "value": {"type": "unknown"} + "collection": { "type": "string", "format": "nsid" }, + "rkey": { "type": "string" }, + "value": { "type": "unknown" } } }, "delete": { @@ -61,8 +63,8 @@ "description": "Delete an existing record.", "required": ["collection", "rkey"], "properties": { - "collection": {"type": "string", "format": "nsid"}, - "rkey": {"type": "string"} + "collection": { "type": "string", "format": "nsid" }, + "rkey": { "type": "string" } } } } diff --git a/lexicons/com/atproto/repo/createRecord.json b/lexicons/com/atproto/repo/createRecord.json index 3988de24b..e594db58d 100644 --- a/lexicons/com/atproto/repo/createRecord.json +++ b/lexicons/com/atproto/repo/createRecord.json @@ -49,14 +49,12 @@ "type": "object", "required": ["uri", "cid"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" } } } }, - "errors": [ - {"name": "InvalidSwap"} - ] + "errors": [{ "name": "InvalidSwap" }] } } } diff --git a/lexicons/com/atproto/repo/deleteRecord.json b/lexicons/com/atproto/repo/deleteRecord.json index 3735b02c5..53ef72b19 100644 --- a/lexicons/com/atproto/repo/deleteRecord.json +++ b/lexicons/com/atproto/repo/deleteRecord.json @@ -38,9 +38,7 @@ } } }, - "errors": [ - {"name": "InvalidSwap"} - ] + "errors": [{ "name": "InvalidSwap" }] } } } diff --git a/lexicons/com/atproto/repo/describeRepo.json b/lexicons/com/atproto/repo/describeRepo.json index 51ec1138b..b7f283bff 100644 --- a/lexicons/com/atproto/repo/describeRepo.json +++ b/lexicons/com/atproto/repo/describeRepo.json @@ -20,16 +20,25 @@ "encoding": "application/json", "schema": { "type": "object", - "required": ["handle", "did", "didDoc", "collections", "handleIsCorrect"], + "required": [ + "handle", + "did", + "didDoc", + "collections", + "handleIsCorrect" + ], "properties": { - "handle": {"type": "string", "format": "handle"}, - "did": {"type": "string", "format": "did"}, - "didDoc": {"type": "unknown"}, - "collections": {"type": "array", "items": {"type": "string", "format": "nsid"}}, - "handleIsCorrect": {"type": "boolean"} + "handle": { "type": "string", "format": "handle" }, + "did": { "type": "string", "format": "did" }, + "didDoc": { "type": "unknown" }, + "collections": { + "type": "array", + "items": { "type": "string", "format": "nsid" } + }, + "handleIsCorrect": { "type": "boolean" } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/repo/getRecord.json b/lexicons/com/atproto/repo/getRecord.json index 25032a522..ec4d17e42 100644 --- a/lexicons/com/atproto/repo/getRecord.json +++ b/lexicons/com/atproto/repo/getRecord.json @@ -19,7 +19,7 @@ "format": "nsid", "description": "The NSID of the record collection." }, - "rkey": {"type": "string", "description": "The key of the record."}, + "rkey": { "type": "string", "description": "The key of the record." }, "cid": { "type": "string", "format": "cid", @@ -33,9 +33,9 @@ "type": "object", "required": ["uri", "value"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "value": {"type": "unknown"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "value": { "type": "unknown" } } } } diff --git a/lexicons/com/atproto/repo/listRecords.json b/lexicons/com/atproto/repo/listRecords.json index 81c0d5a42..8bcee4fcb 100644 --- a/lexicons/com/atproto/repo/listRecords.json +++ b/lexicons/com/atproto/repo/listRecords.json @@ -9,13 +9,36 @@ "type": "params", "required": ["repo", "collection"], "properties": { - "repo": {"type": "string", "format": "at-identifier", "description": "The handle or DID of the repo."}, - "collection": {"type": "string", "format": "nsid", "description": "The NSID of the record type."}, - "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50, "description": "The number of records to return."}, - "cursor": {"type": "string"}, - "rkeyStart": {"type": "string", "description": "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)"}, - "rkeyEnd": {"type": "string", "description": "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)"}, - "reverse": {"type": "boolean", "description": "Reverse the order of the returned records?"} + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo." + }, + "collection": { + "type": "string", + "format": "nsid", + "description": "The NSID of the record type." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50, + "description": "The number of records to return." + }, + "cursor": { "type": "string" }, + "rkeyStart": { + "type": "string", + "description": "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)" + }, + "rkeyEnd": { + "type": "string", + "description": "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)" + }, + "reverse": { + "type": "boolean", + "description": "Reverse the order of the returned records?" + } } }, "output": { @@ -24,10 +47,10 @@ "type": "object", "required": ["records"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "records": { "type": "array", - "items": {"type": "ref", "ref": "#record"} + "items": { "type": "ref", "ref": "#record" } } } } @@ -37,10 +60,10 @@ "type": "object", "required": ["uri", "cid", "value"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"}, - "value": {"type": "unknown"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" }, + "value": { "type": "unknown" } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/repo/putRecord.json b/lexicons/com/atproto/repo/putRecord.json index d0067110f..118b41dc4 100644 --- a/lexicons/com/atproto/repo/putRecord.json +++ b/lexicons/com/atproto/repo/putRecord.json @@ -55,14 +55,12 @@ "type": "object", "required": ["uri", "cid"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" } } } }, - "errors": [ - {"name": "InvalidSwap"} - ] + "errors": [{ "name": "InvalidSwap" }] } } } diff --git a/lexicons/com/atproto/repo/strongRef.json b/lexicons/com/atproto/repo/strongRef.json index 3bac786b4..cb7962516 100644 --- a/lexicons/com/atproto/repo/strongRef.json +++ b/lexicons/com/atproto/repo/strongRef.json @@ -7,9 +7,9 @@ "type": "object", "required": ["uri", "cid"], "properties": { - "uri": {"type": "string", "format": "at-uri"}, - "cid": {"type": "string", "format": "cid"} + "uri": { "type": "string", "format": "at-uri" }, + "cid": { "type": "string", "format": "cid" } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/repo/uploadBlob.json b/lexicons/com/atproto/repo/uploadBlob.json index ab04c87e0..63d1671bd 100644 --- a/lexicons/com/atproto/repo/uploadBlob.json +++ b/lexicons/com/atproto/repo/uploadBlob.json @@ -14,7 +14,7 @@ "type": "object", "required": ["blob"], "properties": { - "blob": {"type": "blob"} + "blob": { "type": "blob" } } } } diff --git a/lexicons/com/atproto/server/createAccount.json b/lexicons/com/atproto/server/createAccount.json index 4aadb7b5b..9fd09740f 100644 --- a/lexicons/com/atproto/server/createAccount.json +++ b/lexicons/com/atproto/server/createAccount.json @@ -11,12 +11,12 @@ "type": "object", "required": ["handle", "email", "password"], "properties": { - "email": {"type": "string"}, - "handle": {"type": "string", "format": "handle"}, - "did": {"type": "string", "format": "did"}, - "inviteCode": {"type": "string"}, - "password": {"type": "string"}, - "recoveryKey": {"type": "string"} + "email": { "type": "string" }, + "handle": { "type": "string", "format": "handle" }, + "did": { "type": "string", "format": "did" }, + "inviteCode": { "type": "string" }, + "password": { "type": "string" }, + "recoveryKey": { "type": "string" } } } }, @@ -34,14 +34,14 @@ } }, "errors": [ - {"name": "InvalidHandle"}, - {"name": "InvalidPassword"}, - {"name": "InvalidInviteCode"}, - {"name": "HandleNotAvailable"}, - {"name": "UnsupportedDomain"}, - {"name": "UnresolvableDid"}, - {"name": "IncompatibleDidDoc"} + { "name": "InvalidHandle" }, + { "name": "InvalidPassword" }, + { "name": "InvalidInviteCode" }, + { "name": "HandleNotAvailable" }, + { "name": "UnsupportedDomain" }, + { "name": "UnresolvableDid" }, + { "name": "IncompatibleDidDoc" } ] } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/server/createAppPassword.json b/lexicons/com/atproto/server/createAppPassword.json index ae7810e7e..4dfdcca1f 100644 --- a/lexicons/com/atproto/server/createAppPassword.json +++ b/lexicons/com/atproto/server/createAppPassword.json @@ -11,7 +11,7 @@ "type": "object", "required": ["name"], "properties": { - "name": {"type": "string"} + "name": { "type": "string" } } } }, @@ -22,17 +22,15 @@ "ref": "#appPassword" } }, - "errors": [ - {"name": "AccountTakedown"} - ] + "errors": [{ "name": "AccountTakedown" }] }, "appPassword": { "type": "object", "required": ["name", "password", "createdAt"], "properties": { - "name": {"type": "string"}, - "password": {"type": "string"}, - "createdAt": {"type": "string", "format": "datetime"} + "name": { "type": "string" }, + "password": { "type": "string" }, + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/com/atproto/server/createInviteCode.json b/lexicons/com/atproto/server/createInviteCode.json index 81a967d8a..5ce5dbe39 100644 --- a/lexicons/com/atproto/server/createInviteCode.json +++ b/lexicons/com/atproto/server/createInviteCode.json @@ -11,8 +11,8 @@ "type": "object", "required": ["useCount"], "properties": { - "useCount": {"type": "integer"}, - "forAccount": {"type": "string", "format": "did"} + "useCount": { "type": "integer" }, + "forAccount": { "type": "string", "format": "did" } } } }, diff --git a/lexicons/com/atproto/server/createInviteCodes.json b/lexicons/com/atproto/server/createInviteCodes.json index b967ca2f0..827d798a0 100644 --- a/lexicons/com/atproto/server/createInviteCodes.json +++ b/lexicons/com/atproto/server/createInviteCodes.json @@ -11,11 +11,11 @@ "type": "object", "required": ["codeCount", "useCount"], "properties": { - "codeCount": {"type": "integer", "default": 1}, - "useCount": {"type": "integer"}, + "codeCount": { "type": "integer", "default": 1 }, + "useCount": { "type": "integer" }, "forAccounts": { "type": "array", - "items": {"type": "string", "format": "did"} + "items": { "type": "string", "format": "did" } } } } @@ -26,9 +26,9 @@ "type": "object", "required": ["codes"], "properties": { - "codes": { + "codes": { "type": "array", - "items": {"type": "ref", "ref": "#accountCodes"} + "items": { "type": "ref", "ref": "#accountCodes" } } } } @@ -38,10 +38,10 @@ "type": "object", "required": ["account", "codes"], "properties": { - "account": {"type": "string"}, - "codes": { + "account": { "type": "string" }, + "codes": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } } } } diff --git a/lexicons/com/atproto/server/createSession.json b/lexicons/com/atproto/server/createSession.json index 0494d67a8..fc416ddab 100644 --- a/lexicons/com/atproto/server/createSession.json +++ b/lexicons/com/atproto/server/createSession.json @@ -15,7 +15,7 @@ "type": "string", "description": "Handle or other identifier supported by the server for the authenticating user." }, - "password": {"type": "string"} + "password": { "type": "string" } } } }, @@ -25,17 +25,15 @@ "type": "object", "required": ["accessJwt", "refreshJwt", "handle", "did"], "properties": { - "accessJwt": {"type": "string"}, - "refreshJwt": {"type": "string"}, - "handle": {"type": "string", "format": "handle"}, - "did": {"type": "string", "format": "did"}, - "email": {"type": "string"} + "accessJwt": { "type": "string" }, + "refreshJwt": { "type": "string" }, + "handle": { "type": "string", "format": "handle" }, + "did": { "type": "string", "format": "did" }, + "email": { "type": "string" } } } }, - "errors": [ - {"name": "AccountTakedown"} - ] + "errors": [{ "name": "AccountTakedown" }] } } } diff --git a/lexicons/com/atproto/server/defs.json b/lexicons/com/atproto/server/defs.json index beb9954bb..8686d4d41 100644 --- a/lexicons/com/atproto/server/defs.json +++ b/lexicons/com/atproto/server/defs.json @@ -4,17 +4,25 @@ "defs": { "inviteCode": { "type": "object", - "required": ["code", "available", "disabled", "forAccount", "createdBy", "createdAt", "uses"], + "required": [ + "code", + "available", + "disabled", + "forAccount", + "createdBy", + "createdAt", + "uses" + ], "properties": { - "code": {"type": "string"}, - "available": {"type": "integer"}, - "disabled": {"type": "boolean"}, - "forAccount": {"type": "string"}, - "createdBy": {"type": "string"}, - "createdAt": {"type": "string", "format": "datetime"}, + "code": { "type": "string" }, + "available": { "type": "integer" }, + "disabled": { "type": "boolean" }, + "forAccount": { "type": "string" }, + "createdBy": { "type": "string" }, + "createdAt": { "type": "string", "format": "datetime" }, "uses": { "type": "array", - "items": {"type": "ref", "ref": "#inviteCodeUse"} + "items": { "type": "ref", "ref": "#inviteCodeUse" } } } }, @@ -22,8 +30,8 @@ "type": "object", "required": ["usedBy", "usedAt"], "properties": { - "usedBy": {"type": "string", "format": "did"}, - "usedAt": {"type": "string", "format": "datetime"} + "usedBy": { "type": "string", "format": "did" }, + "usedAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/com/atproto/server/deleteAccount.json b/lexicons/com/atproto/server/deleteAccount.json index f273ebb5f..2cef799ae 100644 --- a/lexicons/com/atproto/server/deleteAccount.json +++ b/lexicons/com/atproto/server/deleteAccount.json @@ -9,7 +9,7 @@ "encoding": "application/json", "schema": { "type": "object", - "required": ["did", "password", "token"], + "required": ["did", "password", "token"], "properties": { "did": { "type": "string", "format": "did" }, "password": { "type": "string" }, @@ -20,4 +20,4 @@ "errors": [{ "name": "ExpiredToken" }, { "name": "InvalidToken" }] } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/server/deleteSession.json b/lexicons/com/atproto/server/deleteSession.json index de044bbdb..e05d01902 100644 --- a/lexicons/com/atproto/server/deleteSession.json +++ b/lexicons/com/atproto/server/deleteSession.json @@ -7,4 +7,4 @@ "description": "Delete the current session." } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/server/describeServer.json b/lexicons/com/atproto/server/describeServer.json index dc291e5fc..b19b15040 100644 --- a/lexicons/com/atproto/server/describeServer.json +++ b/lexicons/com/atproto/server/describeServer.json @@ -11,9 +11,12 @@ "type": "object", "required": ["availableUserDomains"], "properties": { - "inviteCodeRequired": {"type": "boolean"}, - "availableUserDomains": {"type": "array", "items": {"type": "string"}}, - "links": {"type": "ref", "ref": "#links"} + "inviteCodeRequired": { "type": "boolean" }, + "availableUserDomains": { + "type": "array", + "items": { "type": "string" } + }, + "links": { "type": "ref", "ref": "#links" } } } } @@ -21,9 +24,9 @@ "links": { "type": "object", "properties": { - "privacyPolicy": {"type": "string"}, - "termsOfService": {"type": "string"} + "privacyPolicy": { "type": "string" }, + "termsOfService": { "type": "string" } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/server/getAccountInviteCodes.json b/lexicons/com/atproto/server/getAccountInviteCodes.json index ff6e4d6d1..a99f78e0d 100644 --- a/lexicons/com/atproto/server/getAccountInviteCodes.json +++ b/lexicons/com/atproto/server/getAccountInviteCodes.json @@ -28,9 +28,7 @@ } } }, - "errors": [ - {"name": "DuplicateCreate"} - ] + "errors": [{ "name": "DuplicateCreate" }] } } } diff --git a/lexicons/com/atproto/server/getSession.json b/lexicons/com/atproto/server/getSession.json index db790f39e..55b129be3 100644 --- a/lexicons/com/atproto/server/getSession.json +++ b/lexicons/com/atproto/server/getSession.json @@ -11,12 +11,12 @@ "type": "object", "required": ["handle", "did"], "properties": { - "handle": {"type": "string", "format": "handle"}, - "did": {"type": "string", "format": "did"}, - "email": {"type": "string"} + "handle": { "type": "string", "format": "handle" }, + "did": { "type": "string", "format": "did" }, + "email": { "type": "string" } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/server/listAppPasswords.json b/lexicons/com/atproto/server/listAppPasswords.json index 613ca17ae..f50a13d6b 100644 --- a/lexicons/com/atproto/server/listAppPasswords.json +++ b/lexicons/com/atproto/server/listAppPasswords.json @@ -13,21 +13,19 @@ "properties": { "passwords": { "type": "array", - "items": {"type": "ref", "ref": "#appPassword"} + "items": { "type": "ref", "ref": "#appPassword" } } } } }, - "errors": [ - {"name": "AccountTakedown"} - ] + "errors": [{ "name": "AccountTakedown" }] }, "appPassword": { "type": "object", "required": ["name", "createdAt"], "properties": { - "name": {"type": "string"}, - "createdAt": {"type": "string", "format": "datetime"} + "name": { "type": "string" }, + "createdAt": { "type": "string", "format": "datetime" } } } } diff --git a/lexicons/com/atproto/server/refreshSession.json b/lexicons/com/atproto/server/refreshSession.json index 18ab3ed47..ab895a34c 100644 --- a/lexicons/com/atproto/server/refreshSession.json +++ b/lexicons/com/atproto/server/refreshSession.json @@ -11,16 +11,14 @@ "type": "object", "required": ["accessJwt", "refreshJwt", "handle", "did"], "properties": { - "accessJwt": {"type": "string"}, - "refreshJwt": {"type": "string"}, - "handle": {"type": "string", "format": "handle"}, - "did": {"type": "string", "format": "did"} + "accessJwt": { "type": "string" }, + "refreshJwt": { "type": "string" }, + "handle": { "type": "string", "format": "handle" }, + "did": { "type": "string", "format": "did" } } } }, - "errors": [ - {"name": "AccountTakedown"} - ] + "errors": [{ "name": "AccountTakedown" }] } } } diff --git a/lexicons/com/atproto/server/requestAccountDelete.json b/lexicons/com/atproto/server/requestAccountDelete.json index fcb9a869d..aaac0b70e 100644 --- a/lexicons/com/atproto/server/requestAccountDelete.json +++ b/lexicons/com/atproto/server/requestAccountDelete.json @@ -7,4 +7,4 @@ "description": "Initiate a user account deletion via email." } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/server/revokeAppPassword.json b/lexicons/com/atproto/server/revokeAppPassword.json index 265f89544..52094c445 100644 --- a/lexicons/com/atproto/server/revokeAppPassword.json +++ b/lexicons/com/atproto/server/revokeAppPassword.json @@ -11,7 +11,7 @@ "type": "object", "required": ["name"], "properties": { - "name": {"type": "string"} + "name": { "type": "string" } } } } diff --git a/lexicons/com/atproto/sync/getBlob.json b/lexicons/com/atproto/sync/getBlob.json index 9b29b16a6..23e18a4f3 100644 --- a/lexicons/com/atproto/sync/getBlob.json +++ b/lexicons/com/atproto/sync/getBlob.json @@ -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": { diff --git a/lexicons/com/atproto/sync/getBlocks.json b/lexicons/com/atproto/sync/getBlocks.json index cddacb56a..0b6c25f82 100644 --- a/lexicons/com/atproto/sync/getBlocks.json +++ b/lexicons/com/atproto/sync/getBlocks.json @@ -15,8 +15,8 @@ "description": "The DID of the repo." }, "cids": { - "type": "array", - "items": {"type": "string", "format": "cid"} + "type": "array", + "items": { "type": "string", "format": "cid" } } } }, @@ -25,4 +25,4 @@ } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/sync/getCheckout.json b/lexicons/com/atproto/sync/getCheckout.json index 0f57cb377..b3fb375e5 100644 --- a/lexicons/com/atproto/sync/getCheckout.json +++ b/lexicons/com/atproto/sync/getCheckout.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/sync/getHead.json b/lexicons/com/atproto/sync/getHead.json index bfd110e01..31ed72cba 100644 --- a/lexicons/com/atproto/sync/getHead.json +++ b/lexicons/com/atproto/sync/getHead.json @@ -22,13 +22,11 @@ "type": "object", "required": ["root"], "properties": { - "root": {"type": "string", "format": "cid"} + "root": { "type": "string", "format": "cid" } } } }, - "errors": [ - {"name": "HeadNotFound"} - ] + "errors": [{ "name": "HeadNotFound" }] } } } diff --git a/lexicons/com/atproto/sync/getLatestCommit.json b/lexicons/com/atproto/sync/getLatestCommit.json index 8beebdaa4..602cc2dac 100644 --- a/lexicons/com/atproto/sync/getLatestCommit.json +++ b/lexicons/com/atproto/sync/getLatestCommit.json @@ -22,14 +22,12 @@ "type": "object", "required": ["cid", "rev"], "properties": { - "cid": {"type": "string", "format": "cid"}, - "rev": {"type": "string"} + "cid": { "type": "string", "format": "cid" }, + "rev": { "type": "string" } } } }, - "errors": [ - {"name": "RepoNotFound"} - ] + "errors": [{ "name": "RepoNotFound" }] } } } diff --git a/lexicons/com/atproto/sync/getRecord.json b/lexicons/com/atproto/sync/getRecord.json index 6ff65cfbc..ea14ba0f7 100644 --- a/lexicons/com/atproto/sync/getRecord.json +++ b/lexicons/com/atproto/sync/getRecord.json @@ -14,8 +14,8 @@ "format": "did", "description": "The DID of the repo." }, - "collection": {"type": "string", "format": "nsid"}, - "rkey": {"type": "string" }, + "collection": { "type": "string", "format": "nsid" }, + "rkey": { "type": "string" }, "commit": { "type": "string", "format": "cid", @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/sync/listBlobs.json b/lexicons/com/atproto/sync/listBlobs.json index 7ca3039f6..01e013912 100644 --- a/lexicons/com/atproto/sync/listBlobs.json +++ b/lexicons/com/atproto/sync/listBlobs.json @@ -9,10 +9,23 @@ "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}, - "cursor": {"type": "string"} + "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" } } }, "output": { @@ -21,7 +34,7 @@ "type": "object", "required": ["cids"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "cids": { "type": "array", "items": { "type": "string", "format": "cid" } @@ -31,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/sync/listRepos.json b/lexicons/com/atproto/sync/listRepos.json index e54f74e50..9fdd57a55 100644 --- a/lexicons/com/atproto/sync/listRepos.json +++ b/lexicons/com/atproto/sync/listRepos.json @@ -8,8 +8,13 @@ "parameters": { "type": "params", "properties": { - "limit": {"type": "integer", "minimum": 1, "maximum": 1000, "default": 500}, - "cursor": {"type": "string"} + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 1000, + "default": 500 + }, + "cursor": { "type": "string" } } }, "output": { @@ -18,10 +23,10 @@ "type": "object", "required": ["repos"], "properties": { - "cursor": {"type": "string"}, + "cursor": { "type": "string" }, "repos": { "type": "array", - "items": {"type": "ref", "ref": "#repo"} + "items": { "type": "ref", "ref": "#repo" } } } } @@ -36,4 +41,4 @@ } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/sync/notifyOfUpdate.json b/lexicons/com/atproto/sync/notifyOfUpdate.json index a5449b152..caca6fe9f 100644 --- a/lexicons/com/atproto/sync/notifyOfUpdate.json +++ b/lexicons/com/atproto/sync/notifyOfUpdate.json @@ -11,10 +11,13 @@ "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." + } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/sync/requestCrawl.json b/lexicons/com/atproto/sync/requestCrawl.json index 1bd098290..a3520a331 100644 --- a/lexicons/com/atproto/sync/requestCrawl.json +++ b/lexicons/com/atproto/sync/requestCrawl.json @@ -11,10 +11,13 @@ "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." + } } } } } } -} \ No newline at end of file +} diff --git a/lexicons/com/atproto/sync/subscribeRepos.json b/lexicons/com/atproto/sync/subscribeRepos.json index ee3e88a48..b8feecad5 100644 --- a/lexicons/com/atproto/sync/subscribeRepos.json +++ b/lexicons/com/atproto/sync/subscribeRepos.json @@ -17,31 +17,34 @@ "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"}, - "rebase": {"type": "boolean"}, - "tooBig": {"type": "boolean"}, - "repo": {"type": "string", "format": "did"}, - "commit": {"type": "cid-link"}, - "prev": {"type": "cid-link"}, + "seq": { "type": "integer" }, + "rebase": { "type": "boolean" }, + "tooBig": { "type": "boolean" }, + "repo": { "type": "string", "format": "did" }, + "commit": { "type": "cid-link" }, + "prev": { "type": "cid-link" }, "rev": { "type": "string", "description": "The rev of the emitted commit" @@ -56,25 +59,25 @@ "maxLength": 1000000 }, "ops": { - "type": "array", - "items": { "type": "ref", "ref": "#repoOp"}, + "type": "array", + "items": { "type": "ref", "ref": "#repoOp" }, "maxLength": 200 }, "blobs": { "type": "array", - "items": {"type": "cid-link"} + "items": { "type": "cid-link" } }, - "time": {"type": "string", "format": "datetime"} + "time": { "type": "string", "format": "datetime" } } }, "handle": { "type": "object", "required": ["seq", "did", "handle", "time"], "properties": { - "seq": {"type": "integer"}, - "did": {"type": "string", "format": "did"}, - "handle": {"type": "string", "format": "handle"}, - "time": {"type": "string", "format": "datetime"} + "seq": { "type": "integer" }, + "did": { "type": "string", "format": "did" }, + "handle": { "type": "string", "format": "handle" }, + "time": { "type": "string", "format": "datetime" } } }, "migrate": { @@ -82,19 +85,19 @@ "required": ["seq", "did", "migrateTo", "time"], "nullable": ["migrateTo"], "properties": { - "seq": {"type": "integer"}, - "did": {"type": "string", "format": "did"}, - "migrateTo": {"type": "string"}, - "time": {"type": "string", "format": "datetime"} + "seq": { "type": "integer" }, + "did": { "type": "string", "format": "did" }, + "migrateTo": { "type": "string" }, + "time": { "type": "string", "format": "datetime" } } }, "tombstone": { "type": "object", "required": ["seq", "did", "time"], "properties": { - "seq": {"type": "integer"}, - "did": {"type": "string", "format": "did"}, - "time": {"type": "string", "format": "datetime"} + "seq": { "type": "integer" }, + "did": { "type": "string", "format": "did" }, + "time": { "type": "string", "format": "datetime" } } }, "info": { @@ -118,14 +121,10 @@ "properties": { "action": { "type": "string", - "knownValues": [ - "create", - "update", - "delete" - ] + "knownValues": ["create", "update", "delete"] }, - "path": {"type": "string"}, - "cid": {"type": "cid-link"} + "path": { "type": "string" }, + "cid": { "type": "cid-link" } } } } diff --git a/package.json b/package.json index 7a6b3ac6f..13d955542 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/README.md b/packages/README.md index ba77e031e..68835de45 100644 --- a/packages/README.md +++ b/packages/README.md @@ -26,7 +26,7 @@ You can run benchmarks with `pnpm bench`. ### Attaching a profiler Running `pnpm bench:profile` will launch `bench` with `--inspect-brk` flag. -Execution will be paused until a debugger is attached, you can read more +Execution will be paused until a debugger is attached, you can read more about node debuggers [here](https://nodejs.org/en/docs/guides/debugging-getting-started#inspector-clients) An easy way to profile is: diff --git a/packages/api/README.md b/packages/api/README.md index 843da4045..fdfcbc48b 100644 --- a/packages/api/README.md +++ b/packages/api/README.md @@ -34,16 +34,16 @@ import { BskyAgent, AtpSessionEvent, AtpSessionData } from '@atproto/api' const agent = new BskyAgent({ service: 'https://example.com', persistSession: (evt: AtpSessionEvent, sess?: AtpSessionData) => { - // store the session-data for reuse - } + // store the session-data for reuse + }, }) -await agent.login({identifier: 'alice@mail.com', password: 'hunter2'}) +await agent.login({ identifier: 'alice@mail.com', password: 'hunter2' }) await agent.resumeSession(savedSessionData) await agent.createAccount({ email: 'alice@mail.com', password: 'hunter2', - handle: 'alice.example.com' + handle: 'alice.example.com', }) ``` @@ -127,16 +127,18 @@ Some records (ie posts) use the `app.bsky.richtext` lexicon. At the moment richt ℹ️ It is **strongly** recommended to use this package's `RichText` library. Javascript encodes strings in utf16 while the protocol (and most other programming environments) use utf8. Converting between the two is challenging, but `RichText` handles that for you. ```typescript -import {RichText} from '@atproto/api' +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 @@ -152,10 +154,10 @@ for (const segment of rt.segments()) { } // calculating string lengths -const rt2 = new RichText({text: 'Hello'}) +const rt2 = new RichText({ text: 'Hello' }) console.log(rt2.length) // => 5 console.log(rt2.graphemeLength) // => 5 -const rt3 = new RichText({text: '👨‍👩‍👧‍👧'}) +const rt3 = new RichText({ text: '👨‍👩‍👧‍👧' }) console.log(rt3.length) // => 25 console.log(rt3.graphemeLength) // => 1 ``` @@ -171,12 +173,12 @@ Applying the moderation system is a challenging task, but we've done our best to For more information, see the [Moderation Documentation](./docs/moderation.md) or the associated [Labels Reference](./docs/labels.md). ```typescript -import {moderatePost, moderateProfile} from '@atproto/api' +import { moderatePost, moderateProfile } from '@atproto/api' // We call the appropriate moderation function for the content // = -const postMod = moderatePost(postView, getOpts()) +const postMod = moderatePost(postView, getOpts()) const profileMod = moderateProfile(profileView, getOpts()) // We then use the output to decide how to affect rendering @@ -235,16 +237,16 @@ function getOpts() { { labeler: { did: '...', - displayName: 'My mod service' + displayName: 'My mod service', }, labels: { porn: 'hide', sexual: 'warn', nudity: 'ignore', // ... - } - } - ] + }, + }, + ], } } ``` @@ -258,24 +260,28 @@ 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( - { - 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() +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 res4 = await agent.app.bsky.feed.post.list({repo: alice.did}) +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 }) ``` ### Generic agent @@ -285,7 +291,7 @@ If you want a generic AT Protocol agent without methods related to the Bluesky s ```typescript import { AtpAgent } from '@atproto/api' -const agent = new AtpAgent({service: 'https://example.com'}) +const agent = new AtpAgent({ service: 'https://example.com' }) ``` ### Non-browser configuration @@ -295,10 +301,13 @@ In non-browser environments you'll need to specify a fetch polyfill. [See the ex ```typescript import { BskyAgent } from '@atproto/api' -const agent = new BskyAgent({service: 'https://example.com'}) +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 { // insert definition here... - return {status: 200, /*...*/} - } + return { status: 200 /*...*/ } + }, }) ``` diff --git a/packages/api/bench/agent.bench.ts b/packages/api/bench/agent.bench.ts index 22905e19f..333fbd49a 100644 --- a/packages/api/bench/agent.bench.ts +++ b/packages/api/bench/agent.bench.ts @@ -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' }) } }) }) diff --git a/packages/api/definitions/labels.json b/packages/api/definitions/labels.json index e5ab7d2cd..91b5dd43c 100644 --- a/packages/api/definitions/labels.json +++ b/packages/api/definitions/labels.json @@ -215,4 +215,4 @@ } ] } -] \ No newline at end of file +] diff --git a/packages/api/definitions/locale/en/label-groups.json b/packages/api/definitions/locale/en/label-groups.json index 5658f0ced..06cc6699a 100644 --- a/packages/api/definitions/locale/en/label-groups.json +++ b/packages/api/definitions/locale/en/label-groups.json @@ -35,4 +35,4 @@ "name": "Misinformation", "description": "Content which misleads or defrauds users." } -} \ No newline at end of file +} diff --git a/packages/api/definitions/locale/en/proposed-label-groups.json b/packages/api/definitions/locale/en/proposed-label-groups.json index 5658f0ced..06cc6699a 100644 --- a/packages/api/definitions/locale/en/proposed-label-groups.json +++ b/packages/api/definitions/locale/en/proposed-label-groups.json @@ -35,4 +35,4 @@ "name": "Misinformation", "description": "Content which misleads or defrauds users." } -} \ No newline at end of file +} diff --git a/packages/api/definitions/locale/en/proposed-labels.json b/packages/api/definitions/locale/en/proposed-labels.json index 48702af87..e789103df 100644 --- a/packages/api/definitions/locale/en/proposed-labels.json +++ b/packages/api/definitions/locale/en/proposed-labels.json @@ -629,4 +629,4 @@ "description": "The moderators believe this content includes statements which are not technically wrong or lying, but are misleading through omission or re-contextualization." } } -} \ No newline at end of file +} diff --git a/packages/api/definitions/post-moderation-behaviors.json b/packages/api/definitions/post-moderation-behaviors.json index 26df7863f..a82ae5c80 100644 --- a/packages/api/definitions/post-moderation-behaviors.json +++ b/packages/api/definitions/post-moderation-behaviors.json @@ -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": {}, @@ -15,46 +49,46 @@ "adultContentEnabled": false }, "intolerant-hide": { - "settings": {"intolerant": "hide"} + "settings": { "intolerant": "hide" } }, "intolerant-warn": { - "settings": {"intolerant": "warn"} + "settings": { "intolerant": "warn" } }, "intolerant-ignore": { - "settings": {"intolerant": "ignore"} + "settings": { "intolerant": "ignore" } }, "porn-hide": { "adultContentEnabled": true, - "settings": {"porn": "hide"} + "settings": { "porn": "hide" } }, "porn-warn": { "adultContentEnabled": true, - "settings": {"porn": "warn"} + "settings": { "porn": "warn" } }, "porn-ignore": { "adultContentEnabled": true, - "settings": {"porn": "ignore"} + "settings": { "porn": "ignore" } }, "scam-hide": { - "settings": {"scam": "hide"} + "settings": { "scam": "hide" } }, "scam-warn": { - "settings": {"scam": "warn"} + "settings": { "scam": "warn" } }, "scam-ignore": { - "settings": {"scam": "ignore"} + "settings": { "scam": "ignore" } }, "porn-hide-intolerant-hide": { "adultContentEnabled": true, - "settings": {"porn": "hide", "intolerant": "hide"} + "settings": { "porn": "hide", "intolerant": "hide" } }, "porn-hide-intolerant-warn": { "adultContentEnabled": true, - "settings": {"porn": "hide", "intolerant": "warn"} + "settings": { "porn": "hide", "intolerant": "warn" } }, "porn-warn-intolerant-hide": { "adultContentEnabled": true, - "settings": {"porn": "warn", "intolerant": "hide"} + "settings": { "porn": "warn", "intolerant": "hide" } } }, "scenarios": { @@ -62,28 +96,38 @@ "cfg": "none", "subject": "post", "author": "alice", - "labels": {"post": ["!hide"]}, + "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": { "cfg": "none", "subject": "post", "author": "alice", - "labels": {"profile": ["!hide"]}, + "labels": { "profile": ["!hide"] }, "behaviors": { - "avatar": {"cause": "label:!hide", "blur": true, "noOverride": true} + "avatar": { "cause": "label:!hide", "blur": true, "noOverride": true } } }, "Imperative label ('!hide') on author account": { "cfg": "none", "subject": "post", "author": "alice", - "labels": {"account": ["!hide"]}, + "labels": { "account": ["!hide"] }, "behaviors": { - "content": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"cause": "label:!hide", "blur": true, "noOverride": true} + "content": { + "cause": "label:!hide", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "cause": "label:!hide", "blur": true, "noOverride": true } } }, "Imperative label ('!hide') on quoted post": { @@ -91,10 +135,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["!hide"]}, + "labels": { "quotedPost": ["!hide"] }, "behaviors": { - "content": {"cause": "label:!hide", "filter": true}, - "embed": {"cause": "label:!hide", "blur": true, "noOverride": true} + "content": { "cause": "label:!hide", "filter": true }, + "embed": { "cause": "label:!hide", "blur": true, "noOverride": true } } }, "Imperative label ('!hide') on quoted author account": { @@ -102,10 +146,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["!hide"]}, + "labels": { "quotedAccount": ["!hide"] }, "behaviors": { - "content": {"cause": "label:!hide", "filter": true}, - "embed": {"cause": "label:!hide", "blur": true, "noOverride": true} + "content": { "cause": "label:!hide", "filter": true }, + "embed": { "cause": "label:!hide", "blur": true, "noOverride": true } } }, @@ -113,25 +157,25 @@ "cfg": "none", "subject": "post", "author": "alice", - "labels": {"post": ["!no-promote"]}, + "labels": { "post": ["!no-promote"] }, "behaviors": { - "content": {"cause": "label:!no-promote", "filter": true} + "content": { "cause": "label:!no-promote", "filter": true } } }, "Imperative label ('!no-promote') on author profile": { "cfg": "none", "subject": "post", "author": "alice", - "labels": {"profile": ["!no-promote"]}, + "labels": { "profile": ["!no-promote"] }, "behaviors": {} }, "Imperative label ('!no-promote') on author account": { "cfg": "none", "subject": "post", "author": "alice", - "labels": {"account": ["!no-promote"]}, + "labels": { "account": ["!no-promote"] }, "behaviors": { - "content": {"cause": "label:!no-promote", "filter": true} + "content": { "cause": "label:!no-promote", "filter": true } } }, "Imperative label ('!no-promote') on quoted post": { @@ -139,9 +183,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["!no-promote"]}, + "labels": { "quotedPost": ["!no-promote"] }, "behaviors": { - "content": {"cause": "label:!no-promote", "filter": true} + "content": { "cause": "label:!no-promote", "filter": true } } }, "Imperative label ('!no-promote') on quoted author account": { @@ -149,9 +193,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["!no-promote"]}, + "labels": { "quotedAccount": ["!no-promote"] }, "behaviors": { - "content": {"cause": "label:!no-promote", "filter": true} + "content": { "cause": "label:!no-promote", "filter": true } } }, @@ -159,28 +203,28 @@ "cfg": "none", "subject": "post", "author": "alice", - "labels": {"post": ["!warn"]}, + "labels": { "post": ["!warn"] }, "behaviors": { - "content": {"cause": "label:!warn", "blur": true} + "content": { "cause": "label:!warn", "blur": true } } }, "Imperative label ('!warn') on author profile": { "cfg": "none", "subject": "post", "author": "alice", - "labels": {"profile": ["!warn"]}, + "labels": { "profile": ["!warn"] }, "behaviors": { - "avatar": {"blur": true} + "avatar": { "blur": true } } }, "Imperative label ('!warn') on author account": { "cfg": "none", "subject": "post", "author": "alice", - "labels": {"account": ["!warn"]}, + "labels": { "account": ["!warn"] }, "behaviors": { - "content": {"cause": "label:!warn", "blur": true}, - "avatar": {"blur": true} + "content": { "cause": "label:!warn", "blur": true }, + "avatar": { "blur": true } } }, "Imperative label ('!warn') on quoted post": { @@ -188,9 +232,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["!warn"]}, + "labels": { "quotedPost": ["!warn"] }, "behaviors": { - "embed": {"cause": "label:!warn", "blur": true} + "embed": { "cause": "label:!warn", "blur": true } } }, "Imperative label ('!warn') on quoted author account": { @@ -198,9 +242,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["!warn"]}, + "labels": { "quotedAccount": ["!warn"] }, "behaviors": { - "embed": {"cause": "label:!warn", "blur": true} + "embed": { "cause": "label:!warn", "blur": true } } }, @@ -208,28 +252,32 @@ "cfg": "intolerant-hide", "subject": "post", "author": "alice", - "labels": {"post": ["intolerant"]}, + "labels": { "post": ["intolerant"] }, "behaviors": { - "content": {"cause": "label:intolerant", "filter": true, "blur": true} + "content": { "cause": "label:intolerant", "filter": true, "blur": true } } }, "Blur label ('intolerant') on author profile (hide)": { "cfg": "intolerant-hide", "subject": "post", "author": "alice", - "labels": {"profile": ["intolerant"]}, + "labels": { "profile": ["intolerant"] }, "behaviors": { - "avatar": {"blur": true} + "avatar": { "blur": true } } }, "Blur label ('intolerant') on author account (hide)": { "cfg": "intolerant-hide", "subject": "post", "author": "alice", - "labels": {"account": ["intolerant"]}, + "labels": { "account": ["intolerant"] }, "behaviors": { - "content": {"cause": "label:intolerant", "filter": true, "blur": true}, - "avatar": {"blur": true} + "content": { + "cause": "label:intolerant", + "filter": true, + "blur": true + }, + "avatar": { "blur": true } } }, "Blur label ('intolerant') on quoted post (hide)": { @@ -237,10 +285,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["intolerant"]}, + "labels": { "quotedPost": ["intolerant"] }, "behaviors": { - "content": {"cause": "label:intolerant", "filter": true}, - "embed": {"cause": "label:intolerant", "blur": true} + "content": { "cause": "label:intolerant", "filter": true }, + "embed": { "cause": "label:intolerant", "blur": true } } }, "Blur label ('intolerant') on quoted author account (hide)": { @@ -248,10 +296,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["intolerant"]}, + "labels": { "quotedAccount": ["intolerant"] }, "behaviors": { - "content": {"cause": "label:intolerant", "filter": true}, - "embed": {"cause": "label:intolerant", "blur": true} + "content": { "cause": "label:intolerant", "filter": true }, + "embed": { "cause": "label:intolerant", "blur": true } } }, @@ -259,28 +307,28 @@ "cfg": "intolerant-warn", "subject": "post", "author": "alice", - "labels": {"post": ["intolerant"]}, + "labels": { "post": ["intolerant"] }, "behaviors": { - "content": {"cause": "label:intolerant", "blur": true} + "content": { "cause": "label:intolerant", "blur": true } } }, "Blur label ('intolerant') on author profile (warn)": { "cfg": "intolerant-warn", "subject": "post", "author": "alice", - "labels": {"profile": ["intolerant"]}, + "labels": { "profile": ["intolerant"] }, "behaviors": { - "avatar": {"blur": true} + "avatar": { "blur": true } } }, "Blur label ('intolerant') on author account (warn)": { "cfg": "intolerant-warn", "subject": "post", "author": "alice", - "labels": {"account": ["intolerant"]}, + "labels": { "account": ["intolerant"] }, "behaviors": { - "content": {"cause": "label:intolerant", "blur": true}, - "avatar": {"blur": true} + "content": { "cause": "label:intolerant", "blur": true }, + "avatar": { "blur": true } } }, "Blur label ('intolerant') on quoted post (warn)": { @@ -288,9 +336,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["intolerant"]}, + "labels": { "quotedPost": ["intolerant"] }, "behaviors": { - "embed": {"cause": "label:intolerant", "blur": true} + "embed": { "cause": "label:intolerant", "blur": true } } }, "Blur label ('intolerant') on quoted author account (warn)": { @@ -298,9 +346,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["intolerant"]}, + "labels": { "quotedPost": ["intolerant"] }, "behaviors": { - "embed": {"cause": "label:intolerant", "blur": true} + "embed": { "cause": "label:intolerant", "blur": true } } }, @@ -308,21 +356,21 @@ "cfg": "intolerant-ignore", "subject": "post", "author": "alice", - "labels": {"post": ["intolerant"]}, + "labels": { "post": ["intolerant"] }, "behaviors": {} }, "Blur label ('intolerant') on author profile (ignore)": { "cfg": "intolerant-ignore", "subject": "post", "author": "alice", - "labels": {"profile": ["intolerant"]}, + "labels": { "profile": ["intolerant"] }, "behaviors": {} }, "Blur label ('intolerant') on author account (ignore)": { "cfg": "intolerant-ignore", "subject": "post", "author": "alice", - "labels": {"account": ["intolerant"]}, + "labels": { "account": ["intolerant"] }, "behaviors": {} }, "Blur label ('intolerant') on quoted post (ignore)": { @@ -330,7 +378,7 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["intolerant"]}, + "labels": { "quotedPost": ["intolerant"] }, "behaviors": {} }, "Blur label ('intolerant') on quoted author account (ignore)": { @@ -338,7 +386,7 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["intolerant"]}, + "labels": { "quotedAccount": ["intolerant"] }, "behaviors": {} }, @@ -346,30 +394,30 @@ "cfg": "porn-hide", "subject": "post", "author": "alice", - "labels": {"post": ["porn"]}, + "labels": { "post": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true}, - "embed": {"cause": "label:porn", "blur": true} + "content": { "cause": "label:porn", "filter": true }, + "embed": { "cause": "label:porn", "blur": true } } }, "Blur-media label ('porn') on author profile (hide)": { "cfg": "porn-hide", "subject": "post", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": { - "avatar": {"blur": true} + "avatar": { "blur": true } } }, "Blur-media label ('porn') on author account (hide)": { "cfg": "porn-hide", "subject": "post", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true}, - "avatar": {"blur": true}, - "embed": {"cause": "label:porn", "blur": true} + "content": { "cause": "label:porn", "filter": true }, + "avatar": { "blur": true }, + "embed": { "cause": "label:porn", "blur": true } } }, "Blur-media label ('porn') on quoted post (hide)": { @@ -377,10 +425,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["porn"]}, + "labels": { "quotedPost": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true}, - "embed": {"cause": "label:porn", "blur": true} + "content": { "cause": "label:porn", "filter": true }, + "embed": { "cause": "label:porn", "blur": true } } }, "Blur-media label ('porn') on quoted author account (hide)": { @@ -388,9 +436,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["porn"]}, + "labels": { "quotedAccount": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true} + "content": { "cause": "label:porn", "filter": true } } }, @@ -398,28 +446,28 @@ "cfg": "porn-warn", "subject": "post", "author": "alice", - "labels": {"post": ["porn"]}, + "labels": { "post": ["porn"] }, "behaviors": { - "embed": {"cause": "label:porn", "blur": true} + "embed": { "cause": "label:porn", "blur": true } } }, "Blur-media label ('porn') on author profile (warn)": { "cfg": "porn-warn", "subject": "post", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": { - "avatar": {"blur": true} + "avatar": { "blur": true } } }, "Blur-media label ('porn') on author account (warn)": { "cfg": "porn-warn", "subject": "post", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": { - "avatar": {"blur": true}, - "embed": {"cause": "label:porn", "blur": true} + "avatar": { "blur": true }, + "embed": { "cause": "label:porn", "blur": true } } }, "Blur-media label ('porn') on quoted post (warn)": { @@ -427,9 +475,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["porn"]}, + "labels": { "quotedPost": ["porn"] }, "behaviors": { - "embed": {"cause": "label:porn", "blur": true} + "embed": { "cause": "label:porn", "blur": true } } }, "Blur-media label ('porn') on quoted author account (warn)": { @@ -437,30 +485,29 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["porn"]}, - "behaviors": { - } + "labels": { "quotedAccount": ["porn"] }, + "behaviors": {} }, "Blur-media label ('porn') on post (ignore)": { "cfg": "porn-ignore", "subject": "post", "author": "alice", - "labels": {"post": ["porn"]}, + "labels": { "post": ["porn"] }, "behaviors": {} }, "Blur-media label ('porn') on author profile (ignore)": { "cfg": "porn-ignore", "subject": "post", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": {} }, "Blur-media label ('porn') on author account (ignore)": { "cfg": "porn-ignore", "subject": "post", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": {} }, "Blur-media label ('porn') on quoted post (ignore)": { @@ -468,7 +515,7 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["porn"]}, + "labels": { "quotedPost": ["porn"] }, "behaviors": {} }, "Blur-media label ('porn') on quoted author account (ignore)": { @@ -476,7 +523,7 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["porn"]}, + "labels": { "quotedAccount": ["porn"] }, "behaviors": {} }, @@ -484,28 +531,28 @@ "cfg": "scam-hide", "subject": "post", "author": "alice", - "labels": {"post": ["scam"]}, + "labels": { "post": ["scam"] }, "behaviors": { - "content": {"cause": "label:scam", "filter": true, "alert": true} + "content": { "cause": "label:scam", "filter": true, "alert": true } } }, "Notice label ('scam') on author profile (hide)": { "cfg": "scam-hide", "subject": "post", "author": "alice", - "labels": {"profile": ["scam"]}, + "labels": { "profile": ["scam"] }, "behaviors": { - "avatar": {"alert": true} + "avatar": { "alert": true } } }, "Notice label ('scam') on author account (hide)": { "cfg": "scam-hide", "subject": "post", "author": "alice", - "labels": {"account": ["scam"]}, + "labels": { "account": ["scam"] }, "behaviors": { - "content": {"cause": "label:scam", "filter": true, "alert": true}, - "avatar": {"alert": true} + "content": { "cause": "label:scam", "filter": true, "alert": true }, + "avatar": { "alert": true } } }, "Notice label ('scam') on quoted post (hide)": { @@ -513,10 +560,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["scam"]}, + "labels": { "quotedPost": ["scam"] }, "behaviors": { - "content": {"cause": "label:scam", "filter": true}, - "embed": {"cause": "label:scam", "alert": true} + "content": { "cause": "label:scam", "filter": true }, + "embed": { "cause": "label:scam", "alert": true } } }, "Notice label ('scam') on quoted author account (hide)": { @@ -524,10 +571,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["scam"]}, + "labels": { "quotedAccount": ["scam"] }, "behaviors": { - "content": {"cause": "label:scam", "filter": true}, - "embed": {"cause": "label:scam", "alert": true} + "content": { "cause": "label:scam", "filter": true }, + "embed": { "cause": "label:scam", "alert": true } } }, @@ -535,28 +582,28 @@ "cfg": "scam-warn", "subject": "post", "author": "alice", - "labels": {"post": ["scam"]}, + "labels": { "post": ["scam"] }, "behaviors": { - "content": {"cause": "label:scam", "alert": true} + "content": { "cause": "label:scam", "alert": true } } }, "Notice label ('scam') on author profile (warn)": { "cfg": "scam-warn", "subject": "post", "author": "alice", - "labels": {"profile": ["scam"]}, + "labels": { "profile": ["scam"] }, "behaviors": { - "avatar": {"alert": true} + "avatar": { "alert": true } } }, "Notice label ('scam') on author account (warn)": { "cfg": "scam-warn", "subject": "post", "author": "alice", - "labels": {"account": ["scam"]}, + "labels": { "account": ["scam"] }, "behaviors": { - "content": {"cause": "label:scam", "alert": true}, - "avatar": {"alert": true} + "content": { "cause": "label:scam", "alert": true }, + "avatar": { "alert": true } } }, "Notice label ('scam') on quoted post (warn)": { @@ -564,9 +611,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["scam"]}, + "labels": { "quotedPost": ["scam"] }, "behaviors": { - "embed": {"cause": "label:scam", "alert": true} + "embed": { "cause": "label:scam", "alert": true } } }, "Notice label ('scam') on quoted author account (warn)": { @@ -574,9 +621,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["scam"]}, + "labels": { "quotedAccount": ["scam"] }, "behaviors": { - "embed": {"cause": "label:scam", "alert": true} + "embed": { "cause": "label:scam", "alert": true } } }, @@ -584,21 +631,21 @@ "cfg": "scam-ignore", "subject": "post", "author": "alice", - "labels": {"post": ["scam"]}, + "labels": { "post": ["scam"] }, "behaviors": {} }, "Notice label ('scam') on author profile (ignore)": { "cfg": "scam-ignore", "subject": "post", "author": "alice", - "labels": {"profile": ["scam"]}, + "labels": { "profile": ["scam"] }, "behaviors": {} }, "Notice label ('scam') on author account (ignore)": { "cfg": "scam-ignore", "subject": "post", "author": "alice", - "labels": {"account": ["scam"]}, + "labels": { "account": ["scam"] }, "behaviors": {} }, "Notice label ('scam') on quoted post (ignore)": { @@ -606,7 +653,7 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["scam"]}, + "labels": { "quotedPost": ["scam"] }, "behaviors": {} }, "Notice label ('scam') on quoted author account (ignore)": { @@ -614,7 +661,7 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["scam"]}, + "labels": { "quotedAccount": ["scam"] }, "behaviors": {} }, @@ -622,30 +669,38 @@ "cfg": "adult-disabled", "subject": "post", "author": "alice", - "labels": {"post": ["porn"]}, + "labels": { "post": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true, "noOverride": true}, - "embed": {"cause": "label:porn", "blur": true, "noOverride": true} + "content": { + "cause": "label:porn", + "filter": true, + "noOverride": true + }, + "embed": { "cause": "label:porn", "blur": true, "noOverride": true } } }, "Adult-only label on author profile when adult content is disabled": { "cfg": "adult-disabled", "subject": "post", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": { - "avatar": {"cause": "label:porn", "blur": true, "noOverride": true} + "avatar": { "cause": "label:porn", "blur": true, "noOverride": true } } }, "Adult-only label on author account when adult content is disabled": { "cfg": "adult-disabled", "subject": "post", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true, "noOverride": true}, - "avatar": {"cause": "label:porn", "blur": true, "noOverride": true}, - "embed": {"cause": "label:porn", "blur": 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 } } }, "Adult-only label on quoted post when adult content is disabled": { @@ -653,10 +708,10 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedPost": ["porn"]}, + "labels": { "quotedPost": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true}, - "embed": {"cause": "label:porn", "blur": true, "noOverride": true} + "content": { "cause": "label:porn", "filter": true }, + "embed": { "cause": "label:porn", "blur": true, "noOverride": true } } }, "Adult-only label on quoted author account when adult content is disabled": { @@ -664,9 +719,9 @@ "subject": "post", "author": "alice", "quoteAuthor": "alice", - "labels": {"quotedAccount": ["porn"]}, + "labels": { "quotedAccount": ["porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true} + "content": { "cause": "label:porn", "filter": true } } }, @@ -674,23 +729,23 @@ "cfg": "none", "subject": "post", "author": "self", - "labels": {"post": ["!hide"]}, + "labels": { "post": ["!hide"] }, "behaviors": { - "content": {"cause": "label:!hide", "blur": true} + "content": { "cause": "label:!hide", "blur": true } } }, "Self-post: Imperative label ('!hide') on author profile": { "cfg": "none", "subject": "post", "author": "self", - "labels": {"profile": ["!hide"]}, + "labels": { "profile": ["!hide"] }, "behaviors": {} }, "Self-post: Imperative label ('!hide') on author account": { "cfg": "none", "subject": "post", "author": "self", - "labels": {"account": ["!hide"]}, + "labels": { "account": ["!hide"] }, "behaviors": {} }, "Self-post: Imperative label ('!hide') on quoted post": { @@ -698,9 +753,9 @@ "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedPost": ["!hide"]}, + "labels": { "quotedPost": ["!hide"] }, "behaviors": { - "embed": {"cause": "label:!hide", "blur": true} + "embed": { "cause": "label:!hide", "blur": true } } }, "Self-post: Imperative label ('!hide') on quoted author account": { @@ -708,7 +763,7 @@ "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedAccount": ["!hide"]}, + "labels": { "quotedAccount": ["!hide"] }, "behaviors": {} }, @@ -716,23 +771,23 @@ "cfg": "none", "subject": "post", "author": "self", - "labels": {"post": ["!warn"]}, + "labels": { "post": ["!warn"] }, "behaviors": { - "content": {"cause": "label:!warn", "blur": true} + "content": { "cause": "label:!warn", "blur": true } } }, "Self-post: Imperative label ('!warn') on author profile": { "cfg": "none", "subject": "post", "author": "self", - "labels": {"profile": ["!warn"]}, + "labels": { "profile": ["!warn"] }, "behaviors": {} }, "Self-post: Imperative label ('!warn') on author account": { "cfg": "none", "subject": "post", "author": "self", - "labels": {"account": ["!warn"]}, + "labels": { "account": ["!warn"] }, "behaviors": {} }, "Self-post: Imperative label ('!warn') on quoted post": { @@ -740,9 +795,9 @@ "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedPost": ["!warn"]}, + "labels": { "quotedPost": ["!warn"] }, "behaviors": { - "embed": {"cause": "label:!warn", "blur": true} + "embed": { "cause": "label:!warn", "blur": true } } }, "Self-post: Imperative label ('!warn') on quoted author account": { @@ -750,7 +805,7 @@ "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedAccount": ["!warn"]}, + "labels": { "quotedAccount": ["!warn"] }, "behaviors": {} }, @@ -758,35 +813,33 @@ "cfg": "porn-hide", "subject": "post", "author": "self", - "labels": {"post": ["porn"]}, + "labels": { "post": ["porn"] }, "behaviors": { - "embed": {"cause": "label:porn", "blur": true} + "embed": { "cause": "label:porn", "blur": true } } }, "Self-post: Blur-media label ('porn') on author profile (hide)": { "cfg": "porn-hide", "subject": "post", "author": "self", - "labels": {"profile": ["porn"]}, - "behaviors": { - } + "labels": { "profile": ["porn"] }, + "behaviors": {} }, "Self-post: Blur-media label ('porn') on author account (hide)": { "cfg": "porn-hide", "subject": "post", "author": "self", - "labels": {"account": ["porn"]}, - "behaviors": { - } + "labels": { "account": ["porn"] }, + "behaviors": {} }, "Self-post: Blur-media label ('porn') on quoted post (hide)": { "cfg": "porn-hide", "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedPost": ["porn"]}, + "labels": { "quotedPost": ["porn"] }, "behaviors": { - "embed": {"cause": "label:porn", "blur": true} + "embed": { "cause": "label:porn", "blur": true } } }, "Self-post: Blur-media label ('porn') on quoted author account (hide)": { @@ -794,44 +847,41 @@ "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedAccount": ["porn"]}, - "behaviors": { - } + "labels": { "quotedAccount": ["porn"] }, + "behaviors": {} }, "Self-post: Blur-media label ('porn') on post (warn)": { "cfg": "porn-warn", "subject": "post", "author": "self", - "labels": {"post": ["porn"]}, + "labels": { "post": ["porn"] }, "behaviors": { - "embed": {"cause": "label:porn", "blur": true} + "embed": { "cause": "label:porn", "blur": true } } }, "Self-post: Blur-media label ('porn') on author profile (warn)": { "cfg": "porn-warn", "subject": "post", "author": "self", - "labels": {"profile": ["porn"]}, - "behaviors": { - } + "labels": { "profile": ["porn"] }, + "behaviors": {} }, "Self-post: Blur-media label ('porn') on author account (warn)": { "cfg": "porn-warn", "subject": "post", "author": "self", - "labels": {"account": ["porn"]}, - "behaviors": { - } + "labels": { "account": ["porn"] }, + "behaviors": {} }, "Self-post: Blur-media label ('porn') on quoted post (warn)": { "cfg": "porn-warn", "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedPost": ["porn"]}, + "labels": { "quotedPost": ["porn"] }, "behaviors": { - "embed": {"cause": "label:porn", "blur": true} + "embed": { "cause": "label:porn", "blur": true } } }, "Self-post: Blur-media label ('porn') on quoted author account (warn)": { @@ -839,9 +889,8 @@ "subject": "post", "author": "self", "quoteAuthor": "self", - "labels": {"quotedAccount": ["porn"]}, - "behaviors": { - } + "labels": { "quotedAccount": ["porn"] }, + "behaviors": {} }, "Post with blocked author": { @@ -850,8 +899,13 @@ "author": "bob", "labels": {}, "behaviors": { - "content": {"cause": "blocking", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "content": { + "cause": "blocking", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Post with blocked quoted author": { @@ -861,8 +915,8 @@ "quoteAuthor": "bob", "labels": {}, "behaviors": { - "content": {"cause": "blocking", "filter": true}, - "embed": {"cause": "blocking", "blur": true, "noOverride": true} + "content": { "cause": "blocking", "filter": true }, + "embed": { "cause": "blocking", "blur": true, "noOverride": true } } }, @@ -872,8 +926,13 @@ "author": "carla", "labels": {}, "behaviors": { - "content": {"cause": "blocked-by", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "content": { + "cause": "blocked-by", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Post with quoted author blocking user": { @@ -883,8 +942,8 @@ "quoteAuthor": "carla", "labels": {}, "behaviors": { - "content": {"cause": "blocked-by", "filter": true}, - "embed": {"cause": "blocked-by", "blur": true, "noOverride": true} + "content": { "cause": "blocked-by", "filter": true }, + "embed": { "cause": "blocked-by", "blur": true, "noOverride": true } } }, @@ -894,7 +953,7 @@ "author": "dan", "labels": {}, "behaviors": { - "content": {"cause": "muted", "filter": true, "blur": true} + "content": { "cause": "muted", "filter": true, "blur": true } } }, "Post with muted quoted author": { @@ -904,8 +963,8 @@ "quoteAuthor": "dan", "labels": {}, "behaviors": { - "content": {"cause": "muted", "filter": true}, - "embed": {"cause": "muted", "blur": true} + "content": { "cause": "muted", "filter": true }, + "embed": { "cause": "muted", "blur": true } } }, @@ -915,7 +974,7 @@ "author": "elise", "labels": {}, "behaviors": { - "content": {"cause": "muted-by-list", "filter": true, "blur": true} + "content": { "cause": "muted-by-list", "filter": true, "blur": true } } }, "Post with muted-by-list quoted author": { @@ -925,8 +984,8 @@ "quoteAuthor": "elise", "labels": {}, "behaviors": { - "content": {"cause": "muted-by-list", "filter": true}, - "embed": {"cause": "muted-by-list", "blur": true} + "content": { "cause": "muted-by-list", "filter": true }, + "embed": { "cause": "muted-by-list", "blur": true } } }, @@ -936,8 +995,13 @@ "author": "fern", "labels": {}, "behaviors": { - "content": {"cause": "blocking", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "content": { + "cause": "blocking", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Prioritization: post with blocking & blocked-by quoted author": { @@ -947,18 +1011,23 @@ "quoteAuthor": "fern", "labels": {}, "behaviors": { - "content": {"cause": "blocking", "filter": true}, - "embed": {"cause": "blocking", "blur": true, "noOverride": true} + "content": { "cause": "blocking", "filter": true }, + "embed": { "cause": "blocking", "blur": true, "noOverride": true } } }, "Prioritization: '!hide' label on post by blocked user": { "cfg": "none", "subject": "post", "author": "bob", - "labels": {"post": ["!hide"]}, + "labels": { "post": ["!hide"] }, "behaviors": { - "content": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "content": { + "cause": "label:!hide", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Prioritization: '!hide' label on quoted post, post by blocked user": { @@ -966,49 +1035,64 @@ "subject": "post", "author": "bob", "quoteAuthor": "alice", - "labels": {"quotedPost": ["!hide"]}, + "labels": { "quotedPost": ["!hide"] }, "behaviors": { - "content": {"cause": "blocking", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true}, - "embed": {"cause": "label:!hide", "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 } } }, "Prioritization: '!hide' and 'intolerant' labels on post (hide)": { "cfg": "intolerant-hide", "subject": "post", "author": "alice", - "labels": {"post": ["!hide", "intolerant"]}, + "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)": { "cfg": "intolerant-hide", "subject": "post", "author": "alice", - "labels": {"post": ["!warn", "intolerant"]}, + "labels": { "post": ["!warn", "intolerant"] }, "behaviors": { - "content": {"cause": "label:intolerant", "filter": true, "blur": true} + "content": { "cause": "label:intolerant", "filter": true, "blur": true } } }, "Prioritization: '!hide' and 'porn' labels on post (hide)": { "cfg": "porn-hide", "subject": "post", "author": "alice", - "labels": {"post": ["!hide", "porn"]}, + "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)": { "cfg": "porn-hide", "subject": "post", "author": "alice", - "labels": {"post": ["!warn", "porn"]}, + "labels": { "post": ["!warn", "porn"] }, "behaviors": { - "content": {"cause": "label:porn", "filter": true}, - "embed": {"cause": "label:porn", "blur": true} + "content": { "cause": "label:porn", "filter": true }, + "embed": { "cause": "label:porn", "blur": true } } } } -} \ No newline at end of file +} diff --git a/packages/api/definitions/profile-moderation-behaviors.json b/packages/api/definitions/profile-moderation-behaviors.json index 7db48d8b6..52e047616 100644 --- a/packages/api/definitions/profile-moderation-behaviors.json +++ b/packages/api/definitions/profile-moderation-behaviors.json @@ -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": {}, @@ -15,37 +49,37 @@ "adultContentEnabled": false }, "intolerant-hide": { - "settings": {"intolerant": "hide"} + "settings": { "intolerant": "hide" } }, "intolerant-warn": { - "settings": {"intolerant": "warn"} + "settings": { "intolerant": "warn" } }, "intolerant-ignore": { - "settings": {"intolerant": "ignore"} + "settings": { "intolerant": "ignore" } }, "porn-hide": { "adultContentEnabled": true, - "settings": {"porn": "hide"} + "settings": { "porn": "hide" } }, "porn-warn": { "adultContentEnabled": true, - "settings": {"porn": "warn"} + "settings": { "porn": "warn" } }, "porn-ignore": { "adultContentEnabled": true, - "settings": {"porn": "ignore"} + "settings": { "porn": "ignore" } }, "scam-hide": { - "settings": {"scam": "hide"} + "settings": { "scam": "hide" } }, "scam-warn": { - "settings": {"scam": "warn"} + "settings": { "scam": "warn" } }, "scam-ignore": { - "settings": {"scam": "ignore"} + "settings": { "scam": "ignore" } }, "intolerant-hide-scam-warn": { - "settings": {"intolerant": "hide", "scam": "hide"} + "settings": { "intolerant": "hide", "scam": "hide" } } }, "scenarios": { @@ -53,20 +87,25 @@ "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"account": ["!hide"]}, + "labels": { "account": ["!hide"] }, "behaviors": { - "account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "account": { + "cause": "label:!hide", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Imperative label ('!hide') on profile": { "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"profile": ["!hide"]}, + "labels": { "profile": ["!hide"] }, "behaviors": { - "profile": {"cause": "label:!hide", "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "profile": { "cause": "label:!hide", "blur": true, "noOverride": true }, + "avatar": { "blur": true, "noOverride": true } } }, @@ -74,16 +113,16 @@ "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"account": ["!no-promote"]}, + "labels": { "account": ["!no-promote"] }, "behaviors": { - "account": {"cause": "label:!no-promote", "filter": true} + "account": { "cause": "label:!no-promote", "filter": true } } }, "Imperative label ('!no-promote') on profile": { "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"profile": ["!no-promote"]}, + "labels": { "profile": ["!no-promote"] }, "behaviors": {} }, @@ -91,20 +130,20 @@ "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"account": ["!warn"]}, + "labels": { "account": ["!warn"] }, "behaviors": { - "account": {"cause": "label:!warn", "blur": true}, - "avatar": {"blur": true} + "account": { "cause": "label:!warn", "blur": true }, + "avatar": { "blur": true } } }, "Imperative label ('!warn') on profile": { "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"profile": ["!warn"]}, + "labels": { "profile": ["!warn"] }, "behaviors": { - "profile": {"cause": "label:!warn", "blur": true}, - "avatar": {"blur": true} + "profile": { "cause": "label:!warn", "blur": true }, + "avatar": { "blur": true } } }, @@ -112,20 +151,24 @@ "cfg": "intolerant-hide", "subject": "profile", "author": "alice", - "labels": {"account": ["intolerant"]}, + "labels": { "account": ["intolerant"] }, "behaviors": { - "account": {"cause": "label:intolerant", "filter": true, "blur": true}, - "avatar": {"blur": true} + "account": { + "cause": "label:intolerant", + "filter": true, + "blur": true + }, + "avatar": { "blur": true } } }, "Blur label ('intolerant') on profile (hide)": { "cfg": "intolerant-hide", "subject": "profile", "author": "alice", - "labels": {"profile": ["intolerant"]}, + "labels": { "profile": ["intolerant"] }, "behaviors": { - "profile": {"cause": "label:intolerant", "blur": true}, - "avatar": {"blur": true} + "profile": { "cause": "label:intolerant", "blur": true }, + "avatar": { "blur": true } } }, @@ -133,20 +176,20 @@ "cfg": "intolerant-warn", "subject": "profile", "author": "alice", - "labels": {"account": ["intolerant"]}, + "labels": { "account": ["intolerant"] }, "behaviors": { - "account": {"cause": "label:intolerant", "blur": true}, - "avatar": {"blur": true} + "account": { "cause": "label:intolerant", "blur": true }, + "avatar": { "blur": true } } }, "Blur label ('intolerant') on profile (warn)": { "cfg": "intolerant-warn", "subject": "profile", "author": "alice", - "labels": {"profile": ["intolerant"]}, + "labels": { "profile": ["intolerant"] }, "behaviors": { - "profile": {"cause": "label:intolerant", "blur": true}, - "avatar": {"blur": true} + "profile": { "cause": "label:intolerant", "blur": true }, + "avatar": { "blur": true } } }, @@ -154,14 +197,14 @@ "cfg": "intolerant-ignore", "subject": "profile", "author": "alice", - "labels": {"account": ["intolerant"]}, + "labels": { "account": ["intolerant"] }, "behaviors": {} }, "Blur label ('intolerant') on profile (ignore)": { "cfg": "intolerant-ignore", "subject": "profile", "author": "alice", - "labels": {"profile": ["intolerant"]}, + "labels": { "profile": ["intolerant"] }, "behaviors": {} }, @@ -169,19 +212,19 @@ "cfg": "porn-hide", "subject": "profile", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": { - "account": {"cause": "label:porn", "filter": true, "blur": true}, - "avatar": {"blur": true} + "account": { "cause": "label:porn", "filter": true, "blur": true }, + "avatar": { "blur": true } } }, "Blur-media label ('porn') on profile (hide)": { "cfg": "porn-hide", "subject": "profile", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": { - "avatar": {"blur": true} + "avatar": { "blur": true } } }, @@ -189,19 +232,19 @@ "cfg": "porn-warn", "subject": "profile", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": { - "account": {"cause": "label:porn", "blur": true}, - "avatar": {"blur": true} + "account": { "cause": "label:porn", "blur": true }, + "avatar": { "blur": true } } }, "Blur-media label ('porn') on profile (warn)": { "cfg": "porn-warn", "subject": "profile", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": { - "avatar": {"blur": true} + "avatar": { "blur": true } } }, @@ -209,14 +252,14 @@ "cfg": "porn-ignore", "subject": "profile", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": {} }, "Blur-media label ('porn') on profile (ignore)": { "cfg": "porn-ignore", "subject": "profile", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": {} }, @@ -224,20 +267,20 @@ "cfg": "scam-hide", "subject": "profile", "author": "alice", - "labels": {"account": ["scam"]}, + "labels": { "account": ["scam"] }, "behaviors": { - "account": {"cause": "label:scam", "filter": true, "alert": true}, - "avatar": {"alert": true} + "account": { "cause": "label:scam", "filter": true, "alert": true }, + "avatar": { "alert": true } } }, "Notice label ('scam') on profile (hide)": { "cfg": "scam-hide", "subject": "profile", "author": "alice", - "labels": {"profile": ["scam"]}, + "labels": { "profile": ["scam"] }, "behaviors": { - "profile": {"cause": "label:scam", "alert": true}, - "avatar": {"alert": true} + "profile": { "cause": "label:scam", "alert": true }, + "avatar": { "alert": true } } }, @@ -245,20 +288,20 @@ "cfg": "scam-warn", "subject": "profile", "author": "alice", - "labels": {"account": ["scam"]}, + "labels": { "account": ["scam"] }, "behaviors": { - "account": {"cause": "label:scam", "alert": true}, - "avatar": {"alert": true} + "account": { "cause": "label:scam", "alert": true }, + "avatar": { "alert": true } } }, "Notice label ('scam') on profile (warn)": { "cfg": "scam-warn", "subject": "profile", "author": "alice", - "labels": {"profile": ["scam"]}, + "labels": { "profile": ["scam"] }, "behaviors": { - "profile": {"cause": "label:scam", "alert": true}, - "avatar": {"alert": true} + "profile": { "cause": "label:scam", "alert": true }, + "avatar": { "alert": true } } }, @@ -266,14 +309,14 @@ "cfg": "scam-ignore", "subject": "profile", "author": "alice", - "labels": {"account": ["scam"]}, + "labels": { "account": ["scam"] }, "behaviors": {} }, "Notice label ('scam') on profile (ignore)": { "cfg": "scam-ignore", "subject": "profile", "author": "alice", - "labels": {"profile": ["scam"]}, + "labels": { "profile": ["scam"] }, "behaviors": {} }, @@ -281,19 +324,24 @@ "cfg": "adult-disabled", "subject": "profile", "author": "alice", - "labels": {"account": ["porn"]}, + "labels": { "account": ["porn"] }, "behaviors": { - "account": {"cause": "label:porn", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "account": { + "cause": "label:porn", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Adult-only label on profile when adult content is disabled": { "cfg": "adult-disabled", "subject": "profile", "author": "alice", - "labels": {"profile": ["porn"]}, + "labels": { "profile": ["porn"] }, "behaviors": { - "avatar": {"blur": true, "noOverride": true} + "avatar": { "blur": true, "noOverride": true } } }, @@ -301,20 +349,20 @@ "cfg": "none", "subject": "profile", "author": "self", - "labels": {"account": ["!hide"]}, + "labels": { "account": ["!hide"] }, "behaviors": { - "account": {"cause": "label:!hide", "alert": true}, - "avatar": {"alert": true} + "account": { "cause": "label:!hide", "alert": true }, + "avatar": { "alert": true } } }, "Self-profile: !hide on profile": { "cfg": "none", "subject": "profile", "author": "self", - "labels": {"profile": ["!hide"]}, + "labels": { "profile": ["!hide"] }, "behaviors": { - "profile": {"cause": "label:!hide", "alert": true}, - "avatar": {"alert": true} + "profile": { "cause": "label:!hide", "alert": true }, + "avatar": { "alert": true } } }, @@ -324,8 +372,8 @@ "author": "bob", "labels": {}, "behaviors": { - "account": {"cause": "blocking", "filter": true}, - "avatar": {"blur": true, "noOverride": true} + "account": { "cause": "blocking", "filter": true }, + "avatar": { "blur": true, "noOverride": true } } }, @@ -335,8 +383,8 @@ "author": "carla", "labels": {}, "behaviors": { - "account": {"cause": "blocked-by", "filter": true}, - "avatar": {"blur": true, "noOverride": true} + "account": { "cause": "blocked-by", "filter": true }, + "avatar": { "blur": true, "noOverride": true } } }, @@ -346,7 +394,7 @@ "author": "dan", "labels": {}, "behaviors": { - "account": {"cause": "muted", "filter": true} + "account": { "cause": "muted", "filter": true } } }, @@ -356,7 +404,7 @@ "author": "elise", "labels": {}, "behaviors": { - "account": {"cause": "muted-by-list", "filter": true} + "account": { "cause": "muted-by-list", "filter": true } } }, @@ -366,82 +414,105 @@ "author": "fern", "labels": {}, "behaviors": { - "account": {"cause": "blocking", "filter": true, "blur": false}, - "avatar": {"blur": true, "noOverride": true} + "account": { "cause": "blocking", "filter": true, "blur": false }, + "avatar": { "blur": true, "noOverride": true } } }, "Prioritization: '!hide' label on account of blocked user": { "cfg": "none", "subject": "profile", "author": "bob", - "labels": {"account": ["!hide"]}, + "labels": { "account": ["!hide"] }, "behaviors": { - "account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "account": { + "cause": "label:!hide", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Prioritization: '!hide' and 'intolerant' labels on account (hide)": { "cfg": "intolerant-hide", "subject": "profile", "author": "alice", - "labels": {"account": ["!hide", "intolerant"]}, + "labels": { "account": ["!hide", "intolerant"] }, "behaviors": { - "account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "account": { + "cause": "label:!hide", + "filter": true, + "blur": true, + "noOverride": true + }, + "avatar": { "blur": true, "noOverride": true } } }, "Prioritization: '!warn' and 'intolerant' labels on account (hide)": { "cfg": "intolerant-hide", "subject": "profile", "author": "alice", - "labels": {"account": ["!warn", "intolerant"]}, + "labels": { "account": ["!warn", "intolerant"] }, "behaviors": { - "account": {"cause": "label:intolerant", "filter": true, "blur": true}, - "avatar": {"blur": true} + "account": { + "cause": "label:intolerant", + "filter": true, + "blur": true + }, + "avatar": { "blur": true } } }, "Prioritization: '!warn' and 'porn' labels on account (hide)": { "cfg": "porn-hide", "subject": "profile", "author": "alice", - "labels": {"account": ["!warn", "porn"]}, + "labels": { "account": ["!warn", "porn"] }, "behaviors": { - "account": {"cause": "label:porn", "filter": true, "blur": true}, - "avatar": {"blur": true} + "account": { "cause": "label:porn", "filter": true, "blur": true }, + "avatar": { "blur": true } } }, "Prioritization: intolerant label on account (hide) and scam label on profile (warn)": { "cfg": "intolerant-hide-scam-warn", "subject": "profile", "author": "alice", - "labels": {"account": ["intolerant"], "profile": ["scam"]}, + "labels": { "account": ["intolerant"], "profile": ["scam"] }, "behaviors": { - "account": {"cause": "label:intolerant", "filter": true, "blur": true}, - "profile": {"cause": "label:scam", "alert": true}, - "avatar": {"blur": true, "alert": true} + "account": { + "cause": "label:intolerant", + "filter": true, + "blur": true + }, + "profile": { "cause": "label:scam", "alert": true }, + "avatar": { "blur": true, "alert": true } } }, "Prioritization: !hide on account, !warn on profile": { "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"account": ["!hide"], "profile": ["!warn"]}, + "labels": { "account": ["!hide"], "profile": ["!warn"] }, "behaviors": { - "account": {"cause": "label:!hide", "filter": true, "blur": true, "noOverride": true}, - "profile": {"cause": "label:!warn", "blur": true}, - "avatar": {"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 } } }, "Prioritization: !warn on account, !hide on profile": { "cfg": "none", "subject": "profile", "author": "alice", - "labels": {"account": ["!warn"], "profile": ["!hide"]}, + "labels": { "account": ["!warn"], "profile": ["!hide"] }, "behaviors": { - "account": {"cause": "label:!warn", "blur": true}, - "profile": {"cause": "label:!hide", "blur": true, "noOverride": true}, - "avatar": {"blur": true, "noOverride": true} + "account": { "cause": "label:!warn", "blur": true }, + "profile": { "cause": "label:!hide", "blur": true, "noOverride": true }, + "avatar": { "blur": true, "noOverride": true } } } } -} \ No newline at end of file +} diff --git a/packages/api/definitions/proposed-labels.json b/packages/api/definitions/proposed-labels.json index 59cbcb4ad..ad9b8924c 100644 --- a/packages/api/definitions/proposed-labels.json +++ b/packages/api/definitions/proposed-labels.json @@ -323,4 +323,4 @@ } ] } -] \ No newline at end of file +] diff --git a/packages/api/docs/labels.md b/packages/api/docs/labels.md index 9531df460..a2d8806b5 100644 --- a/packages/api/docs/labels.md +++ b/packages/api/docs/labels.md @@ -1,44 +1,44 @@ - # Labels - - This document is a reference for the labels used in the SDK. +# Labels - **⚠️ Note**: These labels are still in development and may change over time. Not all are currently in use. +This document is a reference for the labels used in the SDK. - ## Key +**⚠️ Note**: These labels are still in development and may change over time. Not all are currently in use. - ### Label Preferences +## Key - The possible client interpretations for a label. +### Label Preferences - - ignore Do nothing with the label. - - warn Provide some form of warning on the content (see "On Warn" behavior). - - hide Remove the content from feeds and apply the warning when directly viewed. +The possible client interpretations for a label. - Each label specifies which preferences it can support. If a label is not configurable, it must have only own supported preference. +- ignore Do nothing with the label. +- warn Provide some form of warning on the content (see "On Warn" behavior). +- hide Remove the content from feeds and apply the warning when directly viewed. - ### Configurable? +Each label specifies which preferences it can support. If a label is not configurable, it must have only own supported preference. - Non-configurable labels cannot have their preference changed by the user. +### Configurable? - ### Flags +Non-configurable labels cannot have their preference changed by the user. - Additional behaviors which a label can adopt. +### Flags - - no-override The user cannot click through any covering of content created by the label. - - adult The user must have adult content enabled to configure the label. If adult content is not enabled, the label must adopt the strictest preference. +Additional behaviors which a label can adopt. - ### On Warn +- no-override The user cannot click through any covering of content created by the label. +- adult The user must have adult content enabled to configure the label. If adult content is not enabled, the label must adopt the strictest preference. - The kind of UI behavior used when a warning must be applied. +### On Warn - - blur Hide all of the content behind an interstitial. - - blur-media Hide only the media within the content (ie images) behind an interstitial. - - alert Display a descriptive warning but do not hide the content. - - null Do nothing. +The kind of UI behavior used when a warning must be applied. - ## Label Behaviors +- blur Hide all of the content behind an interstitial. +- blur-media Hide only the media within the content (ie images) behind an interstitial. +- alert Display a descriptive warning but do not hide the content. +- null Do nothing. + +## Label Behaviors @@ -267,7 +267,7 @@
- ## Label Group Descriptions +## Label Group Descriptions @@ -312,7 +312,7 @@
- ## Label Descriptions +## Label Descriptions @@ -535,4 +535,4 @@ on content
Misleading
The moderators believe this account is spreading misleading information.

-
\ No newline at end of file + diff --git a/packages/api/docs/moderation-behaviors/posts.md b/packages/api/docs/moderation-behaviors/posts.md index ef3c6c7fc..5ddcf9ff6 100644 --- a/packages/api/docs/moderation-behaviors/posts.md +++ b/packages/api/docs/moderation-behaviors/posts.md @@ -38,17 +38,12 @@ Key: - - - - - Imperative label ('!hide') on author profile @@ -56,7 +51,6 @@ Key: - 🚫 @@ -64,13 +58,9 @@ Key: - - - - Imperative label ('!hide') on author account @@ -86,13 +76,9 @@ Key: - - - - Imperative label ('!hide') on quoted post @@ -100,11 +86,9 @@ Key: - - 🚫 @@ -112,9 +96,6 @@ Key: - - - Imperative label ('!hide') on quoted author account @@ -122,11 +103,9 @@ Key: - - 🚫 @@ -134,9 +113,6 @@ Key: - - - Imperative label ('!no-promote') on post @@ -144,21 +120,15 @@ Key: - - - - - - Imperative label ('!no-promote') on author profile @@ -166,21 +136,15 @@ Key: - - - - - - Imperative label ('!no-promote') on author account @@ -188,21 +152,15 @@ Key: - - - - - - Imperative label ('!no-promote') on quoted post @@ -210,21 +168,15 @@ Key: - - - - - - Imperative label ('!no-promote') on quoted author account @@ -232,21 +184,15 @@ Key: - - - - - - Imperative label ('!warn') on post @@ -258,17 +204,12 @@ Key: - - - - - Imperative label ('!warn') on author profile @@ -276,7 +217,6 @@ Key: - ✋ @@ -284,13 +224,9 @@ Key: - - - - Imperative label ('!warn') on author account @@ -306,13 +242,9 @@ Key: - - - - Imperative label ('!warn') on quoted post @@ -320,11 +252,9 @@ Key: - - ✋ @@ -332,9 +262,6 @@ Key: - - - Imperative label ('!warn') on quoted author account @@ -342,11 +269,9 @@ Key: - - ✋ @@ -354,8 +279,6 @@ Key: - - ScenarioFilterContentAvatarEmbed Blur label ('intolerant') on post (hide) @@ -368,17 +291,12 @@ Key: - - - - - Blur label ('intolerant') on author profile (hide) @@ -386,7 +304,6 @@ Key: - ✋ @@ -394,13 +311,9 @@ Key: - - - - Blur label ('intolerant') on author account (hide) @@ -416,13 +329,9 @@ Key: - - - - Blur label ('intolerant') on quoted post (hide) @@ -430,11 +339,9 @@ Key: - - ✋ @@ -442,9 +349,6 @@ Key: - - - Blur label ('intolerant') on quoted author account (hide) @@ -452,11 +356,9 @@ Key: - - ✋ @@ -464,9 +366,6 @@ Key: - - - Blur label ('intolerant') on post (warn) @@ -478,17 +377,12 @@ Key: - - - - - Blur label ('intolerant') on author profile (warn) @@ -496,7 +390,6 @@ Key: - ✋ @@ -504,13 +397,9 @@ Key: - - - - Blur label ('intolerant') on author account (warn) @@ -526,13 +415,9 @@ Key: - - - - Blur label ('intolerant') on quoted post (warn) @@ -540,11 +425,9 @@ Key: - - ✋ @@ -552,9 +435,6 @@ Key: - - - Blur label ('intolerant') on quoted author account (warn) @@ -562,11 +442,9 @@ Key: - - ✋ @@ -574,9 +452,6 @@ Key: - - - Blur label ('intolerant') on post (ignore) @@ -584,21 +459,15 @@ Key: - - - - - - Blur label ('intolerant') on author profile (ignore) @@ -606,21 +475,15 @@ Key: - - - - - - Blur label ('intolerant') on author account (ignore) @@ -628,21 +491,15 @@ Key: - - - - - - Blur label ('intolerant') on quoted post (ignore) @@ -650,21 +507,15 @@ Key: - - - - - - Blur label ('intolerant') on quoted author account (ignore) @@ -672,20 +523,15 @@ Key: - - - - - ScenarioFilterContentAvatarEmbed Blur-media label ('porn') on post (hide) @@ -694,11 +540,9 @@ Key: - - ✋ @@ -706,9 +550,6 @@ Key: - - - Blur-media label ('porn') on author profile (hide) @@ -716,7 +557,6 @@ Key: - ✋ @@ -724,13 +564,9 @@ Key: - - - - Blur-media label ('porn') on author account (hide) @@ -738,7 +574,6 @@ Key: - ✋ @@ -750,9 +585,6 @@ Key: - - - Blur-media label ('porn') on quoted post (hide) @@ -760,11 +592,9 @@ Key: - - ✋ @@ -772,9 +602,6 @@ Key: - - - Blur-media label ('porn') on quoted author account (hide) @@ -782,21 +609,15 @@ Key: - - - - - - Blur-media label ('porn') on post (warn) @@ -804,11 +625,9 @@ Key: - - ✋ @@ -816,9 +635,6 @@ Key: - - - Blur-media label ('porn') on author profile (warn) @@ -826,7 +642,6 @@ Key: - ✋ @@ -834,13 +649,9 @@ Key: - - - - Blur-media label ('porn') on author account (warn) @@ -848,7 +659,6 @@ Key: - ✋ @@ -860,9 +670,6 @@ Key: - - - Blur-media label ('porn') on quoted post (warn) @@ -870,11 +677,9 @@ Key: - - ✋ @@ -882,9 +687,6 @@ Key: - - - Blur-media label ('porn') on quoted author account (warn) @@ -892,21 +694,15 @@ Key: - - - - - - Blur-media label ('porn') on post (ignore) @@ -914,21 +710,15 @@ Key: - - - - - - Blur-media label ('porn') on author profile (ignore) @@ -936,21 +726,15 @@ Key: - - - - - - Blur-media label ('porn') on author account (ignore) @@ -958,21 +742,15 @@ Key: - - - - - - Blur-media label ('porn') on quoted post (ignore) @@ -980,21 +758,15 @@ Key: - - - - - - Blur-media label ('porn') on quoted author account (ignore) @@ -1002,20 +774,15 @@ Key: - - - - - ScenarioFilterContentAvatarEmbed Notice label ('scam') on post (hide) @@ -1025,20 +792,16 @@ Key: 🪧 - - - + + - - - Notice label ('scam') on author profile (hide) @@ -1046,21 +809,17 @@ Key: - 🪧 + - - - - Notice label ('scam') on author account (hide) @@ -1069,20 +828,18 @@ Key: 🪧 + 🪧 + - - - - Notice label ('scam') on quoted post (hide) @@ -1090,21 +847,17 @@ Key: - - 🪧 + - - - Notice label ('scam') on quoted author account (hide) @@ -1112,21 +865,17 @@ Key: - - 🪧 + - - - Notice label ('scam') on post (warn) @@ -1135,20 +884,16 @@ Key: 🪧 - - - + + - - - Notice label ('scam') on author profile (warn) @@ -1156,21 +901,17 @@ Key: - 🪧 + - - - - Notice label ('scam') on author account (warn) @@ -1179,20 +920,18 @@ Key: 🪧 + 🪧 + - - - - Notice label ('scam') on quoted post (warn) @@ -1200,21 +939,17 @@ Key: - - 🪧 + - - - Notice label ('scam') on quoted author account (warn) @@ -1222,21 +957,17 @@ Key: - - 🪧 + - - - Notice label ('scam') on post (ignore) @@ -1244,21 +975,15 @@ Key: - - - - - - Notice label ('scam') on author profile (ignore) @@ -1266,21 +991,15 @@ Key: - - - - - - Notice label ('scam') on author account (ignore) @@ -1288,21 +1007,15 @@ Key: - - - - - - Notice label ('scam') on quoted post (ignore) @@ -1310,21 +1023,15 @@ Key: - - - - - - Notice label ('scam') on quoted author account (ignore) @@ -1332,20 +1039,15 @@ Key: - - - - - ScenarioFilterContentAvatarEmbed Adult-only label on post when adult content is disabled @@ -1354,11 +1056,9 @@ Key: - - 🚫 @@ -1366,9 +1066,6 @@ Key: - - - Adult-only label on author profile when adult content is disabled @@ -1376,7 +1073,6 @@ Key: - 🚫 @@ -1384,13 +1080,9 @@ Key: - - - - Adult-only label on author account when adult content is disabled @@ -1398,7 +1090,6 @@ Key: - 🚫 @@ -1410,9 +1101,6 @@ Key: - - - Adult-only label on quoted post when adult content is disabled @@ -1420,11 +1108,9 @@ Key: - - 🚫 @@ -1432,9 +1118,6 @@ Key: - - - Adult-only label on quoted author account when adult content is disabled @@ -1442,20 +1125,15 @@ Key: - - - - - ScenarioFilterContentAvatarEmbed Self-post: Imperative label ('!hide') on post @@ -1468,17 +1146,12 @@ Key: - - - - - Self-post: Imperative label ('!hide') on author profile @@ -1486,21 +1159,15 @@ Key: - - - - - - Self-post: Imperative label ('!hide') on author account @@ -1508,21 +1175,15 @@ Key: - - - - - - Self-post: Imperative label ('!hide') on quoted post @@ -1530,11 +1191,9 @@ Key: - - ✋ @@ -1542,9 +1201,6 @@ Key: - - - Self-post: Imperative label ('!hide') on quoted author account @@ -1552,21 +1208,15 @@ Key: - - - - - - Self-post: Imperative label ('!warn') on post @@ -1578,17 +1228,12 @@ Key: - - - - - Self-post: Imperative label ('!warn') on author profile @@ -1596,21 +1241,15 @@ Key: - - - - - - Self-post: Imperative label ('!warn') on author account @@ -1618,21 +1257,15 @@ Key: - - - - - - Self-post: Imperative label ('!warn') on quoted post @@ -1640,11 +1273,9 @@ Key: - - ✋ @@ -1652,9 +1283,6 @@ Key: - - - Self-post: Imperative label ('!warn') on quoted author account @@ -1662,21 +1290,15 @@ Key: - - - - - - Self-post: Blur-media label ('porn') on post (hide) @@ -1684,11 +1306,9 @@ Key: - - ✋ @@ -1696,9 +1316,6 @@ Key: - - - Self-post: Blur-media label ('porn') on author profile (hide) @@ -1706,21 +1323,15 @@ Key: - - - - - - Self-post: Blur-media label ('porn') on author account (hide) @@ -1728,21 +1339,15 @@ Key: - - - - - - Self-post: Blur-media label ('porn') on quoted post (hide) @@ -1750,11 +1355,9 @@ Key: - - ✋ @@ -1762,9 +1365,6 @@ Key: - - - Self-post: Blur-media label ('porn') on quoted author account (hide) @@ -1772,21 +1372,15 @@ Key: - - - - - - Self-post: Blur-media label ('porn') on post (warn) @@ -1794,11 +1388,9 @@ Key: - - ✋ @@ -1806,9 +1398,6 @@ Key: - - - Self-post: Blur-media label ('porn') on author profile (warn) @@ -1816,21 +1405,15 @@ Key: - - - - - - Self-post: Blur-media label ('porn') on author account (warn) @@ -1838,21 +1421,15 @@ Key: - - - - - - Self-post: Blur-media label ('porn') on quoted post (warn) @@ -1860,11 +1437,9 @@ Key: - - ✋ @@ -1872,9 +1447,6 @@ Key: - - - Self-post: Blur-media label ('porn') on quoted author account (warn) @@ -1882,20 +1454,15 @@ Key: - - - - - ScenarioFilterContentAvatarEmbed Post with blocked author @@ -1912,13 +1479,9 @@ Key: - - - - Post with blocked quoted author @@ -1926,11 +1489,9 @@ Key: - - 🚫 @@ -1938,9 +1499,6 @@ Key: - - - Post with author blocking user @@ -1956,13 +1514,9 @@ Key: - - - - Post with quoted author blocking user @@ -1970,11 +1524,9 @@ Key: - - 🚫 @@ -1982,9 +1534,6 @@ Key: - - - Post with muted author @@ -1996,17 +1545,12 @@ Key: - - - - - Post with muted quoted author @@ -2014,11 +1558,9 @@ Key: - - ✋ @@ -2026,9 +1568,6 @@ Key: - - - Post with muted-by-list author @@ -2040,17 +1579,12 @@ Key: - - - - - Post with muted-by-list quoted author @@ -2058,11 +1592,9 @@ Key: - - ✋ @@ -2070,8 +1602,6 @@ Key: - - ScenarioFilterContentAvatarEmbed Prioritization: post with blocking & blocked-by author @@ -2088,13 +1618,9 @@ Key: - - - - Prioritization: post with blocking & blocked-by quoted author @@ -2102,11 +1628,9 @@ Key: - - 🚫 @@ -2114,9 +1638,6 @@ Key: - - - Prioritization: '!hide' label on post by blocked user @@ -2132,13 +1653,9 @@ Key: - - - - Prioritization: '!hide' label on quoted post, post by blocked user @@ -2158,9 +1675,6 @@ Key: - - - Prioritization: '!hide' and 'intolerant' labels on post (hide) @@ -2172,17 +1686,12 @@ Key: - - - - - Prioritization: '!warn' and 'intolerant' labels on post (hide) @@ -2194,17 +1703,12 @@ Key: - - - - - Prioritization: '!hide' and 'porn' labels on post (hide) @@ -2216,17 +1720,12 @@ Key: - - - - - Prioritization: '!warn' and 'porn' labels on post (hide) @@ -2234,11 +1733,9 @@ Key: - - ✋ @@ -2246,4 +1743,4 @@ Key: - \ No newline at end of file + diff --git a/packages/api/docs/moderation-behaviors/profiles.md b/packages/api/docs/moderation-behaviors/profiles.md index 3d2f9af96..b8d7c94ce 100644 --- a/packages/api/docs/moderation-behaviors/profiles.md +++ b/packages/api/docs/moderation-behaviors/profiles.md @@ -38,7 +38,6 @@ Key: - 🚫 @@ -46,9 +45,6 @@ Key: - - - Imperative label ('!hide') on profile @@ -56,7 +52,6 @@ Key: - 🚫 @@ -68,9 +63,6 @@ Key: - - - Imperative label ('!no-promote') on account @@ -78,21 +70,15 @@ Key: - - - - - - Imperative label ('!no-promote') on profile @@ -100,21 +86,15 @@ Key: - - - - - - Imperative label ('!warn') on account @@ -126,7 +106,6 @@ Key: - ✋ @@ -134,9 +113,6 @@ Key: - - - Imperative label ('!warn') on profile @@ -144,7 +120,6 @@ Key: - ✋ @@ -156,8 +131,6 @@ Key: - - ScenarioFilterAccountProfileAvatar Blur label ('intolerant') on account (hide) @@ -170,7 +143,6 @@ Key: - ✋ @@ -178,9 +150,6 @@ Key: - - - Blur label ('intolerant') on profile (hide) @@ -188,7 +157,6 @@ Key: - ✋ @@ -200,9 +168,6 @@ Key: - - - Blur label ('intolerant') on account (warn) @@ -214,7 +179,6 @@ Key: - ✋ @@ -222,9 +186,6 @@ Key: - - - Blur label ('intolerant') on profile (warn) @@ -232,7 +193,6 @@ Key: - ✋ @@ -244,9 +204,6 @@ Key: - - - Blur label ('intolerant') on account (ignore) @@ -254,21 +211,15 @@ Key: - - - - - - Blur label ('intolerant') on profile (ignore) @@ -276,20 +227,15 @@ Key: - - - - - ScenarioFilterAccountProfileAvatar Blur-media label ('porn') on account (hide) @@ -302,7 +248,6 @@ Key: - ✋ @@ -310,9 +255,6 @@ Key: - - - Blur-media label ('porn') on profile (hide) @@ -320,11 +262,9 @@ Key: - - ✋ @@ -332,9 +272,6 @@ Key: - - - Blur-media label ('porn') on account (warn) @@ -346,7 +283,6 @@ Key: - ✋ @@ -354,9 +290,6 @@ Key: - - - Blur-media label ('porn') on profile (warn) @@ -364,11 +297,9 @@ Key: - - ✋ @@ -376,9 +307,6 @@ Key: - - - Blur-media label ('porn') on account (ignore) @@ -386,21 +314,15 @@ Key: - - - - - - Blur-media label ('porn') on profile (ignore) @@ -408,20 +330,15 @@ Key: - - - - - ScenarioFilterAccountProfileAvatar Notice label ('scam') on account (hide) @@ -431,20 +348,18 @@ Key: 🪧 + - 🪧 + - - - Notice label ('scam') on profile (hide) @@ -452,21 +367,19 @@ Key: + + + +🪧 🪧 - - -🪧 - - - Notice label ('scam') on account (warn) @@ -475,20 +388,18 @@ Key: 🪧 + - 🪧 + - - - Notice label ('scam') on profile (warn) @@ -496,21 +407,19 @@ Key: + + + +🪧 🪧 - - -🪧 - - - Notice label ('scam') on account (ignore) @@ -518,21 +427,15 @@ Key: - - - - - - Notice label ('scam') on profile (ignore) @@ -540,20 +443,15 @@ Key: - - - - - ScenarioFilterAccountProfileAvatar Adult-only label on account when adult content is disabled @@ -566,7 +464,6 @@ Key: - 🚫 @@ -574,9 +471,6 @@ Key: - - - Adult-only label on profile when adult content is disabled @@ -584,11 +478,9 @@ Key: - - 🚫 @@ -596,8 +488,6 @@ Key: - - ScenarioFilterAccountProfileAvatar Self-profile: !hide on account @@ -607,20 +497,18 @@ Key: 🪧 + - 🪧 + - - - Self-profile: !hide on profile @@ -628,20 +516,19 @@ Key: + + + +🪧 🪧 - - -🪧 - - ScenarioFilterAccountProfileAvatar Mute/block: Blocking user @@ -650,11 +537,9 @@ Key: - - 🚫 @@ -662,9 +547,6 @@ Key: - - - Mute/block: Blocked by user @@ -672,11 +554,9 @@ Key: - - 🚫 @@ -684,9 +564,6 @@ Key: - - - Mute/block: Muted user @@ -694,21 +571,15 @@ Key: - - - - - - Mute/block: Muted-by-list user @@ -716,20 +587,15 @@ Key: - - - - - ScenarioFilterAccountProfileAvatar Prioritization: blocking & blocked-by user @@ -738,11 +604,9 @@ Key: - - 🚫 @@ -750,9 +614,6 @@ Key: - - - Prioritization: '!hide' label on account of blocked user @@ -764,7 +625,6 @@ Key: - 🚫 @@ -772,9 +632,6 @@ Key: - - - Prioritization: '!hide' and 'intolerant' labels on account (hide) @@ -786,7 +643,6 @@ Key: - 🚫 @@ -794,9 +650,6 @@ Key: - - - Prioritization: '!warn' and 'intolerant' labels on account (hide) @@ -808,7 +661,6 @@ Key: - ✋ @@ -816,9 +668,6 @@ Key: - - - Prioritization: '!warn' and 'porn' labels on account (hide) @@ -830,7 +679,6 @@ Key: - ✋ @@ -838,9 +686,6 @@ Key: - - - Prioritization: intolerant label on account (hide) and scam label on profile (warn) @@ -853,6 +698,7 @@ Key: 🪧 + ✋ @@ -860,9 +706,6 @@ Key: - - - Prioritization: !hide on account, !warn on profile @@ -882,9 +725,6 @@ Key: - - - Prioritization: !warn on account, !hide on profile @@ -904,4 +744,4 @@ Key: - \ No newline at end of file + diff --git a/packages/api/docs/moderation.md b/packages/api/docs/moderation.md index b3d1ecc95..23446f11b 100644 --- a/packages/api/docs/moderation.md +++ b/packages/api/docs/moderation.md @@ -80,7 +80,7 @@ interface LabelerSettings { Applications need to produce the [Post Moderation Behaviors](./moderation-behaviors/posts.md) using the `moderatePost()` API. ```typescript -import {moderatePost} from '@atproto/api' +import { moderatePost } from '@atproto/api' const postMod = moderatePost(postView, getOpts()) @@ -119,7 +119,7 @@ if (postMod.avatar.alert) { Applications need to produce the [Profile Moderation Behaviors](./moderation-behaviors/profiles.md) using the `moderateProfile()` API. ```typescript -import {moderateProfile} from '@atproto/api' +import { moderateProfile } from '@atproto/api' const profileMod = moderateProfile(profileView, getOpts()) @@ -150,4 +150,4 @@ if (profileMod.avatar.blur) { if (profileMod.avatar.alert) { // render an alert on the avatar } -``` \ No newline at end of file +``` diff --git a/packages/api/tsconfig.build.json b/packages/api/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/api/tsconfig.build.json +++ b/packages/api/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/aws/README.md b/packages/aws/README.md index 19e36786d..9a32e52b3 100644 --- a/packages/aws/README.md +++ b/packages/aws/README.md @@ -1,3 +1,3 @@ # AWS KMS -A Keypair-compatible wrapper for AWS KMS. \ No newline at end of file +A Keypair-compatible wrapper for AWS KMS. diff --git a/packages/aws/package.json b/packages/aws/package.json index 192149feb..70fe9f726 100644 --- a/packages/aws/package.json +++ b/packages/aws/package.json @@ -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" diff --git a/packages/aws/tsconfig.build.json b/packages/aws/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/aws/tsconfig.build.json +++ b/packages/aws/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/aws/tsconfig.json b/packages/aws/tsconfig.json index 624cc32a3..fee83b7f2 100644 --- a/packages/aws/tsconfig.json +++ b/packages/aws/tsconfig.json @@ -4,5 +4,5 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"] -} \ No newline at end of file + "include": ["./src", "__tests__/**/**.ts"] +} diff --git a/packages/bsky/.eslintignore b/packages/bsky/.eslintignore deleted file mode 100644 index 18dd0f354..000000000 --- a/packages/bsky/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -lexicon \ No newline at end of file diff --git a/packages/bsky/.prettierignore b/packages/bsky/.prettierignore deleted file mode 100644 index dd7966f09..000000000 --- a/packages/bsky/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -src/lexicon/**/* diff --git a/packages/bsky/package.json b/packages/bsky/package.json index 177435387..508d9ef56 100644 --- a/packages/bsky/package.json +++ b/packages/bsky/package.json @@ -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": { diff --git a/packages/common-web/package.json b/packages/common-web/package.json index fb1552e01..92387c502 100644 --- a/packages/common-web/package.json +++ b/packages/common-web/package.json @@ -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" diff --git a/packages/common-web/tsconfig.build.json b/packages/common-web/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/common-web/tsconfig.build.json +++ b/packages/common-web/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/common-web/tsconfig.json b/packages/common-web/tsconfig.json index c50c08b2e..5c5ec40ce 100644 --- a/packages/common-web/tsconfig.json +++ b/packages/common-web/tsconfig.json @@ -5,5 +5,5 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], -} \ No newline at end of file + "include": ["./src", "__tests__/**/**.ts"] +} diff --git a/packages/common/package.json b/packages/common/package.json index d87d71902..c7f518c1a 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -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" diff --git a/packages/common/tsconfig.build.json b/packages/common/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/common/tsconfig.build.json +++ b/packages/common/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/common/tsconfig.json b/packages/common/tsconfig.json index c837279cd..81714d5ec 100644 --- a/packages/common/tsconfig.json +++ b/packages/common/tsconfig.json @@ -5,8 +5,6 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], - "references": [ - { "path": "../common-web/tsconfig.build.json" } - ] -} \ No newline at end of file + "include": ["./src", "__tests__/**/**.ts"], + "references": [{ "path": "../common-web/tsconfig.build.json" }] +} diff --git a/packages/crypto/README.md b/packages/crypto/README.md index 062eb95ec..2258451f7 100644 --- a/packages/crypto/README.md +++ b/packages/crypto/README.md @@ -1,3 +1,3 @@ # ATP Crypto Library -ATP's common cryptographic operations. \ No newline at end of file +ATP's common cryptographic operations. diff --git a/packages/crypto/jest.config.js b/packages/crypto/jest.config.js index 8b8fc3853..365131c92 100644 --- a/packages/crypto/jest.config.js +++ b/packages/crypto/jest.config.js @@ -2,5 +2,5 @@ const base = require('../../jest.config.base.js') module.exports = { ...base, - displayName: 'Crypto' + displayName: 'Crypto', } diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 8bc10ae7f..c1d7fa5b5 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -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" diff --git a/packages/crypto/tsconfig.build.json b/packages/crypto/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/crypto/tsconfig.build.json +++ b/packages/crypto/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/crypto/tsconfig.json b/packages/crypto/tsconfig.json index afddb2bd4..5c5ec40ce 100644 --- a/packages/crypto/tsconfig.json +++ b/packages/crypto/tsconfig.json @@ -5,5 +5,5 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"] -} \ No newline at end of file + "include": ["./src", "__tests__/**/**.ts"] +} diff --git a/packages/dev-env/README.md b/packages/dev-env/README.md index 442f7110e..c1a41e692 100644 --- a/packages/dev-env/README.md +++ b/packages/dev-env/README.md @@ -24,4 +24,4 @@ Create a new user. ### `user(handle: string): ServiceClient` -Get the `ServiceClient` for the given user. \ No newline at end of file +Get the `ServiceClient` for the given user. diff --git a/packages/dev-env/package.json b/packages/dev-env/package.json index a1f9291d1..adc1a4e21 100644 --- a/packages/dev-env/package.json +++ b/packages/dev-env/package.json @@ -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:^", diff --git a/packages/dev-env/tsconfig.build.json b/packages/dev-env/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/dev-env/tsconfig.build.json +++ b/packages/dev-env/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/dev-env/tsconfig.json b/packages/dev-env/tsconfig.json index 57cab99ed..6e3416373 100644 --- a/packages/dev-env/tsconfig.json +++ b/packages/dev-env/tsconfig.json @@ -6,13 +6,13 @@ "emitDeclarationOnly": true }, "module": "esnext", - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../api/tsconfig.build.json" }, { "path": "../bsky/tsconfig.build.json" }, { "path": "../crypto/tsconfig.build.json" }, { "path": "../identity/tsconfig.build.json" }, { "path": "../pds/tsconfig.json" }, - { "path": "../uri/tsconfig.build.json" }, + { "path": "../uri/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/identifier/package.json b/packages/identifier/package.json index c36e0fece..1642c1046 100644 --- a/packages/identifier/package.json +++ b/packages/identifier/package.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" diff --git a/packages/identifier/tsconfig.build.json b/packages/identifier/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/identifier/tsconfig.build.json +++ b/packages/identifier/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/identifier/tsconfig.json b/packages/identifier/tsconfig.json index aaa3b2d88..db7a7c4ad 100644 --- a/packages/identifier/tsconfig.json +++ b/packages/identifier/tsconfig.json @@ -5,8 +5,6 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], - "references": [ - { "path": "../common/tsconfig.build.json" }, - ] -} \ No newline at end of file + "include": ["./src", "__tests__/**/**.ts"], + "references": [{ "path": "../common/tsconfig.build.json" }] +} diff --git a/packages/identity/README.md b/packages/identity/README.md index 0a252d6ed..c6d940f44 100644 --- a/packages/identity/README.md +++ b/packages/identity/README.md @@ -1,3 +1,3 @@ # ATP DID Resolver -A library for resolving ATP's Decentralized ID methods. \ No newline at end of file +A library for resolving ATP's Decentralized ID methods. diff --git a/packages/identity/jest.config.js b/packages/identity/jest.config.js index 85c2bc4cf..4eb023d6f 100644 --- a/packages/identity/jest.config.js +++ b/packages/identity/jest.config.js @@ -2,5 +2,5 @@ const base = require('../../jest.config.base.js') module.exports = { ...base, - displayName: 'Identity' + displayName: 'Identity', } diff --git a/packages/identity/package.json b/packages/identity/package.json index 5399698b1..1bd0e3cc3 100644 --- a/packages/identity/package.json +++ b/packages/identity/package.json @@ -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" diff --git a/packages/identity/tsconfig.build.json b/packages/identity/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/identity/tsconfig.build.json +++ b/packages/identity/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/identity/tsconfig.json b/packages/identity/tsconfig.json index bcc1381b4..9d6fd3786 100644 --- a/packages/identity/tsconfig.json +++ b/packages/identity/tsconfig.json @@ -5,9 +5,9 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../common/tsconfig.build.json" }, - { "path": "../crypto/tsconfig.build.json" }, + { "path": "../crypto/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/lex-cli/README.md b/packages/lex-cli/README.md index d898002e0..1eee8f0c5 100644 --- a/packages/lex-cli/README.md +++ b/packages/lex-cli/README.md @@ -36,4 +36,4 @@ $ lex gen-server ./server/src/xrpc ./schemas/com/service/*.json ./schemas/com/an ## License -MIT \ No newline at end of file +MIT diff --git a/packages/lex-cli/package.json b/packages/lex-cli/package.json index 23b856860..6a79be7d3 100644 --- a/packages/lex-cli/package.json +++ b/packages/lex-cli/package.json @@ -10,12 +10,6 @@ "types": "dist/src/index.d.ts" }, "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/lex-cli" diff --git a/packages/lex-cli/tsconfig.build.json b/packages/lex-cli/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/lex-cli/tsconfig.build.json +++ b/packages/lex-cli/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/lex-cli/tsconfig.json b/packages/lex-cli/tsconfig.json index 41e06d665..bdf4c2a09 100644 --- a/packages/lex-cli/tsconfig.json +++ b/packages/lex-cli/tsconfig.json @@ -4,9 +4,9 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../nsid/tsconfig.build.json" }, - { "path": "../lexicon/tsconfig.build.json" }, + { "path": "../lexicon/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/lexicon/package.json b/packages/lexicon/package.json index cfd10bd72..4b5f74706 100644 --- a/packages/lexicon/package.json +++ b/packages/lexicon/package.json @@ -8,12 +8,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/lexicon" diff --git a/packages/lexicon/tsconfig.build.json b/packages/lexicon/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/lexicon/tsconfig.build.json +++ b/packages/lexicon/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/lexicon/tsconfig.json b/packages/lexicon/tsconfig.json index 4b0566e70..5e60cf992 100644 --- a/packages/lexicon/tsconfig.json +++ b/packages/lexicon/tsconfig.json @@ -11,4 +11,4 @@ { "path": "../nsid/tsconfig.build.json" }, { "path": "../uri/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/nsid/README.md b/packages/nsid/README.md index a3455b6db..180a88338 100644 --- a/packages/nsid/README.md +++ b/packages/nsid/README.md @@ -6,18 +6,18 @@ import { NSID } from '@atproto/nsid' const id1 = NSID.parse('com.example.foo') -id1.authority // => 'example.com' -id1.name // => 'foo' +id1.authority // => 'example.com' +id1.name // => 'foo' id1.toString() // => 'com.example.foo' const id2 = NSID.create('example.com', 'foo') -id2.authority // => 'example.com' -id2.name // => 'foo' +id2.authority // => 'example.com' +id2.name // => 'foo' id2.toString() // => 'com.example.foo' const id3 = NSID.create('example.com', 'someRecord') -id3.authority // => 'example.com' -id3.name // => 'someRecord' +id3.authority // => 'example.com' +id3.name // => 'someRecord' id3.toString() // => 'com.example.someRecord' NSID.isValid('com.example.foo') // => true diff --git a/packages/nsid/package.json b/packages/nsid/package.json index 9f9e05c27..af156718f 100644 --- a/packages/nsid/package.json +++ b/packages/nsid/package.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/nsid" diff --git a/packages/nsid/tsconfig.build.json b/packages/nsid/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/nsid/tsconfig.build.json +++ b/packages/nsid/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/nsid/tsconfig.json b/packages/nsid/tsconfig.json index c1364fd69..fee83b7f2 100644 --- a/packages/nsid/tsconfig.json +++ b/packages/nsid/tsconfig.json @@ -4,5 +4,5 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], -} \ No newline at end of file + "include": ["./src", "__tests__/**/**.ts"] +} diff --git a/packages/pds/.eslintignore b/packages/pds/.eslintignore deleted file mode 100644 index 18dd0f354..000000000 --- a/packages/pds/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -lexicon \ No newline at end of file diff --git a/packages/pds/.prettierignore b/packages/pds/.prettierignore deleted file mode 100644 index e74f52e0c..000000000 --- a/packages/pds/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -src/lexicon/**/* -src/mailer/templates/**/* \ No newline at end of file diff --git a/packages/pds/README.md b/packages/pds/README.md index 81f32ad07..547856de3 100644 --- a/packages/pds/README.md +++ b/packages/pds/README.md @@ -1,3 +1,3 @@ # ATP Personal Data Server (PDS) -The Personal Data Server (PDS). This is ATP's main server-side implementation. \ No newline at end of file +The Personal Data Server (PDS). This is ATP's main server-side implementation. diff --git a/packages/pds/package.json b/packages/pds/package.json index e99b80be0..488088942 100644 --- a/packages/pds/package.json +++ b/packages/pds/package.json @@ -24,12 +24,6 @@ "test:sqlite": "jest --testPathIgnorePatterns /tests/proxied/*", "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": { diff --git a/packages/pds/src/mailer/templates/delete-account.hbs b/packages/pds/src/mailer/templates/delete-account.hbs index 67f444dcd..f7fbf07a5 100644 --- a/packages/pds/src/mailer/templates/delete-account.hbs +++ b/packages/pds/src/mailer/templates/delete-account.hbs @@ -169,7 +169,10 @@ class="text-red-700" style="color: #b91c1c; padding-top: 0; padding-bottom: 0; font-weight: 500; vertical-align: baseline; font-size: 20px; line-height: 24px; margin: 0;" align="left" - >This will permanently delete your Bluesky account. If you did not issue this request, please update your password. + >This will permanently delete your + Bluesky account. If you did not + issue this request, please update + your password. To permanently delete your account, please - enter the above "reset code" in - the app along with your password.

+ >To + permanently delete + your account, please enter the + above "reset code" in the app + along with your password.

diff --git a/packages/pds/tsconfig.build.json b/packages/pds/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/pds/tsconfig.build.json +++ b/packages/pds/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/pds/tsconfig.json b/packages/pds/tsconfig.json index c2b548249..9505b44db 100644 --- a/packages/pds/tsconfig.json +++ b/packages/pds/tsconfig.json @@ -3,10 +3,10 @@ "compilerOptions": { "rootDir": "./src", "outDir": "./dist", // Your outDir, - "emitDeclarationOnly": true, + "emitDeclarationOnly": true }, "module": "nodenext", - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../api/tsconfig.build.json" }, { "path": "../common/tsconfig.build.json" }, @@ -19,4 +19,4 @@ { "path": "../uri/tsconfig.build.json" }, { "path": "../xrpc-server/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/repo/README.md b/packages/repo/README.md index f17f7c023..53c83a307 100644 --- a/packages/repo/README.md +++ b/packages/repo/README.md @@ -1,3 +1,3 @@ # ATP Repo -The "ATP repository" core implementation (a Merkle Search Tree). \ No newline at end of file +The "ATP repository" core implementation (a Merkle Search Tree). diff --git a/packages/repo/package.json b/packages/repo/package.json index 96dc165f5..9c37695f1 100644 --- a/packages/repo/package.json +++ b/packages/repo/package.json @@ -17,12 +17,6 @@ "test:profile": "node --inspect ../../node_modules/.bin/jest", "bench": "jest --config jest.bench.config.js", "bench:profile": "node --inspect-brk ../../node_modules/.bin/jest --config jest.bench.config.js", - "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/repo" diff --git a/packages/repo/tsconfig.build.json b/packages/repo/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/repo/tsconfig.build.json +++ b/packages/repo/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/repo/tsconfig.json b/packages/repo/tsconfig.json index 855d51d8a..07c54d2c4 100644 --- a/packages/repo/tsconfig.json +++ b/packages/repo/tsconfig.json @@ -5,11 +5,11 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../common/tsconfig.build.json" }, { "path": "../crypto/tsconfig.build.json" }, { "path": "../identity/tsconfig.build.json" }, - { "path": "../nsid/tsconfig.build.json" }, + { "path": "../nsid/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/syntax/README.md b/packages/syntax/README.md index e9c5d1516..5fd557fa3 100644 --- a/packages/syntax/README.md +++ b/packages/syntax/README.md @@ -23,18 +23,18 @@ ensureValidDid(':did:method:val') // throws import { NSID } from '@atproto/syntax' const id1 = NSID.parse('com.example.foo') -id1.authority // => 'example.com' -id1.name // => 'foo' +id1.authority // => 'example.com' +id1.name // => 'foo' id1.toString() // => 'com.example.foo' const id2 = NSID.create('example.com', 'foo') -id2.authority // => 'example.com' -id2.name // => 'foo' +id2.authority // => 'example.com' +id2.name // => 'foo' id2.toString() // => 'com.example.foo' const id3 = NSID.create('example.com', 'someRecord') -id3.authority // => 'example.com' -id3.name // => 'someRecord' +id3.authority // => 'example.com' +id3.name // => 'someRecord' id3.toString() // => 'com.example.someRecord' NSID.isValid('com.example.foo') // => true @@ -49,11 +49,11 @@ NSID.isValid('foo') // => false import { AtUri } from '@atproto/syntax' const uri = new AtUri('at://bob.com/com.example.post/1234') -uri.protocol // => 'at:' -uri.origin // => 'at://bob.com' -uri.hostname // => 'bob.com' +uri.protocol // => 'at:' +uri.origin // => 'at://bob.com' +uri.hostname // => 'bob.com' uri.collection // => 'com.example.post' -uri.rkey // => '1234' +uri.rkey // => '1234' ``` ## License diff --git a/packages/syntax/package.json b/packages/syntax/package.json index 943123e59..60fabdfe8 100644 --- a/packages/syntax/package.json +++ b/packages/syntax/package.json @@ -8,12 +8,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/syntax" diff --git a/packages/syntax/tsconfig.build.json b/packages/syntax/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/syntax/tsconfig.build.json +++ b/packages/syntax/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/syntax/tsconfig.json b/packages/syntax/tsconfig.json index aaa3b2d88..db7a7c4ad 100644 --- a/packages/syntax/tsconfig.json +++ b/packages/syntax/tsconfig.json @@ -5,8 +5,6 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], - "references": [ - { "path": "../common/tsconfig.build.json" }, - ] -} \ No newline at end of file + "include": ["./src", "__tests__/**/**.ts"], + "references": [{ "path": "../common/tsconfig.build.json" }] +} diff --git a/packages/uri/README.md b/packages/uri/README.md index 43c8bc9e4..8aaee47f7 100644 --- a/packages/uri/README.md +++ b/packages/uri/README.md @@ -6,13 +6,13 @@ import { AtUri } from '@atproto/uri' const uri = new AtUri('at://bob.com/com.example.post/1234') -uri.protocol // => 'at:' -uri.origin // => 'at://bob.com' -uri.hostname // => 'bob.com' +uri.protocol // => 'at:' +uri.origin // => 'at://bob.com' +uri.hostname // => 'bob.com' uri.collection // => 'com.example.post' -uri.rkey // => '1234' +uri.rkey // => '1234' ``` ## License -MIT \ No newline at end of file +MIT diff --git a/packages/uri/package.json b/packages/uri/package.json index 10b91e7f2..1060dda68 100644 --- a/packages/uri/package.json +++ b/packages/uri/package.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/uri" diff --git a/packages/uri/tsconfig.build.json b/packages/uri/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/uri/tsconfig.build.json +++ b/packages/uri/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/uri/tsconfig.json b/packages/uri/tsconfig.json index b678da340..4faf3966f 100644 --- a/packages/uri/tsconfig.json +++ b/packages/uri/tsconfig.json @@ -5,9 +5,9 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../identifier/tsconfig.build.json" }, - { "path": "../nsid/tsconfig.build.json" }, + { "path": "../nsid/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/xrpc-server/README.md b/packages/xrpc-server/README.md index 65e930e4e..2c297043f 100644 --- a/packages/xrpc-server/README.md +++ b/packages/xrpc-server/README.md @@ -7,7 +7,8 @@ import * as xrpc from '@atproto/xrpc-server' import express from 'express' // create xrpc server -const server = xrpc.createServer([{ +const server = xrpc.createServer([ + { lexicon: 1, id: 'io.example.ping', defs: { @@ -22,11 +23,17 @@ const server = xrpc.createServer([{ }, }, }, - } + }, ]) -function ping(ctx: {auth: xrpc.HandlerAuth | undefined, params: xrpc.Params, input: xrpc.HandlerInput | undefined, req: express.Request, res: express.Response}) { - return { encoding: 'application/json', body: {message: ctx.params.message }} +function ping(ctx: { + auth: xrpc.HandlerAuth | undefined + params: xrpc.Params + input: xrpc.HandlerInput | undefined + req: express.Request + res: express.Response +}) { + return { encoding: 'application/json', body: { message: ctx.params.message } } } server.method('io.example.ping', ping) diff --git a/packages/xrpc-server/package.json b/packages/xrpc-server/package.json index 4901b53f6..e51db0f0a 100644 --- a/packages/xrpc-server/package.json +++ b/packages/xrpc-server/package.json @@ -8,12 +8,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/xrpc-server" diff --git a/packages/xrpc-server/tsconfig.build.json b/packages/xrpc-server/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/xrpc-server/tsconfig.build.json +++ b/packages/xrpc-server/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/xrpc-server/tsconfig.json b/packages/xrpc-server/tsconfig.json index 8ef039801..6a9622be3 100644 --- a/packages/xrpc-server/tsconfig.json +++ b/packages/xrpc-server/tsconfig.json @@ -5,11 +5,11 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../common/tsconfig.build.json" }, { "path": "../crypto/tsconfig.build.json" }, { "path": "../lexicon/tsconfig.build.json" }, - { "path": "../xrpc/tsconfig.build.json" }, + { "path": "../xrpc/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/packages/xrpc/README.md b/packages/xrpc/README.md index 4b48e052c..bfb0b8778 100644 --- a/packages/xrpc/README.md +++ b/packages/xrpc/README.md @@ -14,24 +14,28 @@ xrpc.addLexicon({ description: 'Ping the server', parameters: { type: 'params', - properties: {message: { type: 'string' }} + properties: { message: { type: 'string' } }, }, output: { encoding: 'application/json', schema: { type: 'object', required: ['message'], - properties: {message: { type: 'string' }}, + properties: { message: { type: 'string' } }, }, - } + }, }, }, }) -const res1 = await xrpc.call('https://example.com', 'io.example.ping', {message: 'hello world'}) +const res1 = await xrpc.call('https://example.com', 'io.example.ping', { + message: 'hello world', +}) res1.encoding // => 'application/json' res1.body // => {message: 'hello world'} -const res2 = await xrpc.service('https://example.com').call('io.example.ping', {message: 'hello world'}) +const res2 = await xrpc + .service('https://example.com') + .call('io.example.ping', { message: 'hello world' }) res2.encoding // => 'application/json' res2.body // => {message: 'hello world'} @@ -44,21 +48,20 @@ xrpc.addLexicon({ description: 'Write a JSON file', parameters: { type: 'params', - properties: {fileName: { type: 'string' }}, + properties: { fileName: { type: 'string' } }, }, input: { - encoding: 'application/json' + encoding: 'application/json', }, }, }, }) -const res3 = await xrpc - .service('https://example.com') - .call('io.example.writeJsonFile', - {fileName: 'foo.json'}, // query parameters - {hello: 'world', thisIs: 'the file to write'} // input body - ) +const res3 = await xrpc.service('https://example.com').call( + 'io.example.writeJsonFile', + { fileName: 'foo.json' }, // query parameters + { hello: 'world', thisIs: 'the file to write' }, // input body +) ``` ## License diff --git a/packages/xrpc/package.json b/packages/xrpc/package.json index 2949497b5..4fd825acd 100644 --- a/packages/xrpc/package.json +++ b/packages/xrpc/package.json @@ -7,12 +7,6 @@ "types": "dist/index.d.ts" }, "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/xrpc" diff --git a/packages/xrpc/tsconfig.build.json b/packages/xrpc/tsconfig.build.json index 27df65b89..02a84823b 100644 --- a/packages/xrpc/tsconfig.build.json +++ b/packages/xrpc/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/xrpc/tsconfig.json b/packages/xrpc/tsconfig.json index 0b51fb283..72f1ae0e0 100644 --- a/packages/xrpc/tsconfig.json +++ b/packages/xrpc/tsconfig.json @@ -5,9 +5,9 @@ "outDir": "./dist", // Your outDir, "emitDeclarationOnly": true }, - "include": ["./src","__tests__/**/**.ts"], + "include": ["./src", "__tests__/**/**.ts"], "references": [ { "path": "../common/tsconfig.build.json" }, { "path": "../lexicon/tsconfig.build.json" } ] -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cf41041ac..1898a37f0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -71,9 +71,6 @@ importers: node-gyp: specifier: ^9.3.1 version: 9.3.1 - npm-run-all: - specifier: ^4.1.5 - version: 4.1.5 pino-pretty: specifier: ^9.1.0 version: 9.1.0 @@ -6464,17 +6461,6 @@ packages: which: 1.3.1 dev: true - /cross-spawn@6.0.5: - resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} - engines: {node: '>=4.8'} - dependencies: - nice-try: 1.0.5 - path-key: 2.0.1 - semver: 5.7.2 - shebang-command: 1.2.0 - which: 1.3.1 - dev: true - /cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -6816,7 +6802,7 @@ packages: call-bind: 1.0.2 es-set-tostringtag: 2.0.1 es-to-primitive: 1.2.1 - function.prototype.name: 1.1.5 + function.prototype.name: 1.1.6 get-intrinsic: 1.2.1 get-symbol-description: 1.0.0 globalthis: 1.0.3 @@ -6838,11 +6824,11 @@ packages: object-keys: 1.1.1 object.assign: 4.1.4 regexp.prototype.flags: 1.5.0 - safe-array-concat: 1.0.0 + safe-array-concat: 1.0.1 safe-regex-test: 1.0.0 string.prototype.trim: 1.2.7 string.prototype.trimend: 1.0.6 - string.prototype.trimstart: 1.0.6 + string.prototype.trimstart: 1.0.7 typed-array-buffer: 1.0.0 typed-array-byte-length: 1.0.0 typed-array-byte-offset: 1.0.0 @@ -7640,8 +7626,8 @@ packages: /function-bind@1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} - /function.prototype.name@1.1.5: - resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} + /function.prototype.name@1.1.6: + resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.2 @@ -8786,10 +8772,6 @@ packages: hasBin: true dev: true - /json-parse-better-errors@1.0.2: - resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==} - dev: true - /json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true @@ -8924,16 +8906,6 @@ packages: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: true - /load-json-file@4.0.0: - resolution: {integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==} - engines: {node: '>=4'} - dependencies: - graceful-fs: 4.2.11 - parse-json: 4.0.0 - pify: 3.0.0 - strip-bom: 3.0.0 - dev: true - /load-yaml-file@0.2.0: resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} engines: {node: '>=6'} @@ -9110,11 +9082,6 @@ packages: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} - /memorystream@0.3.1: - resolution: {integrity: sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==} - engines: {node: '>= 0.10.0'} - dev: true - /meow@6.1.1: resolution: {integrity: sha512-3YffViIt2QWgTy6Pale5QpopX/IvU3LPL03jOTqp6pGj3VjesdO/U8CuHMKpnQr4shCNCM5fd5XFFvIIl6JBHg==} engines: {node: '>=8'} @@ -9321,10 +9288,6 @@ packages: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} dev: false - /nice-try@1.0.5: - resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} - dev: true - /node-abi@3.47.0: resolution: {integrity: sha512-2s6B2CWZM//kPgwnuI0KrYwNjfdByE25zvAaEpq9IH4zcNsarH8Ihu/UuX6XMPEogDAxkuUFeZn60pXNHAqn3A==} engines: {node: '>=10'} @@ -9431,22 +9394,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /npm-run-all@4.1.5: - resolution: {integrity: sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==} - engines: {node: '>= 4'} - hasBin: true - dependencies: - ansi-styles: 3.2.1 - chalk: 2.4.2 - cross-spawn: 6.0.5 - memorystream: 0.3.1 - minimatch: 3.1.2 - pidtree: 0.3.1 - read-pkg: 3.0.0 - shell-quote: 1.8.1 - string.prototype.padend: 3.1.4 - dev: true - /npm-run-path@4.0.1: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} @@ -9625,14 +9572,6 @@ packages: callsites: 3.1.0 dev: true - /parse-json@4.0.0: - resolution: {integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==} - engines: {node: '>=4'} - dependencies: - error-ex: 1.3.2 - json-parse-better-errors: 1.0.2 - dev: true - /parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} @@ -9661,11 +9600,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /path-key@2.0.1: - resolution: {integrity: sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==} - engines: {node: '>=4'} - dev: true - /path-key@3.1.1: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} @@ -9678,13 +9612,6 @@ packages: /path-to-regexp@0.1.7: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} - /path-type@3.0.0: - resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} - engines: {node: '>=4'} - dependencies: - pify: 3.0.0 - dev: true - /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -9752,17 +9679,6 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - /pidtree@0.3.1: - resolution: {integrity: sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==} - engines: {node: '>=0.10'} - hasBin: true - dev: true - - /pify@3.0.0: - resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} - engines: {node: '>=4'} - dev: true - /pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} @@ -10067,15 +9983,6 @@ packages: type-fest: 0.8.1 dev: true - /read-pkg@3.0.0: - resolution: {integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==} - engines: {node: '>=4'} - dependencies: - load-json-file: 4.0.0 - normalize-package-data: 2.5.0 - path-type: 3.0.0 - dev: true - /read-pkg@5.2.0: resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} engines: {node: '>=8'} @@ -10290,8 +10197,8 @@ packages: dev: false optional: true - /safe-array-concat@1.0.0: - resolution: {integrity: sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==} + /safe-array-concat@1.0.1: + resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} engines: {node: '>=0.4'} dependencies: call-bind: 1.0.2 @@ -10423,10 +10330,6 @@ packages: engines: {node: '>=8'} dev: true - /shell-quote@1.8.1: - resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} - dev: true - /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: @@ -10618,15 +10521,6 @@ packages: strip-ansi: 6.0.1 dev: true - /string.prototype.padend@3.1.4: - resolution: {integrity: sha512-67otBXoksdjsnXXRUq+KMVTdlVRZ2af422Y0aTyTjVaoQkGr3mxl2Bc5emi7dOQ3OGVVQQskmLEWwFXwommpNw==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.22.1 - dev: true - /string.prototype.trim@1.2.7: resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==} engines: {node: '>= 0.4'} @@ -10644,8 +10538,8 @@ packages: es-abstract: 1.22.1 dev: true - /string.prototype.trimstart@1.0.6: - resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} + /string.prototype.trimstart@1.0.7: + resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} dependencies: call-bind: 1.0.2 define-properties: 1.2.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 985ef6663..ceb38b3a8 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,3 @@ packages: - - "services/*" - - "packages/*" + - 'services/*' + - 'packages/*' diff --git a/services/bsky/indexer.js b/services/bsky/indexer.js index 6cd390c9f..7ab287133 100644 --- a/services/bsky/indexer.js +++ b/services/bsky/indexer.js @@ -43,7 +43,12 @@ const main = async () => { password: cfg.redisPassword, }, ) - const indexer = BskyIndexer.create({ db, redis, cfg, imgInvalidator: cfInvalidator }) + const indexer = BskyIndexer.create({ + db, + redis, + cfg, + imgInvalidator: cfInvalidator, + }) await indexer.start() process.on('SIGTERM', async () => { await indexer.destroy() diff --git a/update-main-to-dist.js b/update-main-to-dist.js index 9ae0924bd..fe625caa4 100644 --- a/update-main-to-dist.js +++ b/update-main-to-dist.js @@ -5,7 +5,5 @@ const [dir] = process.argv.slice(2) pkgJson .load(path.resolve(__dirname, dir)) - .then((pkg) => - pkg.update({ main: pkg.content.publishConfig.main }) - ) + .then((pkg) => pkg.update({ main: pkg.content.publishConfig.main })) .then((pkg) => pkg.save())