fix eslint

This commit is contained in:
Samuel Newman
2026-05-13 18:10:50 +03:00
parent cb8e8a8ac8
commit 861a11e94c
27 changed files with 285 additions and 27 deletions
+1 -1
View File
@@ -104,4 +104,4 @@
"cid": "bafyreic3l2rmh2ugirt3jz372wcvy333m7t2ynlyzj2k54oshijs6lxdfu" "cid": "bafyreic3l2rmh2ugirt3jz372wcvy333m7t2ynlyzj2k54oshijs6lxdfu"
} }
} }
} }
+22 -1
View File
@@ -513,6 +513,10 @@
"maxLength": 100, "maxLength": 100,
"description": "Storage for NUXs the user has encountered." "description": "Storage for NUXs the user has encountered."
}, },
"isBetaUser": {
"type": "boolean",
"description": "Indicates if the user is participating in the beta features program."
},
"queuedNudges": { "queuedNudges": {
"type": "array", "type": "array",
"items": { "items": {
@@ -657,6 +661,15 @@
"type": "string", "type": "string",
"format": "datetime", "format": "datetime",
"description": "Timestamp when the verification was created." "description": "Timestamp when the verification was created."
},
"issuerHandle": {
"type": "string",
"format": "handle",
"description": "The handle of the issuer."
},
"issuerDisplayName": {
"type": "string",
"description": "The display name of the issuer."
} }
}, },
"description": "An individual verification for an associated subject." "description": "An individual verification for an associated subject."
@@ -887,6 +900,14 @@
"none", "none",
"following" "following"
] ]
},
"allowGroupInvites": {
"type": "string",
"knownValues": [
"all",
"none",
"following"
]
} }
} }
}, },
@@ -961,4 +982,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -45,4 +45,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
+1 -1
View File
@@ -22,4 +22,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
+129 -2
View File
@@ -26,6 +26,32 @@
} }
} }
}, },
"colorRGB": {
"type": "object",
"required": [
"r",
"g",
"b"
],
"properties": {
"b": {
"type": "integer",
"maximum": 255,
"minimum": 0
},
"g": {
"type": "integer",
"maximum": 255,
"minimum": 0
},
"r": {
"type": "integer",
"maximum": 255,
"minimum": 0
}
},
"description": "RGB color definition, inspired by site.standard.theme.color#rgb"
},
"external": { "external": {
"type": "object", "type": "object",
"required": [ "required": [
@@ -50,6 +76,14 @@
}, },
"description": { "description": {
"type": "string" "type": "string"
},
"associatedRefs": {
"type": "array",
"items": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"description": "StrongRefs (uri+cid) of the Atmosphere records that backed this view."
} }
} }
}, },
@@ -72,12 +106,105 @@
"title": { "title": {
"type": "string" "type": "string"
}, },
"labels": {
"type": "array",
"items": {
"ref": "com.atproto.label.defs#label",
"type": "ref"
}
},
"source": {
"ref": "#viewExternalSource",
"type": "ref"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When the external content was created, if available. Example: a publication date, for an article."
},
"updatedAt": {
"type": "string",
"format": "datetime",
"description": "When the external content was updated, if available."
},
"description": {
"type": "string"
},
"readingTime": {
"type": "integer",
"description": "Estimated reading time in minutes, if applicable and available."
},
"associatedRefs": {
"type": "array",
"items": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"description": "StrongRefs (uri+cid) of the Atmosphere records that backed this view."
},
"associatedProfiles": {
"type": "array",
"items": {
"ref": "app.bsky.actor.defs#profileViewBasic",
"type": "ref"
},
"description": "Profiles of the owners of the Atmosphere records that backed this view."
}
}
},
"viewExternalSource": {
"type": "object",
"required": [
"uri",
"title"
],
"properties": {
"uri": {
"type": "string",
"format": "uri",
"description": "URI of the source, if available. Example: the https:// URL of a site.standard.publication record."
},
"icon": {
"type": "string",
"format": "uri",
"description": "Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View."
},
"theme": {
"ref": "#viewExternalSourceTheme",
"type": "ref"
},
"title": {
"type": "string"
},
"description": { "description": {
"type": "string" "type": "string"
} }
} },
"description": "The source of an external embed, such as a standard.site publication."
},
"viewExternalSourceTheme": {
"type": "object",
"properties": {
"accentRGB": {
"ref": "#colorRGB",
"type": "ref"
},
"backgroundRGB": {
"ref": "#colorRGB",
"type": "ref"
},
"foregroundRGB": {
"ref": "#colorRGB",
"type": "ref"
},
"accentForegroundRGB": {
"ref": "#colorRGB",
"type": "ref"
}
},
"description": "The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source."
} }
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -0,0 +1,99 @@
{
"id": "app.bsky.embed.gallery",
"defs": {
"main": {
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"refs": [
"#image"
],
"type": "union",
"description": "The media items in the gallery. Each item may be of a different type, but all types must be supported by the client."
},
"maxLength": 20,
"description": "The schema-level maxLength of 20 is a future-proof ceiling. Clients should currently enforce a soft limit of 10 items in authoring UIs."
}
}
},
"view": {
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"refs": [
"#viewImage"
],
"type": "union"
}
}
}
},
"image": {
"type": "object",
"required": [
"image",
"alt",
"aspectRatio"
],
"properties": {
"alt": {
"type": "string",
"description": "Alt text description of the image, for accessibility."
},
"image": {
"type": "blob",
"accept": [
"image/*"
],
"maxSize": 2000000
},
"aspectRatio": {
"ref": "app.bsky.embed.defs#aspectRatio",
"type": "ref"
}
}
},
"viewImage": {
"type": "object",
"required": [
"thumbnail",
"fullsize",
"alt",
"aspectRatio"
],
"properties": {
"alt": {
"type": "string",
"description": "Alt text description of the image, for accessibility."
},
"fullsize": {
"type": "string",
"format": "uri",
"description": "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View."
},
"thumbnail": {
"type": "string",
"format": "uri",
"description": "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View."
},
"aspectRatio": {
"ref": "app.bsky.embed.defs#aspectRatio",
"type": "ref"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"description": "An assortment of media embedded in a Bluesky record (eg, a post)."
}
@@ -90,4 +90,4 @@
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1, "lexicon": 1,
"description": "A set of images embedded in a Bluesky record (eg, a post)." "description": "A set of images embedded in a Bluesky record (eg, a post)."
} }
@@ -66,6 +66,7 @@
"refs": [ "refs": [
"app.bsky.embed.images#view", "app.bsky.embed.images#view",
"app.bsky.embed.video#view", "app.bsky.embed.video#view",
"app.bsky.embed.gallery#view",
"app.bsky.embed.external#view", "app.bsky.embed.external#view",
"app.bsky.embed.record#view", "app.bsky.embed.record#view",
"app.bsky.embed.recordWithMedia#view" "app.bsky.embed.recordWithMedia#view"
@@ -158,4 +159,4 @@
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1, "lexicon": 1,
"description": "A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record." "description": "A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record."
} }
@@ -12,6 +12,7 @@
"refs": [ "refs": [
"app.bsky.embed.images", "app.bsky.embed.images",
"app.bsky.embed.video", "app.bsky.embed.video",
"app.bsky.embed.gallery",
"app.bsky.embed.external" "app.bsky.embed.external"
], ],
"type": "union" "type": "union"
@@ -33,6 +34,7 @@
"refs": [ "refs": [
"app.bsky.embed.images#view", "app.bsky.embed.images#view",
"app.bsky.embed.video#view", "app.bsky.embed.video#view",
"app.bsky.embed.gallery#view",
"app.bsky.embed.external#view" "app.bsky.embed.external#view"
], ],
"type": "union" "type": "union"
@@ -47,4 +49,4 @@
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1, "lexicon": 1,
"description": "A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card." "description": "A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card."
} }
+1 -1
View File
@@ -105,4 +105,4 @@
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1, "lexicon": 1,
"description": "A video embedded in a Bluesky record (eg, a post)." "description": "A video embedded in a Bluesky record (eg, a post)."
} }
+2 -1
View File
@@ -27,6 +27,7 @@
"refs": [ "refs": [
"app.bsky.embed.images#view", "app.bsky.embed.images#view",
"app.bsky.embed.video#view", "app.bsky.embed.video#view",
"app.bsky.embed.gallery#view",
"app.bsky.embed.external#view", "app.bsky.embed.external#view",
"app.bsky.embed.record#view", "app.bsky.embed.record#view",
"app.bsky.embed.recordWithMedia#view" "app.bsky.embed.recordWithMedia#view"
@@ -541,4 +542,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -43,4 +43,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
+2 -1
View File
@@ -31,6 +31,7 @@
"refs": [ "refs": [
"app.bsky.embed.images", "app.bsky.embed.images",
"app.bsky.embed.video", "app.bsky.embed.video",
"app.bsky.embed.gallery",
"app.bsky.embed.external", "app.bsky.embed.external",
"app.bsky.embed.record", "app.bsky.embed.record",
"app.bsky.embed.recordWithMedia" "app.bsky.embed.recordWithMedia"
@@ -142,4 +143,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -52,4 +52,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -78,4 +78,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
+1 -1
View File
@@ -350,4 +350,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -67,4 +67,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -150,4 +150,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -36,7 +36,8 @@
"properties": { "properties": {
"chat": { "chat": {
"ref": "#chatPreference", "ref": "#chatPreference",
"type": "ref" "type": "ref",
"description": "Deprecated: use chat.bsky.notification preferences instead. This will only return a default value."
}, },
"like": { "like": {
"ref": "#filterablePreference", "ref": "#filterablePreference",
@@ -109,7 +110,8 @@
"accepted" "accepted"
] ]
} }
} },
"description": "Deprecated: use chat.bsky.notification preferences instead. This will only return a default value."
}, },
"activitySubscription": { "activitySubscription": {
"type": "object", "type": "object",
@@ -170,4 +172,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -87,4 +87,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -42,4 +42,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -187,4 +187,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -93,4 +93,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
@@ -22,4 +22,4 @@
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1, "lexicon": 1,
"description": "A URI with a content-hash fingerprint." "description": "A URI with a content-hash fingerprint."
} }
@@ -209,4 +209,4 @@
}, },
"$type": "com.atproto.lexicon.schema", "$type": "com.atproto.lexicon.schema",
"lexicon": 1 "lexicon": 1
} }
+1
View File
@@ -26,6 +26,7 @@
"devDependencies": { "devDependencies": {
"@eslint/js": "^10.0.1", "@eslint/js": "^10.0.1",
"@preact/preset-vite": "^2.10.5", "@preact/preset-vite": "^2.10.5",
"@typescript-eslint/parser": "^8.64.0",
"@vitejs/plugin-legacy": "^8.2.1", "@vitejs/plugin-legacy": "^8.2.1",
"autoprefixer": "^10.5.3", "autoprefixer": "^10.5.3",
"eslint": "^10.7.0", "eslint": "^10.7.0",
+3
View File
@@ -24,6 +24,9 @@ importers:
'@preact/preset-vite': '@preact/preset-vite':
specifier: ^2.10.5 specifier: ^2.10.5
version: 2.10.5(@babel/core@7.29.7)(preact@10.29.7)(vite@8.1.5(jiti@1.21.7)(terser@5.49.0)) version: 2.10.5(@babel/core@7.29.7)(preact@10.29.7)(vite@8.1.5(jiti@1.21.7)(terser@5.49.0))
'@typescript-eslint/parser':
specifier: ^8.64.0
version: 8.64.0(eslint@10.7.0(jiti@1.21.7))(typescript@7.0.2)
'@vitejs/plugin-legacy': '@vitejs/plugin-legacy':
specifier: ^8.2.1 specifier: ^8.2.1
version: 8.2.1(terser@5.49.0)(vite@8.1.5(jiti@1.21.7)(terser@5.49.0)) version: 8.2.1(terser@5.49.0)(vite@8.1.5(jiti@1.21.7)(terser@5.49.0))