@atproto/api 0.19.4 → 0.19.6
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 +24 -0
- package/dist/agent.d.ts +6 -5
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +6 -2
- package/dist/agent.js.map +1 -1
- package/dist/atp-agent.d.ts +0 -1
- package/dist/atp-agent.d.ts.map +1 -1
- package/dist/atp-agent.js +0 -3
- package/dist/atp-agent.js.map +1 -1
- package/dist/client/index.d.ts +18 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +30 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +981 -427
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +290 -10
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +3 -3
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.d.ts +25 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.d.ts +26 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.d.ts +27 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.d.ts +28 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.d.ts +27 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.d.ts +28 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js.map +1 -0
- package/dist/client/types/com/atproto/label/defs.d.ts +1 -1
- package/dist/client/types/com/atproto/label/defs.d.ts.map +1 -1
- package/dist/client/types/com/atproto/label/defs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/scripts/code/labels.mjs +20 -17
- package/scripts/generate-code.mjs +3 -2
- package/src/agent.ts +10 -7
- package/src/atp-agent.ts +0 -4
- package/src/client/index.ts +84 -0
- package/src/client/lexicons.ts +309 -11
- package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +3 -3
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +43 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +44 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +45 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +46 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +45 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +46 -0
- package/src/client/types/com/atproto/label/defs.ts +2 -5
- package/src/index.ts +3 -1
- package/tests/errors.test.ts +1 -1
- package/tests/moderation-prefs.test.ts +9 -9
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/moderation/const/labels.ts +0 -220
package/src/agent.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AwaitLock from 'await-lock'
|
|
2
2
|
import { TID, retry } from '@atproto/common-web'
|
|
3
|
-
import { AtUri,
|
|
3
|
+
import { AtUri, DidString, ensureValidDidRegex } from '@atproto/syntax'
|
|
4
4
|
import {
|
|
5
5
|
FetchHandler,
|
|
6
6
|
FetchHandlerOptions,
|
|
@@ -63,7 +63,7 @@ const THREAD_VIEW_PREF_DEFAULTS = {
|
|
|
63
63
|
sort: 'hotness',
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export type { FetchHandler }
|
|
66
|
+
export type { DidString, FetchHandler }
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* An {@link Agent} is an {@link AtpBaseClient} with the following
|
|
@@ -207,8 +207,11 @@ export class Agent extends XrpcClient {
|
|
|
207
207
|
/**
|
|
208
208
|
* Get the authenticated user's DID, if any.
|
|
209
209
|
*/
|
|
210
|
-
get did() {
|
|
211
|
-
|
|
210
|
+
get did(): DidString | undefined {
|
|
211
|
+
const { did } = this.sessionManager
|
|
212
|
+
if (!did) return undefined
|
|
213
|
+
ensureValidDidRegex(did)
|
|
214
|
+
return did
|
|
212
215
|
}
|
|
213
216
|
|
|
214
217
|
/** @deprecated Use {@link Agent.assertDid} instead */
|
|
@@ -219,7 +222,7 @@ export class Agent extends XrpcClient {
|
|
|
219
222
|
/**
|
|
220
223
|
* Get the authenticated user's DID, or throw an error if not authenticated.
|
|
221
224
|
*/
|
|
222
|
-
get assertDid():
|
|
225
|
+
get assertDid(): DidString {
|
|
223
226
|
this.assertAuthenticated()
|
|
224
227
|
return this.did
|
|
225
228
|
}
|
|
@@ -227,7 +230,7 @@ export class Agent extends XrpcClient {
|
|
|
227
230
|
/**
|
|
228
231
|
* Assert that the user is authenticated.
|
|
229
232
|
*/
|
|
230
|
-
public assertAuthenticated(): asserts this is { did:
|
|
233
|
+
public assertAuthenticated(): asserts this is { did: DidString } {
|
|
231
234
|
if (!this.did) throw new Error('Not logged in')
|
|
232
235
|
}
|
|
233
236
|
|
|
@@ -890,7 +893,7 @@ export class Agent extends XrpcClient {
|
|
|
890
893
|
labelerDid?: string,
|
|
891
894
|
) {
|
|
892
895
|
if (labelerDid) {
|
|
893
|
-
|
|
896
|
+
ensureValidDidRegex(labelerDid)
|
|
894
897
|
}
|
|
895
898
|
await this.updatePreferences((prefs) => {
|
|
896
899
|
const labelPref = prefs
|
package/src/atp-agent.ts
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -134,6 +134,12 @@ import * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/u
|
|
|
134
134
|
import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
|
|
135
135
|
import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
|
|
136
136
|
import * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
|
|
137
|
+
import * as AppBskyUnspeccedGetSuggestedUsersForDiscover from './types/app/bsky/unspecced/getSuggestedUsersForDiscover.js'
|
|
138
|
+
import * as AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js'
|
|
139
|
+
import * as AppBskyUnspeccedGetSuggestedUsersForExplore from './types/app/bsky/unspecced/getSuggestedUsersForExplore.js'
|
|
140
|
+
import * as AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js'
|
|
141
|
+
import * as AppBskyUnspeccedGetSuggestedUsersForSeeMore from './types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js'
|
|
142
|
+
import * as AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js'
|
|
137
143
|
import * as AppBskyUnspeccedGetSuggestedUsersSkeleton from './types/app/bsky/unspecced/getSuggestedUsersSkeleton.js'
|
|
138
144
|
import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
|
|
139
145
|
import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
|
|
@@ -449,6 +455,12 @@ export * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/u
|
|
|
449
455
|
export * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
|
|
450
456
|
export * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
|
|
451
457
|
export * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
|
|
458
|
+
export * as AppBskyUnspeccedGetSuggestedUsersForDiscover from './types/app/bsky/unspecced/getSuggestedUsersForDiscover.js'
|
|
459
|
+
export * as AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js'
|
|
460
|
+
export * as AppBskyUnspeccedGetSuggestedUsersForExplore from './types/app/bsky/unspecced/getSuggestedUsersForExplore.js'
|
|
461
|
+
export * as AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js'
|
|
462
|
+
export * as AppBskyUnspeccedGetSuggestedUsersForSeeMore from './types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js'
|
|
463
|
+
export * as AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js'
|
|
452
464
|
export * as AppBskyUnspeccedGetSuggestedUsersSkeleton from './types/app/bsky/unspecced/getSuggestedUsersSkeleton.js'
|
|
453
465
|
export * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
|
|
454
466
|
export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
|
|
@@ -3345,6 +3357,78 @@ export class AppBskyUnspeccedNS {
|
|
|
3345
3357
|
)
|
|
3346
3358
|
}
|
|
3347
3359
|
|
|
3360
|
+
getSuggestedUsersForDiscover(
|
|
3361
|
+
params?: AppBskyUnspeccedGetSuggestedUsersForDiscover.QueryParams,
|
|
3362
|
+
opts?: AppBskyUnspeccedGetSuggestedUsersForDiscover.CallOptions,
|
|
3363
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsersForDiscover.Response> {
|
|
3364
|
+
return this._client.call(
|
|
3365
|
+
'app.bsky.unspecced.getSuggestedUsersForDiscover',
|
|
3366
|
+
params,
|
|
3367
|
+
undefined,
|
|
3368
|
+
opts,
|
|
3369
|
+
)
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
getSuggestedUsersForDiscoverSkeleton(
|
|
3373
|
+
params?: AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton.QueryParams,
|
|
3374
|
+
opts?: AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton.CallOptions,
|
|
3375
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton.Response> {
|
|
3376
|
+
return this._client.call(
|
|
3377
|
+
'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton',
|
|
3378
|
+
params,
|
|
3379
|
+
undefined,
|
|
3380
|
+
opts,
|
|
3381
|
+
)
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
getSuggestedUsersForExplore(
|
|
3385
|
+
params?: AppBskyUnspeccedGetSuggestedUsersForExplore.QueryParams,
|
|
3386
|
+
opts?: AppBskyUnspeccedGetSuggestedUsersForExplore.CallOptions,
|
|
3387
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsersForExplore.Response> {
|
|
3388
|
+
return this._client.call(
|
|
3389
|
+
'app.bsky.unspecced.getSuggestedUsersForExplore',
|
|
3390
|
+
params,
|
|
3391
|
+
undefined,
|
|
3392
|
+
opts,
|
|
3393
|
+
)
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
getSuggestedUsersForExploreSkeleton(
|
|
3397
|
+
params?: AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton.QueryParams,
|
|
3398
|
+
opts?: AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton.CallOptions,
|
|
3399
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton.Response> {
|
|
3400
|
+
return this._client.call(
|
|
3401
|
+
'app.bsky.unspecced.getSuggestedUsersForExploreSkeleton',
|
|
3402
|
+
params,
|
|
3403
|
+
undefined,
|
|
3404
|
+
opts,
|
|
3405
|
+
)
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
getSuggestedUsersForSeeMore(
|
|
3409
|
+
params?: AppBskyUnspeccedGetSuggestedUsersForSeeMore.QueryParams,
|
|
3410
|
+
opts?: AppBskyUnspeccedGetSuggestedUsersForSeeMore.CallOptions,
|
|
3411
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsersForSeeMore.Response> {
|
|
3412
|
+
return this._client.call(
|
|
3413
|
+
'app.bsky.unspecced.getSuggestedUsersForSeeMore',
|
|
3414
|
+
params,
|
|
3415
|
+
undefined,
|
|
3416
|
+
opts,
|
|
3417
|
+
)
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
getSuggestedUsersForSeeMoreSkeleton(
|
|
3421
|
+
params?: AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton.QueryParams,
|
|
3422
|
+
opts?: AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton.CallOptions,
|
|
3423
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton.Response> {
|
|
3424
|
+
return this._client.call(
|
|
3425
|
+
'app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton',
|
|
3426
|
+
params,
|
|
3427
|
+
undefined,
|
|
3428
|
+
opts,
|
|
3429
|
+
)
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3348
3432
|
getSuggestedUsersSkeleton(
|
|
3349
3433
|
params?: AppBskyUnspeccedGetSuggestedUsersSkeleton.QueryParams,
|
|
3350
3434
|
opts?: AppBskyUnspeccedGetSuggestedUsersSkeleton.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -6243,21 +6243,21 @@ export const schemaDict = {
|
|
|
6243
6243
|
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
6244
6244
|
},
|
|
6245
6245
|
},
|
|
6246
|
+
recIdStr: {
|
|
6247
|
+
type: 'string',
|
|
6248
|
+
description:
|
|
6249
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
6250
|
+
},
|
|
6246
6251
|
isFallback: {
|
|
6247
6252
|
type: 'boolean',
|
|
6248
6253
|
description:
|
|
6249
|
-
'
|
|
6254
|
+
'DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid',
|
|
6250
6255
|
default: false,
|
|
6251
6256
|
},
|
|
6252
6257
|
recId: {
|
|
6253
6258
|
type: 'integer',
|
|
6254
6259
|
description: 'DEPRECATED: use recIdStr instead.',
|
|
6255
6260
|
},
|
|
6256
|
-
recIdStr: {
|
|
6257
|
-
type: 'string',
|
|
6258
|
-
description:
|
|
6259
|
-
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
6260
|
-
},
|
|
6261
6261
|
},
|
|
6262
6262
|
},
|
|
6263
6263
|
},
|
|
@@ -8594,6 +8594,295 @@ export const schemaDict = {
|
|
|
8594
8594
|
},
|
|
8595
8595
|
},
|
|
8596
8596
|
},
|
|
8597
|
+
AppBskyUnspeccedGetSuggestedUsersForDiscover: {
|
|
8598
|
+
lexicon: 1,
|
|
8599
|
+
id: 'app.bsky.unspecced.getSuggestedUsersForDiscover',
|
|
8600
|
+
defs: {
|
|
8601
|
+
main: {
|
|
8602
|
+
type: 'query',
|
|
8603
|
+
description: 'Get a list of suggested users for the Discover page',
|
|
8604
|
+
parameters: {
|
|
8605
|
+
type: 'params',
|
|
8606
|
+
properties: {
|
|
8607
|
+
limit: {
|
|
8608
|
+
type: 'integer',
|
|
8609
|
+
minimum: 1,
|
|
8610
|
+
maximum: 50,
|
|
8611
|
+
default: 25,
|
|
8612
|
+
},
|
|
8613
|
+
},
|
|
8614
|
+
},
|
|
8615
|
+
output: {
|
|
8616
|
+
encoding: 'application/json',
|
|
8617
|
+
schema: {
|
|
8618
|
+
type: 'object',
|
|
8619
|
+
required: ['actors'],
|
|
8620
|
+
properties: {
|
|
8621
|
+
actors: {
|
|
8622
|
+
type: 'array',
|
|
8623
|
+
items: {
|
|
8624
|
+
type: 'ref',
|
|
8625
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
8626
|
+
},
|
|
8627
|
+
},
|
|
8628
|
+
recIdStr: {
|
|
8629
|
+
type: 'string',
|
|
8630
|
+
description:
|
|
8631
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8632
|
+
},
|
|
8633
|
+
},
|
|
8634
|
+
},
|
|
8635
|
+
},
|
|
8636
|
+
},
|
|
8637
|
+
},
|
|
8638
|
+
},
|
|
8639
|
+
AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton: {
|
|
8640
|
+
lexicon: 1,
|
|
8641
|
+
id: 'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton',
|
|
8642
|
+
defs: {
|
|
8643
|
+
main: {
|
|
8644
|
+
type: 'query',
|
|
8645
|
+
description:
|
|
8646
|
+
'Get a skeleton of suggested users for the Discover page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForDiscover',
|
|
8647
|
+
parameters: {
|
|
8648
|
+
type: 'params',
|
|
8649
|
+
properties: {
|
|
8650
|
+
viewer: {
|
|
8651
|
+
type: 'string',
|
|
8652
|
+
format: 'did',
|
|
8653
|
+
description:
|
|
8654
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
8655
|
+
},
|
|
8656
|
+
limit: {
|
|
8657
|
+
type: 'integer',
|
|
8658
|
+
minimum: 1,
|
|
8659
|
+
maximum: 50,
|
|
8660
|
+
default: 25,
|
|
8661
|
+
},
|
|
8662
|
+
},
|
|
8663
|
+
},
|
|
8664
|
+
output: {
|
|
8665
|
+
encoding: 'application/json',
|
|
8666
|
+
schema: {
|
|
8667
|
+
type: 'object',
|
|
8668
|
+
required: ['dids'],
|
|
8669
|
+
properties: {
|
|
8670
|
+
dids: {
|
|
8671
|
+
type: 'array',
|
|
8672
|
+
items: {
|
|
8673
|
+
type: 'string',
|
|
8674
|
+
format: 'did',
|
|
8675
|
+
},
|
|
8676
|
+
},
|
|
8677
|
+
recIdStr: {
|
|
8678
|
+
type: 'string',
|
|
8679
|
+
description:
|
|
8680
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8681
|
+
},
|
|
8682
|
+
},
|
|
8683
|
+
},
|
|
8684
|
+
},
|
|
8685
|
+
},
|
|
8686
|
+
},
|
|
8687
|
+
},
|
|
8688
|
+
AppBskyUnspeccedGetSuggestedUsersForExplore: {
|
|
8689
|
+
lexicon: 1,
|
|
8690
|
+
id: 'app.bsky.unspecced.getSuggestedUsersForExplore',
|
|
8691
|
+
defs: {
|
|
8692
|
+
main: {
|
|
8693
|
+
type: 'query',
|
|
8694
|
+
description: 'Get a list of suggested users for the Explore page',
|
|
8695
|
+
parameters: {
|
|
8696
|
+
type: 'params',
|
|
8697
|
+
properties: {
|
|
8698
|
+
category: {
|
|
8699
|
+
type: 'string',
|
|
8700
|
+
description: 'Category of users to get suggestions for.',
|
|
8701
|
+
},
|
|
8702
|
+
limit: {
|
|
8703
|
+
type: 'integer',
|
|
8704
|
+
minimum: 1,
|
|
8705
|
+
maximum: 50,
|
|
8706
|
+
default: 25,
|
|
8707
|
+
},
|
|
8708
|
+
},
|
|
8709
|
+
},
|
|
8710
|
+
output: {
|
|
8711
|
+
encoding: 'application/json',
|
|
8712
|
+
schema: {
|
|
8713
|
+
type: 'object',
|
|
8714
|
+
required: ['actors'],
|
|
8715
|
+
properties: {
|
|
8716
|
+
actors: {
|
|
8717
|
+
type: 'array',
|
|
8718
|
+
items: {
|
|
8719
|
+
type: 'ref',
|
|
8720
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
8721
|
+
},
|
|
8722
|
+
},
|
|
8723
|
+
recIdStr: {
|
|
8724
|
+
type: 'string',
|
|
8725
|
+
description:
|
|
8726
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8727
|
+
},
|
|
8728
|
+
},
|
|
8729
|
+
},
|
|
8730
|
+
},
|
|
8731
|
+
},
|
|
8732
|
+
},
|
|
8733
|
+
},
|
|
8734
|
+
AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton: {
|
|
8735
|
+
lexicon: 1,
|
|
8736
|
+
id: 'app.bsky.unspecced.getSuggestedUsersForExploreSkeleton',
|
|
8737
|
+
defs: {
|
|
8738
|
+
main: {
|
|
8739
|
+
type: 'query',
|
|
8740
|
+
description:
|
|
8741
|
+
'Get a skeleton of suggested users for the Explore page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForExplore',
|
|
8742
|
+
parameters: {
|
|
8743
|
+
type: 'params',
|
|
8744
|
+
properties: {
|
|
8745
|
+
viewer: {
|
|
8746
|
+
type: 'string',
|
|
8747
|
+
format: 'did',
|
|
8748
|
+
description:
|
|
8749
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
8750
|
+
},
|
|
8751
|
+
category: {
|
|
8752
|
+
type: 'string',
|
|
8753
|
+
description: 'Category of users to get suggestions for.',
|
|
8754
|
+
},
|
|
8755
|
+
limit: {
|
|
8756
|
+
type: 'integer',
|
|
8757
|
+
minimum: 1,
|
|
8758
|
+
maximum: 50,
|
|
8759
|
+
default: 25,
|
|
8760
|
+
},
|
|
8761
|
+
},
|
|
8762
|
+
},
|
|
8763
|
+
output: {
|
|
8764
|
+
encoding: 'application/json',
|
|
8765
|
+
schema: {
|
|
8766
|
+
type: 'object',
|
|
8767
|
+
required: ['dids'],
|
|
8768
|
+
properties: {
|
|
8769
|
+
dids: {
|
|
8770
|
+
type: 'array',
|
|
8771
|
+
items: {
|
|
8772
|
+
type: 'string',
|
|
8773
|
+
format: 'did',
|
|
8774
|
+
},
|
|
8775
|
+
},
|
|
8776
|
+
recIdStr: {
|
|
8777
|
+
type: 'string',
|
|
8778
|
+
description:
|
|
8779
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8780
|
+
},
|
|
8781
|
+
},
|
|
8782
|
+
},
|
|
8783
|
+
},
|
|
8784
|
+
},
|
|
8785
|
+
},
|
|
8786
|
+
},
|
|
8787
|
+
AppBskyUnspeccedGetSuggestedUsersForSeeMore: {
|
|
8788
|
+
lexicon: 1,
|
|
8789
|
+
id: 'app.bsky.unspecced.getSuggestedUsersForSeeMore',
|
|
8790
|
+
defs: {
|
|
8791
|
+
main: {
|
|
8792
|
+
type: 'query',
|
|
8793
|
+
description: 'Get a list of suggested users for the See More page',
|
|
8794
|
+
parameters: {
|
|
8795
|
+
type: 'params',
|
|
8796
|
+
properties: {
|
|
8797
|
+
category: {
|
|
8798
|
+
type: 'string',
|
|
8799
|
+
description: 'Category of users to get suggestions for.',
|
|
8800
|
+
},
|
|
8801
|
+
limit: {
|
|
8802
|
+
type: 'integer',
|
|
8803
|
+
minimum: 1,
|
|
8804
|
+
maximum: 50,
|
|
8805
|
+
default: 25,
|
|
8806
|
+
},
|
|
8807
|
+
},
|
|
8808
|
+
},
|
|
8809
|
+
output: {
|
|
8810
|
+
encoding: 'application/json',
|
|
8811
|
+
schema: {
|
|
8812
|
+
type: 'object',
|
|
8813
|
+
required: ['actors'],
|
|
8814
|
+
properties: {
|
|
8815
|
+
actors: {
|
|
8816
|
+
type: 'array',
|
|
8817
|
+
items: {
|
|
8818
|
+
type: 'ref',
|
|
8819
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
8820
|
+
},
|
|
8821
|
+
},
|
|
8822
|
+
recIdStr: {
|
|
8823
|
+
type: 'string',
|
|
8824
|
+
description:
|
|
8825
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8826
|
+
},
|
|
8827
|
+
},
|
|
8828
|
+
},
|
|
8829
|
+
},
|
|
8830
|
+
},
|
|
8831
|
+
},
|
|
8832
|
+
},
|
|
8833
|
+
AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton: {
|
|
8834
|
+
lexicon: 1,
|
|
8835
|
+
id: 'app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton',
|
|
8836
|
+
defs: {
|
|
8837
|
+
main: {
|
|
8838
|
+
type: 'query',
|
|
8839
|
+
description:
|
|
8840
|
+
'Get a skeleton of suggested users for the See More page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForSeeMore',
|
|
8841
|
+
parameters: {
|
|
8842
|
+
type: 'params',
|
|
8843
|
+
properties: {
|
|
8844
|
+
viewer: {
|
|
8845
|
+
type: 'string',
|
|
8846
|
+
format: 'did',
|
|
8847
|
+
description:
|
|
8848
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
8849
|
+
},
|
|
8850
|
+
category: {
|
|
8851
|
+
type: 'string',
|
|
8852
|
+
description: 'Category of users to get suggestions for.',
|
|
8853
|
+
},
|
|
8854
|
+
limit: {
|
|
8855
|
+
type: 'integer',
|
|
8856
|
+
minimum: 1,
|
|
8857
|
+
maximum: 50,
|
|
8858
|
+
default: 25,
|
|
8859
|
+
},
|
|
8860
|
+
},
|
|
8861
|
+
},
|
|
8862
|
+
output: {
|
|
8863
|
+
encoding: 'application/json',
|
|
8864
|
+
schema: {
|
|
8865
|
+
type: 'object',
|
|
8866
|
+
required: ['dids'],
|
|
8867
|
+
properties: {
|
|
8868
|
+
dids: {
|
|
8869
|
+
type: 'array',
|
|
8870
|
+
items: {
|
|
8871
|
+
type: 'string',
|
|
8872
|
+
format: 'did',
|
|
8873
|
+
},
|
|
8874
|
+
},
|
|
8875
|
+
recIdStr: {
|
|
8876
|
+
type: 'string',
|
|
8877
|
+
description:
|
|
8878
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8879
|
+
},
|
|
8880
|
+
},
|
|
8881
|
+
},
|
|
8882
|
+
},
|
|
8883
|
+
},
|
|
8884
|
+
},
|
|
8885
|
+
},
|
|
8597
8886
|
AppBskyUnspeccedGetSuggestedUsersSkeleton: {
|
|
8598
8887
|
lexicon: 1,
|
|
8599
8888
|
id: 'app.bsky.unspecced.getSuggestedUsersSkeleton',
|
|
@@ -11842,16 +12131,13 @@ export const schemaDict = {
|
|
|
11842
12131
|
type: 'string',
|
|
11843
12132
|
knownValues: [
|
|
11844
12133
|
'!hide',
|
|
11845
|
-
'!no-promote',
|
|
11846
12134
|
'!warn',
|
|
11847
12135
|
'!no-unauthenticated',
|
|
11848
|
-
'dmca-violation',
|
|
11849
|
-
'doxxing',
|
|
11850
12136
|
'porn',
|
|
11851
12137
|
'sexual',
|
|
11852
12138
|
'nudity',
|
|
11853
|
-
'
|
|
11854
|
-
'
|
|
12139
|
+
'graphic-media',
|
|
12140
|
+
'bot',
|
|
11855
12141
|
],
|
|
11856
12142
|
},
|
|
11857
12143
|
},
|
|
@@ -20887,6 +21173,18 @@ export const ids = {
|
|
|
20887
21173
|
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:
|
|
20888
21174
|
'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
|
|
20889
21175
|
AppBskyUnspeccedGetSuggestedUsers: 'app.bsky.unspecced.getSuggestedUsers',
|
|
21176
|
+
AppBskyUnspeccedGetSuggestedUsersForDiscover:
|
|
21177
|
+
'app.bsky.unspecced.getSuggestedUsersForDiscover',
|
|
21178
|
+
AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton:
|
|
21179
|
+
'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton',
|
|
21180
|
+
AppBskyUnspeccedGetSuggestedUsersForExplore:
|
|
21181
|
+
'app.bsky.unspecced.getSuggestedUsersForExplore',
|
|
21182
|
+
AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton:
|
|
21183
|
+
'app.bsky.unspecced.getSuggestedUsersForExploreSkeleton',
|
|
21184
|
+
AppBskyUnspeccedGetSuggestedUsersForSeeMore:
|
|
21185
|
+
'app.bsky.unspecced.getSuggestedUsersForSeeMore',
|
|
21186
|
+
AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton:
|
|
21187
|
+
'app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton',
|
|
20890
21188
|
AppBskyUnspeccedGetSuggestedUsersSkeleton:
|
|
20891
21189
|
'app.bsky.unspecced.getSuggestedUsersSkeleton',
|
|
20892
21190
|
AppBskyUnspeccedGetSuggestionsSkeleton:
|
|
@@ -23,12 +23,12 @@ export type InputSchema = undefined
|
|
|
23
23
|
|
|
24
24
|
export interface OutputSchema {
|
|
25
25
|
suggestions: AppBskyActorDefs.ProfileView[]
|
|
26
|
-
/**
|
|
26
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
27
|
+
recIdStr?: string
|
|
28
|
+
/** DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid */
|
|
27
29
|
isFallback: boolean
|
|
28
30
|
/** DEPRECATED: use recIdStr instead. */
|
|
29
31
|
recId?: number
|
|
30
|
-
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
31
|
-
recIdStr?: string
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export interface CallOptions {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
import type * as AppBskyActorDefs from '../actor/defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getSuggestedUsersForDiscover'
|
|
18
|
+
|
|
19
|
+
export type QueryParams = {
|
|
20
|
+
limit?: number
|
|
21
|
+
}
|
|
22
|
+
export type InputSchema = undefined
|
|
23
|
+
|
|
24
|
+
export interface OutputSchema {
|
|
25
|
+
actors: AppBskyActorDefs.ProfileView[]
|
|
26
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
27
|
+
recIdStr?: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface CallOptions {
|
|
31
|
+
signal?: AbortSignal
|
|
32
|
+
headers?: HeadersMap
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Response {
|
|
36
|
+
success: boolean
|
|
37
|
+
headers: HeadersMap
|
|
38
|
+
data: OutputSchema
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function toKnownErr(e: any) {
|
|
42
|
+
return e
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
|
|
14
|
+
const is$typed = _is$typed,
|
|
15
|
+
validate = _validate
|
|
16
|
+
const id = 'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton'
|
|
17
|
+
|
|
18
|
+
export type QueryParams = {
|
|
19
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
20
|
+
viewer?: string
|
|
21
|
+
limit?: number
|
|
22
|
+
}
|
|
23
|
+
export type InputSchema = undefined
|
|
24
|
+
|
|
25
|
+
export interface OutputSchema {
|
|
26
|
+
dids: string[]
|
|
27
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
28
|
+
recIdStr?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface CallOptions {
|
|
32
|
+
signal?: AbortSignal
|
|
33
|
+
headers?: HeadersMap
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface Response {
|
|
37
|
+
success: boolean
|
|
38
|
+
headers: HeadersMap
|
|
39
|
+
data: OutputSchema
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function toKnownErr(e: any) {
|
|
43
|
+
return e
|
|
44
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
import type * as AppBskyActorDefs from '../actor/defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getSuggestedUsersForExplore'
|
|
18
|
+
|
|
19
|
+
export type QueryParams = {
|
|
20
|
+
/** Category of users to get suggestions for. */
|
|
21
|
+
category?: string
|
|
22
|
+
limit?: number
|
|
23
|
+
}
|
|
24
|
+
export type InputSchema = undefined
|
|
25
|
+
|
|
26
|
+
export interface OutputSchema {
|
|
27
|
+
actors: AppBskyActorDefs.ProfileView[]
|
|
28
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
29
|
+
recIdStr?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface CallOptions {
|
|
33
|
+
signal?: AbortSignal
|
|
34
|
+
headers?: HeadersMap
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface Response {
|
|
38
|
+
success: boolean
|
|
39
|
+
headers: HeadersMap
|
|
40
|
+
data: OutputSchema
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function toKnownErr(e: any) {
|
|
44
|
+
return e
|
|
45
|
+
}
|