@atproto/api 0.12.21 → 0.12.22
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 +6 -0
- package/dist/client/index.d.ts +34 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +73 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +332 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +339 -1
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +5 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts +36 -1
- package/dist/client/types/app/bsky/graph/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/defs.js +23 -1
- package/dist/client/types/app/bsky/graph/defs.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts +26 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js +14 -0
- package/dist/client/types/app/bsky/graph/getActorStarterPacks.js.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts +24 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.js +14 -0
- package/dist/client/types/app/bsky/graph/getStarterPack.js.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.d.ts +23 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.js +14 -0
- package/dist/client/types/app/bsky/graph/getStarterPacks.js.map +1 -0
- package/dist/client/types/app/bsky/graph/starterpack.d.ts +25 -0
- package/dist/client/types/app/bsky/graph/starterpack.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/starterpack.js +27 -0
- package/dist/client/types/app/bsky/graph/starterpack.js.map +1 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +2 -2
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/client/types/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/client/types/tools/ozone/team/deleteMember.d.ts +3 -0
- package/dist/client/types/tools/ozone/team/deleteMember.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/team/deleteMember.js +9 -1
- package/dist/client/types/tools/ozone/team/deleteMember.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +109 -0
- package/src/client/lexicons.ts +341 -1
- package/src/client/types/app/bsky/actor/defs.ts +5 -0
- package/src/client/types/app/bsky/actor/profile.ts +3 -0
- package/src/client/types/app/bsky/graph/defs.ts +58 -0
- package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +39 -0
- package/src/client/types/app/bsky/graph/getStarterPack.ts +37 -0
- package/src/client/types/app/bsky/graph/getStarterPacks.ts +36 -0
- package/src/client/types/app/bsky/graph/starterpack.ts +50 -0
- package/src/client/types/app/bsky/notification/listNotifications.ts +2 -1
- package/src/client/types/tools/ozone/team/deleteMember.ts +7 -0
package/src/client/index.ts
CHANGED
|
@@ -125,6 +125,7 @@ import * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate'
|
|
|
125
125
|
import * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
126
126
|
import * as AppBskyGraphDefs from './types/app/bsky/graph/defs'
|
|
127
127
|
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
128
|
+
import * as AppBskyGraphGetActorStarterPacks from './types/app/bsky/graph/getActorStarterPacks'
|
|
128
129
|
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
129
130
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
130
131
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
@@ -135,6 +136,8 @@ import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
|
|
135
136
|
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists'
|
|
136
137
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
137
138
|
import * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships'
|
|
139
|
+
import * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack'
|
|
140
|
+
import * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks'
|
|
138
141
|
import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor'
|
|
139
142
|
import * as AppBskyGraphList from './types/app/bsky/graph/list'
|
|
140
143
|
import * as AppBskyGraphListblock from './types/app/bsky/graph/listblock'
|
|
@@ -142,6 +145,7 @@ import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
|
142
145
|
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
143
146
|
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
144
147
|
import * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread'
|
|
148
|
+
import * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack'
|
|
145
149
|
import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
146
150
|
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
147
151
|
import * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread'
|
|
@@ -317,6 +321,7 @@ export * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate'
|
|
|
317
321
|
export * as AppBskyGraphBlock from './types/app/bsky/graph/block'
|
|
318
322
|
export * as AppBskyGraphDefs from './types/app/bsky/graph/defs'
|
|
319
323
|
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
324
|
+
export * as AppBskyGraphGetActorStarterPacks from './types/app/bsky/graph/getActorStarterPacks'
|
|
320
325
|
export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
321
326
|
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
322
327
|
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
@@ -327,6 +332,8 @@ export * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
|
|
327
332
|
export * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists'
|
|
328
333
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
329
334
|
export * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships'
|
|
335
|
+
export * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack'
|
|
336
|
+
export * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks'
|
|
330
337
|
export * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor'
|
|
331
338
|
export * as AppBskyGraphList from './types/app/bsky/graph/list'
|
|
332
339
|
export * as AppBskyGraphListblock from './types/app/bsky/graph/listblock'
|
|
@@ -334,6 +341,7 @@ export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
|
334
341
|
export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
335
342
|
export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
336
343
|
export * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread'
|
|
344
|
+
export * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack'
|
|
337
345
|
export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
338
346
|
export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
339
347
|
export * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread'
|
|
@@ -417,6 +425,7 @@ export const APP_BSKY_FEED = {
|
|
|
417
425
|
export const APP_BSKY_GRAPH = {
|
|
418
426
|
DefsModlist: 'app.bsky.graph.defs#modlist',
|
|
419
427
|
DefsCuratelist: 'app.bsky.graph.defs#curatelist',
|
|
428
|
+
DefsReferencelist: 'app.bsky.graph.defs#referencelist',
|
|
420
429
|
}
|
|
421
430
|
export const TOOLS_OZONE_MODERATION = {
|
|
422
431
|
DefsReviewOpen: 'tools.ozone.moderation.defs#reviewOpen',
|
|
@@ -2075,6 +2084,7 @@ export class AppBskyGraphNS {
|
|
|
2075
2084
|
list: ListRecord
|
|
2076
2085
|
listblock: ListblockRecord
|
|
2077
2086
|
listitem: ListitemRecord
|
|
2087
|
+
starterpack: StarterpackRecord
|
|
2078
2088
|
|
|
2079
2089
|
constructor(service: AtpServiceClient) {
|
|
2080
2090
|
this._service = service
|
|
@@ -2083,6 +2093,18 @@ export class AppBskyGraphNS {
|
|
|
2083
2093
|
this.list = new ListRecord(service)
|
|
2084
2094
|
this.listblock = new ListblockRecord(service)
|
|
2085
2095
|
this.listitem = new ListitemRecord(service)
|
|
2096
|
+
this.starterpack = new StarterpackRecord(service)
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
getActorStarterPacks(
|
|
2100
|
+
params?: AppBskyGraphGetActorStarterPacks.QueryParams,
|
|
2101
|
+
opts?: AppBskyGraphGetActorStarterPacks.CallOptions,
|
|
2102
|
+
): Promise<AppBskyGraphGetActorStarterPacks.Response> {
|
|
2103
|
+
return this._service.xrpc
|
|
2104
|
+
.call('app.bsky.graph.getActorStarterPacks', params, undefined, opts)
|
|
2105
|
+
.catch((e) => {
|
|
2106
|
+
throw AppBskyGraphGetActorStarterPacks.toKnownErr(e)
|
|
2107
|
+
})
|
|
2086
2108
|
}
|
|
2087
2109
|
|
|
2088
2110
|
getBlocks(
|
|
@@ -2195,6 +2217,28 @@ export class AppBskyGraphNS {
|
|
|
2195
2217
|
})
|
|
2196
2218
|
}
|
|
2197
2219
|
|
|
2220
|
+
getStarterPack(
|
|
2221
|
+
params?: AppBskyGraphGetStarterPack.QueryParams,
|
|
2222
|
+
opts?: AppBskyGraphGetStarterPack.CallOptions,
|
|
2223
|
+
): Promise<AppBskyGraphGetStarterPack.Response> {
|
|
2224
|
+
return this._service.xrpc
|
|
2225
|
+
.call('app.bsky.graph.getStarterPack', params, undefined, opts)
|
|
2226
|
+
.catch((e) => {
|
|
2227
|
+
throw AppBskyGraphGetStarterPack.toKnownErr(e)
|
|
2228
|
+
})
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
getStarterPacks(
|
|
2232
|
+
params?: AppBskyGraphGetStarterPacks.QueryParams,
|
|
2233
|
+
opts?: AppBskyGraphGetStarterPacks.CallOptions,
|
|
2234
|
+
): Promise<AppBskyGraphGetStarterPacks.Response> {
|
|
2235
|
+
return this._service.xrpc
|
|
2236
|
+
.call('app.bsky.graph.getStarterPacks', params, undefined, opts)
|
|
2237
|
+
.catch((e) => {
|
|
2238
|
+
throw AppBskyGraphGetStarterPacks.toKnownErr(e)
|
|
2239
|
+
})
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2198
2242
|
getSuggestedFollowsByActor(
|
|
2199
2243
|
params?: AppBskyGraphGetSuggestedFollowsByActor.QueryParams,
|
|
2200
2244
|
opts?: AppBskyGraphGetSuggestedFollowsByActor.CallOptions,
|
|
@@ -2587,6 +2631,71 @@ export class ListitemRecord {
|
|
|
2587
2631
|
}
|
|
2588
2632
|
}
|
|
2589
2633
|
|
|
2634
|
+
export class StarterpackRecord {
|
|
2635
|
+
_service: AtpServiceClient
|
|
2636
|
+
|
|
2637
|
+
constructor(service: AtpServiceClient) {
|
|
2638
|
+
this._service = service
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
async list(
|
|
2642
|
+
params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
|
|
2643
|
+
): Promise<{
|
|
2644
|
+
cursor?: string
|
|
2645
|
+
records: { uri: string; value: AppBskyGraphStarterpack.Record }[]
|
|
2646
|
+
}> {
|
|
2647
|
+
const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
|
|
2648
|
+
collection: 'app.bsky.graph.starterpack',
|
|
2649
|
+
...params,
|
|
2650
|
+
})
|
|
2651
|
+
return res.data
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
async get(
|
|
2655
|
+
params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
|
|
2656
|
+
): Promise<{
|
|
2657
|
+
uri: string
|
|
2658
|
+
cid: string
|
|
2659
|
+
value: AppBskyGraphStarterpack.Record
|
|
2660
|
+
}> {
|
|
2661
|
+
const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
|
|
2662
|
+
collection: 'app.bsky.graph.starterpack',
|
|
2663
|
+
...params,
|
|
2664
|
+
})
|
|
2665
|
+
return res.data
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
async create(
|
|
2669
|
+
params: Omit<
|
|
2670
|
+
ComAtprotoRepoCreateRecord.InputSchema,
|
|
2671
|
+
'collection' | 'record'
|
|
2672
|
+
>,
|
|
2673
|
+
record: AppBskyGraphStarterpack.Record,
|
|
2674
|
+
headers?: Record<string, string>,
|
|
2675
|
+
): Promise<{ uri: string; cid: string }> {
|
|
2676
|
+
record.$type = 'app.bsky.graph.starterpack'
|
|
2677
|
+
const res = await this._service.xrpc.call(
|
|
2678
|
+
'com.atproto.repo.createRecord',
|
|
2679
|
+
undefined,
|
|
2680
|
+
{ collection: 'app.bsky.graph.starterpack', ...params, record },
|
|
2681
|
+
{ encoding: 'application/json', headers },
|
|
2682
|
+
)
|
|
2683
|
+
return res.data
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
async delete(
|
|
2687
|
+
params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2688
|
+
headers?: Record<string, string>,
|
|
2689
|
+
): Promise<void> {
|
|
2690
|
+
await this._service.xrpc.call(
|
|
2691
|
+
'com.atproto.repo.deleteRecord',
|
|
2692
|
+
undefined,
|
|
2693
|
+
{ collection: 'app.bsky.graph.starterpack', ...params },
|
|
2694
|
+
{ headers },
|
|
2695
|
+
)
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2590
2699
|
export class AppBskyLabelerNS {
|
|
2591
2700
|
_service: AtpServiceClient
|
|
2592
2701
|
service: ServiceRecord
|
package/src/client/lexicons.ts
CHANGED
|
@@ -3939,6 +3939,10 @@ export const schemaDict = {
|
|
|
3939
3939
|
ref: 'lex:com.atproto.label.defs#label',
|
|
3940
3940
|
},
|
|
3941
3941
|
},
|
|
3942
|
+
createdAt: {
|
|
3943
|
+
type: 'string',
|
|
3944
|
+
format: 'datetime',
|
|
3945
|
+
},
|
|
3942
3946
|
},
|
|
3943
3947
|
},
|
|
3944
3948
|
profileView: {
|
|
@@ -3975,6 +3979,10 @@ export const schemaDict = {
|
|
|
3975
3979
|
type: 'string',
|
|
3976
3980
|
format: 'datetime',
|
|
3977
3981
|
},
|
|
3982
|
+
createdAt: {
|
|
3983
|
+
type: 'string',
|
|
3984
|
+
format: 'datetime',
|
|
3985
|
+
},
|
|
3978
3986
|
viewer: {
|
|
3979
3987
|
type: 'ref',
|
|
3980
3988
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -4031,10 +4039,18 @@ export const schemaDict = {
|
|
|
4031
4039
|
type: 'ref',
|
|
4032
4040
|
ref: 'lex:app.bsky.actor.defs#profileAssociated',
|
|
4033
4041
|
},
|
|
4042
|
+
joinedViaStarterPack: {
|
|
4043
|
+
type: 'ref',
|
|
4044
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
4045
|
+
},
|
|
4034
4046
|
indexedAt: {
|
|
4035
4047
|
type: 'string',
|
|
4036
4048
|
format: 'datetime',
|
|
4037
4049
|
},
|
|
4050
|
+
createdAt: {
|
|
4051
|
+
type: 'string',
|
|
4052
|
+
format: 'datetime',
|
|
4053
|
+
},
|
|
4038
4054
|
viewer: {
|
|
4039
4055
|
type: 'ref',
|
|
4040
4056
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -4057,6 +4073,9 @@ export const schemaDict = {
|
|
|
4057
4073
|
feedgens: {
|
|
4058
4074
|
type: 'integer',
|
|
4059
4075
|
},
|
|
4076
|
+
starterPacks: {
|
|
4077
|
+
type: 'integer',
|
|
4078
|
+
},
|
|
4060
4079
|
labeler: {
|
|
4061
4080
|
type: 'boolean',
|
|
4062
4081
|
},
|
|
@@ -4573,6 +4592,14 @@ export const schemaDict = {
|
|
|
4573
4592
|
'Self-label values, specific to the Bluesky application, on the overall account.',
|
|
4574
4593
|
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
4575
4594
|
},
|
|
4595
|
+
joinedViaStarterPack: {
|
|
4596
|
+
type: 'ref',
|
|
4597
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
4598
|
+
},
|
|
4599
|
+
createdAt: {
|
|
4600
|
+
type: 'string',
|
|
4601
|
+
format: 'datetime',
|
|
4602
|
+
},
|
|
4576
4603
|
},
|
|
4577
4604
|
},
|
|
4578
4605
|
},
|
|
@@ -6792,6 +6819,10 @@ export const schemaDict = {
|
|
|
6792
6819
|
type: 'string',
|
|
6793
6820
|
format: 'uri',
|
|
6794
6821
|
},
|
|
6822
|
+
listItemCount: {
|
|
6823
|
+
type: 'integer',
|
|
6824
|
+
minimum: 0,
|
|
6825
|
+
},
|
|
6795
6826
|
labels: {
|
|
6796
6827
|
type: 'array',
|
|
6797
6828
|
items: {
|
|
@@ -6850,6 +6881,10 @@ export const schemaDict = {
|
|
|
6850
6881
|
type: 'string',
|
|
6851
6882
|
format: 'uri',
|
|
6852
6883
|
},
|
|
6884
|
+
listItemCount: {
|
|
6885
|
+
type: 'integer',
|
|
6886
|
+
minimum: 0,
|
|
6887
|
+
},
|
|
6853
6888
|
labels: {
|
|
6854
6889
|
type: 'array',
|
|
6855
6890
|
items: {
|
|
@@ -6881,11 +6916,116 @@ export const schemaDict = {
|
|
|
6881
6916
|
},
|
|
6882
6917
|
},
|
|
6883
6918
|
},
|
|
6919
|
+
starterPackView: {
|
|
6920
|
+
type: 'object',
|
|
6921
|
+
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
6922
|
+
properties: {
|
|
6923
|
+
uri: {
|
|
6924
|
+
type: 'string',
|
|
6925
|
+
format: 'at-uri',
|
|
6926
|
+
},
|
|
6927
|
+
cid: {
|
|
6928
|
+
type: 'string',
|
|
6929
|
+
format: 'cid',
|
|
6930
|
+
},
|
|
6931
|
+
record: {
|
|
6932
|
+
type: 'unknown',
|
|
6933
|
+
},
|
|
6934
|
+
creator: {
|
|
6935
|
+
type: 'ref',
|
|
6936
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
6937
|
+
},
|
|
6938
|
+
list: {
|
|
6939
|
+
type: 'ref',
|
|
6940
|
+
ref: 'lex:app.bsky.graph.defs#listViewBasic',
|
|
6941
|
+
},
|
|
6942
|
+
listItemsSample: {
|
|
6943
|
+
type: 'array',
|
|
6944
|
+
maxLength: 12,
|
|
6945
|
+
items: {
|
|
6946
|
+
type: 'ref',
|
|
6947
|
+
ref: 'lex:app.bsky.graph.defs#listItemView',
|
|
6948
|
+
},
|
|
6949
|
+
},
|
|
6950
|
+
feeds: {
|
|
6951
|
+
type: 'array',
|
|
6952
|
+
maxLength: 3,
|
|
6953
|
+
items: {
|
|
6954
|
+
type: 'ref',
|
|
6955
|
+
ref: 'lex:app.bsky.feed.defs#generatorView',
|
|
6956
|
+
},
|
|
6957
|
+
},
|
|
6958
|
+
joinedWeekCount: {
|
|
6959
|
+
type: 'integer',
|
|
6960
|
+
minimum: 0,
|
|
6961
|
+
},
|
|
6962
|
+
joinedAllTimeCount: {
|
|
6963
|
+
type: 'integer',
|
|
6964
|
+
minimum: 0,
|
|
6965
|
+
},
|
|
6966
|
+
labels: {
|
|
6967
|
+
type: 'array',
|
|
6968
|
+
items: {
|
|
6969
|
+
type: 'ref',
|
|
6970
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
6971
|
+
},
|
|
6972
|
+
},
|
|
6973
|
+
indexedAt: {
|
|
6974
|
+
type: 'string',
|
|
6975
|
+
format: 'datetime',
|
|
6976
|
+
},
|
|
6977
|
+
},
|
|
6978
|
+
},
|
|
6979
|
+
starterPackViewBasic: {
|
|
6980
|
+
type: 'object',
|
|
6981
|
+
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
6982
|
+
properties: {
|
|
6983
|
+
uri: {
|
|
6984
|
+
type: 'string',
|
|
6985
|
+
format: 'at-uri',
|
|
6986
|
+
},
|
|
6987
|
+
cid: {
|
|
6988
|
+
type: 'string',
|
|
6989
|
+
format: 'cid',
|
|
6990
|
+
},
|
|
6991
|
+
record: {
|
|
6992
|
+
type: 'unknown',
|
|
6993
|
+
},
|
|
6994
|
+
creator: {
|
|
6995
|
+
type: 'ref',
|
|
6996
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
6997
|
+
},
|
|
6998
|
+
listItemCount: {
|
|
6999
|
+
type: 'integer',
|
|
7000
|
+
minimum: 0,
|
|
7001
|
+
},
|
|
7002
|
+
joinedWeekCount: {
|
|
7003
|
+
type: 'integer',
|
|
7004
|
+
minimum: 0,
|
|
7005
|
+
},
|
|
7006
|
+
joinedAllTimeCount: {
|
|
7007
|
+
type: 'integer',
|
|
7008
|
+
minimum: 0,
|
|
7009
|
+
},
|
|
7010
|
+
labels: {
|
|
7011
|
+
type: 'array',
|
|
7012
|
+
items: {
|
|
7013
|
+
type: 'ref',
|
|
7014
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
7015
|
+
},
|
|
7016
|
+
},
|
|
7017
|
+
indexedAt: {
|
|
7018
|
+
type: 'string',
|
|
7019
|
+
format: 'datetime',
|
|
7020
|
+
},
|
|
7021
|
+
},
|
|
7022
|
+
},
|
|
6884
7023
|
listPurpose: {
|
|
6885
7024
|
type: 'string',
|
|
6886
7025
|
knownValues: [
|
|
6887
7026
|
'app.bsky.graph.defs#modlist',
|
|
6888
7027
|
'app.bsky.graph.defs#curatelist',
|
|
7028
|
+
'app.bsky.graph.defs#referencelist',
|
|
6889
7029
|
],
|
|
6890
7030
|
},
|
|
6891
7031
|
modlist: {
|
|
@@ -6898,6 +7038,11 @@ export const schemaDict = {
|
|
|
6898
7038
|
description:
|
|
6899
7039
|
'A list of actors used for curation purposes such as list feeds or interaction gating.',
|
|
6900
7040
|
},
|
|
7041
|
+
referencelist: {
|
|
7042
|
+
type: 'token',
|
|
7043
|
+
description:
|
|
7044
|
+
'A list of actors used for only for reference purposes such as within a starter pack.',
|
|
7045
|
+
},
|
|
6901
7046
|
listViewerState: {
|
|
6902
7047
|
type: 'object',
|
|
6903
7048
|
properties: {
|
|
@@ -6977,6 +7122,54 @@ export const schemaDict = {
|
|
|
6977
7122
|
},
|
|
6978
7123
|
},
|
|
6979
7124
|
},
|
|
7125
|
+
AppBskyGraphGetActorStarterPacks: {
|
|
7126
|
+
lexicon: 1,
|
|
7127
|
+
id: 'app.bsky.graph.getActorStarterPacks',
|
|
7128
|
+
defs: {
|
|
7129
|
+
main: {
|
|
7130
|
+
type: 'query',
|
|
7131
|
+
description: 'Get a list of starter packs created by the actor.',
|
|
7132
|
+
parameters: {
|
|
7133
|
+
type: 'params',
|
|
7134
|
+
required: ['actor'],
|
|
7135
|
+
properties: {
|
|
7136
|
+
actor: {
|
|
7137
|
+
type: 'string',
|
|
7138
|
+
format: 'at-identifier',
|
|
7139
|
+
},
|
|
7140
|
+
limit: {
|
|
7141
|
+
type: 'integer',
|
|
7142
|
+
minimum: 1,
|
|
7143
|
+
maximum: 100,
|
|
7144
|
+
default: 50,
|
|
7145
|
+
},
|
|
7146
|
+
cursor: {
|
|
7147
|
+
type: 'string',
|
|
7148
|
+
},
|
|
7149
|
+
},
|
|
7150
|
+
},
|
|
7151
|
+
output: {
|
|
7152
|
+
encoding: 'application/json',
|
|
7153
|
+
schema: {
|
|
7154
|
+
type: 'object',
|
|
7155
|
+
required: ['starterPacks'],
|
|
7156
|
+
properties: {
|
|
7157
|
+
cursor: {
|
|
7158
|
+
type: 'string',
|
|
7159
|
+
},
|
|
7160
|
+
starterPacks: {
|
|
7161
|
+
type: 'array',
|
|
7162
|
+
items: {
|
|
7163
|
+
type: 'ref',
|
|
7164
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
7165
|
+
},
|
|
7166
|
+
},
|
|
7167
|
+
},
|
|
7168
|
+
},
|
|
7169
|
+
},
|
|
7170
|
+
},
|
|
7171
|
+
},
|
|
7172
|
+
},
|
|
6980
7173
|
AppBskyGraphGetBlocks: {
|
|
6981
7174
|
lexicon: 1,
|
|
6982
7175
|
id: 'app.bsky.graph.getBlocks',
|
|
@@ -7478,6 +7671,80 @@ export const schemaDict = {
|
|
|
7478
7671
|
},
|
|
7479
7672
|
},
|
|
7480
7673
|
},
|
|
7674
|
+
AppBskyGraphGetStarterPack: {
|
|
7675
|
+
lexicon: 1,
|
|
7676
|
+
id: 'app.bsky.graph.getStarterPack',
|
|
7677
|
+
defs: {
|
|
7678
|
+
main: {
|
|
7679
|
+
type: 'query',
|
|
7680
|
+
description: 'Gets a view of a starter pack.',
|
|
7681
|
+
parameters: {
|
|
7682
|
+
type: 'params',
|
|
7683
|
+
required: ['starterPack'],
|
|
7684
|
+
properties: {
|
|
7685
|
+
starterPack: {
|
|
7686
|
+
type: 'string',
|
|
7687
|
+
format: 'at-uri',
|
|
7688
|
+
description: 'Reference (AT-URI) of the starter pack record.',
|
|
7689
|
+
},
|
|
7690
|
+
},
|
|
7691
|
+
},
|
|
7692
|
+
output: {
|
|
7693
|
+
encoding: 'application/json',
|
|
7694
|
+
schema: {
|
|
7695
|
+
type: 'object',
|
|
7696
|
+
required: ['starterPack'],
|
|
7697
|
+
properties: {
|
|
7698
|
+
starterPack: {
|
|
7699
|
+
type: 'ref',
|
|
7700
|
+
ref: 'lex:app.bsky.graph.defs#starterPackView',
|
|
7701
|
+
},
|
|
7702
|
+
},
|
|
7703
|
+
},
|
|
7704
|
+
},
|
|
7705
|
+
},
|
|
7706
|
+
},
|
|
7707
|
+
},
|
|
7708
|
+
AppBskyGraphGetStarterPacks: {
|
|
7709
|
+
lexicon: 1,
|
|
7710
|
+
id: 'app.bsky.graph.getStarterPacks',
|
|
7711
|
+
defs: {
|
|
7712
|
+
main: {
|
|
7713
|
+
type: 'query',
|
|
7714
|
+
description: 'Get views for a list of starter packs.',
|
|
7715
|
+
parameters: {
|
|
7716
|
+
type: 'params',
|
|
7717
|
+
required: ['uris'],
|
|
7718
|
+
properties: {
|
|
7719
|
+
uris: {
|
|
7720
|
+
type: 'array',
|
|
7721
|
+
items: {
|
|
7722
|
+
type: 'string',
|
|
7723
|
+
format: 'at-uri',
|
|
7724
|
+
},
|
|
7725
|
+
maxLength: 25,
|
|
7726
|
+
},
|
|
7727
|
+
},
|
|
7728
|
+
},
|
|
7729
|
+
output: {
|
|
7730
|
+
encoding: 'application/json',
|
|
7731
|
+
schema: {
|
|
7732
|
+
type: 'object',
|
|
7733
|
+
required: ['starterPacks'],
|
|
7734
|
+
properties: {
|
|
7735
|
+
starterPacks: {
|
|
7736
|
+
type: 'array',
|
|
7737
|
+
items: {
|
|
7738
|
+
type: 'ref',
|
|
7739
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
7740
|
+
},
|
|
7741
|
+
},
|
|
7742
|
+
},
|
|
7743
|
+
},
|
|
7744
|
+
},
|
|
7745
|
+
},
|
|
7746
|
+
},
|
|
7747
|
+
},
|
|
7481
7748
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
|
7482
7749
|
lexicon: 1,
|
|
7483
7750
|
id: 'app.bsky.graph.getSuggestedFollowsByActor',
|
|
@@ -7702,6 +7969,70 @@ export const schemaDict = {
|
|
|
7702
7969
|
},
|
|
7703
7970
|
},
|
|
7704
7971
|
},
|
|
7972
|
+
AppBskyGraphStarterpack: {
|
|
7973
|
+
lexicon: 1,
|
|
7974
|
+
id: 'app.bsky.graph.starterpack',
|
|
7975
|
+
defs: {
|
|
7976
|
+
main: {
|
|
7977
|
+
type: 'record',
|
|
7978
|
+
description:
|
|
7979
|
+
'Record defining a starter pack of actors and feeds for new users.',
|
|
7980
|
+
key: 'tid',
|
|
7981
|
+
record: {
|
|
7982
|
+
type: 'object',
|
|
7983
|
+
required: ['name', 'list', 'createdAt'],
|
|
7984
|
+
properties: {
|
|
7985
|
+
name: {
|
|
7986
|
+
type: 'string',
|
|
7987
|
+
maxGraphemes: 50,
|
|
7988
|
+
maxLength: 500,
|
|
7989
|
+
minLength: 1,
|
|
7990
|
+
description: 'Display name for starter pack; can not be empty.',
|
|
7991
|
+
},
|
|
7992
|
+
description: {
|
|
7993
|
+
type: 'string',
|
|
7994
|
+
maxGraphemes: 300,
|
|
7995
|
+
maxLength: 3000,
|
|
7996
|
+
},
|
|
7997
|
+
descriptionFacets: {
|
|
7998
|
+
type: 'array',
|
|
7999
|
+
items: {
|
|
8000
|
+
type: 'ref',
|
|
8001
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
8002
|
+
},
|
|
8003
|
+
},
|
|
8004
|
+
list: {
|
|
8005
|
+
type: 'string',
|
|
8006
|
+
format: 'at-uri',
|
|
8007
|
+
description: 'Reference (AT-URI) to the list record.',
|
|
8008
|
+
},
|
|
8009
|
+
feeds: {
|
|
8010
|
+
type: 'array',
|
|
8011
|
+
maxLength: 3,
|
|
8012
|
+
items: {
|
|
8013
|
+
type: 'ref',
|
|
8014
|
+
ref: 'lex:app.bsky.graph.starterpack#feedItem',
|
|
8015
|
+
},
|
|
8016
|
+
},
|
|
8017
|
+
createdAt: {
|
|
8018
|
+
type: 'string',
|
|
8019
|
+
format: 'datetime',
|
|
8020
|
+
},
|
|
8021
|
+
},
|
|
8022
|
+
},
|
|
8023
|
+
},
|
|
8024
|
+
feedItem: {
|
|
8025
|
+
type: 'object',
|
|
8026
|
+
required: ['uri'],
|
|
8027
|
+
properties: {
|
|
8028
|
+
uri: {
|
|
8029
|
+
type: 'string',
|
|
8030
|
+
format: 'at-uri',
|
|
8031
|
+
},
|
|
8032
|
+
},
|
|
8033
|
+
},
|
|
8034
|
+
},
|
|
8035
|
+
},
|
|
7705
8036
|
AppBskyGraphUnmuteActor: {
|
|
7706
8037
|
lexicon: 1,
|
|
7707
8038
|
id: 'app.bsky.graph.unmuteActor',
|
|
@@ -8072,7 +8403,7 @@ export const schemaDict = {
|
|
|
8072
8403
|
reason: {
|
|
8073
8404
|
type: 'string',
|
|
8074
8405
|
description:
|
|
8075
|
-
"Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and '
|
|
8406
|
+
"Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', and 'starterpack-joined'.",
|
|
8076
8407
|
knownValues: [
|
|
8077
8408
|
'like',
|
|
8078
8409
|
'repost',
|
|
@@ -8080,6 +8411,7 @@ export const schemaDict = {
|
|
|
8080
8411
|
'mention',
|
|
8081
8412
|
'reply',
|
|
8082
8413
|
'quote',
|
|
8414
|
+
'starterpack-joined',
|
|
8083
8415
|
],
|
|
8084
8416
|
},
|
|
8085
8417
|
reasonSubject: {
|
|
@@ -11131,6 +11463,10 @@ export const schemaDict = {
|
|
|
11131
11463
|
name: 'MemberNotFound',
|
|
11132
11464
|
description: 'The member being deleted does not exist',
|
|
11133
11465
|
},
|
|
11466
|
+
{
|
|
11467
|
+
name: 'CannotDeleteSelf',
|
|
11468
|
+
description: 'You can not delete yourself from the team',
|
|
11469
|
+
},
|
|
11134
11470
|
],
|
|
11135
11471
|
},
|
|
11136
11472
|
},
|
|
@@ -11358,6 +11694,7 @@ export const ids = {
|
|
|
11358
11694
|
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
11359
11695
|
AppBskyGraphDefs: 'app.bsky.graph.defs',
|
|
11360
11696
|
AppBskyGraphFollow: 'app.bsky.graph.follow',
|
|
11697
|
+
AppBskyGraphGetActorStarterPacks: 'app.bsky.graph.getActorStarterPacks',
|
|
11361
11698
|
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
|
11362
11699
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
11363
11700
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
@@ -11368,6 +11705,8 @@ export const ids = {
|
|
|
11368
11705
|
AppBskyGraphGetLists: 'app.bsky.graph.getLists',
|
|
11369
11706
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
11370
11707
|
AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
|
|
11708
|
+
AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
|
|
11709
|
+
AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks',
|
|
11371
11710
|
AppBskyGraphGetSuggestedFollowsByActor:
|
|
11372
11711
|
'app.bsky.graph.getSuggestedFollowsByActor',
|
|
11373
11712
|
AppBskyGraphList: 'app.bsky.graph.list',
|
|
@@ -11376,6 +11715,7 @@ export const ids = {
|
|
|
11376
11715
|
AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
|
|
11377
11716
|
AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
|
|
11378
11717
|
AppBskyGraphMuteThread: 'app.bsky.graph.muteThread',
|
|
11718
|
+
AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
|
|
11379
11719
|
AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
|
|
11380
11720
|
AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
|
|
11381
11721
|
AppBskyGraphUnmuteThread: 'app.bsky.graph.unmuteThread',
|
|
@@ -16,6 +16,7 @@ export interface ProfileViewBasic {
|
|
|
16
16
|
associated?: ProfileAssociated
|
|
17
17
|
viewer?: ViewerState
|
|
18
18
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
19
|
+
createdAt?: string
|
|
19
20
|
[k: string]: unknown
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -39,6 +40,7 @@ export interface ProfileView {
|
|
|
39
40
|
avatar?: string
|
|
40
41
|
associated?: ProfileAssociated
|
|
41
42
|
indexedAt?: string
|
|
43
|
+
createdAt?: string
|
|
42
44
|
viewer?: ViewerState
|
|
43
45
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
44
46
|
[k: string]: unknown
|
|
@@ -67,7 +69,9 @@ export interface ProfileViewDetailed {
|
|
|
67
69
|
followsCount?: number
|
|
68
70
|
postsCount?: number
|
|
69
71
|
associated?: ProfileAssociated
|
|
72
|
+
joinedViaStarterPack?: AppBskyGraphDefs.StarterPackViewBasic
|
|
70
73
|
indexedAt?: string
|
|
74
|
+
createdAt?: string
|
|
71
75
|
viewer?: ViewerState
|
|
72
76
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
73
77
|
[k: string]: unknown
|
|
@@ -88,6 +92,7 @@ export function validateProfileViewDetailed(v: unknown): ValidationResult {
|
|
|
88
92
|
export interface ProfileAssociated {
|
|
89
93
|
lists?: number
|
|
90
94
|
feedgens?: number
|
|
95
|
+
starterPacks?: number
|
|
91
96
|
labeler?: boolean
|
|
92
97
|
chat?: ProfileAssociatedChat
|
|
93
98
|
[k: string]: unknown
|
|
@@ -6,6 +6,7 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
9
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
9
10
|
|
|
10
11
|
export interface Record {
|
|
11
12
|
displayName?: string
|
|
@@ -18,6 +19,8 @@ export interface Record {
|
|
|
18
19
|
labels?:
|
|
19
20
|
| ComAtprotoLabelDefs.SelfLabels
|
|
20
21
|
| { $type: string; [k: string]: unknown }
|
|
22
|
+
joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main
|
|
23
|
+
createdAt?: string
|
|
21
24
|
[k: string]: unknown
|
|
22
25
|
}
|
|
23
26
|
|