@atproto/api 0.14.16 → 0.14.18
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 +18 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +27 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +516 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +277 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/defs.d.ts +27 -0
- package/dist/client/types/app/bsky/unspecced/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/defs.js +18 -0
- package/dist/client/types/app/bsky/unspecced/defs.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts +23 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacks.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacks.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts +24 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getTrends.d.ts +23 -0
- package/dist/client/types/app/bsky/unspecced/getTrends.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getTrends.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getTrends.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getTrendsSkeleton.d.ts +25 -0
- package/dist/client/types/app/bsky/unspecced/getTrendsSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getTrendsSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getTrendsSkeleton.js.map +1 -0
- package/dist/client/types/com/atproto/admin/updateAccountSigningKey.d.ts +23 -0
- package/dist/client/types/com/atproto/admin/updateAccountSigningKey.d.ts.map +1 -0
- package/dist/client/types/com/atproto/admin/updateAccountSigningKey.js +11 -0
- package/dist/client/types/com/atproto/admin/updateAccountSigningKey.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +70 -0
- package/src/client/lexicons.ts +285 -0
- package/src/client/types/app/bsky/unspecced/defs.ts +45 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +42 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +43 -0
- package/src/client/types/app/bsky/unspecced/getTrends.ts +42 -0
- package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +44 -0
- package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +40 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/src/client/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#starterPackView',
|
|
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,42 @@
|
|
|
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 AppBskyGraphDefs from '../graph/defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getSuggestedStarterPacks'
|
|
18
|
+
|
|
19
|
+
export interface QueryParams {
|
|
20
|
+
limit?: number
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type InputSchema = undefined
|
|
24
|
+
|
|
25
|
+
export interface OutputSchema {
|
|
26
|
+
starterPacks: AppBskyGraphDefs.StarterPackView[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface CallOptions {
|
|
30
|
+
signal?: AbortSignal
|
|
31
|
+
headers?: HeadersMap
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Response {
|
|
35
|
+
success: boolean
|
|
36
|
+
headers: HeadersMap
|
|
37
|
+
data: OutputSchema
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function toKnownErr(e: any) {
|
|
41
|
+
return e
|
|
42
|
+
}
|
|
@@ -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
|
+
|
|
14
|
+
const is$typed = _is$typed,
|
|
15
|
+
validate = _validate
|
|
16
|
+
const id = 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton'
|
|
17
|
+
|
|
18
|
+
export interface QueryParams {
|
|
19
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
20
|
+
viewer?: string
|
|
21
|
+
limit?: number
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type InputSchema = undefined
|
|
25
|
+
|
|
26
|
+
export interface OutputSchema {
|
|
27
|
+
starterPacks: 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,42 @@
|
|
|
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 AppBskyUnspeccedDefs from './defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getTrends'
|
|
18
|
+
|
|
19
|
+
export interface QueryParams {
|
|
20
|
+
limit?: number
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type InputSchema = undefined
|
|
24
|
+
|
|
25
|
+
export interface OutputSchema {
|
|
26
|
+
trends: AppBskyUnspeccedDefs.TrendView[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface CallOptions {
|
|
30
|
+
signal?: AbortSignal
|
|
31
|
+
headers?: HeadersMap
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Response {
|
|
35
|
+
success: boolean
|
|
36
|
+
headers: HeadersMap
|
|
37
|
+
data: OutputSchema
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function toKnownErr(e: any) {
|
|
41
|
+
return e
|
|
42
|
+
}
|
|
@@ -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
|
+
import type * as AppBskyUnspeccedDefs from './defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getTrendsSkeleton'
|
|
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
|
+
trends: AppBskyUnspeccedDefs.SkeletonTrend[]
|
|
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,40 @@
|
|
|
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 = 'com.atproto.admin.updateAccountSigningKey'
|
|
17
|
+
|
|
18
|
+
export interface QueryParams {}
|
|
19
|
+
|
|
20
|
+
export interface InputSchema {
|
|
21
|
+
did: string
|
|
22
|
+
/** Did-key formatted public key */
|
|
23
|
+
signingKey: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CallOptions {
|
|
27
|
+
signal?: AbortSignal
|
|
28
|
+
headers?: HeadersMap
|
|
29
|
+
qp?: QueryParams
|
|
30
|
+
encoding?: 'application/json'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface Response {
|
|
34
|
+
success: boolean
|
|
35
|
+
headers: HeadersMap
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function toKnownErr(e: any) {
|
|
39
|
+
return e
|
|
40
|
+
}
|