@atproto/ozone 0.1.161 → 0.1.163
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 +20 -0
- package/LICENSE.txt +1 -1
- package/dist/daemon/materialized-view-refresher.d.ts.map +1 -1
- package/dist/daemon/materialized-view-refresher.js +8 -1
- package/dist/daemon/materialized-view-refresher.js.map +1 -1
- package/dist/lexicon/index.d.ts +13 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +37 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +914 -12
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +474 -5
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +23 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +18 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/ageassurance/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts +27 -0
- package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/createDraft.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/createDraft.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/defs.d.ts +110 -0
- package/dist/lexicon/types/app/bsky/draft/defs.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/defs.js +97 -0
- package/dist/lexicon/types/app/bsky/draft/defs.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts +14 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts +24 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts +15 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.js.map +1 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts +4 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/deleteSession.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +3 -3
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/getSession.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +4 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/mod-service/util.d.ts.map +1 -1
- package/dist/mod-service/util.js +3 -1
- package/dist/mod-service/util.js.map +1 -1
- package/dist/verification/issuer.d.ts.map +1 -1
- package/dist/verification/issuer.js +9 -0
- package/dist/verification/issuer.js.map +1 -1
- package/package.json +8 -8
- package/src/daemon/materialized-view-refresher.ts +9 -3
- package/src/lexicon/index.ts +62 -0
- package/src/lexicon/lexicons.ts +491 -5
- package/src/lexicon/types/app/bsky/actor/defs.ts +41 -0
- package/src/lexicon/types/app/bsky/ageassurance/defs.ts +2 -0
- package/src/lexicon/types/app/bsky/draft/createDraft.ts +46 -0
- package/src/lexicon/types/app/bsky/draft/defs.ts +212 -0
- package/src/lexicon/types/app/bsky/draft/deleteDraft.ts +33 -0
- package/src/lexicon/types/app/bsky/draft/getDrafts.ts +42 -0
- package/src/lexicon/types/app/bsky/draft/updateDraft.ts +34 -0
- package/src/lexicon/types/app/bsky/embed/video.ts +4 -0
- package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsers.ts +2 -0
- package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +2 -0
- package/src/lexicon/types/com/atproto/server/deleteSession.ts +1 -0
- package/src/lexicon/types/com/atproto/server/getSession.ts +1 -1
- package/src/lexicon/types/com/atproto/server/refreshSession.ts +4 -1
- package/src/mod-service/util.ts +3 -2
- package/src/verification/issuer.ts +11 -0
- package/tests/query-labels.test.ts +0 -2
- package/tests/verification.test.ts +20 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +0 -1
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -251,6 +251,10 @@ export const schemaDict = {
|
|
|
251
251
|
type: 'ref',
|
|
252
252
|
ref: 'lex:app.bsky.actor.defs#profileAssociatedActivitySubscription',
|
|
253
253
|
},
|
|
254
|
+
germ: {
|
|
255
|
+
type: 'ref',
|
|
256
|
+
ref: 'lex:app.bsky.actor.defs#profileAssociatedGerm',
|
|
257
|
+
},
|
|
254
258
|
},
|
|
255
259
|
},
|
|
256
260
|
profileAssociatedChat: {
|
|
@@ -263,6 +267,20 @@ export const schemaDict = {
|
|
|
263
267
|
},
|
|
264
268
|
},
|
|
265
269
|
},
|
|
270
|
+
profileAssociatedGerm: {
|
|
271
|
+
type: 'object',
|
|
272
|
+
required: ['showButtonTo', 'messageMeUrl'],
|
|
273
|
+
properties: {
|
|
274
|
+
messageMeUrl: {
|
|
275
|
+
type: 'string',
|
|
276
|
+
format: 'uri',
|
|
277
|
+
},
|
|
278
|
+
showButtonTo: {
|
|
279
|
+
type: 'string',
|
|
280
|
+
knownValues: ['usersIFollow', 'everyone'],
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
},
|
|
266
284
|
profileAssociatedActivitySubscription: {
|
|
267
285
|
type: 'object',
|
|
268
286
|
required: ['allowSubscriptions'],
|
|
@@ -411,6 +429,7 @@ export const schemaDict = {
|
|
|
411
429
|
'lex:app.bsky.actor.defs#labelersPref',
|
|
412
430
|
'lex:app.bsky.actor.defs#postInteractionSettingsPref',
|
|
413
431
|
'lex:app.bsky.actor.defs#verificationPrefs',
|
|
432
|
+
'lex:app.bsky.actor.defs#liveEventPreferences',
|
|
414
433
|
],
|
|
415
434
|
},
|
|
416
435
|
},
|
|
@@ -775,6 +794,25 @@ export const schemaDict = {
|
|
|
775
794
|
},
|
|
776
795
|
},
|
|
777
796
|
},
|
|
797
|
+
liveEventPreferences: {
|
|
798
|
+
type: 'object',
|
|
799
|
+
description: 'Preferences for live events.',
|
|
800
|
+
properties: {
|
|
801
|
+
hiddenFeedIds: {
|
|
802
|
+
description:
|
|
803
|
+
'A list of feed IDs that the user has hidden from live events.',
|
|
804
|
+
type: 'array',
|
|
805
|
+
items: {
|
|
806
|
+
type: 'string',
|
|
807
|
+
},
|
|
808
|
+
},
|
|
809
|
+
hideAllFeeds: {
|
|
810
|
+
description: 'Whether to hide all feeds from live events.',
|
|
811
|
+
type: 'boolean',
|
|
812
|
+
default: false,
|
|
813
|
+
},
|
|
814
|
+
},
|
|
815
|
+
},
|
|
778
816
|
postInteractionSettingsPref: {
|
|
779
817
|
type: 'object',
|
|
780
818
|
description:
|
|
@@ -812,6 +850,14 @@ export const schemaDict = {
|
|
|
812
850
|
type: 'object',
|
|
813
851
|
required: ['status', 'record'],
|
|
814
852
|
properties: {
|
|
853
|
+
uri: {
|
|
854
|
+
type: 'string',
|
|
855
|
+
format: 'at-uri',
|
|
856
|
+
},
|
|
857
|
+
cid: {
|
|
858
|
+
type: 'string',
|
|
859
|
+
format: 'cid',
|
|
860
|
+
},
|
|
815
861
|
status: {
|
|
816
862
|
type: 'string',
|
|
817
863
|
description: 'The status for the account.',
|
|
@@ -836,6 +882,11 @@ export const schemaDict = {
|
|
|
836
882
|
description:
|
|
837
883
|
'True if the status is not expired, false if it is expired. Only present if expiration was set.',
|
|
838
884
|
},
|
|
885
|
+
isDisabled: {
|
|
886
|
+
type: 'boolean',
|
|
887
|
+
description:
|
|
888
|
+
"True if the user's go-live access has been disabled by a moderator, false otherwise.",
|
|
889
|
+
},
|
|
839
890
|
},
|
|
840
891
|
},
|
|
841
892
|
},
|
|
@@ -1345,7 +1396,7 @@ export const schemaDict = {
|
|
|
1345
1396
|
configRegion: {
|
|
1346
1397
|
type: 'object',
|
|
1347
1398
|
description: 'The Age Assurance configuration for a specific region.',
|
|
1348
|
-
required: ['countryCode', 'rules'],
|
|
1399
|
+
required: ['countryCode', 'minAccessAge', 'rules'],
|
|
1349
1400
|
properties: {
|
|
1350
1401
|
countryCode: {
|
|
1351
1402
|
type: 'string',
|
|
@@ -1357,6 +1408,11 @@ export const schemaDict = {
|
|
|
1357
1408
|
description:
|
|
1358
1409
|
'The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.',
|
|
1359
1410
|
},
|
|
1411
|
+
minAccessAge: {
|
|
1412
|
+
type: 'integer',
|
|
1413
|
+
description:
|
|
1414
|
+
'The minimum age (as a whole integer) required to use Bluesky in this region.',
|
|
1415
|
+
},
|
|
1360
1416
|
rules: {
|
|
1361
1417
|
type: 'array',
|
|
1362
1418
|
description:
|
|
@@ -2200,6 +2256,387 @@ export const schemaDict = {
|
|
|
2200
2256
|
},
|
|
2201
2257
|
},
|
|
2202
2258
|
},
|
|
2259
|
+
AppBskyDraftCreateDraft: {
|
|
2260
|
+
lexicon: 1,
|
|
2261
|
+
id: 'app.bsky.draft.createDraft',
|
|
2262
|
+
defs: {
|
|
2263
|
+
main: {
|
|
2264
|
+
type: 'procedure',
|
|
2265
|
+
description:
|
|
2266
|
+
'Inserts a draft using private storage (stash). An upper limit of drafts might be enforced. Requires authentication.',
|
|
2267
|
+
input: {
|
|
2268
|
+
encoding: 'application/json',
|
|
2269
|
+
schema: {
|
|
2270
|
+
type: 'object',
|
|
2271
|
+
required: ['draft'],
|
|
2272
|
+
properties: {
|
|
2273
|
+
draft: {
|
|
2274
|
+
type: 'ref',
|
|
2275
|
+
ref: 'lex:app.bsky.draft.defs#draft',
|
|
2276
|
+
},
|
|
2277
|
+
},
|
|
2278
|
+
},
|
|
2279
|
+
},
|
|
2280
|
+
output: {
|
|
2281
|
+
encoding: 'application/json',
|
|
2282
|
+
schema: {
|
|
2283
|
+
type: 'object',
|
|
2284
|
+
required: ['id'],
|
|
2285
|
+
properties: {
|
|
2286
|
+
id: {
|
|
2287
|
+
type: 'string',
|
|
2288
|
+
description: 'The ID of the created draft.',
|
|
2289
|
+
},
|
|
2290
|
+
},
|
|
2291
|
+
},
|
|
2292
|
+
},
|
|
2293
|
+
errors: [
|
|
2294
|
+
{
|
|
2295
|
+
name: 'DraftLimitReached',
|
|
2296
|
+
description:
|
|
2297
|
+
'Trying to insert a new draft when the limit was already reached.',
|
|
2298
|
+
},
|
|
2299
|
+
],
|
|
2300
|
+
},
|
|
2301
|
+
},
|
|
2302
|
+
},
|
|
2303
|
+
AppBskyDraftDefs: {
|
|
2304
|
+
lexicon: 1,
|
|
2305
|
+
id: 'app.bsky.draft.defs',
|
|
2306
|
+
defs: {
|
|
2307
|
+
draftWithId: {
|
|
2308
|
+
description:
|
|
2309
|
+
'A draft with an identifier, used to store drafts in private storage (stash).',
|
|
2310
|
+
type: 'object',
|
|
2311
|
+
required: ['id', 'draft'],
|
|
2312
|
+
properties: {
|
|
2313
|
+
id: {
|
|
2314
|
+
description: 'A TID to be used as a draft identifier.',
|
|
2315
|
+
type: 'string',
|
|
2316
|
+
format: 'tid',
|
|
2317
|
+
},
|
|
2318
|
+
draft: {
|
|
2319
|
+
type: 'ref',
|
|
2320
|
+
ref: 'lex:app.bsky.draft.defs#draft',
|
|
2321
|
+
},
|
|
2322
|
+
},
|
|
2323
|
+
},
|
|
2324
|
+
draft: {
|
|
2325
|
+
description: 'A draft containing an array of draft posts.',
|
|
2326
|
+
type: 'object',
|
|
2327
|
+
required: ['posts'],
|
|
2328
|
+
properties: {
|
|
2329
|
+
deviceId: {
|
|
2330
|
+
type: 'string',
|
|
2331
|
+
description:
|
|
2332
|
+
'UUIDv4 identifier of the device that created this draft.',
|
|
2333
|
+
maxLength: 100,
|
|
2334
|
+
},
|
|
2335
|
+
deviceName: {
|
|
2336
|
+
type: 'string',
|
|
2337
|
+
description:
|
|
2338
|
+
'The device and/or platform on which the draft was created.',
|
|
2339
|
+
maxLength: 100,
|
|
2340
|
+
},
|
|
2341
|
+
posts: {
|
|
2342
|
+
description: 'Array of draft posts that compose this draft.',
|
|
2343
|
+
type: 'array',
|
|
2344
|
+
minLength: 1,
|
|
2345
|
+
maxLength: 100,
|
|
2346
|
+
items: {
|
|
2347
|
+
type: 'ref',
|
|
2348
|
+
ref: 'lex:app.bsky.draft.defs#draftPost',
|
|
2349
|
+
},
|
|
2350
|
+
},
|
|
2351
|
+
langs: {
|
|
2352
|
+
type: 'array',
|
|
2353
|
+
description:
|
|
2354
|
+
'Indicates human language of posts primary text content.',
|
|
2355
|
+
maxLength: 3,
|
|
2356
|
+
items: {
|
|
2357
|
+
type: 'string',
|
|
2358
|
+
format: 'language',
|
|
2359
|
+
},
|
|
2360
|
+
},
|
|
2361
|
+
postgateEmbeddingRules: {
|
|
2362
|
+
description:
|
|
2363
|
+
'Embedding rules for the postgates to be created when this draft is published.',
|
|
2364
|
+
type: 'array',
|
|
2365
|
+
maxLength: 5,
|
|
2366
|
+
items: {
|
|
2367
|
+
type: 'union',
|
|
2368
|
+
refs: ['lex:app.bsky.feed.postgate#disableRule'],
|
|
2369
|
+
},
|
|
2370
|
+
},
|
|
2371
|
+
threadgateAllow: {
|
|
2372
|
+
description:
|
|
2373
|
+
'Allow-rules for the threadgate to be created when this draft is published.',
|
|
2374
|
+
type: 'array',
|
|
2375
|
+
maxLength: 5,
|
|
2376
|
+
items: {
|
|
2377
|
+
type: 'union',
|
|
2378
|
+
refs: [
|
|
2379
|
+
'lex:app.bsky.feed.threadgate#mentionRule',
|
|
2380
|
+
'lex:app.bsky.feed.threadgate#followerRule',
|
|
2381
|
+
'lex:app.bsky.feed.threadgate#followingRule',
|
|
2382
|
+
'lex:app.bsky.feed.threadgate#listRule',
|
|
2383
|
+
],
|
|
2384
|
+
},
|
|
2385
|
+
},
|
|
2386
|
+
},
|
|
2387
|
+
},
|
|
2388
|
+
draftPost: {
|
|
2389
|
+
description: 'One of the posts that compose a draft.',
|
|
2390
|
+
type: 'object',
|
|
2391
|
+
required: ['text'],
|
|
2392
|
+
properties: {
|
|
2393
|
+
text: {
|
|
2394
|
+
type: 'string',
|
|
2395
|
+
maxLength: 3000,
|
|
2396
|
+
maxGraphemes: 300,
|
|
2397
|
+
description: 'The primary post content.',
|
|
2398
|
+
},
|
|
2399
|
+
labels: {
|
|
2400
|
+
type: 'union',
|
|
2401
|
+
description:
|
|
2402
|
+
'Self-label values for this post. Effectively content warnings.',
|
|
2403
|
+
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
2404
|
+
},
|
|
2405
|
+
embedImages: {
|
|
2406
|
+
type: 'array',
|
|
2407
|
+
items: {
|
|
2408
|
+
type: 'ref',
|
|
2409
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedImage',
|
|
2410
|
+
},
|
|
2411
|
+
maxLength: 4,
|
|
2412
|
+
},
|
|
2413
|
+
embedVideos: {
|
|
2414
|
+
type: 'array',
|
|
2415
|
+
items: {
|
|
2416
|
+
type: 'ref',
|
|
2417
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedVideo',
|
|
2418
|
+
},
|
|
2419
|
+
maxLength: 1,
|
|
2420
|
+
},
|
|
2421
|
+
embedExternals: {
|
|
2422
|
+
type: 'array',
|
|
2423
|
+
items: {
|
|
2424
|
+
type: 'ref',
|
|
2425
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedExternal',
|
|
2426
|
+
},
|
|
2427
|
+
maxLength: 1,
|
|
2428
|
+
},
|
|
2429
|
+
embedRecords: {
|
|
2430
|
+
type: 'array',
|
|
2431
|
+
items: {
|
|
2432
|
+
type: 'ref',
|
|
2433
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedRecord',
|
|
2434
|
+
},
|
|
2435
|
+
maxLength: 1,
|
|
2436
|
+
},
|
|
2437
|
+
},
|
|
2438
|
+
},
|
|
2439
|
+
draftView: {
|
|
2440
|
+
description: 'View to present drafts data to users.',
|
|
2441
|
+
type: 'object',
|
|
2442
|
+
required: ['id', 'draft', 'createdAt', 'updatedAt'],
|
|
2443
|
+
properties: {
|
|
2444
|
+
id: {
|
|
2445
|
+
description: 'A TID to be used as a draft identifier.',
|
|
2446
|
+
type: 'string',
|
|
2447
|
+
format: 'tid',
|
|
2448
|
+
},
|
|
2449
|
+
draft: {
|
|
2450
|
+
type: 'ref',
|
|
2451
|
+
ref: 'lex:app.bsky.draft.defs#draft',
|
|
2452
|
+
},
|
|
2453
|
+
createdAt: {
|
|
2454
|
+
description: 'The time the draft was created.',
|
|
2455
|
+
type: 'string',
|
|
2456
|
+
format: 'datetime',
|
|
2457
|
+
},
|
|
2458
|
+
updatedAt: {
|
|
2459
|
+
description: 'The time the draft was last updated.',
|
|
2460
|
+
type: 'string',
|
|
2461
|
+
format: 'datetime',
|
|
2462
|
+
},
|
|
2463
|
+
},
|
|
2464
|
+
},
|
|
2465
|
+
draftEmbedLocalRef: {
|
|
2466
|
+
type: 'object',
|
|
2467
|
+
required: ['path'],
|
|
2468
|
+
properties: {
|
|
2469
|
+
path: {
|
|
2470
|
+
type: 'string',
|
|
2471
|
+
description:
|
|
2472
|
+
'Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.',
|
|
2473
|
+
minLength: 1,
|
|
2474
|
+
maxLength: 1024,
|
|
2475
|
+
},
|
|
2476
|
+
},
|
|
2477
|
+
},
|
|
2478
|
+
draftEmbedCaption: {
|
|
2479
|
+
type: 'object',
|
|
2480
|
+
required: ['lang', 'content'],
|
|
2481
|
+
properties: {
|
|
2482
|
+
lang: {
|
|
2483
|
+
type: 'string',
|
|
2484
|
+
format: 'language',
|
|
2485
|
+
},
|
|
2486
|
+
content: {
|
|
2487
|
+
type: 'string',
|
|
2488
|
+
maxLength: 10000,
|
|
2489
|
+
},
|
|
2490
|
+
},
|
|
2491
|
+
},
|
|
2492
|
+
draftEmbedImage: {
|
|
2493
|
+
type: 'object',
|
|
2494
|
+
required: ['localRef'],
|
|
2495
|
+
properties: {
|
|
2496
|
+
localRef: {
|
|
2497
|
+
type: 'ref',
|
|
2498
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
|
|
2499
|
+
},
|
|
2500
|
+
alt: {
|
|
2501
|
+
type: 'string',
|
|
2502
|
+
maxGraphemes: 2000,
|
|
2503
|
+
},
|
|
2504
|
+
},
|
|
2505
|
+
},
|
|
2506
|
+
draftEmbedVideo: {
|
|
2507
|
+
type: 'object',
|
|
2508
|
+
required: ['localRef'],
|
|
2509
|
+
properties: {
|
|
2510
|
+
localRef: {
|
|
2511
|
+
type: 'ref',
|
|
2512
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
|
|
2513
|
+
},
|
|
2514
|
+
alt: {
|
|
2515
|
+
type: 'string',
|
|
2516
|
+
maxGraphemes: 2000,
|
|
2517
|
+
},
|
|
2518
|
+
captions: {
|
|
2519
|
+
type: 'array',
|
|
2520
|
+
items: {
|
|
2521
|
+
type: 'ref',
|
|
2522
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedCaption',
|
|
2523
|
+
},
|
|
2524
|
+
maxLength: 20,
|
|
2525
|
+
},
|
|
2526
|
+
},
|
|
2527
|
+
},
|
|
2528
|
+
draftEmbedExternal: {
|
|
2529
|
+
type: 'object',
|
|
2530
|
+
required: ['uri'],
|
|
2531
|
+
properties: {
|
|
2532
|
+
uri: {
|
|
2533
|
+
type: 'string',
|
|
2534
|
+
format: 'uri',
|
|
2535
|
+
},
|
|
2536
|
+
},
|
|
2537
|
+
},
|
|
2538
|
+
draftEmbedRecord: {
|
|
2539
|
+
type: 'object',
|
|
2540
|
+
required: ['record'],
|
|
2541
|
+
properties: {
|
|
2542
|
+
record: {
|
|
2543
|
+
type: 'ref',
|
|
2544
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
2545
|
+
},
|
|
2546
|
+
},
|
|
2547
|
+
},
|
|
2548
|
+
},
|
|
2549
|
+
},
|
|
2550
|
+
AppBskyDraftDeleteDraft: {
|
|
2551
|
+
lexicon: 1,
|
|
2552
|
+
id: 'app.bsky.draft.deleteDraft',
|
|
2553
|
+
defs: {
|
|
2554
|
+
main: {
|
|
2555
|
+
type: 'procedure',
|
|
2556
|
+
description: 'Deletes a draft by ID. Requires authentication.',
|
|
2557
|
+
input: {
|
|
2558
|
+
encoding: 'application/json',
|
|
2559
|
+
schema: {
|
|
2560
|
+
type: 'object',
|
|
2561
|
+
required: ['id'],
|
|
2562
|
+
properties: {
|
|
2563
|
+
id: {
|
|
2564
|
+
type: 'string',
|
|
2565
|
+
format: 'tid',
|
|
2566
|
+
},
|
|
2567
|
+
},
|
|
2568
|
+
},
|
|
2569
|
+
},
|
|
2570
|
+
},
|
|
2571
|
+
},
|
|
2572
|
+
},
|
|
2573
|
+
AppBskyDraftGetDrafts: {
|
|
2574
|
+
lexicon: 1,
|
|
2575
|
+
id: 'app.bsky.draft.getDrafts',
|
|
2576
|
+
defs: {
|
|
2577
|
+
main: {
|
|
2578
|
+
type: 'query',
|
|
2579
|
+
description: 'Gets views of user drafts. Requires authentication.',
|
|
2580
|
+
parameters: {
|
|
2581
|
+
type: 'params',
|
|
2582
|
+
properties: {
|
|
2583
|
+
limit: {
|
|
2584
|
+
type: 'integer',
|
|
2585
|
+
minimum: 1,
|
|
2586
|
+
maximum: 100,
|
|
2587
|
+
default: 50,
|
|
2588
|
+
},
|
|
2589
|
+
cursor: {
|
|
2590
|
+
type: 'string',
|
|
2591
|
+
},
|
|
2592
|
+
},
|
|
2593
|
+
},
|
|
2594
|
+
output: {
|
|
2595
|
+
encoding: 'application/json',
|
|
2596
|
+
schema: {
|
|
2597
|
+
type: 'object',
|
|
2598
|
+
required: ['drafts'],
|
|
2599
|
+
properties: {
|
|
2600
|
+
cursor: {
|
|
2601
|
+
type: 'string',
|
|
2602
|
+
},
|
|
2603
|
+
drafts: {
|
|
2604
|
+
type: 'array',
|
|
2605
|
+
items: {
|
|
2606
|
+
type: 'ref',
|
|
2607
|
+
ref: 'lex:app.bsky.draft.defs#draftView',
|
|
2608
|
+
},
|
|
2609
|
+
},
|
|
2610
|
+
},
|
|
2611
|
+
},
|
|
2612
|
+
},
|
|
2613
|
+
},
|
|
2614
|
+
},
|
|
2615
|
+
},
|
|
2616
|
+
AppBskyDraftUpdateDraft: {
|
|
2617
|
+
lexicon: 1,
|
|
2618
|
+
id: 'app.bsky.draft.updateDraft',
|
|
2619
|
+
defs: {
|
|
2620
|
+
main: {
|
|
2621
|
+
type: 'procedure',
|
|
2622
|
+
description:
|
|
2623
|
+
"Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication.",
|
|
2624
|
+
input: {
|
|
2625
|
+
encoding: 'application/json',
|
|
2626
|
+
schema: {
|
|
2627
|
+
type: 'object',
|
|
2628
|
+
required: ['draft'],
|
|
2629
|
+
properties: {
|
|
2630
|
+
draft: {
|
|
2631
|
+
type: 'ref',
|
|
2632
|
+
ref: 'lex:app.bsky.draft.defs#draftWithId',
|
|
2633
|
+
},
|
|
2634
|
+
},
|
|
2635
|
+
},
|
|
2636
|
+
},
|
|
2637
|
+
},
|
|
2638
|
+
},
|
|
2639
|
+
},
|
|
2203
2640
|
AppBskyEmbedDefs: {
|
|
2204
2641
|
lexicon: 1,
|
|
2205
2642
|
id: 'app.bsky.embed.defs',
|
|
@@ -2593,6 +3030,11 @@ export const schemaDict = {
|
|
|
2593
3030
|
type: 'ref',
|
|
2594
3031
|
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
2595
3032
|
},
|
|
3033
|
+
presentation: {
|
|
3034
|
+
type: 'string',
|
|
3035
|
+
description: 'A hint to the client about how to present the video.',
|
|
3036
|
+
knownValues: ['default', 'gif'],
|
|
3037
|
+
},
|
|
2596
3038
|
},
|
|
2597
3039
|
},
|
|
2598
3040
|
caption: {
|
|
@@ -2635,6 +3077,11 @@ export const schemaDict = {
|
|
|
2635
3077
|
type: 'ref',
|
|
2636
3078
|
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
2637
3079
|
},
|
|
3080
|
+
presentation: {
|
|
3081
|
+
type: 'string',
|
|
3082
|
+
description: 'A hint to the client about how to present the video.',
|
|
3083
|
+
knownValues: ['default', 'gif'],
|
|
3084
|
+
},
|
|
2638
3085
|
},
|
|
2639
3086
|
},
|
|
2640
3087
|
},
|
|
@@ -8012,6 +8459,11 @@ export const schemaDict = {
|
|
|
8012
8459
|
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
8013
8460
|
},
|
|
8014
8461
|
},
|
|
8462
|
+
recId: {
|
|
8463
|
+
type: 'string',
|
|
8464
|
+
description:
|
|
8465
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8466
|
+
},
|
|
8015
8467
|
},
|
|
8016
8468
|
},
|
|
8017
8469
|
},
|
|
@@ -8060,6 +8512,11 @@ export const schemaDict = {
|
|
|
8060
8512
|
format: 'did',
|
|
8061
8513
|
},
|
|
8062
8514
|
},
|
|
8515
|
+
recId: {
|
|
8516
|
+
type: 'string',
|
|
8517
|
+
description:
|
|
8518
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8519
|
+
},
|
|
8063
8520
|
},
|
|
8064
8521
|
},
|
|
8065
8522
|
},
|
|
@@ -13019,7 +13476,16 @@ export const schemaDict = {
|
|
|
13019
13476
|
defs: {
|
|
13020
13477
|
main: {
|
|
13021
13478
|
type: 'procedure',
|
|
13022
|
-
description:
|
|
13479
|
+
description:
|
|
13480
|
+
"Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",
|
|
13481
|
+
errors: [
|
|
13482
|
+
{
|
|
13483
|
+
name: 'InvalidToken',
|
|
13484
|
+
},
|
|
13485
|
+
{
|
|
13486
|
+
name: 'ExpiredToken',
|
|
13487
|
+
},
|
|
13488
|
+
],
|
|
13023
13489
|
},
|
|
13024
13490
|
},
|
|
13025
13491
|
},
|
|
@@ -13218,6 +13684,9 @@ export const schemaDict = {
|
|
|
13218
13684
|
type: 'string',
|
|
13219
13685
|
format: 'did',
|
|
13220
13686
|
},
|
|
13687
|
+
didDoc: {
|
|
13688
|
+
type: 'unknown',
|
|
13689
|
+
},
|
|
13221
13690
|
email: {
|
|
13222
13691
|
type: 'string',
|
|
13223
13692
|
},
|
|
@@ -13227,9 +13696,6 @@ export const schemaDict = {
|
|
|
13227
13696
|
emailAuthFactor: {
|
|
13228
13697
|
type: 'boolean',
|
|
13229
13698
|
},
|
|
13230
|
-
didDoc: {
|
|
13231
|
-
type: 'unknown',
|
|
13232
|
-
},
|
|
13233
13699
|
active: {
|
|
13234
13700
|
type: 'boolean',
|
|
13235
13701
|
},
|
|
@@ -13323,6 +13789,15 @@ export const schemaDict = {
|
|
|
13323
13789
|
didDoc: {
|
|
13324
13790
|
type: 'unknown',
|
|
13325
13791
|
},
|
|
13792
|
+
email: {
|
|
13793
|
+
type: 'string',
|
|
13794
|
+
},
|
|
13795
|
+
emailConfirmed: {
|
|
13796
|
+
type: 'boolean',
|
|
13797
|
+
},
|
|
13798
|
+
emailAuthFactor: {
|
|
13799
|
+
type: 'boolean',
|
|
13800
|
+
},
|
|
13326
13801
|
active: {
|
|
13327
13802
|
type: 'boolean',
|
|
13328
13803
|
},
|
|
@@ -13339,6 +13814,12 @@ export const schemaDict = {
|
|
|
13339
13814
|
{
|
|
13340
13815
|
name: 'AccountTakedown',
|
|
13341
13816
|
},
|
|
13817
|
+
{
|
|
13818
|
+
name: 'InvalidToken',
|
|
13819
|
+
},
|
|
13820
|
+
{
|
|
13821
|
+
name: 'ExpiredToken',
|
|
13822
|
+
},
|
|
13342
13823
|
],
|
|
13343
13824
|
},
|
|
13344
13825
|
},
|
|
@@ -20076,6 +20557,11 @@ export const ids = {
|
|
|
20076
20557
|
AppBskyContactStartPhoneVerification:
|
|
20077
20558
|
'app.bsky.contact.startPhoneVerification',
|
|
20078
20559
|
AppBskyContactVerifyPhone: 'app.bsky.contact.verifyPhone',
|
|
20560
|
+
AppBskyDraftCreateDraft: 'app.bsky.draft.createDraft',
|
|
20561
|
+
AppBskyDraftDefs: 'app.bsky.draft.defs',
|
|
20562
|
+
AppBskyDraftDeleteDraft: 'app.bsky.draft.deleteDraft',
|
|
20563
|
+
AppBskyDraftGetDrafts: 'app.bsky.draft.getDrafts',
|
|
20564
|
+
AppBskyDraftUpdateDraft: 'app.bsky.draft.updateDraft',
|
|
20079
20565
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
20080
20566
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
20081
20567
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
@@ -121,6 +121,7 @@ export interface ProfileAssociated {
|
|
|
121
121
|
labeler?: boolean
|
|
122
122
|
chat?: ProfileAssociatedChat
|
|
123
123
|
activitySubscription?: ProfileAssociatedActivitySubscription
|
|
124
|
+
germ?: ProfileAssociatedGerm
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
const hashProfileAssociated = 'profileAssociated'
|
|
@@ -148,6 +149,22 @@ export function validateProfileAssociatedChat<V>(v: V) {
|
|
|
148
149
|
return validate<ProfileAssociatedChat & V>(v, id, hashProfileAssociatedChat)
|
|
149
150
|
}
|
|
150
151
|
|
|
152
|
+
export interface ProfileAssociatedGerm {
|
|
153
|
+
$type?: 'app.bsky.actor.defs#profileAssociatedGerm'
|
|
154
|
+
messageMeUrl: string
|
|
155
|
+
showButtonTo: 'usersIFollow' | 'everyone' | (string & {})
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const hashProfileAssociatedGerm = 'profileAssociatedGerm'
|
|
159
|
+
|
|
160
|
+
export function isProfileAssociatedGerm<V>(v: V) {
|
|
161
|
+
return is$typed(v, id, hashProfileAssociatedGerm)
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function validateProfileAssociatedGerm<V>(v: V) {
|
|
165
|
+
return validate<ProfileAssociatedGerm & V>(v, id, hashProfileAssociatedGerm)
|
|
166
|
+
}
|
|
167
|
+
|
|
151
168
|
export interface ProfileAssociatedActivitySubscription {
|
|
152
169
|
$type?: 'app.bsky.actor.defs#profileAssociatedActivitySubscription'
|
|
153
170
|
allowSubscriptions: 'followers' | 'mutuals' | 'none' | (string & {})
|
|
@@ -269,6 +286,7 @@ export type Preferences = (
|
|
|
269
286
|
| $Typed<LabelersPref>
|
|
270
287
|
| $Typed<PostInteractionSettingsPref>
|
|
271
288
|
| $Typed<VerificationPrefs>
|
|
289
|
+
| $Typed<LiveEventPreferences>
|
|
272
290
|
| { $type: string }
|
|
273
291
|
)[]
|
|
274
292
|
|
|
@@ -618,6 +636,25 @@ export function validateVerificationPrefs<V>(v: V) {
|
|
|
618
636
|
return validate<VerificationPrefs & V>(v, id, hashVerificationPrefs)
|
|
619
637
|
}
|
|
620
638
|
|
|
639
|
+
/** Preferences for live events. */
|
|
640
|
+
export interface LiveEventPreferences {
|
|
641
|
+
$type?: 'app.bsky.actor.defs#liveEventPreferences'
|
|
642
|
+
/** A list of feed IDs that the user has hidden from live events. */
|
|
643
|
+
hiddenFeedIds?: string[]
|
|
644
|
+
/** Whether to hide all feeds from live events. */
|
|
645
|
+
hideAllFeeds: boolean
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
const hashLiveEventPreferences = 'liveEventPreferences'
|
|
649
|
+
|
|
650
|
+
export function isLiveEventPreferences<V>(v: V) {
|
|
651
|
+
return is$typed(v, id, hashLiveEventPreferences)
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export function validateLiveEventPreferences<V>(v: V) {
|
|
655
|
+
return validate<LiveEventPreferences & V>(v, id, hashLiveEventPreferences)
|
|
656
|
+
}
|
|
657
|
+
|
|
621
658
|
/** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
|
|
622
659
|
export interface PostInteractionSettingsPref {
|
|
623
660
|
$type?: 'app.bsky.actor.defs#postInteractionSettingsPref'
|
|
@@ -652,6 +689,8 @@ export function validatePostInteractionSettingsPref<V>(v: V) {
|
|
|
652
689
|
|
|
653
690
|
export interface StatusView {
|
|
654
691
|
$type?: 'app.bsky.actor.defs#statusView'
|
|
692
|
+
uri?: string
|
|
693
|
+
cid?: string
|
|
655
694
|
/** The status for the account. */
|
|
656
695
|
status: 'app.bsky.actor.status#live' | (string & {})
|
|
657
696
|
record: { [_ in string]: unknown }
|
|
@@ -660,6 +699,8 @@ export interface StatusView {
|
|
|
660
699
|
expiresAt?: string
|
|
661
700
|
/** True if the status is not expired, false if it is expired. Only present if expiration was set. */
|
|
662
701
|
isActive?: boolean
|
|
702
|
+
/** True if the user's go-live access has been disabled by a moderator, false otherwise. */
|
|
703
|
+
isDisabled?: boolean
|
|
663
704
|
}
|
|
664
705
|
|
|
665
706
|
const hashStatusView = 'statusView'
|
|
@@ -83,6 +83,8 @@ export interface ConfigRegion {
|
|
|
83
83
|
countryCode: string
|
|
84
84
|
/** The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country. */
|
|
85
85
|
regionCode?: string
|
|
86
|
+
/** The minimum age (as a whole integer) required to use Bluesky in this region. */
|
|
87
|
+
minAccessAge: number
|
|
86
88
|
/** The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item. */
|
|
87
89
|
rules: (
|
|
88
90
|
| $Typed<ConfigRegionRuleDefault>
|