@atproto/api 0.12.17 → 0.12.18-next.0

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.
Files changed (39) hide show
  1. package/dist/client/index.d.ts +31 -0
  2. package/dist/client/index.d.ts.map +1 -1
  3. package/dist/client/index.js +64 -3
  4. package/dist/client/index.js.map +1 -1
  5. package/dist/client/lexicons.d.ts +291 -0
  6. package/dist/client/lexicons.d.ts.map +1 -1
  7. package/dist/client/lexicons.js +292 -0
  8. package/dist/client/lexicons.js.map +1 -1
  9. package/dist/client/types/app/bsky/actor/defs.d.ts +4 -0
  10. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  11. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  12. package/dist/client/types/app/bsky/actor/profile.d.ts +3 -0
  13. package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
  14. package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
  15. package/dist/client/types/app/bsky/graph/defs.d.ts +37 -1
  16. package/dist/client/types/app/bsky/graph/defs.d.ts.map +1 -1
  17. package/dist/client/types/app/bsky/graph/defs.js +23 -1
  18. package/dist/client/types/app/bsky/graph/defs.js.map +1 -1
  19. package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts +26 -0
  20. package/dist/client/types/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -0
  21. package/dist/client/types/app/bsky/graph/getActorStarterPacks.js +14 -0
  22. package/dist/client/types/app/bsky/graph/getActorStarterPacks.js.map +1 -0
  23. package/dist/client/types/app/bsky/graph/getStarterPack.d.ts +24 -0
  24. package/dist/client/types/app/bsky/graph/getStarterPack.d.ts.map +1 -0
  25. package/dist/client/types/app/bsky/graph/getStarterPack.js +14 -0
  26. package/dist/client/types/app/bsky/graph/getStarterPack.js.map +1 -0
  27. package/dist/client/types/app/bsky/graph/starterpack.d.ts +25 -0
  28. package/dist/client/types/app/bsky/graph/starterpack.d.ts.map +1 -0
  29. package/dist/client/types/app/bsky/graph/starterpack.js +27 -0
  30. package/dist/client/types/app/bsky/graph/starterpack.js.map +1 -0
  31. package/package.json +3 -3
  32. package/src/client/index.ts +96 -0
  33. package/src/client/lexicons.ts +294 -0
  34. package/src/client/types/app/bsky/actor/defs.ts +4 -0
  35. package/src/client/types/app/bsky/actor/profile.ts +3 -0
  36. package/src/client/types/app/bsky/graph/defs.ts +59 -0
  37. package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +39 -0
  38. package/src/client/types/app/bsky/graph/getStarterPack.ts +37 -0
  39. package/src/client/types/app/bsky/graph/starterpack.ts +50 -0
@@ -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',
@@ -4550,6 +4566,14 @@ export const schemaDict = {
4550
4566
  'Self-label values, specific to the Bluesky application, on the overall account.',
4551
4567
  refs: ['lex:com.atproto.label.defs#selfLabels'],
4552
4568
  },
4569
+ joinedViaStarterPack: {
4570
+ type: 'ref',
4571
+ ref: 'lex:com.atproto.repo.strongRef',
4572
+ },
4573
+ createdAt: {
4574
+ type: 'string',
4575
+ format: 'datetime',
4576
+ },
4553
4577
  },
4554
4578
  },
4555
4579
  },
@@ -6855,11 +6879,128 @@ export const schemaDict = {
6855
6879
  },
6856
6880
  },
6857
6881
  },
6882
+ starterPackView: {
6883
+ type: 'object',
6884
+ required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
6885
+ properties: {
6886
+ uri: {
6887
+ type: 'string',
6888
+ format: 'at-uri',
6889
+ },
6890
+ cid: {
6891
+ type: 'string',
6892
+ format: 'cid',
6893
+ },
6894
+ record: {
6895
+ type: 'unknown',
6896
+ },
6897
+ creator: {
6898
+ type: 'ref',
6899
+ ref: 'lex:app.bsky.actor.defs#profileViewBasic',
6900
+ },
6901
+ list: {
6902
+ type: 'ref',
6903
+ ref: 'lex:app.bsky.graph.defs#listViewBasic',
6904
+ },
6905
+ listItemsSample: {
6906
+ type: 'array',
6907
+ maxLength: 12,
6908
+ items: {
6909
+ type: 'ref',
6910
+ ref: 'lex:app.bsky.graph.defs#listItemView',
6911
+ },
6912
+ },
6913
+ feeds: {
6914
+ type: 'array',
6915
+ maxLength: 50,
6916
+ items: {
6917
+ type: 'ref',
6918
+ ref: 'lex:app.bsky.feed.defs#generatorView',
6919
+ },
6920
+ },
6921
+ feedCount: {
6922
+ type: 'integer',
6923
+ minimum: 0,
6924
+ },
6925
+ listItemCount: {
6926
+ type: 'integer',
6927
+ minimum: 0,
6928
+ },
6929
+ joinedWeekCount: {
6930
+ type: 'integer',
6931
+ minimum: 0,
6932
+ },
6933
+ joinedAllTimeCount: {
6934
+ type: 'integer',
6935
+ minimum: 0,
6936
+ },
6937
+ labels: {
6938
+ type: 'array',
6939
+ items: {
6940
+ type: 'ref',
6941
+ ref: 'lex:com.atproto.label.defs#label',
6942
+ },
6943
+ },
6944
+ indexedAt: {
6945
+ type: 'string',
6946
+ format: 'datetime',
6947
+ },
6948
+ },
6949
+ },
6950
+ starterPackViewBasic: {
6951
+ type: 'object',
6952
+ required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
6953
+ properties: {
6954
+ uri: {
6955
+ type: 'string',
6956
+ format: 'at-uri',
6957
+ },
6958
+ cid: {
6959
+ type: 'string',
6960
+ format: 'cid',
6961
+ },
6962
+ record: {
6963
+ type: 'unknown',
6964
+ },
6965
+ creator: {
6966
+ type: 'ref',
6967
+ ref: 'lex:app.bsky.actor.defs#profileViewBasic',
6968
+ },
6969
+ feedCount: {
6970
+ type: 'integer',
6971
+ minimum: 0,
6972
+ },
6973
+ listItemCount: {
6974
+ type: 'integer',
6975
+ minimum: 0,
6976
+ },
6977
+ joinedWeekCount: {
6978
+ type: 'integer',
6979
+ minimum: 0,
6980
+ },
6981
+ joinedAllTimeCount: {
6982
+ type: 'integer',
6983
+ minimum: 0,
6984
+ },
6985
+ labels: {
6986
+ type: 'array',
6987
+ items: {
6988
+ type: 'ref',
6989
+ ref: 'lex:com.atproto.label.defs#label',
6990
+ },
6991
+ },
6992
+ indexedAt: {
6993
+ type: 'string',
6994
+ format: 'datetime',
6995
+ },
6996
+ },
6997
+ },
6858
6998
  listPurpose: {
6859
6999
  type: 'string',
6860
7000
  knownValues: [
6861
7001
  'app.bsky.graph.defs#modlist',
6862
7002
  'app.bsky.graph.defs#curatelist',
7003
+ 'app.bsky.graph.defs#referencelist',
6863
7004
  ],
6864
7005
  },
6865
7006
  modlist: {
@@ -6872,6 +7013,11 @@ export const schemaDict = {
6872
7013
  description:
6873
7014
  'A list of actors used for curation purposes such as list feeds or interaction gating.',
6874
7015
  },
7016
+ referencelist: {
7017
+ type: 'token',
7018
+ description:
7019
+ 'A list of actors used for only for reference purposes such as within a starter pack.',
7020
+ },
6875
7021
  listViewerState: {
6876
7022
  type: 'object',
6877
7023
  properties: {
@@ -6951,6 +7097,54 @@ export const schemaDict = {
6951
7097
  },
6952
7098
  },
6953
7099
  },
7100
+ AppBskyGraphGetActorStarterPacks: {
7101
+ lexicon: 1,
7102
+ id: 'app.bsky.graph.getActorStarterPacks',
7103
+ defs: {
7104
+ main: {
7105
+ type: 'query',
7106
+ description: 'Get a list of starter packs created by the actor.',
7107
+ parameters: {
7108
+ type: 'params',
7109
+ required: ['actor'],
7110
+ properties: {
7111
+ actor: {
7112
+ type: 'string',
7113
+ format: 'at-identifier',
7114
+ },
7115
+ limit: {
7116
+ type: 'integer',
7117
+ minimum: 1,
7118
+ maximum: 100,
7119
+ default: 50,
7120
+ },
7121
+ cursor: {
7122
+ type: 'string',
7123
+ },
7124
+ },
7125
+ },
7126
+ output: {
7127
+ encoding: 'application/json',
7128
+ schema: {
7129
+ type: 'object',
7130
+ required: ['starterPacks'],
7131
+ properties: {
7132
+ cursor: {
7133
+ type: 'string',
7134
+ },
7135
+ starterPacks: {
7136
+ type: 'array',
7137
+ items: {
7138
+ type: 'ref',
7139
+ ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
7140
+ },
7141
+ },
7142
+ },
7143
+ },
7144
+ },
7145
+ },
7146
+ },
7147
+ },
6954
7148
  AppBskyGraphGetBlocks: {
6955
7149
  lexicon: 1,
6956
7150
  id: 'app.bsky.graph.getBlocks',
@@ -7399,6 +7593,40 @@ export const schemaDict = {
7399
7593
  },
7400
7594
  },
7401
7595
  },
7596
+ AppBskyGraphGetStarterPack: {
7597
+ lexicon: 1,
7598
+ id: 'app.bsky.graph.getStarterPack',
7599
+ defs: {
7600
+ main: {
7601
+ type: 'query',
7602
+ description: 'Gets a view of a starter pack.',
7603
+ parameters: {
7604
+ type: 'params',
7605
+ required: ['starterPack'],
7606
+ properties: {
7607
+ starterPack: {
7608
+ type: 'string',
7609
+ format: 'at-uri',
7610
+ description: 'Reference (AT-URI) of the starter pack record.',
7611
+ },
7612
+ },
7613
+ },
7614
+ output: {
7615
+ encoding: 'application/json',
7616
+ schema: {
7617
+ type: 'object',
7618
+ required: ['starterPack'],
7619
+ properties: {
7620
+ starterPack: {
7621
+ type: 'ref',
7622
+ ref: 'lex:app.bsky.graph.defs#starterPackView',
7623
+ },
7624
+ },
7625
+ },
7626
+ },
7627
+ },
7628
+ },
7629
+ },
7402
7630
  AppBskyGraphGetSuggestedFollowsByActor: {
7403
7631
  lexicon: 1,
7404
7632
  id: 'app.bsky.graph.getSuggestedFollowsByActor',
@@ -7599,6 +7827,69 @@ export const schemaDict = {
7599
7827
  },
7600
7828
  },
7601
7829
  },
7830
+ AppBskyGraphStarterpack: {
7831
+ lexicon: 1,
7832
+ id: 'app.bsky.graph.starterpack',
7833
+ defs: {
7834
+ main: {
7835
+ type: 'record',
7836
+ description:
7837
+ 'Record defining a starter pack of actors and feeds for new users.',
7838
+ key: 'any',
7839
+ record: {
7840
+ type: 'object',
7841
+ required: ['name', 'createdAt'],
7842
+ properties: {
7843
+ name: {
7844
+ type: 'string',
7845
+ maxLength: 64,
7846
+ minLength: 1,
7847
+ description: 'Display name for starter pack; can not be empty.',
7848
+ },
7849
+ description: {
7850
+ type: 'string',
7851
+ maxGraphemes: 300,
7852
+ maxLength: 3000,
7853
+ },
7854
+ descriptionFacets: {
7855
+ type: 'array',
7856
+ items: {
7857
+ type: 'ref',
7858
+ ref: 'lex:app.bsky.richtext.facet',
7859
+ },
7860
+ },
7861
+ list: {
7862
+ type: 'string',
7863
+ format: 'at-uri',
7864
+ description: 'Reference (AT-URI) to the list record.',
7865
+ },
7866
+ feeds: {
7867
+ type: 'array',
7868
+ maxLength: 50,
7869
+ items: {
7870
+ type: 'ref',
7871
+ ref: 'lex:app.bsky.graph.starterpack#feedItem',
7872
+ },
7873
+ },
7874
+ createdAt: {
7875
+ type: 'string',
7876
+ format: 'datetime',
7877
+ },
7878
+ },
7879
+ },
7880
+ },
7881
+ feedItem: {
7882
+ type: 'object',
7883
+ required: ['uri'],
7884
+ properties: {
7885
+ uri: {
7886
+ type: 'string',
7887
+ format: 'at-uri',
7888
+ },
7889
+ },
7890
+ },
7891
+ },
7892
+ },
7602
7893
  AppBskyGraphUnmuteActor: {
7603
7894
  lexicon: 1,
7604
7895
  id: 'app.bsky.graph.unmuteActor',
@@ -11012,6 +11303,7 @@ export const ids = {
11012
11303
  AppBskyGraphBlock: 'app.bsky.graph.block',
11013
11304
  AppBskyGraphDefs: 'app.bsky.graph.defs',
11014
11305
  AppBskyGraphFollow: 'app.bsky.graph.follow',
11306
+ AppBskyGraphGetActorStarterPacks: 'app.bsky.graph.getActorStarterPacks',
11015
11307
  AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
11016
11308
  AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
11017
11309
  AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
@@ -11021,6 +11313,7 @@ export const ids = {
11021
11313
  AppBskyGraphGetLists: 'app.bsky.graph.getLists',
11022
11314
  AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
11023
11315
  AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
11316
+ AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
11024
11317
  AppBskyGraphGetSuggestedFollowsByActor:
11025
11318
  'app.bsky.graph.getSuggestedFollowsByActor',
11026
11319
  AppBskyGraphList: 'app.bsky.graph.list',
@@ -11028,6 +11321,7 @@ export const ids = {
11028
11321
  AppBskyGraphListitem: 'app.bsky.graph.listitem',
11029
11322
  AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
11030
11323
  AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
11324
+ AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
11031
11325
  AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
11032
11326
  AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
11033
11327
  AppBskyLabelerDefs: 'app.bsky.labeler.defs',
@@ -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
@@ -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
 
@@ -8,6 +8,7 @@ import { CID } from 'multiformats/cid'
8
8
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
9
9
  import * as AppBskyActorDefs from '../actor/defs'
10
10
  import * as AppBskyRichtextFacet from '../richtext/facet'
11
+ import * as AppBskyFeedDefs from '../feed/defs'
11
12
 
12
13
  export interface ListViewBasic {
13
14
  uri: string
@@ -78,15 +79,73 @@ export function validateListItemView(v: unknown): ValidationResult {
78
79
  return lexicons.validate('app.bsky.graph.defs#listItemView', v)
79
80
  }
80
81
 
82
+ export interface StarterPackView {
83
+ uri: string
84
+ cid: string
85
+ record: {}
86
+ creator: AppBskyActorDefs.ProfileViewBasic
87
+ list?: ListViewBasic
88
+ listItemsSample?: ListItemView[]
89
+ feeds?: AppBskyFeedDefs.GeneratorView[]
90
+ feedCount?: number
91
+ listItemCount?: number
92
+ joinedWeekCount?: number
93
+ joinedAllTimeCount?: number
94
+ labels?: ComAtprotoLabelDefs.Label[]
95
+ indexedAt: string
96
+ [k: string]: unknown
97
+ }
98
+
99
+ export function isStarterPackView(v: unknown): v is StarterPackView {
100
+ return (
101
+ isObj(v) &&
102
+ hasProp(v, '$type') &&
103
+ v.$type === 'app.bsky.graph.defs#starterPackView'
104
+ )
105
+ }
106
+
107
+ export function validateStarterPackView(v: unknown): ValidationResult {
108
+ return lexicons.validate('app.bsky.graph.defs#starterPackView', v)
109
+ }
110
+
111
+ export interface StarterPackViewBasic {
112
+ uri: string
113
+ cid: string
114
+ record: {}
115
+ creator: AppBskyActorDefs.ProfileViewBasic
116
+ feedCount?: number
117
+ listItemCount?: number
118
+ joinedWeekCount?: number
119
+ joinedAllTimeCount?: number
120
+ labels?: ComAtprotoLabelDefs.Label[]
121
+ indexedAt: string
122
+ [k: string]: unknown
123
+ }
124
+
125
+ export function isStarterPackViewBasic(v: unknown): v is StarterPackViewBasic {
126
+ return (
127
+ isObj(v) &&
128
+ hasProp(v, '$type') &&
129
+ v.$type === 'app.bsky.graph.defs#starterPackViewBasic'
130
+ )
131
+ }
132
+
133
+ export function validateStarterPackViewBasic(v: unknown): ValidationResult {
134
+ return lexicons.validate('app.bsky.graph.defs#starterPackViewBasic', v)
135
+ }
136
+
81
137
  export type ListPurpose =
82
138
  | 'app.bsky.graph.defs#modlist'
83
139
  | 'app.bsky.graph.defs#curatelist'
140
+ | 'app.bsky.graph.defs#referencelist'
84
141
  | (string & {})
85
142
 
86
143
  /** A list of actors to apply an aggregate moderation action (mute/block) on. */
87
144
  export const MODLIST = 'app.bsky.graph.defs#modlist'
88
145
  /** A list of actors used for curation purposes such as list feeds or interaction gating. */
89
146
  export const CURATELIST = 'app.bsky.graph.defs#curatelist'
147
+ /** A list of actors used for only for reference purposes such as within a starter pack. */
148
+ export const REFERENCELIST = 'app.bsky.graph.defs#referencelist'
90
149
 
91
150
  export interface ListViewerState {
92
151
  muted?: boolean
@@ -0,0 +1,39 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as AppBskyGraphDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ actor: string
13
+ limit?: number
14
+ cursor?: string
15
+ }
16
+
17
+ export type InputSchema = undefined
18
+
19
+ export interface OutputSchema {
20
+ cursor?: string
21
+ starterPacks: AppBskyGraphDefs.StarterPackViewBasic[]
22
+ [k: string]: unknown
23
+ }
24
+
25
+ export interface CallOptions {
26
+ headers?: Headers
27
+ }
28
+
29
+ export interface Response {
30
+ success: boolean
31
+ headers: Headers
32
+ data: OutputSchema
33
+ }
34
+
35
+ export function toKnownErr(e: any) {
36
+ if (e instanceof XRPCError) {
37
+ }
38
+ return e
39
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as AppBskyGraphDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ /** Reference (AT-URI) of the starter pack record. */
13
+ starterPack: string
14
+ }
15
+
16
+ export type InputSchema = undefined
17
+
18
+ export interface OutputSchema {
19
+ starterPack: AppBskyGraphDefs.StarterPackView
20
+ [k: string]: unknown
21
+ }
22
+
23
+ export interface CallOptions {
24
+ headers?: Headers
25
+ }
26
+
27
+ export interface Response {
28
+ success: boolean
29
+ headers: Headers
30
+ data: OutputSchema
31
+ }
32
+
33
+ export function toKnownErr(e: any) {
34
+ if (e instanceof XRPCError) {
35
+ }
36
+ return e
37
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { isObj, hasProp } from '../../../../util'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { CID } from 'multiformats/cid'
8
+ import * as AppBskyRichtextFacet from '../richtext/facet'
9
+
10
+ export interface Record {
11
+ /** Display name for starter pack; can not be empty. */
12
+ name: string
13
+ description?: string
14
+ descriptionFacets?: AppBskyRichtextFacet.Main[]
15
+ /** Reference (AT-URI) to the list record. */
16
+ list?: string
17
+ feeds?: FeedItem[]
18
+ createdAt: string
19
+ [k: string]: unknown
20
+ }
21
+
22
+ export function isRecord(v: unknown): v is Record {
23
+ return (
24
+ isObj(v) &&
25
+ hasProp(v, '$type') &&
26
+ (v.$type === 'app.bsky.graph.starterpack#main' ||
27
+ v.$type === 'app.bsky.graph.starterpack')
28
+ )
29
+ }
30
+
31
+ export function validateRecord(v: unknown): ValidationResult {
32
+ return lexicons.validate('app.bsky.graph.starterpack#main', v)
33
+ }
34
+
35
+ export interface FeedItem {
36
+ uri: string
37
+ [k: string]: unknown
38
+ }
39
+
40
+ export function isFeedItem(v: unknown): v is FeedItem {
41
+ return (
42
+ isObj(v) &&
43
+ hasProp(v, '$type') &&
44
+ v.$type === 'app.bsky.graph.starterpack#feedItem'
45
+ )
46
+ }
47
+
48
+ export function validateFeedItem(v: unknown): ValidationResult {
49
+ return lexicons.validate('app.bsky.graph.starterpack#feedItem', v)
50
+ }