@atproto/api 0.20.8 → 0.20.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +214 -10
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +108 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/draft/defs.d.ts +10 -0
- package/dist/client/types/app/bsky/draft/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/draft/defs.js +7 -0
- package/dist/client/types/app/bsky/draft/defs.js.map +1 -1
- package/dist/client/types/app/bsky/embed/gallery.d.ts +45 -0
- package/dist/client/types/app/bsky/embed/gallery.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/gallery.js +33 -0
- package/dist/client/types/app/bsky/embed/gallery.js.map +1 -0
- package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/client/types/app/bsky/embed/record.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/record.js.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +3 -2
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.js.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/client/types/app/bsky/feed/post.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/post.js.map +1 -1
- package/dist/moderation/subjects/post.d.ts.map +1 -1
- package/dist/moderation/subjects/post.js +69 -1
- package/dist/moderation/subjects/post.js.map +1 -1
- package/package.json +4 -4
- package/src/moderation/subjects/post.ts +73 -0
- package/tests/moderation-mutewords.test.ts +178 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -2326,6 +2326,10 @@ export const schemaDict = {
|
|
|
2326
2326
|
},
|
|
2327
2327
|
maxLength: 4,
|
|
2328
2328
|
},
|
|
2329
|
+
embedGallery: {
|
|
2330
|
+
type: 'ref',
|
|
2331
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedGallery',
|
|
2332
|
+
},
|
|
2329
2333
|
embedVideos: {
|
|
2330
2334
|
type: 'array',
|
|
2331
2335
|
items: {
|
|
@@ -2404,6 +2408,25 @@ export const schemaDict = {
|
|
|
2404
2408
|
},
|
|
2405
2409
|
},
|
|
2406
2410
|
},
|
|
2411
|
+
draftEmbedGallery: {
|
|
2412
|
+
type: 'object',
|
|
2413
|
+
required: ['items'],
|
|
2414
|
+
properties: {
|
|
2415
|
+
items: {
|
|
2416
|
+
type: 'ref',
|
|
2417
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedGalleryItems',
|
|
2418
|
+
},
|
|
2419
|
+
},
|
|
2420
|
+
},
|
|
2421
|
+
draftEmbedGalleryItems: {
|
|
2422
|
+
type: 'array',
|
|
2423
|
+
items: {
|
|
2424
|
+
type: 'union',
|
|
2425
|
+
refs: ['lex:app.bsky.draft.defs#draftEmbedImage'],
|
|
2426
|
+
},
|
|
2427
|
+
maxLength: 20,
|
|
2428
|
+
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.',
|
|
2429
|
+
},
|
|
2407
2430
|
draftEmbedImage: {
|
|
2408
2431
|
type: 'object',
|
|
2409
2432
|
required: ['localRef'],
|
|
@@ -2760,6 +2783,85 @@ export const schemaDict = {
|
|
|
2760
2783
|
},
|
|
2761
2784
|
},
|
|
2762
2785
|
},
|
|
2786
|
+
AppBskyEmbedGallery: {
|
|
2787
|
+
lexicon: 1,
|
|
2788
|
+
id: 'app.bsky.embed.gallery',
|
|
2789
|
+
description: 'An assortment of media embedded in a Bluesky record (eg, a post).',
|
|
2790
|
+
defs: {
|
|
2791
|
+
main: {
|
|
2792
|
+
type: 'object',
|
|
2793
|
+
required: ['items'],
|
|
2794
|
+
properties: {
|
|
2795
|
+
items: {
|
|
2796
|
+
type: 'array',
|
|
2797
|
+
maxLength: 20,
|
|
2798
|
+
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.',
|
|
2799
|
+
items: {
|
|
2800
|
+
type: 'union',
|
|
2801
|
+
refs: ['lex:app.bsky.embed.gallery#image'],
|
|
2802
|
+
description: 'The media items in the gallery. Each item may be of a different type, but all types must be supported by the client.',
|
|
2803
|
+
},
|
|
2804
|
+
},
|
|
2805
|
+
},
|
|
2806
|
+
},
|
|
2807
|
+
image: {
|
|
2808
|
+
type: 'object',
|
|
2809
|
+
required: ['image', 'alt', 'aspectRatio'],
|
|
2810
|
+
properties: {
|
|
2811
|
+
image: {
|
|
2812
|
+
type: 'blob',
|
|
2813
|
+
accept: ['image/*'],
|
|
2814
|
+
maxSize: 2000000,
|
|
2815
|
+
},
|
|
2816
|
+
alt: {
|
|
2817
|
+
type: 'string',
|
|
2818
|
+
description: 'Alt text description of the image, for accessibility.',
|
|
2819
|
+
},
|
|
2820
|
+
aspectRatio: {
|
|
2821
|
+
type: 'ref',
|
|
2822
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
2823
|
+
},
|
|
2824
|
+
},
|
|
2825
|
+
},
|
|
2826
|
+
view: {
|
|
2827
|
+
type: 'object',
|
|
2828
|
+
required: ['items'],
|
|
2829
|
+
properties: {
|
|
2830
|
+
items: {
|
|
2831
|
+
type: 'array',
|
|
2832
|
+
items: {
|
|
2833
|
+
type: 'union',
|
|
2834
|
+
refs: ['lex:app.bsky.embed.gallery#viewImage'],
|
|
2835
|
+
},
|
|
2836
|
+
},
|
|
2837
|
+
},
|
|
2838
|
+
},
|
|
2839
|
+
viewImage: {
|
|
2840
|
+
type: 'object',
|
|
2841
|
+
required: ['thumbnail', 'fullsize', 'alt', 'aspectRatio'],
|
|
2842
|
+
properties: {
|
|
2843
|
+
thumbnail: {
|
|
2844
|
+
type: 'string',
|
|
2845
|
+
format: 'uri',
|
|
2846
|
+
description: 'Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.',
|
|
2847
|
+
},
|
|
2848
|
+
fullsize: {
|
|
2849
|
+
type: 'string',
|
|
2850
|
+
format: 'uri',
|
|
2851
|
+
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.',
|
|
2852
|
+
},
|
|
2853
|
+
alt: {
|
|
2854
|
+
type: 'string',
|
|
2855
|
+
description: 'Alt text description of the image, for accessibility.',
|
|
2856
|
+
},
|
|
2857
|
+
aspectRatio: {
|
|
2858
|
+
type: 'ref',
|
|
2859
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
2860
|
+
},
|
|
2861
|
+
},
|
|
2862
|
+
},
|
|
2863
|
+
},
|
|
2864
|
+
},
|
|
2763
2865
|
AppBskyEmbedGetEmbedExternalView: {
|
|
2764
2866
|
lexicon: 1,
|
|
2765
2867
|
id: 'app.bsky.embed.getEmbedExternalView',
|
|
@@ -2977,6 +3079,7 @@ export const schemaDict = {
|
|
|
2977
3079
|
refs: [
|
|
2978
3080
|
'lex:app.bsky.embed.images#view',
|
|
2979
3081
|
'lex:app.bsky.embed.video#view',
|
|
3082
|
+
'lex:app.bsky.embed.gallery#view',
|
|
2980
3083
|
'lex:app.bsky.embed.external#view',
|
|
2981
3084
|
'lex:app.bsky.embed.record#view',
|
|
2982
3085
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -3055,6 +3158,7 @@ export const schemaDict = {
|
|
|
3055
3158
|
refs: [
|
|
3056
3159
|
'lex:app.bsky.embed.images',
|
|
3057
3160
|
'lex:app.bsky.embed.video',
|
|
3161
|
+
'lex:app.bsky.embed.gallery',
|
|
3058
3162
|
'lex:app.bsky.embed.external',
|
|
3059
3163
|
],
|
|
3060
3164
|
},
|
|
@@ -3073,6 +3177,7 @@ export const schemaDict = {
|
|
|
3073
3177
|
refs: [
|
|
3074
3178
|
'lex:app.bsky.embed.images#view',
|
|
3075
3179
|
'lex:app.bsky.embed.video#view',
|
|
3180
|
+
'lex:app.bsky.embed.gallery#view',
|
|
3076
3181
|
'lex:app.bsky.embed.external#view',
|
|
3077
3182
|
],
|
|
3078
3183
|
},
|
|
@@ -3197,6 +3302,7 @@ export const schemaDict = {
|
|
|
3197
3302
|
refs: [
|
|
3198
3303
|
'lex:app.bsky.embed.images#view',
|
|
3199
3304
|
'lex:app.bsky.embed.video#view',
|
|
3305
|
+
'lex:app.bsky.embed.gallery#view',
|
|
3200
3306
|
'lex:app.bsky.embed.external#view',
|
|
3201
3307
|
'lex:app.bsky.embed.record#view',
|
|
3202
3308
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -4685,6 +4791,7 @@ export const schemaDict = {
|
|
|
4685
4791
|
refs: [
|
|
4686
4792
|
'lex:app.bsky.embed.images',
|
|
4687
4793
|
'lex:app.bsky.embed.video',
|
|
4794
|
+
'lex:app.bsky.embed.gallery',
|
|
4688
4795
|
'lex:app.bsky.embed.external',
|
|
4689
4796
|
'lex:app.bsky.embed.record',
|
|
4690
4797
|
'lex:app.bsky.embed.recordWithMedia',
|
|
@@ -25205,6 +25312,7 @@ export const ids = {
|
|
|
25205
25312
|
AppBskyDraftUpdateDraft: 'app.bsky.draft.updateDraft',
|
|
25206
25313
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
25207
25314
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
25315
|
+
AppBskyEmbedGallery: 'app.bsky.embed.gallery',
|
|
25208
25316
|
AppBskyEmbedGetEmbedExternalView: 'app.bsky.embed.getEmbedExternalView',
|
|
25209
25317
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
25210
25318
|
AppBskyEmbedRecord: 'app.bsky.embed.record',
|