@atproto/api 0.0.6 → 0.0.8

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 (86) hide show
  1. package/dist/client/index.d.ts +75 -44
  2. package/dist/client/lexicons.d.ts +1075 -407
  3. package/dist/client/types/app/bsky/actor/getProfile.d.ts +0 -2
  4. package/dist/client/types/app/bsky/actor/search.d.ts +1 -1
  5. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +1 -1
  6. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -1
  7. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +1 -8
  8. package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -0
  9. package/dist/client/types/app/bsky/notification/list.d.ts +1 -1
  10. package/dist/client/types/app/bsky/system/declRef.d.ts +1 -1
  11. package/dist/client/types/app/bsky/system/declaration.d.ts +1 -1
  12. package/dist/client/types/com/atproto/account/delete.d.ts +14 -2
  13. package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
  14. package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
  15. package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
  16. package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
  17. package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +23 -0
  18. package/dist/client/types/com/atproto/admin/getRecord.d.ts +17 -0
  19. package/dist/client/types/com/atproto/admin/getRepo.d.ts +16 -0
  20. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +49 -0
  21. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
  22. package/dist/client/types/com/atproto/admin/record.d.ts +40 -0
  23. package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
  24. package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
  25. package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
  26. package/dist/client/types/com/atproto/admin/searchRepos.d.ts +22 -0
  27. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +28 -0
  28. package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
  29. package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
  30. package/dist/client/types/com/atproto/report/create.d.ts +39 -0
  31. package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
  32. package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
  33. package/dist/client/types/com/atproto/session/create.d.ts +5 -2
  34. package/dist/client/types/com/atproto/session/refresh.d.ts +4 -1
  35. package/dist/client/types/com/atproto/sync/getCheckout.d.ts +15 -0
  36. package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
  37. package/dist/client/types/com/atproto/sync/getHead.d.ts +18 -0
  38. package/dist/client/types/com/atproto/sync/getRecord.d.ts +17 -0
  39. package/dist/index.js +1997 -927
  40. package/dist/index.js.map +4 -4
  41. package/package.json +1 -1
  42. package/src/client/index.ts +249 -142
  43. package/src/client/lexicons.ts +1223 -478
  44. package/src/client/types/app/bsky/actor/getProfile.ts +0 -2
  45. package/src/client/types/app/bsky/actor/search.ts +1 -1
  46. package/src/client/types/app/bsky/actor/searchTypeahead.ts +1 -1
  47. package/src/client/types/app/bsky/actor/updateProfile.ts +0 -1
  48. package/src/client/types/app/bsky/feed/feedViewPost.ts +1 -19
  49. package/src/client/types/app/bsky/graph/getFollows.ts +1 -0
  50. package/src/client/types/app/bsky/notification/list.ts +1 -2
  51. package/src/client/types/app/bsky/system/declRef.ts +1 -4
  52. package/src/client/types/app/bsky/system/declaration.ts +1 -4
  53. package/src/client/types/com/atproto/account/delete.ts +21 -1
  54. package/src/client/types/com/atproto/account/requestDelete.ts +27 -0
  55. package/src/client/types/com/atproto/admin/getModerationAction.ts +31 -0
  56. package/src/client/types/com/atproto/admin/getModerationActions.ts +38 -0
  57. package/src/client/types/com/atproto/admin/getModerationReport.ts +31 -0
  58. package/src/client/types/com/atproto/admin/getModerationReports.ts +39 -0
  59. package/src/client/types/com/atproto/admin/getRecord.ts +32 -0
  60. package/src/client/types/com/atproto/admin/getRepo.ts +31 -0
  61. package/src/client/types/com/atproto/admin/moderationAction.ts +99 -0
  62. package/src/client/types/com/atproto/admin/moderationReport.ts +64 -0
  63. package/src/client/types/com/atproto/admin/record.ts +89 -0
  64. package/src/client/types/com/atproto/admin/repo.ts +103 -0
  65. package/src/client/types/com/atproto/admin/resolveModerationReports.ts +37 -0
  66. package/src/client/types/com/atproto/admin/reverseModerationAction.ts +37 -0
  67. package/src/client/types/com/atproto/admin/searchRepos.ts +38 -0
  68. package/src/client/types/com/atproto/admin/takeModerationAction.ts +47 -0
  69. package/src/client/types/com/atproto/repo/recordRef.ts +25 -0
  70. package/src/client/types/com/atproto/repo/repoRef.ts +24 -0
  71. package/src/client/types/com/atproto/report/create.ts +54 -0
  72. package/src/client/types/com/atproto/report/reasonType.ts +16 -0
  73. package/src/client/types/com/atproto/report/subject.ts +66 -0
  74. package/src/client/types/com/atproto/session/create.ts +9 -1
  75. package/src/client/types/com/atproto/session/refresh.ts +7 -0
  76. package/src/client/types/com/atproto/sync/{updateRepo.ts → getCheckout.ts} +4 -3
  77. package/src/client/types/com/atproto/sync/getCommitPath.ts +39 -0
  78. package/src/client/types/com/atproto/sync/{getRoot.ts → getHead.ts} +0 -0
  79. package/src/client/types/com/atproto/sync/getRecord.ts +34 -0
  80. package/tsconfig.build.tsbuildinfo +1 -1
  81. package/src/client/types/app/bsky/actor/createScene.ts +0 -55
  82. package/src/client/types/app/bsky/feed/trend.ts +0 -26
  83. package/src/client/types/app/bsky/graph/getAssertions.ts +0 -85
  84. package/src/client/types/app/bsky/graph/getMembers.ts +0 -62
  85. package/src/client/types/app/bsky/graph/getMemberships.ts +0 -62
  86. package/src/client/types/app/bsky/system/actorScene.ts +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "codegen": "lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
@@ -10,8 +10,23 @@ import * as ComAtprotoAccountCreate from './types/com/atproto/account/create'
10
10
  import * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'
11
11
  import * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
12
12
  import * as ComAtprotoAccountGet from './types/com/atproto/account/get'
13
+ import * as ComAtprotoAccountRequestDelete from './types/com/atproto/account/requestDelete'
13
14
  import * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
14
15
  import * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
16
+ import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
17
+ import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
18
+ import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
19
+ import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
20
+ import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
21
+ import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
22
+ import * as ComAtprotoAdminModerationAction from './types/com/atproto/admin/moderationAction'
23
+ import * as ComAtprotoAdminModerationReport from './types/com/atproto/admin/moderationReport'
24
+ import * as ComAtprotoAdminRecord from './types/com/atproto/admin/record'
25
+ import * as ComAtprotoAdminRepo from './types/com/atproto/admin/repo'
26
+ import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
27
+ import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
28
+ import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
29
+ import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
15
30
  import * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
16
31
  import * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
17
32
  import * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
@@ -21,16 +36,22 @@ import * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'
21
36
  import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
22
37
  import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
23
38
  import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
39
+ import * as ComAtprotoRepoRecordRef from './types/com/atproto/repo/recordRef'
40
+ import * as ComAtprotoRepoRepoRef from './types/com/atproto/repo/repoRef'
24
41
  import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
42
+ import * as ComAtprotoReportCreate from './types/com/atproto/report/create'
43
+ import * as ComAtprotoReportReasonType from './types/com/atproto/report/reasonType'
44
+ import * as ComAtprotoReportSubject from './types/com/atproto/report/subject'
25
45
  import * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'
26
46
  import * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
27
47
  import * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
28
48
  import * as ComAtprotoSessionGet from './types/com/atproto/session/get'
29
49
  import * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
50
+ import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
51
+ import * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
52
+ import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
53
+ import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
30
54
  import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
31
- import * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'
32
- import * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'
33
- import * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'
34
55
  import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
35
56
  import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
36
57
  import * as AppBskyActorProfile from './types/app/bsky/actor/profile'
@@ -49,25 +70,20 @@ import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'
49
70
  import * as AppBskyFeedPost from './types/app/bsky/feed/post'
50
71
  import * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
51
72
  import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'
52
- import * as AppBskyFeedTrend from './types/app/bsky/feed/trend'
53
73
  import * as AppBskyFeedVote from './types/app/bsky/feed/vote'
54
74
  import * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'
55
75
  import * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'
56
76
  import * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'
57
77
  import * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'
58
78
  import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
59
- import * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'
60
79
  import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
61
80
  import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
62
- import * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'
63
- import * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'
64
81
  import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
65
82
  import * as AppBskyGraphMute from './types/app/bsky/graph/mute'
66
83
  import * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'
67
84
  import * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'
68
85
  import * as AppBskyNotificationList from './types/app/bsky/notification/list'
69
86
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
70
- import * as AppBskySystemActorScene from './types/app/bsky/system/actorScene'
71
87
  import * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'
72
88
  import * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'
73
89
  import * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'
@@ -76,8 +92,23 @@ export * as ComAtprotoAccountCreate from './types/com/atproto/account/create'
76
92
  export * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'
77
93
  export * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
78
94
  export * as ComAtprotoAccountGet from './types/com/atproto/account/get'
95
+ export * as ComAtprotoAccountRequestDelete from './types/com/atproto/account/requestDelete'
79
96
  export * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
80
97
  export * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
98
+ export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
99
+ export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
100
+ export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
101
+ export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
102
+ export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
103
+ export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
104
+ export * as ComAtprotoAdminModerationAction from './types/com/atproto/admin/moderationAction'
105
+ export * as ComAtprotoAdminModerationReport from './types/com/atproto/admin/moderationReport'
106
+ export * as ComAtprotoAdminRecord from './types/com/atproto/admin/record'
107
+ export * as ComAtprotoAdminRepo from './types/com/atproto/admin/repo'
108
+ export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
109
+ export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
110
+ export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
111
+ export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
81
112
  export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
82
113
  export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
83
114
  export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
@@ -87,16 +118,22 @@ export * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'
87
118
  export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
88
119
  export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
89
120
  export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
121
+ export * as ComAtprotoRepoRecordRef from './types/com/atproto/repo/recordRef'
122
+ export * as ComAtprotoRepoRepoRef from './types/com/atproto/repo/repoRef'
90
123
  export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
124
+ export * as ComAtprotoReportCreate from './types/com/atproto/report/create'
125
+ export * as ComAtprotoReportReasonType from './types/com/atproto/report/reasonType'
126
+ export * as ComAtprotoReportSubject from './types/com/atproto/report/subject'
91
127
  export * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'
92
128
  export * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
93
129
  export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
94
130
  export * as ComAtprotoSessionGet from './types/com/atproto/session/get'
95
131
  export * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
132
+ export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
133
+ export * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
134
+ export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
135
+ export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
96
136
  export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
97
- export * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'
98
- export * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'
99
- export * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'
100
137
  export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
101
138
  export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
102
139
  export * as AppBskyActorProfile from './types/app/bsky/actor/profile'
@@ -115,35 +152,38 @@ export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'
115
152
  export * as AppBskyFeedPost from './types/app/bsky/feed/post'
116
153
  export * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
117
154
  export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'
118
- export * as AppBskyFeedTrend from './types/app/bsky/feed/trend'
119
155
  export * as AppBskyFeedVote from './types/app/bsky/feed/vote'
120
156
  export * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'
121
157
  export * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'
122
158
  export * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'
123
159
  export * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'
124
160
  export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
125
- export * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'
126
161
  export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
127
162
  export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
128
- export * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'
129
- export * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'
130
163
  export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
131
164
  export * as AppBskyGraphMute from './types/app/bsky/graph/mute'
132
165
  export * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'
133
166
  export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'
134
167
  export * as AppBskyNotificationList from './types/app/bsky/notification/list'
135
168
  export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
136
- export * as AppBskySystemActorScene from './types/app/bsky/system/actorScene'
137
169
  export * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'
138
170
  export * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'
139
171
  export * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'
140
172
 
173
+ export const COM_ATPROTO_ADMIN = {
174
+ ModerationActionTakedown: 'com.atproto.admin.moderationAction#takedown',
175
+ ModerationActionFlag: 'com.atproto.admin.moderationAction#flag',
176
+ ModerationActionAcknowledge: 'com.atproto.admin.moderationAction#acknowledge',
177
+ }
178
+ export const COM_ATPROTO_REPORT = {
179
+ ReasonTypeSpam: 'com.atproto.report.reasonType#spam',
180
+ ReasonTypeOther: 'com.atproto.report.reasonType#other',
181
+ }
141
182
  export const APP_BSKY_GRAPH = {
142
183
  AssertCreator: 'app.bsky.graph.assertCreator',
143
184
  AssertMember: 'app.bsky.graph.assertMember',
144
185
  }
145
186
  export const APP_BSKY_SYSTEM = {
146
- ActorScene: 'app.bsky.system.actorScene',
147
187
  ActorUser: 'app.bsky.system.actorUser',
148
188
  }
149
189
 
@@ -193,9 +233,11 @@ export class ComNS {
193
233
  export class AtprotoNS {
194
234
  _service: ServiceClient
195
235
  account: AccountNS
236
+ admin: AdminNS
196
237
  blob: BlobNS
197
238
  handle: HandleNS
198
239
  repo: RepoNS
240
+ report: ReportNS
199
241
  server: ServerNS
200
242
  session: SessionNS
201
243
  sync: SyncNS
@@ -203,9 +245,11 @@ export class AtprotoNS {
203
245
  constructor(service: ServiceClient) {
204
246
  this._service = service
205
247
  this.account = new AccountNS(service)
248
+ this.admin = new AdminNS(service)
206
249
  this.blob = new BlobNS(service)
207
250
  this.handle = new HandleNS(service)
208
251
  this.repo = new RepoNS(service)
252
+ this.report = new ReportNS(service)
209
253
  this.server = new ServerNS(service)
210
254
  this.session = new SessionNS(service)
211
255
  this.sync = new SyncNS(service)
@@ -263,6 +307,17 @@ export class AccountNS {
263
307
  })
264
308
  }
265
309
 
310
+ requestDelete(
311
+ data?: ComAtprotoAccountRequestDelete.InputSchema,
312
+ opts?: ComAtprotoAccountRequestDelete.CallOptions,
313
+ ): Promise<ComAtprotoAccountRequestDelete.Response> {
314
+ return this._service.xrpc
315
+ .call('com.atproto.account.requestDelete', opts?.qp, data, opts)
316
+ .catch((e) => {
317
+ throw ComAtprotoAccountRequestDelete.toKnownErr(e)
318
+ })
319
+ }
320
+
266
321
  requestPasswordReset(
267
322
  data?: ComAtprotoAccountRequestPasswordReset.InputSchema,
268
323
  opts?: ComAtprotoAccountRequestPasswordReset.CallOptions,
@@ -286,6 +341,124 @@ export class AccountNS {
286
341
  }
287
342
  }
288
343
 
344
+ export class AdminNS {
345
+ _service: ServiceClient
346
+
347
+ constructor(service: ServiceClient) {
348
+ this._service = service
349
+ }
350
+
351
+ getModerationAction(
352
+ params?: ComAtprotoAdminGetModerationAction.QueryParams,
353
+ opts?: ComAtprotoAdminGetModerationAction.CallOptions,
354
+ ): Promise<ComAtprotoAdminGetModerationAction.Response> {
355
+ return this._service.xrpc
356
+ .call('com.atproto.admin.getModerationAction', params, undefined, opts)
357
+ .catch((e) => {
358
+ throw ComAtprotoAdminGetModerationAction.toKnownErr(e)
359
+ })
360
+ }
361
+
362
+ getModerationActions(
363
+ params?: ComAtprotoAdminGetModerationActions.QueryParams,
364
+ opts?: ComAtprotoAdminGetModerationActions.CallOptions,
365
+ ): Promise<ComAtprotoAdminGetModerationActions.Response> {
366
+ return this._service.xrpc
367
+ .call('com.atproto.admin.getModerationActions', params, undefined, opts)
368
+ .catch((e) => {
369
+ throw ComAtprotoAdminGetModerationActions.toKnownErr(e)
370
+ })
371
+ }
372
+
373
+ getModerationReport(
374
+ params?: ComAtprotoAdminGetModerationReport.QueryParams,
375
+ opts?: ComAtprotoAdminGetModerationReport.CallOptions,
376
+ ): Promise<ComAtprotoAdminGetModerationReport.Response> {
377
+ return this._service.xrpc
378
+ .call('com.atproto.admin.getModerationReport', params, undefined, opts)
379
+ .catch((e) => {
380
+ throw ComAtprotoAdminGetModerationReport.toKnownErr(e)
381
+ })
382
+ }
383
+
384
+ getModerationReports(
385
+ params?: ComAtprotoAdminGetModerationReports.QueryParams,
386
+ opts?: ComAtprotoAdminGetModerationReports.CallOptions,
387
+ ): Promise<ComAtprotoAdminGetModerationReports.Response> {
388
+ return this._service.xrpc
389
+ .call('com.atproto.admin.getModerationReports', params, undefined, opts)
390
+ .catch((e) => {
391
+ throw ComAtprotoAdminGetModerationReports.toKnownErr(e)
392
+ })
393
+ }
394
+
395
+ getRecord(
396
+ params?: ComAtprotoAdminGetRecord.QueryParams,
397
+ opts?: ComAtprotoAdminGetRecord.CallOptions,
398
+ ): Promise<ComAtprotoAdminGetRecord.Response> {
399
+ return this._service.xrpc
400
+ .call('com.atproto.admin.getRecord', params, undefined, opts)
401
+ .catch((e) => {
402
+ throw ComAtprotoAdminGetRecord.toKnownErr(e)
403
+ })
404
+ }
405
+
406
+ getRepo(
407
+ params?: ComAtprotoAdminGetRepo.QueryParams,
408
+ opts?: ComAtprotoAdminGetRepo.CallOptions,
409
+ ): Promise<ComAtprotoAdminGetRepo.Response> {
410
+ return this._service.xrpc
411
+ .call('com.atproto.admin.getRepo', params, undefined, opts)
412
+ .catch((e) => {
413
+ throw ComAtprotoAdminGetRepo.toKnownErr(e)
414
+ })
415
+ }
416
+
417
+ resolveModerationReports(
418
+ data?: ComAtprotoAdminResolveModerationReports.InputSchema,
419
+ opts?: ComAtprotoAdminResolveModerationReports.CallOptions,
420
+ ): Promise<ComAtprotoAdminResolveModerationReports.Response> {
421
+ return this._service.xrpc
422
+ .call('com.atproto.admin.resolveModerationReports', opts?.qp, data, opts)
423
+ .catch((e) => {
424
+ throw ComAtprotoAdminResolveModerationReports.toKnownErr(e)
425
+ })
426
+ }
427
+
428
+ reverseModerationAction(
429
+ data?: ComAtprotoAdminReverseModerationAction.InputSchema,
430
+ opts?: ComAtprotoAdminReverseModerationAction.CallOptions,
431
+ ): Promise<ComAtprotoAdminReverseModerationAction.Response> {
432
+ return this._service.xrpc
433
+ .call('com.atproto.admin.reverseModerationAction', opts?.qp, data, opts)
434
+ .catch((e) => {
435
+ throw ComAtprotoAdminReverseModerationAction.toKnownErr(e)
436
+ })
437
+ }
438
+
439
+ searchRepos(
440
+ params?: ComAtprotoAdminSearchRepos.QueryParams,
441
+ opts?: ComAtprotoAdminSearchRepos.CallOptions,
442
+ ): Promise<ComAtprotoAdminSearchRepos.Response> {
443
+ return this._service.xrpc
444
+ .call('com.atproto.admin.searchRepos', params, undefined, opts)
445
+ .catch((e) => {
446
+ throw ComAtprotoAdminSearchRepos.toKnownErr(e)
447
+ })
448
+ }
449
+
450
+ takeModerationAction(
451
+ data?: ComAtprotoAdminTakeModerationAction.InputSchema,
452
+ opts?: ComAtprotoAdminTakeModerationAction.CallOptions,
453
+ ): Promise<ComAtprotoAdminTakeModerationAction.Response> {
454
+ return this._service.xrpc
455
+ .call('com.atproto.admin.takeModerationAction', opts?.qp, data, opts)
456
+ .catch((e) => {
457
+ throw ComAtprotoAdminTakeModerationAction.toKnownErr(e)
458
+ })
459
+ }
460
+ }
461
+
289
462
  export class BlobNS {
290
463
  _service: ServiceClient
291
464
 
@@ -409,6 +582,25 @@ export class RepoNS {
409
582
  }
410
583
  }
411
584
 
585
+ export class ReportNS {
586
+ _service: ServiceClient
587
+
588
+ constructor(service: ServiceClient) {
589
+ this._service = service
590
+ }
591
+
592
+ create(
593
+ data?: ComAtprotoReportCreate.InputSchema,
594
+ opts?: ComAtprotoReportCreate.CallOptions,
595
+ ): Promise<ComAtprotoReportCreate.Response> {
596
+ return this._service.xrpc
597
+ .call('com.atproto.report.create', opts?.qp, data, opts)
598
+ .catch((e) => {
599
+ throw ComAtprotoReportCreate.toKnownErr(e)
600
+ })
601
+ }
602
+ }
603
+
412
604
  export class ServerNS {
413
605
  _service: ServiceClient
414
606
 
@@ -487,36 +679,58 @@ export class SyncNS {
487
679
  this._service = service
488
680
  }
489
681
 
490
- getRepo(
491
- params?: ComAtprotoSyncGetRepo.QueryParams,
492
- opts?: ComAtprotoSyncGetRepo.CallOptions,
493
- ): Promise<ComAtprotoSyncGetRepo.Response> {
682
+ getCheckout(
683
+ params?: ComAtprotoSyncGetCheckout.QueryParams,
684
+ opts?: ComAtprotoSyncGetCheckout.CallOptions,
685
+ ): Promise<ComAtprotoSyncGetCheckout.Response> {
494
686
  return this._service.xrpc
495
- .call('com.atproto.sync.getRepo', params, undefined, opts)
687
+ .call('com.atproto.sync.getCheckout', params, undefined, opts)
496
688
  .catch((e) => {
497
- throw ComAtprotoSyncGetRepo.toKnownErr(e)
689
+ throw ComAtprotoSyncGetCheckout.toKnownErr(e)
690
+ })
691
+ }
692
+
693
+ getCommitPath(
694
+ params?: ComAtprotoSyncGetCommitPath.QueryParams,
695
+ opts?: ComAtprotoSyncGetCommitPath.CallOptions,
696
+ ): Promise<ComAtprotoSyncGetCommitPath.Response> {
697
+ return this._service.xrpc
698
+ .call('com.atproto.sync.getCommitPath', params, undefined, opts)
699
+ .catch((e) => {
700
+ throw ComAtprotoSyncGetCommitPath.toKnownErr(e)
498
701
  })
499
702
  }
500
703
 
501
- getRoot(
502
- params?: ComAtprotoSyncGetRoot.QueryParams,
503
- opts?: ComAtprotoSyncGetRoot.CallOptions,
504
- ): Promise<ComAtprotoSyncGetRoot.Response> {
704
+ getHead(
705
+ params?: ComAtprotoSyncGetHead.QueryParams,
706
+ opts?: ComAtprotoSyncGetHead.CallOptions,
707
+ ): Promise<ComAtprotoSyncGetHead.Response> {
505
708
  return this._service.xrpc
506
- .call('com.atproto.sync.getRoot', params, undefined, opts)
709
+ .call('com.atproto.sync.getHead', params, undefined, opts)
507
710
  .catch((e) => {
508
- throw ComAtprotoSyncGetRoot.toKnownErr(e)
711
+ throw ComAtprotoSyncGetHead.toKnownErr(e)
509
712
  })
510
713
  }
511
714
 
512
- updateRepo(
513
- data?: ComAtprotoSyncUpdateRepo.InputSchema,
514
- opts?: ComAtprotoSyncUpdateRepo.CallOptions,
515
- ): Promise<ComAtprotoSyncUpdateRepo.Response> {
715
+ getRecord(
716
+ params?: ComAtprotoSyncGetRecord.QueryParams,
717
+ opts?: ComAtprotoSyncGetRecord.CallOptions,
718
+ ): Promise<ComAtprotoSyncGetRecord.Response> {
719
+ return this._service.xrpc
720
+ .call('com.atproto.sync.getRecord', params, undefined, opts)
721
+ .catch((e) => {
722
+ throw ComAtprotoSyncGetRecord.toKnownErr(e)
723
+ })
724
+ }
725
+
726
+ getRepo(
727
+ params?: ComAtprotoSyncGetRepo.QueryParams,
728
+ opts?: ComAtprotoSyncGetRepo.CallOptions,
729
+ ): Promise<ComAtprotoSyncGetRepo.Response> {
516
730
  return this._service.xrpc
517
- .call('com.atproto.sync.updateRepo', opts?.qp, data, opts)
731
+ .call('com.atproto.sync.getRepo', params, undefined, opts)
518
732
  .catch((e) => {
519
- throw ComAtprotoSyncUpdateRepo.toKnownErr(e)
733
+ throw ComAtprotoSyncGetRepo.toKnownErr(e)
520
734
  })
521
735
  }
522
736
  }
@@ -560,17 +774,6 @@ export class ActorNS {
560
774
  this.profile = new ProfileRecord(service)
561
775
  }
562
776
 
563
- createScene(
564
- data?: AppBskyActorCreateScene.InputSchema,
565
- opts?: AppBskyActorCreateScene.CallOptions,
566
- ): Promise<AppBskyActorCreateScene.Response> {
567
- return this._service.xrpc
568
- .call('app.bsky.actor.createScene', opts?.qp, data, opts)
569
- .catch((e) => {
570
- throw AppBskyActorCreateScene.toKnownErr(e)
571
- })
572
- }
573
-
574
777
  getProfile(
575
778
  params?: AppBskyActorGetProfile.QueryParams,
576
779
  opts?: AppBskyActorGetProfile.CallOptions,
@@ -700,14 +903,12 @@ export class FeedNS {
700
903
  _service: ServiceClient
701
904
  post: PostRecord
702
905
  repost: RepostRecord
703
- trend: TrendRecord
704
906
  vote: VoteRecord
705
907
 
706
908
  constructor(service: ServiceClient) {
707
909
  this._service = service
708
910
  this.post = new PostRecord(service)
709
911
  this.repost = new RepostRecord(service)
710
- this.trend = new TrendRecord(service)
711
912
  this.vote = new VoteRecord(service)
712
913
  }
713
914
 
@@ -900,67 +1101,6 @@ export class RepostRecord {
900
1101
  }
901
1102
  }
902
1103
 
903
- export class TrendRecord {
904
- _service: ServiceClient
905
-
906
- constructor(service: ServiceClient) {
907
- this._service = service
908
- }
909
-
910
- async list(
911
- params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
912
- ): Promise<{
913
- cursor?: string
914
- records: { uri: string; value: AppBskyFeedTrend.Record }[]
915
- }> {
916
- const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
917
- collection: 'app.bsky.feed.trend',
918
- ...params,
919
- })
920
- return res.data
921
- }
922
-
923
- async get(
924
- params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
925
- ): Promise<{ uri: string; cid: string; value: AppBskyFeedTrend.Record }> {
926
- const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
927
- collection: 'app.bsky.feed.trend',
928
- ...params,
929
- })
930
- return res.data
931
- }
932
-
933
- async create(
934
- params: Omit<
935
- ComAtprotoRepoCreateRecord.InputSchema,
936
- 'collection' | 'record'
937
- >,
938
- record: AppBskyFeedTrend.Record,
939
- headers?: Record<string, string>,
940
- ): Promise<{ uri: string; cid: string }> {
941
- record.$type = 'app.bsky.feed.trend'
942
- const res = await this._service.xrpc.call(
943
- 'com.atproto.repo.createRecord',
944
- undefined,
945
- { collection: 'app.bsky.feed.trend', ...params, record },
946
- { encoding: 'application/json', headers },
947
- )
948
- return res.data
949
- }
950
-
951
- async delete(
952
- params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
953
- headers?: Record<string, string>,
954
- ): Promise<void> {
955
- await this._service.xrpc.call(
956
- 'com.atproto.repo.deleteRecord',
957
- undefined,
958
- { collection: 'app.bsky.feed.trend', ...params },
959
- { headers },
960
- )
961
- }
962
- }
963
-
964
1104
  export class VoteRecord {
965
1105
  _service: ServiceClient
966
1106
 
@@ -1035,17 +1175,6 @@ export class GraphNS {
1035
1175
  this.follow = new FollowRecord(service)
1036
1176
  }
1037
1177
 
1038
- getAssertions(
1039
- params?: AppBskyGraphGetAssertions.QueryParams,
1040
- opts?: AppBskyGraphGetAssertions.CallOptions,
1041
- ): Promise<AppBskyGraphGetAssertions.Response> {
1042
- return this._service.xrpc
1043
- .call('app.bsky.graph.getAssertions', params, undefined, opts)
1044
- .catch((e) => {
1045
- throw AppBskyGraphGetAssertions.toKnownErr(e)
1046
- })
1047
- }
1048
-
1049
1178
  getFollowers(
1050
1179
  params?: AppBskyGraphGetFollowers.QueryParams,
1051
1180
  opts?: AppBskyGraphGetFollowers.CallOptions,
@@ -1068,28 +1197,6 @@ export class GraphNS {
1068
1197
  })
1069
1198
  }
1070
1199
 
1071
- getMembers(
1072
- params?: AppBskyGraphGetMembers.QueryParams,
1073
- opts?: AppBskyGraphGetMembers.CallOptions,
1074
- ): Promise<AppBskyGraphGetMembers.Response> {
1075
- return this._service.xrpc
1076
- .call('app.bsky.graph.getMembers', params, undefined, opts)
1077
- .catch((e) => {
1078
- throw AppBskyGraphGetMembers.toKnownErr(e)
1079
- })
1080
- }
1081
-
1082
- getMemberships(
1083
- params?: AppBskyGraphGetMemberships.QueryParams,
1084
- opts?: AppBskyGraphGetMemberships.CallOptions,
1085
- ): Promise<AppBskyGraphGetMemberships.Response> {
1086
- return this._service.xrpc
1087
- .call('app.bsky.graph.getMemberships', params, undefined, opts)
1088
- .catch((e) => {
1089
- throw AppBskyGraphGetMemberships.toKnownErr(e)
1090
- })
1091
- }
1092
-
1093
1200
  getMutes(
1094
1201
  params?: AppBskyGraphGetMutes.QueryParams,
1095
1202
  opts?: AppBskyGraphGetMutes.CallOptions,