@atproto/ozone 0.1.161 → 0.1.162
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 +9 -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 +894 -12
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +464 -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 +106 -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/package.json +7 -7
- package/src/daemon/materialized-view-refresher.ts +9 -3
- package/src/lexicon/index.ts +62 -0
- package/src/lexicon/lexicons.ts +479 -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 +208 -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/tests/query-labels.test.ts +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +0 -1
package/src/lexicon/index.ts
CHANGED
|
@@ -31,6 +31,10 @@ import * as AppBskyContactRemoveData from './types/app/bsky/contact/removeData.j
|
|
|
31
31
|
import * as AppBskyContactSendNotification from './types/app/bsky/contact/sendNotification.js'
|
|
32
32
|
import * as AppBskyContactStartPhoneVerification from './types/app/bsky/contact/startPhoneVerification.js'
|
|
33
33
|
import * as AppBskyContactVerifyPhone from './types/app/bsky/contact/verifyPhone.js'
|
|
34
|
+
import * as AppBskyDraftCreateDraft from './types/app/bsky/draft/createDraft.js'
|
|
35
|
+
import * as AppBskyDraftDeleteDraft from './types/app/bsky/draft/deleteDraft.js'
|
|
36
|
+
import * as AppBskyDraftGetDrafts from './types/app/bsky/draft/getDrafts.js'
|
|
37
|
+
import * as AppBskyDraftUpdateDraft from './types/app/bsky/draft/updateDraft.js'
|
|
34
38
|
import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator.js'
|
|
35
39
|
import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds.js'
|
|
36
40
|
import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes.js'
|
|
@@ -406,6 +410,7 @@ export class AppBskyNS {
|
|
|
406
410
|
ageassurance: AppBskyAgeassuranceNS
|
|
407
411
|
bookmark: AppBskyBookmarkNS
|
|
408
412
|
contact: AppBskyContactNS
|
|
413
|
+
draft: AppBskyDraftNS
|
|
409
414
|
embed: AppBskyEmbedNS
|
|
410
415
|
feed: AppBskyFeedNS
|
|
411
416
|
graph: AppBskyGraphNS
|
|
@@ -421,6 +426,7 @@ export class AppBskyNS {
|
|
|
421
426
|
this.ageassurance = new AppBskyAgeassuranceNS(server)
|
|
422
427
|
this.bookmark = new AppBskyBookmarkNS(server)
|
|
423
428
|
this.contact = new AppBskyContactNS(server)
|
|
429
|
+
this.draft = new AppBskyDraftNS(server)
|
|
424
430
|
this.embed = new AppBskyEmbedNS(server)
|
|
425
431
|
this.feed = new AppBskyFeedNS(server)
|
|
426
432
|
this.graph = new AppBskyGraphNS(server)
|
|
@@ -716,6 +722,62 @@ export class AppBskyContactNS {
|
|
|
716
722
|
}
|
|
717
723
|
}
|
|
718
724
|
|
|
725
|
+
export class AppBskyDraftNS {
|
|
726
|
+
_server: Server
|
|
727
|
+
|
|
728
|
+
constructor(server: Server) {
|
|
729
|
+
this._server = server
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
createDraft<A extends Auth = void>(
|
|
733
|
+
cfg: MethodConfigOrHandler<
|
|
734
|
+
A,
|
|
735
|
+
AppBskyDraftCreateDraft.QueryParams,
|
|
736
|
+
AppBskyDraftCreateDraft.HandlerInput,
|
|
737
|
+
AppBskyDraftCreateDraft.HandlerOutput
|
|
738
|
+
>,
|
|
739
|
+
) {
|
|
740
|
+
const nsid = 'app.bsky.draft.createDraft' // @ts-ignore
|
|
741
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
deleteDraft<A extends Auth = void>(
|
|
745
|
+
cfg: MethodConfigOrHandler<
|
|
746
|
+
A,
|
|
747
|
+
AppBskyDraftDeleteDraft.QueryParams,
|
|
748
|
+
AppBskyDraftDeleteDraft.HandlerInput,
|
|
749
|
+
AppBskyDraftDeleteDraft.HandlerOutput
|
|
750
|
+
>,
|
|
751
|
+
) {
|
|
752
|
+
const nsid = 'app.bsky.draft.deleteDraft' // @ts-ignore
|
|
753
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
getDrafts<A extends Auth = void>(
|
|
757
|
+
cfg: MethodConfigOrHandler<
|
|
758
|
+
A,
|
|
759
|
+
AppBskyDraftGetDrafts.QueryParams,
|
|
760
|
+
AppBskyDraftGetDrafts.HandlerInput,
|
|
761
|
+
AppBskyDraftGetDrafts.HandlerOutput
|
|
762
|
+
>,
|
|
763
|
+
) {
|
|
764
|
+
const nsid = 'app.bsky.draft.getDrafts' // @ts-ignore
|
|
765
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
updateDraft<A extends Auth = void>(
|
|
769
|
+
cfg: MethodConfigOrHandler<
|
|
770
|
+
A,
|
|
771
|
+
AppBskyDraftUpdateDraft.QueryParams,
|
|
772
|
+
AppBskyDraftUpdateDraft.HandlerInput,
|
|
773
|
+
AppBskyDraftUpdateDraft.HandlerOutput
|
|
774
|
+
>,
|
|
775
|
+
) {
|
|
776
|
+
const nsid = 'app.bsky.draft.updateDraft' // @ts-ignore
|
|
777
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
719
781
|
export class AppBskyEmbedNS {
|
|
720
782
|
_server: Server
|
|
721
783
|
|
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,375 @@ 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
|
+
posts: {
|
|
2330
|
+
description: 'Array of draft posts that compose this draft.',
|
|
2331
|
+
type: 'array',
|
|
2332
|
+
minLength: 1,
|
|
2333
|
+
maxLength: 100,
|
|
2334
|
+
items: {
|
|
2335
|
+
type: 'ref',
|
|
2336
|
+
ref: 'lex:app.bsky.draft.defs#draftPost',
|
|
2337
|
+
},
|
|
2338
|
+
},
|
|
2339
|
+
langs: {
|
|
2340
|
+
type: 'array',
|
|
2341
|
+
description:
|
|
2342
|
+
'Indicates human language of posts primary text content.',
|
|
2343
|
+
maxLength: 3,
|
|
2344
|
+
items: {
|
|
2345
|
+
type: 'string',
|
|
2346
|
+
format: 'language',
|
|
2347
|
+
},
|
|
2348
|
+
},
|
|
2349
|
+
postgateEmbeddingRules: {
|
|
2350
|
+
description:
|
|
2351
|
+
'Embedding rules for the postgates to be created when this draft is published.',
|
|
2352
|
+
type: 'array',
|
|
2353
|
+
maxLength: 5,
|
|
2354
|
+
items: {
|
|
2355
|
+
type: 'union',
|
|
2356
|
+
refs: ['lex:app.bsky.feed.postgate#disableRule'],
|
|
2357
|
+
},
|
|
2358
|
+
},
|
|
2359
|
+
threadgateAllow: {
|
|
2360
|
+
description:
|
|
2361
|
+
'Allow-rules for the threadgate to be created when this draft is published.',
|
|
2362
|
+
type: 'array',
|
|
2363
|
+
maxLength: 5,
|
|
2364
|
+
items: {
|
|
2365
|
+
type: 'union',
|
|
2366
|
+
refs: [
|
|
2367
|
+
'lex:app.bsky.feed.threadgate#mentionRule',
|
|
2368
|
+
'lex:app.bsky.feed.threadgate#followerRule',
|
|
2369
|
+
'lex:app.bsky.feed.threadgate#followingRule',
|
|
2370
|
+
'lex:app.bsky.feed.threadgate#listRule',
|
|
2371
|
+
],
|
|
2372
|
+
},
|
|
2373
|
+
},
|
|
2374
|
+
},
|
|
2375
|
+
},
|
|
2376
|
+
draftPost: {
|
|
2377
|
+
description: 'One of the posts that compose a draft.',
|
|
2378
|
+
type: 'object',
|
|
2379
|
+
required: ['text'],
|
|
2380
|
+
properties: {
|
|
2381
|
+
text: {
|
|
2382
|
+
type: 'string',
|
|
2383
|
+
maxLength: 3000,
|
|
2384
|
+
maxGraphemes: 300,
|
|
2385
|
+
description: 'The primary post content.',
|
|
2386
|
+
},
|
|
2387
|
+
labels: {
|
|
2388
|
+
type: 'union',
|
|
2389
|
+
description:
|
|
2390
|
+
'Self-label values for this post. Effectively content warnings.',
|
|
2391
|
+
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
2392
|
+
},
|
|
2393
|
+
embedImages: {
|
|
2394
|
+
type: 'array',
|
|
2395
|
+
items: {
|
|
2396
|
+
type: 'ref',
|
|
2397
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedImage',
|
|
2398
|
+
},
|
|
2399
|
+
maxLength: 4,
|
|
2400
|
+
},
|
|
2401
|
+
embedVideos: {
|
|
2402
|
+
type: 'array',
|
|
2403
|
+
items: {
|
|
2404
|
+
type: 'ref',
|
|
2405
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedVideo',
|
|
2406
|
+
},
|
|
2407
|
+
maxLength: 1,
|
|
2408
|
+
},
|
|
2409
|
+
embedExternals: {
|
|
2410
|
+
type: 'array',
|
|
2411
|
+
items: {
|
|
2412
|
+
type: 'ref',
|
|
2413
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedExternal',
|
|
2414
|
+
},
|
|
2415
|
+
maxLength: 1,
|
|
2416
|
+
},
|
|
2417
|
+
embedRecords: {
|
|
2418
|
+
type: 'array',
|
|
2419
|
+
items: {
|
|
2420
|
+
type: 'ref',
|
|
2421
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedRecord',
|
|
2422
|
+
},
|
|
2423
|
+
maxLength: 1,
|
|
2424
|
+
},
|
|
2425
|
+
},
|
|
2426
|
+
},
|
|
2427
|
+
draftView: {
|
|
2428
|
+
description: 'View to present drafts data to users.',
|
|
2429
|
+
type: 'object',
|
|
2430
|
+
required: ['id', 'draft', 'createdAt', 'updatedAt'],
|
|
2431
|
+
properties: {
|
|
2432
|
+
id: {
|
|
2433
|
+
description: 'A TID to be used as a draft identifier.',
|
|
2434
|
+
type: 'string',
|
|
2435
|
+
format: 'tid',
|
|
2436
|
+
},
|
|
2437
|
+
draft: {
|
|
2438
|
+
type: 'ref',
|
|
2439
|
+
ref: 'lex:app.bsky.draft.defs#draft',
|
|
2440
|
+
},
|
|
2441
|
+
createdAt: {
|
|
2442
|
+
description: 'The time the draft was created.',
|
|
2443
|
+
type: 'string',
|
|
2444
|
+
format: 'datetime',
|
|
2445
|
+
},
|
|
2446
|
+
updatedAt: {
|
|
2447
|
+
description: 'The time the draft was last updated.',
|
|
2448
|
+
type: 'string',
|
|
2449
|
+
format: 'datetime',
|
|
2450
|
+
},
|
|
2451
|
+
},
|
|
2452
|
+
},
|
|
2453
|
+
draftEmbedLocalRef: {
|
|
2454
|
+
type: 'object',
|
|
2455
|
+
required: ['path'],
|
|
2456
|
+
properties: {
|
|
2457
|
+
path: {
|
|
2458
|
+
type: 'string',
|
|
2459
|
+
description:
|
|
2460
|
+
'Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.',
|
|
2461
|
+
minLength: 1,
|
|
2462
|
+
maxLength: 1024,
|
|
2463
|
+
},
|
|
2464
|
+
},
|
|
2465
|
+
},
|
|
2466
|
+
draftEmbedCaption: {
|
|
2467
|
+
type: 'object',
|
|
2468
|
+
required: ['lang', 'content'],
|
|
2469
|
+
properties: {
|
|
2470
|
+
lang: {
|
|
2471
|
+
type: 'string',
|
|
2472
|
+
format: 'language',
|
|
2473
|
+
},
|
|
2474
|
+
content: {
|
|
2475
|
+
type: 'string',
|
|
2476
|
+
maxLength: 10000,
|
|
2477
|
+
},
|
|
2478
|
+
},
|
|
2479
|
+
},
|
|
2480
|
+
draftEmbedImage: {
|
|
2481
|
+
type: 'object',
|
|
2482
|
+
required: ['localRef'],
|
|
2483
|
+
properties: {
|
|
2484
|
+
localRef: {
|
|
2485
|
+
type: 'ref',
|
|
2486
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
|
|
2487
|
+
},
|
|
2488
|
+
alt: {
|
|
2489
|
+
type: 'string',
|
|
2490
|
+
maxGraphemes: 2000,
|
|
2491
|
+
},
|
|
2492
|
+
},
|
|
2493
|
+
},
|
|
2494
|
+
draftEmbedVideo: {
|
|
2495
|
+
type: 'object',
|
|
2496
|
+
required: ['localRef'],
|
|
2497
|
+
properties: {
|
|
2498
|
+
localRef: {
|
|
2499
|
+
type: 'ref',
|
|
2500
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedLocalRef',
|
|
2501
|
+
},
|
|
2502
|
+
alt: {
|
|
2503
|
+
type: 'string',
|
|
2504
|
+
maxGraphemes: 2000,
|
|
2505
|
+
},
|
|
2506
|
+
captions: {
|
|
2507
|
+
type: 'array',
|
|
2508
|
+
items: {
|
|
2509
|
+
type: 'ref',
|
|
2510
|
+
ref: 'lex:app.bsky.draft.defs#draftEmbedCaption',
|
|
2511
|
+
},
|
|
2512
|
+
maxLength: 20,
|
|
2513
|
+
},
|
|
2514
|
+
},
|
|
2515
|
+
},
|
|
2516
|
+
draftEmbedExternal: {
|
|
2517
|
+
type: 'object',
|
|
2518
|
+
required: ['uri'],
|
|
2519
|
+
properties: {
|
|
2520
|
+
uri: {
|
|
2521
|
+
type: 'string',
|
|
2522
|
+
format: 'uri',
|
|
2523
|
+
},
|
|
2524
|
+
},
|
|
2525
|
+
},
|
|
2526
|
+
draftEmbedRecord: {
|
|
2527
|
+
type: 'object',
|
|
2528
|
+
required: ['record'],
|
|
2529
|
+
properties: {
|
|
2530
|
+
record: {
|
|
2531
|
+
type: 'ref',
|
|
2532
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
2533
|
+
},
|
|
2534
|
+
},
|
|
2535
|
+
},
|
|
2536
|
+
},
|
|
2537
|
+
},
|
|
2538
|
+
AppBskyDraftDeleteDraft: {
|
|
2539
|
+
lexicon: 1,
|
|
2540
|
+
id: 'app.bsky.draft.deleteDraft',
|
|
2541
|
+
defs: {
|
|
2542
|
+
main: {
|
|
2543
|
+
type: 'procedure',
|
|
2544
|
+
description: 'Deletes a draft by ID. Requires authentication.',
|
|
2545
|
+
input: {
|
|
2546
|
+
encoding: 'application/json',
|
|
2547
|
+
schema: {
|
|
2548
|
+
type: 'object',
|
|
2549
|
+
required: ['id'],
|
|
2550
|
+
properties: {
|
|
2551
|
+
id: {
|
|
2552
|
+
type: 'string',
|
|
2553
|
+
format: 'tid',
|
|
2554
|
+
},
|
|
2555
|
+
},
|
|
2556
|
+
},
|
|
2557
|
+
},
|
|
2558
|
+
},
|
|
2559
|
+
},
|
|
2560
|
+
},
|
|
2561
|
+
AppBskyDraftGetDrafts: {
|
|
2562
|
+
lexicon: 1,
|
|
2563
|
+
id: 'app.bsky.draft.getDrafts',
|
|
2564
|
+
defs: {
|
|
2565
|
+
main: {
|
|
2566
|
+
type: 'query',
|
|
2567
|
+
description: 'Gets views of user drafts. Requires authentication.',
|
|
2568
|
+
parameters: {
|
|
2569
|
+
type: 'params',
|
|
2570
|
+
properties: {
|
|
2571
|
+
limit: {
|
|
2572
|
+
type: 'integer',
|
|
2573
|
+
minimum: 1,
|
|
2574
|
+
maximum: 100,
|
|
2575
|
+
default: 50,
|
|
2576
|
+
},
|
|
2577
|
+
cursor: {
|
|
2578
|
+
type: 'string',
|
|
2579
|
+
},
|
|
2580
|
+
},
|
|
2581
|
+
},
|
|
2582
|
+
output: {
|
|
2583
|
+
encoding: 'application/json',
|
|
2584
|
+
schema: {
|
|
2585
|
+
type: 'object',
|
|
2586
|
+
required: ['drafts'],
|
|
2587
|
+
properties: {
|
|
2588
|
+
cursor: {
|
|
2589
|
+
type: 'string',
|
|
2590
|
+
},
|
|
2591
|
+
drafts: {
|
|
2592
|
+
type: 'array',
|
|
2593
|
+
items: {
|
|
2594
|
+
type: 'ref',
|
|
2595
|
+
ref: 'lex:app.bsky.draft.defs#draftView',
|
|
2596
|
+
},
|
|
2597
|
+
},
|
|
2598
|
+
},
|
|
2599
|
+
},
|
|
2600
|
+
},
|
|
2601
|
+
},
|
|
2602
|
+
},
|
|
2603
|
+
},
|
|
2604
|
+
AppBskyDraftUpdateDraft: {
|
|
2605
|
+
lexicon: 1,
|
|
2606
|
+
id: 'app.bsky.draft.updateDraft',
|
|
2607
|
+
defs: {
|
|
2608
|
+
main: {
|
|
2609
|
+
type: 'procedure',
|
|
2610
|
+
description:
|
|
2611
|
+
"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.",
|
|
2612
|
+
input: {
|
|
2613
|
+
encoding: 'application/json',
|
|
2614
|
+
schema: {
|
|
2615
|
+
type: 'object',
|
|
2616
|
+
required: ['draft'],
|
|
2617
|
+
properties: {
|
|
2618
|
+
draft: {
|
|
2619
|
+
type: 'ref',
|
|
2620
|
+
ref: 'lex:app.bsky.draft.defs#draftWithId',
|
|
2621
|
+
},
|
|
2622
|
+
},
|
|
2623
|
+
},
|
|
2624
|
+
},
|
|
2625
|
+
},
|
|
2626
|
+
},
|
|
2627
|
+
},
|
|
2203
2628
|
AppBskyEmbedDefs: {
|
|
2204
2629
|
lexicon: 1,
|
|
2205
2630
|
id: 'app.bsky.embed.defs',
|
|
@@ -2593,6 +3018,11 @@ export const schemaDict = {
|
|
|
2593
3018
|
type: 'ref',
|
|
2594
3019
|
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
2595
3020
|
},
|
|
3021
|
+
presentation: {
|
|
3022
|
+
type: 'string',
|
|
3023
|
+
description: 'A hint to the client about how to present the video.',
|
|
3024
|
+
knownValues: ['default', 'gif'],
|
|
3025
|
+
},
|
|
2596
3026
|
},
|
|
2597
3027
|
},
|
|
2598
3028
|
caption: {
|
|
@@ -2635,6 +3065,11 @@ export const schemaDict = {
|
|
|
2635
3065
|
type: 'ref',
|
|
2636
3066
|
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
2637
3067
|
},
|
|
3068
|
+
presentation: {
|
|
3069
|
+
type: 'string',
|
|
3070
|
+
description: 'A hint to the client about how to present the video.',
|
|
3071
|
+
knownValues: ['default', 'gif'],
|
|
3072
|
+
},
|
|
2638
3073
|
},
|
|
2639
3074
|
},
|
|
2640
3075
|
},
|
|
@@ -8012,6 +8447,11 @@ export const schemaDict = {
|
|
|
8012
8447
|
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
8013
8448
|
},
|
|
8014
8449
|
},
|
|
8450
|
+
recId: {
|
|
8451
|
+
type: 'string',
|
|
8452
|
+
description:
|
|
8453
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8454
|
+
},
|
|
8015
8455
|
},
|
|
8016
8456
|
},
|
|
8017
8457
|
},
|
|
@@ -8060,6 +8500,11 @@ export const schemaDict = {
|
|
|
8060
8500
|
format: 'did',
|
|
8061
8501
|
},
|
|
8062
8502
|
},
|
|
8503
|
+
recId: {
|
|
8504
|
+
type: 'string',
|
|
8505
|
+
description:
|
|
8506
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8507
|
+
},
|
|
8063
8508
|
},
|
|
8064
8509
|
},
|
|
8065
8510
|
},
|
|
@@ -13019,7 +13464,16 @@ export const schemaDict = {
|
|
|
13019
13464
|
defs: {
|
|
13020
13465
|
main: {
|
|
13021
13466
|
type: 'procedure',
|
|
13022
|
-
description:
|
|
13467
|
+
description:
|
|
13468
|
+
"Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",
|
|
13469
|
+
errors: [
|
|
13470
|
+
{
|
|
13471
|
+
name: 'InvalidToken',
|
|
13472
|
+
},
|
|
13473
|
+
{
|
|
13474
|
+
name: 'ExpiredToken',
|
|
13475
|
+
},
|
|
13476
|
+
],
|
|
13023
13477
|
},
|
|
13024
13478
|
},
|
|
13025
13479
|
},
|
|
@@ -13218,6 +13672,9 @@ export const schemaDict = {
|
|
|
13218
13672
|
type: 'string',
|
|
13219
13673
|
format: 'did',
|
|
13220
13674
|
},
|
|
13675
|
+
didDoc: {
|
|
13676
|
+
type: 'unknown',
|
|
13677
|
+
},
|
|
13221
13678
|
email: {
|
|
13222
13679
|
type: 'string',
|
|
13223
13680
|
},
|
|
@@ -13227,9 +13684,6 @@ export const schemaDict = {
|
|
|
13227
13684
|
emailAuthFactor: {
|
|
13228
13685
|
type: 'boolean',
|
|
13229
13686
|
},
|
|
13230
|
-
didDoc: {
|
|
13231
|
-
type: 'unknown',
|
|
13232
|
-
},
|
|
13233
13687
|
active: {
|
|
13234
13688
|
type: 'boolean',
|
|
13235
13689
|
},
|
|
@@ -13323,6 +13777,15 @@ export const schemaDict = {
|
|
|
13323
13777
|
didDoc: {
|
|
13324
13778
|
type: 'unknown',
|
|
13325
13779
|
},
|
|
13780
|
+
email: {
|
|
13781
|
+
type: 'string',
|
|
13782
|
+
},
|
|
13783
|
+
emailConfirmed: {
|
|
13784
|
+
type: 'boolean',
|
|
13785
|
+
},
|
|
13786
|
+
emailAuthFactor: {
|
|
13787
|
+
type: 'boolean',
|
|
13788
|
+
},
|
|
13326
13789
|
active: {
|
|
13327
13790
|
type: 'boolean',
|
|
13328
13791
|
},
|
|
@@ -13339,6 +13802,12 @@ export const schemaDict = {
|
|
|
13339
13802
|
{
|
|
13340
13803
|
name: 'AccountTakedown',
|
|
13341
13804
|
},
|
|
13805
|
+
{
|
|
13806
|
+
name: 'InvalidToken',
|
|
13807
|
+
},
|
|
13808
|
+
{
|
|
13809
|
+
name: 'ExpiredToken',
|
|
13810
|
+
},
|
|
13342
13811
|
],
|
|
13343
13812
|
},
|
|
13344
13813
|
},
|
|
@@ -20076,6 +20545,11 @@ export const ids = {
|
|
|
20076
20545
|
AppBskyContactStartPhoneVerification:
|
|
20077
20546
|
'app.bsky.contact.startPhoneVerification',
|
|
20078
20547
|
AppBskyContactVerifyPhone: 'app.bsky.contact.verifyPhone',
|
|
20548
|
+
AppBskyDraftCreateDraft: 'app.bsky.draft.createDraft',
|
|
20549
|
+
AppBskyDraftDefs: 'app.bsky.draft.defs',
|
|
20550
|
+
AppBskyDraftDeleteDraft: 'app.bsky.draft.deleteDraft',
|
|
20551
|
+
AppBskyDraftGetDrafts: 'app.bsky.draft.getDrafts',
|
|
20552
|
+
AppBskyDraftUpdateDraft: 'app.bsky.draft.updateDraft',
|
|
20079
20553
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
20080
20554
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
20081
20555
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|