@atproto/pds 0.4.117 → 0.4.118
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 +16 -0
- package/dist/account-manager/account-manager.d.ts +5 -2
- package/dist/account-manager/account-manager.d.ts.map +1 -1
- package/dist/account-manager/account-manager.js.map +1 -1
- package/dist/actor-store/blob/transactor.d.ts +2 -1
- package/dist/actor-store/blob/transactor.d.ts.map +1 -1
- package/dist/actor-store/blob/transactor.js +19 -5
- package/dist/actor-store/blob/transactor.js.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js +1 -0
- package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
- package/dist/config/env.d.ts +1 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +1 -0
- package/dist/config/env.js.map +1 -1
- package/dist/config/secrets.d.ts +1 -0
- package/dist/config/secrets.d.ts.map +1 -1
- package/dist/config/secrets.js +1 -0
- package/dist/config/secrets.js.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +19 -0
- package/dist/context.js.map +1 -1
- package/dist/lexicon/index.d.ts +10 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +20 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +516 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +277 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +27 -0
- package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/defs.js +18 -0
- package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.js +7 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts +37 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js +7 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrends.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrends.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrends.js +7 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrends.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.js +7 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.js.map +1 -0
- package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.d.ts +31 -0
- package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.js +7 -0
- package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.js.map +1 -0
- package/dist/repo/prepare.d.ts.map +1 -1
- package/dist/repo/prepare.js +1 -0
- package/dist/repo/prepare.js.map +1 -1
- package/dist/repo/types.d.ts +1 -0
- package/dist/repo/types.d.ts.map +1 -1
- package/dist/repo/types.js.map +1 -1
- package/dist/scripts/index.d.ts +8 -1
- package/dist/scripts/index.d.ts.map +1 -1
- package/dist/scripts/index.js +11 -0
- package/dist/scripts/index.js.map +1 -1
- package/dist/scripts/publish-identity.d.ts +8 -0
- package/dist/scripts/publish-identity.d.ts.map +1 -0
- package/dist/scripts/publish-identity.js +46 -0
- package/dist/scripts/publish-identity.js.map +1 -0
- package/dist/scripts/rebuild-repo.d.ts +10 -2
- package/dist/scripts/rebuild-repo.d.ts.map +1 -1
- package/dist/scripts/rebuild-repo.js +21 -12
- package/dist/scripts/rebuild-repo.js.map +1 -1
- package/dist/scripts/rotate-keys.d.ts +18 -0
- package/dist/scripts/rotate-keys.d.ts.map +1 -0
- package/dist/scripts/rotate-keys.js +115 -0
- package/dist/scripts/rotate-keys.js.map +1 -0
- package/dist/scripts/sequencer-recovery/index.d.ts +3 -0
- package/dist/scripts/sequencer-recovery/index.d.ts.map +1 -0
- package/dist/scripts/sequencer-recovery/index.js +17 -0
- package/dist/scripts/sequencer-recovery/index.js.map +1 -0
- package/dist/scripts/sequencer-recovery/recoverer.d.ts +27 -0
- package/dist/scripts/sequencer-recovery/recoverer.d.ts.map +1 -0
- package/dist/scripts/sequencer-recovery/recoverer.js +235 -0
- package/dist/scripts/sequencer-recovery/recoverer.js.map +1 -0
- package/dist/scripts/sequencer-recovery/recovery-db.d.ts +18 -0
- package/dist/scripts/sequencer-recovery/recovery-db.d.ts.map +1 -0
- package/dist/scripts/sequencer-recovery/recovery-db.js +45 -0
- package/dist/scripts/sequencer-recovery/recovery-db.js.map +1 -0
- package/dist/scripts/sequencer-recovery/repair-repos.d.ts +3 -0
- package/dist/scripts/sequencer-recovery/repair-repos.d.ts.map +1 -0
- package/dist/scripts/sequencer-recovery/repair-repos.js +45 -0
- package/dist/scripts/sequencer-recovery/repair-repos.js.map +1 -0
- package/dist/scripts/sequencer-recovery/user-queues.d.ts +12 -0
- package/dist/scripts/sequencer-recovery/user-queues.d.ts.map +1 -0
- package/dist/scripts/sequencer-recovery/user-queues.js +54 -0
- package/dist/scripts/sequencer-recovery/user-queues.js.map +1 -0
- package/dist/scripts/util.d.ts +2 -0
- package/dist/scripts/util.d.ts.map +1 -0
- package/dist/scripts/util.js +12 -0
- package/dist/scripts/util.js.map +1 -0
- package/dist/sequencer/sequencer.d.ts +2 -0
- package/dist/sequencer/sequencer.d.ts.map +1 -1
- package/dist/sequencer/sequencer.js +52 -42
- package/dist/sequencer/sequencer.js.map +1 -1
- package/package.json +10 -10
- package/src/account-manager/account-manager.ts +6 -2
- package/src/actor-store/blob/transactor.ts +25 -7
- package/src/api/com/atproto/repo/uploadBlob.ts +1 -0
- package/src/config/env.ts +2 -0
- package/src/config/secrets.ts +2 -0
- package/src/context.ts +23 -0
- package/src/lexicon/index.ts +62 -0
- package/src/lexicon/lexicons.ts +285 -0
- package/src/lexicon/types/app/bsky/unspecced/defs.ts +45 -0
- package/src/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +54 -0
- package/src/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +55 -0
- package/src/lexicon/types/app/bsky/unspecced/getTrends.ts +54 -0
- package/src/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.ts +56 -0
- package/src/lexicon/types/com/atproto/admin/updateAccountSigningKey.ts +48 -0
- package/src/repo/prepare.ts +1 -0
- package/src/repo/types.ts +1 -0
- package/src/scripts/README.md +40 -0
- package/src/scripts/index.ts +15 -0
- package/src/scripts/publish-identity.ts +54 -0
- package/src/scripts/rebuild-repo.ts +39 -12
- package/src/scripts/rotate-keys.ts +141 -0
- package/src/scripts/sequencer-recovery/index.ts +23 -0
- package/src/scripts/sequencer-recovery/recoverer.ts +289 -0
- package/src/scripts/sequencer-recovery/recovery-db.ts +64 -0
- package/src/scripts/sequencer-recovery/repair-repos.ts +48 -0
- package/src/scripts/sequencer-recovery/user-queues.ts +41 -0
- package/src/scripts/util.ts +7 -0
- package/src/sequencer/sequencer.ts +43 -40
- package/tests/recovery.test.ts +178 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
package/src/lexicon/index.ts
CHANGED
@@ -22,6 +22,7 @@ import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail.j
|
|
22
22
|
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail.js'
|
23
23
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle.js'
|
24
24
|
import * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword.js'
|
25
|
+
import * as ComAtprotoAdminUpdateAccountSigningKey from './types/com/atproto/admin/updateAccountSigningKey.js'
|
25
26
|
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus.js'
|
26
27
|
import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials.js'
|
27
28
|
import * as ComAtprotoIdentityRefreshIdentity from './types/com/atproto/identity/refreshIdentity.js'
|
@@ -142,9 +143,13 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
|
|
142
143
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
143
144
|
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
144
145
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
|
146
|
+
import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
|
147
|
+
import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
|
145
148
|
import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
|
146
149
|
import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
|
147
150
|
import * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'
|
151
|
+
import * as AppBskyUnspeccedGetTrends from './types/app/bsky/unspecced/getTrends.js'
|
152
|
+
import * as AppBskyUnspeccedGetTrendsSkeleton from './types/app/bsky/unspecced/getTrendsSkeleton.js'
|
148
153
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton.js'
|
149
154
|
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton.js'
|
150
155
|
import * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton.js'
|
@@ -454,6 +459,17 @@ export class ComAtprotoAdminNS {
|
|
454
459
|
return this._server.xrpc.method(nsid, cfg)
|
455
460
|
}
|
456
461
|
|
462
|
+
updateAccountSigningKey<AV extends AuthVerifier>(
|
463
|
+
cfg: ConfigOf<
|
464
|
+
AV,
|
465
|
+
ComAtprotoAdminUpdateAccountSigningKey.Handler<ExtractAuth<AV>>,
|
466
|
+
ComAtprotoAdminUpdateAccountSigningKey.HandlerReqCtx<ExtractAuth<AV>>
|
467
|
+
>,
|
468
|
+
) {
|
469
|
+
const nsid = 'com.atproto.admin.updateAccountSigningKey' // @ts-ignore
|
470
|
+
return this._server.xrpc.method(nsid, cfg)
|
471
|
+
}
|
472
|
+
|
457
473
|
updateSubjectStatus<AV extends AuthVerifier>(
|
458
474
|
cfg: ConfigOf<
|
459
475
|
AV,
|
@@ -1942,6 +1958,30 @@ export class AppBskyUnspeccedNS {
|
|
1942
1958
|
return this._server.xrpc.method(nsid, cfg)
|
1943
1959
|
}
|
1944
1960
|
|
1961
|
+
getSuggestedStarterPacks<AV extends AuthVerifier>(
|
1962
|
+
cfg: ConfigOf<
|
1963
|
+
AV,
|
1964
|
+
AppBskyUnspeccedGetSuggestedStarterPacks.Handler<ExtractAuth<AV>>,
|
1965
|
+
AppBskyUnspeccedGetSuggestedStarterPacks.HandlerReqCtx<ExtractAuth<AV>>
|
1966
|
+
>,
|
1967
|
+
) {
|
1968
|
+
const nsid = 'app.bsky.unspecced.getSuggestedStarterPacks' // @ts-ignore
|
1969
|
+
return this._server.xrpc.method(nsid, cfg)
|
1970
|
+
}
|
1971
|
+
|
1972
|
+
getSuggestedStarterPacksSkeleton<AV extends AuthVerifier>(
|
1973
|
+
cfg: ConfigOf<
|
1974
|
+
AV,
|
1975
|
+
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.Handler<ExtractAuth<AV>>,
|
1976
|
+
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.HandlerReqCtx<
|
1977
|
+
ExtractAuth<AV>
|
1978
|
+
>
|
1979
|
+
>,
|
1980
|
+
) {
|
1981
|
+
const nsid = 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton' // @ts-ignore
|
1982
|
+
return this._server.xrpc.method(nsid, cfg)
|
1983
|
+
}
|
1984
|
+
|
1945
1985
|
getSuggestionsSkeleton<AV extends AuthVerifier>(
|
1946
1986
|
cfg: ConfigOf<
|
1947
1987
|
AV,
|
@@ -1975,6 +2015,28 @@ export class AppBskyUnspeccedNS {
|
|
1975
2015
|
return this._server.xrpc.method(nsid, cfg)
|
1976
2016
|
}
|
1977
2017
|
|
2018
|
+
getTrends<AV extends AuthVerifier>(
|
2019
|
+
cfg: ConfigOf<
|
2020
|
+
AV,
|
2021
|
+
AppBskyUnspeccedGetTrends.Handler<ExtractAuth<AV>>,
|
2022
|
+
AppBskyUnspeccedGetTrends.HandlerReqCtx<ExtractAuth<AV>>
|
2023
|
+
>,
|
2024
|
+
) {
|
2025
|
+
const nsid = 'app.bsky.unspecced.getTrends' // @ts-ignore
|
2026
|
+
return this._server.xrpc.method(nsid, cfg)
|
2027
|
+
}
|
2028
|
+
|
2029
|
+
getTrendsSkeleton<AV extends AuthVerifier>(
|
2030
|
+
cfg: ConfigOf<
|
2031
|
+
AV,
|
2032
|
+
AppBskyUnspeccedGetTrendsSkeleton.Handler<ExtractAuth<AV>>,
|
2033
|
+
AppBskyUnspeccedGetTrendsSkeleton.HandlerReqCtx<ExtractAuth<AV>>
|
2034
|
+
>,
|
2035
|
+
) {
|
2036
|
+
const nsid = 'app.bsky.unspecced.getTrendsSkeleton' // @ts-ignore
|
2037
|
+
return this._server.xrpc.method(nsid, cfg)
|
2038
|
+
}
|
2039
|
+
|
1978
2040
|
searchActorsSkeleton<AV extends AuthVerifier>(
|
1979
2041
|
cfg: ConfigOf<
|
1980
2042
|
AV,
|
package/src/lexicon/lexicons.ts
CHANGED
@@ -580,6 +580,35 @@ export const schemaDict = {
|
|
580
580
|
},
|
581
581
|
},
|
582
582
|
},
|
583
|
+
ComAtprotoAdminUpdateAccountSigningKey: {
|
584
|
+
lexicon: 1,
|
585
|
+
id: 'com.atproto.admin.updateAccountSigningKey',
|
586
|
+
defs: {
|
587
|
+
main: {
|
588
|
+
type: 'procedure',
|
589
|
+
description:
|
590
|
+
"Administrative action to update an account's signing key in their Did document.",
|
591
|
+
input: {
|
592
|
+
encoding: 'application/json',
|
593
|
+
schema: {
|
594
|
+
type: 'object',
|
595
|
+
required: ['did', 'signingKey'],
|
596
|
+
properties: {
|
597
|
+
did: {
|
598
|
+
type: 'string',
|
599
|
+
format: 'did',
|
600
|
+
},
|
601
|
+
signingKey: {
|
602
|
+
type: 'string',
|
603
|
+
format: 'did',
|
604
|
+
description: 'Did-key formatted public key',
|
605
|
+
},
|
606
|
+
},
|
607
|
+
},
|
608
|
+
},
|
609
|
+
},
|
610
|
+
},
|
611
|
+
},
|
583
612
|
ComAtprotoAdminUpdateSubjectStatus: {
|
584
613
|
lexicon: 1,
|
585
614
|
id: 'com.atproto.admin.updateSubjectStatus',
|
@@ -9699,6 +9728,92 @@ export const schemaDict = {
|
|
9699
9728
|
},
|
9700
9729
|
},
|
9701
9730
|
},
|
9731
|
+
skeletonTrend: {
|
9732
|
+
type: 'object',
|
9733
|
+
required: [
|
9734
|
+
'topic',
|
9735
|
+
'displayName',
|
9736
|
+
'link',
|
9737
|
+
'startedAt',
|
9738
|
+
'postCount',
|
9739
|
+
'dids',
|
9740
|
+
],
|
9741
|
+
properties: {
|
9742
|
+
topic: {
|
9743
|
+
type: 'string',
|
9744
|
+
},
|
9745
|
+
displayName: {
|
9746
|
+
type: 'string',
|
9747
|
+
},
|
9748
|
+
link: {
|
9749
|
+
type: 'string',
|
9750
|
+
},
|
9751
|
+
startedAt: {
|
9752
|
+
type: 'string',
|
9753
|
+
format: 'datetime',
|
9754
|
+
},
|
9755
|
+
postCount: {
|
9756
|
+
type: 'integer',
|
9757
|
+
},
|
9758
|
+
status: {
|
9759
|
+
type: 'string',
|
9760
|
+
knownValues: ['hot'],
|
9761
|
+
},
|
9762
|
+
category: {
|
9763
|
+
type: 'string',
|
9764
|
+
},
|
9765
|
+
dids: {
|
9766
|
+
type: 'array',
|
9767
|
+
items: {
|
9768
|
+
type: 'string',
|
9769
|
+
format: 'did',
|
9770
|
+
},
|
9771
|
+
},
|
9772
|
+
},
|
9773
|
+
},
|
9774
|
+
trendView: {
|
9775
|
+
type: 'object',
|
9776
|
+
required: [
|
9777
|
+
'topic',
|
9778
|
+
'displayName',
|
9779
|
+
'link',
|
9780
|
+
'startedAt',
|
9781
|
+
'postCount',
|
9782
|
+
'actors',
|
9783
|
+
],
|
9784
|
+
properties: {
|
9785
|
+
topic: {
|
9786
|
+
type: 'string',
|
9787
|
+
},
|
9788
|
+
displayName: {
|
9789
|
+
type: 'string',
|
9790
|
+
},
|
9791
|
+
link: {
|
9792
|
+
type: 'string',
|
9793
|
+
},
|
9794
|
+
startedAt: {
|
9795
|
+
type: 'string',
|
9796
|
+
format: 'datetime',
|
9797
|
+
},
|
9798
|
+
postCount: {
|
9799
|
+
type: 'integer',
|
9800
|
+
},
|
9801
|
+
status: {
|
9802
|
+
type: 'string',
|
9803
|
+
knownValues: ['hot'],
|
9804
|
+
},
|
9805
|
+
category: {
|
9806
|
+
type: 'string',
|
9807
|
+
},
|
9808
|
+
actors: {
|
9809
|
+
type: 'array',
|
9810
|
+
items: {
|
9811
|
+
type: 'ref',
|
9812
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
9813
|
+
},
|
9814
|
+
},
|
9815
|
+
},
|
9816
|
+
},
|
9702
9817
|
},
|
9703
9818
|
},
|
9704
9819
|
AppBskyUnspeccedGetConfig: {
|
@@ -9769,6 +9884,87 @@ export const schemaDict = {
|
|
9769
9884
|
},
|
9770
9885
|
},
|
9771
9886
|
},
|
9887
|
+
AppBskyUnspeccedGetSuggestedStarterPacks: {
|
9888
|
+
lexicon: 1,
|
9889
|
+
id: 'app.bsky.unspecced.getSuggestedStarterPacks',
|
9890
|
+
defs: {
|
9891
|
+
main: {
|
9892
|
+
type: 'query',
|
9893
|
+
description: 'Get a list of suggested starterpacks',
|
9894
|
+
parameters: {
|
9895
|
+
type: 'params',
|
9896
|
+
properties: {
|
9897
|
+
limit: {
|
9898
|
+
type: 'integer',
|
9899
|
+
minimum: 1,
|
9900
|
+
maximum: 25,
|
9901
|
+
default: 10,
|
9902
|
+
},
|
9903
|
+
},
|
9904
|
+
},
|
9905
|
+
output: {
|
9906
|
+
encoding: 'application/json',
|
9907
|
+
schema: {
|
9908
|
+
type: 'object',
|
9909
|
+
required: ['starterPacks'],
|
9910
|
+
properties: {
|
9911
|
+
starterPacks: {
|
9912
|
+
type: 'array',
|
9913
|
+
items: {
|
9914
|
+
type: 'ref',
|
9915
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
9916
|
+
},
|
9917
|
+
},
|
9918
|
+
},
|
9919
|
+
},
|
9920
|
+
},
|
9921
|
+
},
|
9922
|
+
},
|
9923
|
+
},
|
9924
|
+
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton: {
|
9925
|
+
lexicon: 1,
|
9926
|
+
id: 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
|
9927
|
+
defs: {
|
9928
|
+
main: {
|
9929
|
+
type: 'query',
|
9930
|
+
description:
|
9931
|
+
'Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks',
|
9932
|
+
parameters: {
|
9933
|
+
type: 'params',
|
9934
|
+
properties: {
|
9935
|
+
viewer: {
|
9936
|
+
type: 'string',
|
9937
|
+
format: 'did',
|
9938
|
+
description:
|
9939
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
9940
|
+
},
|
9941
|
+
limit: {
|
9942
|
+
type: 'integer',
|
9943
|
+
minimum: 1,
|
9944
|
+
maximum: 25,
|
9945
|
+
default: 10,
|
9946
|
+
},
|
9947
|
+
},
|
9948
|
+
},
|
9949
|
+
output: {
|
9950
|
+
encoding: 'application/json',
|
9951
|
+
schema: {
|
9952
|
+
type: 'object',
|
9953
|
+
required: ['starterPacks'],
|
9954
|
+
properties: {
|
9955
|
+
starterPacks: {
|
9956
|
+
type: 'array',
|
9957
|
+
items: {
|
9958
|
+
type: 'string',
|
9959
|
+
format: 'at-uri',
|
9960
|
+
},
|
9961
|
+
},
|
9962
|
+
},
|
9963
|
+
},
|
9964
|
+
},
|
9965
|
+
},
|
9966
|
+
},
|
9967
|
+
},
|
9772
9968
|
AppBskyUnspeccedGetSuggestionsSkeleton: {
|
9773
9969
|
lexicon: 1,
|
9774
9970
|
id: 'app.bsky.unspecced.getSuggestionsSkeleton',
|
@@ -9934,6 +10130,87 @@ export const schemaDict = {
|
|
9934
10130
|
},
|
9935
10131
|
},
|
9936
10132
|
},
|
10133
|
+
AppBskyUnspeccedGetTrends: {
|
10134
|
+
lexicon: 1,
|
10135
|
+
id: 'app.bsky.unspecced.getTrends',
|
10136
|
+
defs: {
|
10137
|
+
main: {
|
10138
|
+
type: 'query',
|
10139
|
+
description: 'Get the current trends on the network',
|
10140
|
+
parameters: {
|
10141
|
+
type: 'params',
|
10142
|
+
properties: {
|
10143
|
+
limit: {
|
10144
|
+
type: 'integer',
|
10145
|
+
minimum: 1,
|
10146
|
+
maximum: 25,
|
10147
|
+
default: 10,
|
10148
|
+
},
|
10149
|
+
},
|
10150
|
+
},
|
10151
|
+
output: {
|
10152
|
+
encoding: 'application/json',
|
10153
|
+
schema: {
|
10154
|
+
type: 'object',
|
10155
|
+
required: ['trends'],
|
10156
|
+
properties: {
|
10157
|
+
trends: {
|
10158
|
+
type: 'array',
|
10159
|
+
items: {
|
10160
|
+
type: 'ref',
|
10161
|
+
ref: 'lex:app.bsky.unspecced.defs#trendView',
|
10162
|
+
},
|
10163
|
+
},
|
10164
|
+
},
|
10165
|
+
},
|
10166
|
+
},
|
10167
|
+
},
|
10168
|
+
},
|
10169
|
+
},
|
10170
|
+
AppBskyUnspeccedGetTrendsSkeleton: {
|
10171
|
+
lexicon: 1,
|
10172
|
+
id: 'app.bsky.unspecced.getTrendsSkeleton',
|
10173
|
+
defs: {
|
10174
|
+
main: {
|
10175
|
+
type: 'query',
|
10176
|
+
description:
|
10177
|
+
'Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends',
|
10178
|
+
parameters: {
|
10179
|
+
type: 'params',
|
10180
|
+
properties: {
|
10181
|
+
viewer: {
|
10182
|
+
type: 'string',
|
10183
|
+
format: 'did',
|
10184
|
+
description:
|
10185
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
10186
|
+
},
|
10187
|
+
limit: {
|
10188
|
+
type: 'integer',
|
10189
|
+
minimum: 1,
|
10190
|
+
maximum: 25,
|
10191
|
+
default: 10,
|
10192
|
+
},
|
10193
|
+
},
|
10194
|
+
},
|
10195
|
+
output: {
|
10196
|
+
encoding: 'application/json',
|
10197
|
+
schema: {
|
10198
|
+
type: 'object',
|
10199
|
+
required: ['trends'],
|
10200
|
+
properties: {
|
10201
|
+
trends: {
|
10202
|
+
type: 'array',
|
10203
|
+
items: {
|
10204
|
+
type: 'ref',
|
10205
|
+
ref: 'lex:app.bsky.unspecced.defs#skeletonTrend',
|
10206
|
+
},
|
10207
|
+
},
|
10208
|
+
},
|
10209
|
+
},
|
10210
|
+
},
|
10211
|
+
},
|
10212
|
+
},
|
10213
|
+
},
|
9937
10214
|
AppBskyUnspeccedSearchActorsSkeleton: {
|
9938
10215
|
lexicon: 1,
|
9939
10216
|
id: 'app.bsky.unspecced.searchActorsSkeleton',
|
@@ -14804,6 +15081,8 @@ export const ids = {
|
|
14804
15081
|
ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
|
14805
15082
|
ComAtprotoAdminUpdateAccountPassword:
|
14806
15083
|
'com.atproto.admin.updateAccountPassword',
|
15084
|
+
ComAtprotoAdminUpdateAccountSigningKey:
|
15085
|
+
'com.atproto.admin.updateAccountSigningKey',
|
14807
15086
|
ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
|
14808
15087
|
ComAtprotoIdentityDefs: 'com.atproto.identity.defs',
|
14809
15088
|
ComAtprotoIdentityGetRecommendedDidCredentials:
|
@@ -14968,11 +15247,17 @@ export const ids = {
|
|
14968
15247
|
AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
|
14969
15248
|
AppBskyUnspeccedGetPopularFeedGenerators:
|
14970
15249
|
'app.bsky.unspecced.getPopularFeedGenerators',
|
15250
|
+
AppBskyUnspeccedGetSuggestedStarterPacks:
|
15251
|
+
'app.bsky.unspecced.getSuggestedStarterPacks',
|
15252
|
+
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:
|
15253
|
+
'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
|
14971
15254
|
AppBskyUnspeccedGetSuggestionsSkeleton:
|
14972
15255
|
'app.bsky.unspecced.getSuggestionsSkeleton',
|
14973
15256
|
AppBskyUnspeccedGetTaggedSuggestions:
|
14974
15257
|
'app.bsky.unspecced.getTaggedSuggestions',
|
14975
15258
|
AppBskyUnspeccedGetTrendingTopics: 'app.bsky.unspecced.getTrendingTopics',
|
15259
|
+
AppBskyUnspeccedGetTrends: 'app.bsky.unspecced.getTrends',
|
15260
|
+
AppBskyUnspeccedGetTrendsSkeleton: 'app.bsky.unspecced.getTrendsSkeleton',
|
14976
15261
|
AppBskyUnspeccedSearchActorsSkeleton:
|
14977
15262
|
'app.bsky.unspecced.searchActorsSkeleton',
|
14978
15263
|
AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
|
@@ -9,6 +9,7 @@ import {
|
|
9
9
|
is$typed as _is$typed,
|
10
10
|
type OmitKey,
|
11
11
|
} from '../../../../util'
|
12
|
+
import type * as AppBskyActorDefs from '../actor/defs.js'
|
12
13
|
|
13
14
|
const is$typed = _is$typed,
|
14
15
|
validate = _validate
|
@@ -80,3 +81,47 @@ export function isTrendingTopic<V>(v: V) {
|
|
80
81
|
export function validateTrendingTopic<V>(v: V) {
|
81
82
|
return validate<TrendingTopic & V>(v, id, hashTrendingTopic)
|
82
83
|
}
|
84
|
+
|
85
|
+
export interface SkeletonTrend {
|
86
|
+
$type?: 'app.bsky.unspecced.defs#skeletonTrend'
|
87
|
+
topic: string
|
88
|
+
displayName: string
|
89
|
+
link: string
|
90
|
+
startedAt: string
|
91
|
+
postCount: number
|
92
|
+
status?: 'hot' | (string & {})
|
93
|
+
category?: string
|
94
|
+
dids: string[]
|
95
|
+
}
|
96
|
+
|
97
|
+
const hashSkeletonTrend = 'skeletonTrend'
|
98
|
+
|
99
|
+
export function isSkeletonTrend<V>(v: V) {
|
100
|
+
return is$typed(v, id, hashSkeletonTrend)
|
101
|
+
}
|
102
|
+
|
103
|
+
export function validateSkeletonTrend<V>(v: V) {
|
104
|
+
return validate<SkeletonTrend & V>(v, id, hashSkeletonTrend)
|
105
|
+
}
|
106
|
+
|
107
|
+
export interface TrendView {
|
108
|
+
$type?: 'app.bsky.unspecced.defs#trendView'
|
109
|
+
topic: string
|
110
|
+
displayName: string
|
111
|
+
link: string
|
112
|
+
startedAt: string
|
113
|
+
postCount: number
|
114
|
+
status?: 'hot' | (string & {})
|
115
|
+
category?: string
|
116
|
+
actors: AppBskyActorDefs.ProfileViewBasic[]
|
117
|
+
}
|
118
|
+
|
119
|
+
const hashTrendView = 'trendView'
|
120
|
+
|
121
|
+
export function isTrendView<V>(v: V) {
|
122
|
+
return is$typed(v, id, hashTrendView)
|
123
|
+
}
|
124
|
+
|
125
|
+
export function validateTrendView<V>(v: V) {
|
126
|
+
return validate<TrendView & V>(v, id, hashTrendView)
|
127
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
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 { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
14
|
+
import type * as AppBskyGraphDefs from '../graph/defs.js'
|
15
|
+
|
16
|
+
const is$typed = _is$typed,
|
17
|
+
validate = _validate
|
18
|
+
const id = 'app.bsky.unspecced.getSuggestedStarterPacks'
|
19
|
+
|
20
|
+
export interface QueryParams {
|
21
|
+
limit: number
|
22
|
+
}
|
23
|
+
|
24
|
+
export type InputSchema = undefined
|
25
|
+
|
26
|
+
export interface OutputSchema {
|
27
|
+
starterPacks: AppBskyGraphDefs.StarterPackViewBasic[]
|
28
|
+
}
|
29
|
+
|
30
|
+
export type HandlerInput = undefined
|
31
|
+
|
32
|
+
export interface HandlerSuccess {
|
33
|
+
encoding: 'application/json'
|
34
|
+
body: OutputSchema
|
35
|
+
headers?: { [key: string]: string }
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface HandlerError {
|
39
|
+
status: number
|
40
|
+
message?: string
|
41
|
+
}
|
42
|
+
|
43
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
44
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
45
|
+
auth: HA
|
46
|
+
params: QueryParams
|
47
|
+
input: HandlerInput
|
48
|
+
req: express.Request
|
49
|
+
res: express.Response
|
50
|
+
resetRouteRateLimits: () => Promise<void>
|
51
|
+
}
|
52
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
53
|
+
ctx: HandlerReqCtx<HA>,
|
54
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,55 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
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 { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
14
|
+
|
15
|
+
const is$typed = _is$typed,
|
16
|
+
validate = _validate
|
17
|
+
const id = 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton'
|
18
|
+
|
19
|
+
export interface QueryParams {
|
20
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
21
|
+
viewer?: string
|
22
|
+
limit: number
|
23
|
+
}
|
24
|
+
|
25
|
+
export type InputSchema = undefined
|
26
|
+
|
27
|
+
export interface OutputSchema {
|
28
|
+
starterPacks: string[]
|
29
|
+
}
|
30
|
+
|
31
|
+
export type HandlerInput = undefined
|
32
|
+
|
33
|
+
export interface HandlerSuccess {
|
34
|
+
encoding: 'application/json'
|
35
|
+
body: OutputSchema
|
36
|
+
headers?: { [key: string]: string }
|
37
|
+
}
|
38
|
+
|
39
|
+
export interface HandlerError {
|
40
|
+
status: number
|
41
|
+
message?: string
|
42
|
+
}
|
43
|
+
|
44
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
45
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
46
|
+
auth: HA
|
47
|
+
params: QueryParams
|
48
|
+
input: HandlerInput
|
49
|
+
req: express.Request
|
50
|
+
res: express.Response
|
51
|
+
resetRouteRateLimits: () => Promise<void>
|
52
|
+
}
|
53
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
54
|
+
ctx: HandlerReqCtx<HA>,
|
55
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
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 { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
14
|
+
import type * as AppBskyUnspeccedDefs from './defs.js'
|
15
|
+
|
16
|
+
const is$typed = _is$typed,
|
17
|
+
validate = _validate
|
18
|
+
const id = 'app.bsky.unspecced.getTrends'
|
19
|
+
|
20
|
+
export interface QueryParams {
|
21
|
+
limit: number
|
22
|
+
}
|
23
|
+
|
24
|
+
export type InputSchema = undefined
|
25
|
+
|
26
|
+
export interface OutputSchema {
|
27
|
+
trends: AppBskyUnspeccedDefs.TrendView[]
|
28
|
+
}
|
29
|
+
|
30
|
+
export type HandlerInput = undefined
|
31
|
+
|
32
|
+
export interface HandlerSuccess {
|
33
|
+
encoding: 'application/json'
|
34
|
+
body: OutputSchema
|
35
|
+
headers?: { [key: string]: string }
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface HandlerError {
|
39
|
+
status: number
|
40
|
+
message?: string
|
41
|
+
}
|
42
|
+
|
43
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
44
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
45
|
+
auth: HA
|
46
|
+
params: QueryParams
|
47
|
+
input: HandlerInput
|
48
|
+
req: express.Request
|
49
|
+
res: express.Response
|
50
|
+
resetRouteRateLimits: () => Promise<void>
|
51
|
+
}
|
52
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
53
|
+
ctx: HandlerReqCtx<HA>,
|
54
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
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 { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
14
|
+
import type * as AppBskyUnspeccedDefs from './defs.js'
|
15
|
+
|
16
|
+
const is$typed = _is$typed,
|
17
|
+
validate = _validate
|
18
|
+
const id = 'app.bsky.unspecced.getTrendsSkeleton'
|
19
|
+
|
20
|
+
export interface QueryParams {
|
21
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
22
|
+
viewer?: string
|
23
|
+
limit: number
|
24
|
+
}
|
25
|
+
|
26
|
+
export type InputSchema = undefined
|
27
|
+
|
28
|
+
export interface OutputSchema {
|
29
|
+
trends: AppBskyUnspeccedDefs.SkeletonTrend[]
|
30
|
+
}
|
31
|
+
|
32
|
+
export type HandlerInput = undefined
|
33
|
+
|
34
|
+
export interface HandlerSuccess {
|
35
|
+
encoding: 'application/json'
|
36
|
+
body: OutputSchema
|
37
|
+
headers?: { [key: string]: string }
|
38
|
+
}
|
39
|
+
|
40
|
+
export interface HandlerError {
|
41
|
+
status: number
|
42
|
+
message?: string
|
43
|
+
}
|
44
|
+
|
45
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
46
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
47
|
+
auth: HA
|
48
|
+
params: QueryParams
|
49
|
+
input: HandlerInput
|
50
|
+
req: express.Request
|
51
|
+
res: express.Response
|
52
|
+
resetRouteRateLimits: () => Promise<void>
|
53
|
+
}
|
54
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
55
|
+
ctx: HandlerReqCtx<HA>,
|
56
|
+
) => Promise<HandlerOutput> | HandlerOutput
|