@atproto/api 0.6.11 → 0.6.13
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 +8 -0
- package/dist/bsky-agent.d.ts +8 -0
- package/dist/client/index.d.ts +58 -8
- package/dist/client/lexicons.d.ts +259 -29
- package/dist/client/types/app/bsky/feed/defs.d.ts +18 -0
- package/dist/client/types/app/bsky/feed/{getSavedFeeds.d.ts → getListFeed.d.ts} +6 -2
- package/dist/client/types/app/bsky/feed/threadgate.d.ts +26 -0
- package/dist/client/types/app/bsky/graph/defs.d.ts +3 -1
- package/dist/client/types/app/bsky/{notification/getCount.d.ts → graph/getSuggestedFollowsByActor.d.ts} +3 -1
- package/dist/index.js +598 -177
- package/dist/index.js.map +3 -3
- package/dist/types.d.ts +1 -0
- package/package.json +2 -2
- package/src/bsky-agent.ts +61 -11
- package/src/client/index.ts +183 -23
- package/src/client/lexicons.ts +272 -30
- package/src/client/types/app/bsky/feed/defs.ts +40 -0
- package/src/client/types/app/bsky/feed/getListFeed.ts +46 -0
- package/src/client/types/app/bsky/feed/threadgate.ts +80 -0
- package/src/client/types/app/bsky/graph/defs.ts +7 -1
- package/src/client/types/app/bsky/graph/getListBlocks.ts +38 -0
- package/src/client/types/{com/atproto/temp/upgradeRepoVersion.ts → app/bsky/graph/getSuggestedFollowsByActor.ts} +9 -6
- package/src/client/types/app/bsky/graph/listblock.ts +26 -0
- package/src/types.ts +1 -0
- package/tests/bsky-agent.test.ts +182 -0
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
- package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
- package/dist/client/types/app/bsky/feed/saveFeed.d.ts +0 -17
- package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
- package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
- package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
- package/dist/client/types/app/bsky/unspecced/registerPushNotification.d.ts +0 -16
- package/dist/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
- package/dist/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
- package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
- package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
- package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +0 -24
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
- package/dist/client/types/com/atproto/report/create.d.ts +0 -39
- package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
- package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
- package/dist/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +0 -20
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/client/types/com/atproto/temp/upgradeRepoVersion.d.ts +0 -18
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/sanitize.d.ts +0 -4
- package/dist/session.d.ts +0 -42
|
@@ -6,24 +6,27 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as AppBskyActorDefs from '../actor/defs'
|
|
9
10
|
|
|
10
|
-
export interface QueryParams {
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
actor: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type InputSchema = undefined
|
|
11
16
|
|
|
12
|
-
export interface
|
|
13
|
-
|
|
14
|
-
force?: boolean
|
|
17
|
+
export interface OutputSchema {
|
|
18
|
+
suggestions: AppBskyActorDefs.ProfileView[]
|
|
15
19
|
[k: string]: unknown
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export interface CallOptions {
|
|
19
23
|
headers?: Headers
|
|
20
|
-
qp?: QueryParams
|
|
21
|
-
encoding: 'application/json'
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export interface Response {
|
|
25
27
|
success: boolean
|
|
26
28
|
headers: Headers
|
|
29
|
+
data: OutputSchema
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
export function toKnownErr(e: any) {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { isObj, hasProp } from '../../../../util'
|
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
|
7
|
+
import { CID } from 'multiformats/cid'
|
|
8
|
+
|
|
9
|
+
export interface Record {
|
|
10
|
+
subject: string
|
|
11
|
+
createdAt: string
|
|
12
|
+
[k: string]: unknown
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function isRecord(v: unknown): v is Record {
|
|
16
|
+
return (
|
|
17
|
+
isObj(v) &&
|
|
18
|
+
hasProp(v, '$type') &&
|
|
19
|
+
(v.$type === 'app.bsky.graph.listblock#main' ||
|
|
20
|
+
v.$type === 'app.bsky.graph.listblock')
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function validateRecord(v: unknown): ValidationResult {
|
|
25
|
+
return lexicons.validate('app.bsky.graph.listblock#main', v)
|
|
26
|
+
}
|
package/src/types.ts
CHANGED
package/tests/bsky-agent.test.ts
CHANGED
|
@@ -215,6 +215,7 @@ describe('agent', () => {
|
|
|
215
215
|
feeds: { pinned: undefined, saved: undefined },
|
|
216
216
|
adultContentEnabled: false,
|
|
217
217
|
contentLabels: {},
|
|
218
|
+
birthDate: undefined,
|
|
218
219
|
})
|
|
219
220
|
|
|
220
221
|
await agent.setAdultContentEnabled(true)
|
|
@@ -222,6 +223,7 @@ describe('agent', () => {
|
|
|
222
223
|
feeds: { pinned: undefined, saved: undefined },
|
|
223
224
|
adultContentEnabled: true,
|
|
224
225
|
contentLabels: {},
|
|
226
|
+
birthDate: undefined,
|
|
225
227
|
})
|
|
226
228
|
|
|
227
229
|
await agent.setAdultContentEnabled(false)
|
|
@@ -229,6 +231,7 @@ describe('agent', () => {
|
|
|
229
231
|
feeds: { pinned: undefined, saved: undefined },
|
|
230
232
|
adultContentEnabled: false,
|
|
231
233
|
contentLabels: {},
|
|
234
|
+
birthDate: undefined,
|
|
232
235
|
})
|
|
233
236
|
|
|
234
237
|
await agent.setContentLabelPref('impersonation', 'warn')
|
|
@@ -238,6 +241,7 @@ describe('agent', () => {
|
|
|
238
241
|
contentLabels: {
|
|
239
242
|
impersonation: 'warn',
|
|
240
243
|
},
|
|
244
|
+
birthDate: undefined,
|
|
241
245
|
})
|
|
242
246
|
|
|
243
247
|
await agent.setContentLabelPref('spam', 'show') // will convert to 'ignore'
|
|
@@ -249,6 +253,7 @@ describe('agent', () => {
|
|
|
249
253
|
impersonation: 'hide',
|
|
250
254
|
spam: 'ignore',
|
|
251
255
|
},
|
|
256
|
+
birthDate: undefined,
|
|
252
257
|
})
|
|
253
258
|
|
|
254
259
|
await agent.addSavedFeed('at://bob.com/app.bsky.feed.generator/fake')
|
|
@@ -262,6 +267,7 @@ describe('agent', () => {
|
|
|
262
267
|
impersonation: 'hide',
|
|
263
268
|
spam: 'ignore',
|
|
264
269
|
},
|
|
270
|
+
birthDate: undefined,
|
|
265
271
|
})
|
|
266
272
|
|
|
267
273
|
await agent.addPinnedFeed('at://bob.com/app.bsky.feed.generator/fake')
|
|
@@ -275,6 +281,7 @@ describe('agent', () => {
|
|
|
275
281
|
impersonation: 'hide',
|
|
276
282
|
spam: 'ignore',
|
|
277
283
|
},
|
|
284
|
+
birthDate: undefined,
|
|
278
285
|
})
|
|
279
286
|
|
|
280
287
|
await agent.removePinnedFeed('at://bob.com/app.bsky.feed.generator/fake')
|
|
@@ -288,6 +295,7 @@ describe('agent', () => {
|
|
|
288
295
|
impersonation: 'hide',
|
|
289
296
|
spam: 'ignore',
|
|
290
297
|
},
|
|
298
|
+
birthDate: undefined,
|
|
291
299
|
})
|
|
292
300
|
|
|
293
301
|
await agent.removeSavedFeed('at://bob.com/app.bsky.feed.generator/fake')
|
|
@@ -301,6 +309,7 @@ describe('agent', () => {
|
|
|
301
309
|
impersonation: 'hide',
|
|
302
310
|
spam: 'ignore',
|
|
303
311
|
},
|
|
312
|
+
birthDate: undefined,
|
|
304
313
|
})
|
|
305
314
|
|
|
306
315
|
await agent.addPinnedFeed('at://bob.com/app.bsky.feed.generator/fake')
|
|
@@ -314,6 +323,7 @@ describe('agent', () => {
|
|
|
314
323
|
impersonation: 'hide',
|
|
315
324
|
spam: 'ignore',
|
|
316
325
|
},
|
|
326
|
+
birthDate: undefined,
|
|
317
327
|
})
|
|
318
328
|
|
|
319
329
|
await agent.addPinnedFeed('at://bob.com/app.bsky.feed.generator/fake2')
|
|
@@ -333,6 +343,7 @@ describe('agent', () => {
|
|
|
333
343
|
impersonation: 'hide',
|
|
334
344
|
spam: 'ignore',
|
|
335
345
|
},
|
|
346
|
+
birthDate: undefined,
|
|
336
347
|
})
|
|
337
348
|
|
|
338
349
|
await agent.removeSavedFeed('at://bob.com/app.bsky.feed.generator/fake')
|
|
@@ -346,7 +357,178 @@ describe('agent', () => {
|
|
|
346
357
|
impersonation: 'hide',
|
|
347
358
|
spam: 'ignore',
|
|
348
359
|
},
|
|
360
|
+
birthDate: undefined,
|
|
349
361
|
})
|
|
362
|
+
|
|
363
|
+
await agent.setPersonalDetails({ birthDate: '2023-09-11T18:05:42.556Z' })
|
|
364
|
+
await expect(agent.getPreferences()).resolves.toStrictEqual({
|
|
365
|
+
feeds: {
|
|
366
|
+
pinned: ['at://bob.com/app.bsky.feed.generator/fake2'],
|
|
367
|
+
saved: ['at://bob.com/app.bsky.feed.generator/fake2'],
|
|
368
|
+
},
|
|
369
|
+
adultContentEnabled: false,
|
|
370
|
+
contentLabels: {
|
|
371
|
+
impersonation: 'hide',
|
|
372
|
+
spam: 'ignore',
|
|
373
|
+
},
|
|
374
|
+
birthDate: new Date('2023-09-11T18:05:42.556Z'),
|
|
375
|
+
})
|
|
376
|
+
})
|
|
377
|
+
|
|
378
|
+
it('resolves duplicates correctly', async () => {
|
|
379
|
+
const agent = new BskyAgent({ service: server.url })
|
|
380
|
+
|
|
381
|
+
await agent.createAccount({
|
|
382
|
+
handle: 'user6.test',
|
|
383
|
+
email: 'user6@test.com',
|
|
384
|
+
password: 'password',
|
|
385
|
+
})
|
|
386
|
+
|
|
387
|
+
await agent.app.bsky.actor.putPreferences({
|
|
388
|
+
preferences: [
|
|
389
|
+
{
|
|
390
|
+
$type: 'app.bsky.actor.defs#contentLabelPref',
|
|
391
|
+
label: 'nsfw',
|
|
392
|
+
visibility: 'show',
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
$type: 'app.bsky.actor.defs#contentLabelPref',
|
|
396
|
+
label: 'nsfw',
|
|
397
|
+
visibility: 'hide',
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
$type: 'app.bsky.actor.defs#contentLabelPref',
|
|
401
|
+
label: 'nsfw',
|
|
402
|
+
visibility: 'show',
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
$type: 'app.bsky.actor.defs#contentLabelPref',
|
|
406
|
+
label: 'nsfw',
|
|
407
|
+
visibility: 'warn',
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
$type: 'app.bsky.actor.defs#adultContentPref',
|
|
411
|
+
enabled: true,
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
$type: 'app.bsky.actor.defs#adultContentPref',
|
|
415
|
+
enabled: false,
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
$type: 'app.bsky.actor.defs#adultContentPref',
|
|
419
|
+
enabled: true,
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
$type: 'app.bsky.actor.defs#savedFeedsPref',
|
|
423
|
+
pinned: [
|
|
424
|
+
'at://bob.com/app.bsky.feed.generator/fake',
|
|
425
|
+
'at://bob.com/app.bsky.feed.generator/fake2',
|
|
426
|
+
],
|
|
427
|
+
saved: [
|
|
428
|
+
'at://bob.com/app.bsky.feed.generator/fake',
|
|
429
|
+
'at://bob.com/app.bsky.feed.generator/fake2',
|
|
430
|
+
],
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
$type: 'app.bsky.actor.defs#savedFeedsPref',
|
|
434
|
+
pinned: [],
|
|
435
|
+
saved: [],
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
$type: 'app.bsky.actor.defs#personalDetailsPref',
|
|
439
|
+
birthDate: '2023-09-11T18:05:42.556Z',
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
$type: 'app.bsky.actor.defs#personalDetailsPref',
|
|
443
|
+
birthDate: '2021-09-11T18:05:42.556Z',
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
})
|
|
447
|
+
await expect(agent.getPreferences()).resolves.toStrictEqual({
|
|
448
|
+
feeds: {
|
|
449
|
+
pinned: [],
|
|
450
|
+
saved: [],
|
|
451
|
+
},
|
|
452
|
+
adultContentEnabled: true,
|
|
453
|
+
contentLabels: {
|
|
454
|
+
nsfw: 'warn',
|
|
455
|
+
},
|
|
456
|
+
birthDate: new Date('2021-09-11T18:05:42.556Z'),
|
|
457
|
+
})
|
|
458
|
+
|
|
459
|
+
await agent.setAdultContentEnabled(false)
|
|
460
|
+
await expect(agent.getPreferences()).resolves.toStrictEqual({
|
|
461
|
+
feeds: {
|
|
462
|
+
pinned: [],
|
|
463
|
+
saved: [],
|
|
464
|
+
},
|
|
465
|
+
adultContentEnabled: false,
|
|
466
|
+
contentLabels: {
|
|
467
|
+
nsfw: 'warn',
|
|
468
|
+
},
|
|
469
|
+
birthDate: new Date('2021-09-11T18:05:42.556Z'),
|
|
470
|
+
})
|
|
471
|
+
|
|
472
|
+
await agent.setContentLabelPref('nsfw', 'hide')
|
|
473
|
+
await expect(agent.getPreferences()).resolves.toStrictEqual({
|
|
474
|
+
feeds: {
|
|
475
|
+
pinned: [],
|
|
476
|
+
saved: [],
|
|
477
|
+
},
|
|
478
|
+
adultContentEnabled: false,
|
|
479
|
+
contentLabels: {
|
|
480
|
+
nsfw: 'hide',
|
|
481
|
+
},
|
|
482
|
+
birthDate: new Date('2021-09-11T18:05:42.556Z'),
|
|
483
|
+
})
|
|
484
|
+
|
|
485
|
+
await agent.addPinnedFeed('at://bob.com/app.bsky.feed.generator/fake')
|
|
486
|
+
await expect(agent.getPreferences()).resolves.toStrictEqual({
|
|
487
|
+
feeds: {
|
|
488
|
+
pinned: ['at://bob.com/app.bsky.feed.generator/fake'],
|
|
489
|
+
saved: ['at://bob.com/app.bsky.feed.generator/fake'],
|
|
490
|
+
},
|
|
491
|
+
adultContentEnabled: false,
|
|
492
|
+
contentLabels: {
|
|
493
|
+
nsfw: 'hide',
|
|
494
|
+
},
|
|
495
|
+
birthDate: new Date('2021-09-11T18:05:42.556Z'),
|
|
496
|
+
})
|
|
497
|
+
|
|
498
|
+
await agent.setPersonalDetails({ birthDate: '2023-09-11T18:05:42.556Z' })
|
|
499
|
+
await expect(agent.getPreferences()).resolves.toStrictEqual({
|
|
500
|
+
feeds: {
|
|
501
|
+
pinned: ['at://bob.com/app.bsky.feed.generator/fake'],
|
|
502
|
+
saved: ['at://bob.com/app.bsky.feed.generator/fake'],
|
|
503
|
+
},
|
|
504
|
+
adultContentEnabled: false,
|
|
505
|
+
contentLabels: {
|
|
506
|
+
nsfw: 'hide',
|
|
507
|
+
},
|
|
508
|
+
birthDate: new Date('2023-09-11T18:05:42.556Z'),
|
|
509
|
+
})
|
|
510
|
+
|
|
511
|
+
const res = await agent.app.bsky.actor.getPreferences()
|
|
512
|
+
await expect(res.data.preferences).toStrictEqual([
|
|
513
|
+
{
|
|
514
|
+
$type: 'app.bsky.actor.defs#adultContentPref',
|
|
515
|
+
enabled: false,
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
$type: 'app.bsky.actor.defs#contentLabelPref',
|
|
519
|
+
label: 'nsfw',
|
|
520
|
+
visibility: 'hide',
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
$type: 'app.bsky.actor.defs#savedFeedsPref',
|
|
524
|
+
pinned: ['at://bob.com/app.bsky.feed.generator/fake'],
|
|
525
|
+
saved: ['at://bob.com/app.bsky.feed.generator/fake'],
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
$type: 'app.bsky.actor.defs#personalDetailsPref',
|
|
529
|
+
birthDate: '2023-09-11T18:05:42.556Z',
|
|
530
|
+
},
|
|
531
|
+
])
|
|
350
532
|
})
|
|
351
533
|
})
|
|
352
534
|
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
-
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
}
|
|
5
|
-
export interface InputSchema {
|
|
6
|
-
handle: string;
|
|
7
|
-
recoveryKey?: string;
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface OutputSchema {
|
|
11
|
-
handle: string;
|
|
12
|
-
did: string;
|
|
13
|
-
declaration: AppBskySystemDeclRef.Main;
|
|
14
|
-
[k: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
export interface CallOptions {
|
|
17
|
-
headers?: Headers;
|
|
18
|
-
qp?: QueryParams;
|
|
19
|
-
encoding: 'application/json';
|
|
20
|
-
}
|
|
21
|
-
export interface Response {
|
|
22
|
-
success: boolean;
|
|
23
|
-
headers: Headers;
|
|
24
|
-
data: OutputSchema;
|
|
25
|
-
}
|
|
26
|
-
export declare class InvalidHandleError extends XRPCError {
|
|
27
|
-
constructor(src: XRPCError);
|
|
28
|
-
}
|
|
29
|
-
export declare class HandleNotAvailableError extends XRPCError {
|
|
30
|
-
constructor(src: XRPCError);
|
|
31
|
-
}
|
|
32
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
|
-
export interface Main {
|
|
4
|
-
did: string;
|
|
5
|
-
declarationCid: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare function isMain(v: unknown): v is Main;
|
|
9
|
-
export declare function validateMain(v: unknown): ValidationResult;
|
|
10
|
-
export interface WithInfo {
|
|
11
|
-
did: string;
|
|
12
|
-
declaration: AppBskySystemDeclRef.Main;
|
|
13
|
-
handle: string;
|
|
14
|
-
displayName?: string;
|
|
15
|
-
avatar?: string;
|
|
16
|
-
viewer?: ViewerState;
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export declare function isWithInfo(v: unknown): v is WithInfo;
|
|
20
|
-
export declare function validateWithInfo(v: unknown): ValidationResult;
|
|
21
|
-
export interface ViewerState {
|
|
22
|
-
muted?: boolean;
|
|
23
|
-
following?: string;
|
|
24
|
-
followedBy?: string;
|
|
25
|
-
[k: string]: unknown;
|
|
26
|
-
}
|
|
27
|
-
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
28
|
-
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as AppBskyActorProfile from './profile';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
term?: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
before?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare type InputSchema = undefined;
|
|
9
|
-
export interface OutputSchema {
|
|
10
|
-
cursor?: string;
|
|
11
|
-
users: AppBskyActorProfile.ViewBasic[];
|
|
12
|
-
[k: string]: unknown;
|
|
13
|
-
}
|
|
14
|
-
export interface CallOptions {
|
|
15
|
-
headers?: Headers;
|
|
16
|
-
}
|
|
17
|
-
export interface Response {
|
|
18
|
-
success: boolean;
|
|
19
|
-
headers: Headers;
|
|
20
|
-
data: OutputSchema;
|
|
21
|
-
}
|
|
22
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as AppBskyActorRef from './ref';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
term?: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare type InputSchema = undefined;
|
|
8
|
-
export interface OutputSchema {
|
|
9
|
-
users: AppBskyActorRef.WithInfo[];
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface CallOptions {
|
|
13
|
-
headers?: Headers;
|
|
14
|
-
}
|
|
15
|
-
export interface Response {
|
|
16
|
-
success: boolean;
|
|
17
|
-
headers: Headers;
|
|
18
|
-
data: OutputSchema;
|
|
19
|
-
}
|
|
20
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
-
import { BlobRef } from '@atproto/lexicon';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
}
|
|
5
|
-
export interface InputSchema {
|
|
6
|
-
displayName?: string;
|
|
7
|
-
description?: string | null;
|
|
8
|
-
avatar?: BlobRef | null;
|
|
9
|
-
banner?: BlobRef | null;
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface OutputSchema {
|
|
13
|
-
uri: string;
|
|
14
|
-
cid: string;
|
|
15
|
-
record: {};
|
|
16
|
-
[k: string]: unknown;
|
|
17
|
-
}
|
|
18
|
-
export interface CallOptions {
|
|
19
|
-
headers?: Headers;
|
|
20
|
-
qp?: QueryParams;
|
|
21
|
-
encoding: 'application/json';
|
|
22
|
-
}
|
|
23
|
-
export interface Response {
|
|
24
|
-
success: boolean;
|
|
25
|
-
headers: Headers;
|
|
26
|
-
data: OutputSchema;
|
|
27
|
-
}
|
|
28
|
-
export declare class InvalidBlobError extends XRPCError {
|
|
29
|
-
constructor(src: XRPCError);
|
|
30
|
-
}
|
|
31
|
-
export declare class BlobTooLargeError extends XRPCError {
|
|
32
|
-
constructor(src: XRPCError);
|
|
33
|
-
}
|
|
34
|
-
export declare class InvalidMimeTypeError extends XRPCError {
|
|
35
|
-
constructor(src: XRPCError);
|
|
36
|
-
}
|
|
37
|
-
export declare class InvalidImageDimensionsError extends XRPCError {
|
|
38
|
-
constructor(src: XRPCError);
|
|
39
|
-
}
|
|
40
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskyFeedPost from './post';
|
|
3
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
-
export interface Main {
|
|
5
|
-
post: AppBskyFeedPost.View;
|
|
6
|
-
reply?: ReplyRef;
|
|
7
|
-
reason?: ReasonRepost | {
|
|
8
|
-
$type: string;
|
|
9
|
-
[k: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
[k: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
export declare function isMain(v: unknown): v is Main;
|
|
14
|
-
export declare function validateMain(v: unknown): ValidationResult;
|
|
15
|
-
export interface ReplyRef {
|
|
16
|
-
root: AppBskyFeedPost.View;
|
|
17
|
-
parent: AppBskyFeedPost.View;
|
|
18
|
-
[k: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
export declare function isReplyRef(v: unknown): v is ReplyRef;
|
|
21
|
-
export declare function validateReplyRef(v: unknown): ValidationResult;
|
|
22
|
-
export interface ReasonRepost {
|
|
23
|
-
by: AppBskyActorRef.WithInfo;
|
|
24
|
-
indexedAt: string;
|
|
25
|
-
[k: string]: unknown;
|
|
26
|
-
}
|
|
27
|
-
export declare function isReasonRepost(v: unknown): v is ReasonRepost;
|
|
28
|
-
export declare function validateReasonRepost(v: unknown): ValidationResult;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
-
export interface QueryParams {
|
|
5
|
-
uri: string;
|
|
6
|
-
cid?: string;
|
|
7
|
-
direction?: 'up' | 'down';
|
|
8
|
-
limit?: number;
|
|
9
|
-
before?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type InputSchema = undefined;
|
|
12
|
-
export interface OutputSchema {
|
|
13
|
-
uri: string;
|
|
14
|
-
cid?: string;
|
|
15
|
-
cursor?: string;
|
|
16
|
-
votes: Vote[];
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export interface CallOptions {
|
|
20
|
-
headers?: Headers;
|
|
21
|
-
}
|
|
22
|
-
export interface Response {
|
|
23
|
-
success: boolean;
|
|
24
|
-
headers: Headers;
|
|
25
|
-
data: OutputSchema;
|
|
26
|
-
}
|
|
27
|
-
export declare function toKnownErr(e: any): any;
|
|
28
|
-
export interface Vote {
|
|
29
|
-
direction: 'up' | 'down';
|
|
30
|
-
indexedAt: string;
|
|
31
|
-
createdAt: string;
|
|
32
|
-
actor: AppBskyActorRef.WithInfo;
|
|
33
|
-
[k: string]: unknown;
|
|
34
|
-
}
|
|
35
|
-
export declare function isVote(v: unknown): v is Vote;
|
|
36
|
-
export declare function validateVote(v: unknown): ValidationResult;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export interface InputSchema {
|
|
5
|
-
feed: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface CallOptions {
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
qp?: QueryParams;
|
|
11
|
-
encoding: 'application/json';
|
|
12
|
-
}
|
|
13
|
-
export interface Response {
|
|
14
|
-
success: boolean;
|
|
15
|
-
headers: Headers;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
}
|
|
5
|
-
export interface InputSchema {
|
|
6
|
-
subject: ComAtprotoRepoStrongRef.Main;
|
|
7
|
-
direction: 'up' | 'down' | 'none';
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface OutputSchema {
|
|
11
|
-
upvote?: string;
|
|
12
|
-
downvote?: string;
|
|
13
|
-
[k: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
export interface CallOptions {
|
|
16
|
-
headers?: Headers;
|
|
17
|
-
qp?: QueryParams;
|
|
18
|
-
encoding: 'application/json';
|
|
19
|
-
}
|
|
20
|
-
export interface Response {
|
|
21
|
-
success: boolean;
|
|
22
|
-
headers: Headers;
|
|
23
|
-
data: OutputSchema;
|
|
24
|
-
}
|
|
25
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
-
export interface Record {
|
|
4
|
-
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
-
createdAt: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export interface InputSchema {
|
|
5
|
-
feed: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface CallOptions {
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
qp?: QueryParams;
|
|
11
|
-
encoding: 'application/json';
|
|
12
|
-
}
|
|
13
|
-
export interface Response {
|
|
14
|
-
success: boolean;
|
|
15
|
-
headers: Headers;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
-
export interface Record {
|
|
4
|
-
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
-
direction: 'up' | 'down';
|
|
6
|
-
createdAt: string;
|
|
7
|
-
[k: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MAIN = "app.bsky.graph.assertCreator#main";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MAIN = "app.bsky.graph.assertMember#main";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
-
export interface Record {
|
|
4
|
-
assertion: string;
|
|
5
|
-
subject: AppBskyActorRef.Main;
|
|
6
|
-
createdAt: string;
|
|
7
|
-
[k: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
4
|
-
export interface Record {
|
|
5
|
-
originator: AppBskyActorRef.Main;
|
|
6
|
-
assertion: ComAtprotoRepoStrongRef.Main;
|
|
7
|
-
createdAt: string;
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
11
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|