@atproto/api 0.2.7 → 0.2.9

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 (30) hide show
  1. package/README.md +4 -4
  2. package/dist/client/index.d.ts +19 -0
  3. package/dist/client/lexicons.d.ts +248 -2
  4. package/dist/client/types/app/bsky/feed/getPosts.d.ts +19 -0
  5. package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +1 -0
  6. package/dist/client/types/app/bsky/notification/listNotifications.d.ts +1 -0
  7. package/dist/client/types/com/atproto/admin/defs.d.ts +3 -0
  8. package/dist/client/types/com/atproto/admin/updateAccountEmail.d.ts +18 -0
  9. package/dist/client/types/com/atproto/moderation/defs.d.ts +5 -1
  10. package/dist/client/types/com/atproto/server/createAppPassword.d.ts +31 -0
  11. package/dist/client/types/com/atproto/server/createInviteCodes.d.ts +10 -2
  12. package/dist/client/types/com/atproto/server/listAppPasswords.d.ts +28 -0
  13. package/dist/client/types/com/atproto/server/revokeAppPassword.d.ts +17 -0
  14. package/dist/index.js +626 -184
  15. package/dist/index.js.map +4 -4
  16. package/package.json +1 -1
  17. package/src/client/index.ts +69 -0
  18. package/src/client/lexicons.ts +263 -9
  19. package/src/client/types/app/bsky/feed/getPosts.ts +36 -0
  20. package/src/client/types/app/bsky/notification/getUnreadCount.ts +3 -1
  21. package/src/client/types/app/bsky/notification/listNotifications.ts +1 -0
  22. package/src/client/types/com/atproto/admin/defs.ts +3 -0
  23. package/src/client/types/com/atproto/admin/updateAccountEmail.ts +34 -0
  24. package/src/client/types/com/atproto/moderation/defs.ts +14 -2
  25. package/src/client/types/com/atproto/server/createAppPassword.ts +64 -0
  26. package/src/client/types/com/atproto/server/createInviteCodes.ts +23 -2
  27. package/src/client/types/com/atproto/server/listAppPasswords.ts +58 -0
  28. package/src/client/types/com/atproto/server/revokeAppPassword.ts +32 -0
  29. package/src/client/types/com/atproto/sync/getRepo.ts +1 -1
  30. package/tsconfig.build.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "codegen": "lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
@@ -20,6 +20,7 @@ import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/ad
20
20
  import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
21
21
  import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
22
22
  import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
23
+ import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
23
24
  import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
24
25
  import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
25
26
  import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
@@ -38,6 +39,7 @@ import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
38
39
  import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
39
40
  import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
40
41
  import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
42
+ import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
41
43
  import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
42
44
  import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
43
45
  import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
@@ -47,10 +49,12 @@ import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/delet
47
49
  import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
48
50
  import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
49
51
  import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
52
+ import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
50
53
  import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
51
54
  import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
52
55
  import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
53
56
  import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
57
+ import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword'
54
58
  import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
55
59
  import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
56
60
  import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
@@ -78,6 +82,7 @@ import * as AppBskyFeedDefs from './types/app/bsky/feed/defs'
78
82
  import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'
79
83
  import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes'
80
84
  import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
85
+ import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts'
81
86
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
82
87
  import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
83
88
  import * as AppBskyFeedLike from './types/app/bsky/feed/like'
@@ -108,6 +113,7 @@ export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/ad
108
113
  export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
109
114
  export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
110
115
  export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
116
+ export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
111
117
  export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
112
118
  export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
113
119
  export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
@@ -126,6 +132,7 @@ export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
126
132
  export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
127
133
  export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
128
134
  export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
135
+ export * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
129
136
  export * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
130
137
  export * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
131
138
  export * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
@@ -135,10 +142,12 @@ export * as ComAtprotoServerDeleteSession from './types/com/atproto/server/delet
135
142
  export * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
136
143
  export * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
137
144
  export * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
145
+ export * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
138
146
  export * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
139
147
  export * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
140
148
  export * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
141
149
  export * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
150
+ export * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword'
142
151
  export * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
143
152
  export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
144
153
  export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
@@ -166,6 +175,7 @@ export * as AppBskyFeedDefs from './types/app/bsky/feed/defs'
166
175
  export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'
167
176
  export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes'
168
177
  export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
178
+ export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts'
169
179
  export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
170
180
  export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
171
181
  export * as AppBskyFeedLike from './types/app/bsky/feed/like'
@@ -190,6 +200,10 @@ export const COM_ATPROTO_ADMIN = {
190
200
  }
191
201
  export const COM_ATPROTO_MODERATION = {
192
202
  DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
203
+ DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
204
+ DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
205
+ DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
206
+ DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
193
207
  DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
194
208
  }
195
209
 
@@ -394,6 +408,17 @@ export class AdminNS {
394
408
  })
395
409
  }
396
410
 
411
+ updateAccountEmail(
412
+ data?: ComAtprotoAdminUpdateAccountEmail.InputSchema,
413
+ opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions,
414
+ ): Promise<ComAtprotoAdminUpdateAccountEmail.Response> {
415
+ return this._service.xrpc
416
+ .call('com.atproto.admin.updateAccountEmail', opts?.qp, data, opts)
417
+ .catch((e) => {
418
+ throw ComAtprotoAdminUpdateAccountEmail.toKnownErr(e)
419
+ })
420
+ }
421
+
397
422
  updateAccountHandle(
398
423
  data?: ComAtprotoAdminUpdateAccountHandle.InputSchema,
399
424
  opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions,
@@ -588,6 +613,17 @@ export class ServerNS {
588
613
  })
589
614
  }
590
615
 
616
+ createAppPassword(
617
+ data?: ComAtprotoServerCreateAppPassword.InputSchema,
618
+ opts?: ComAtprotoServerCreateAppPassword.CallOptions,
619
+ ): Promise<ComAtprotoServerCreateAppPassword.Response> {
620
+ return this._service.xrpc
621
+ .call('com.atproto.server.createAppPassword', opts?.qp, data, opts)
622
+ .catch((e) => {
623
+ throw ComAtprotoServerCreateAppPassword.toKnownErr(e)
624
+ })
625
+ }
626
+
591
627
  createInviteCode(
592
628
  data?: ComAtprotoServerCreateInviteCode.InputSchema,
593
629
  opts?: ComAtprotoServerCreateInviteCode.CallOptions,
@@ -676,6 +712,17 @@ export class ServerNS {
676
712
  })
677
713
  }
678
714
 
715
+ listAppPasswords(
716
+ params?: ComAtprotoServerListAppPasswords.QueryParams,
717
+ opts?: ComAtprotoServerListAppPasswords.CallOptions,
718
+ ): Promise<ComAtprotoServerListAppPasswords.Response> {
719
+ return this._service.xrpc
720
+ .call('com.atproto.server.listAppPasswords', params, undefined, opts)
721
+ .catch((e) => {
722
+ throw ComAtprotoServerListAppPasswords.toKnownErr(e)
723
+ })
724
+ }
725
+
679
726
  refreshSession(
680
727
  data?: ComAtprotoServerRefreshSession.InputSchema,
681
728
  opts?: ComAtprotoServerRefreshSession.CallOptions,
@@ -719,6 +766,17 @@ export class ServerNS {
719
766
  throw ComAtprotoServerResetPassword.toKnownErr(e)
720
767
  })
721
768
  }
769
+
770
+ revokeAppPassword(
771
+ data?: ComAtprotoServerRevokeAppPassword.InputSchema,
772
+ opts?: ComAtprotoServerRevokeAppPassword.CallOptions,
773
+ ): Promise<ComAtprotoServerRevokeAppPassword.Response> {
774
+ return this._service.xrpc
775
+ .call('com.atproto.server.revokeAppPassword', opts?.qp, data, opts)
776
+ .catch((e) => {
777
+ throw ComAtprotoServerRevokeAppPassword.toKnownErr(e)
778
+ })
779
+ }
722
780
  }
723
781
 
724
782
  export class SyncNS {
@@ -1062,6 +1120,17 @@ export class FeedNS {
1062
1120
  })
1063
1121
  }
1064
1122
 
1123
+ getPosts(
1124
+ params?: AppBskyFeedGetPosts.QueryParams,
1125
+ opts?: AppBskyFeedGetPosts.CallOptions,
1126
+ ): Promise<AppBskyFeedGetPosts.Response> {
1127
+ return this._service.xrpc
1128
+ .call('app.bsky.feed.getPosts', params, undefined, opts)
1129
+ .catch((e) => {
1130
+ throw AppBskyFeedGetPosts.toKnownErr(e)
1131
+ })
1132
+ }
1133
+
1065
1134
  getRepostedBy(
1066
1135
  params?: AppBskyFeedGetRepostedBy.QueryParams,
1067
1136
  opts?: AppBskyFeedGetRepostedBy.CallOptions,
@@ -364,6 +364,13 @@ export const schemaDict = {
364
364
  type: 'ref',
365
365
  ref: 'lex:com.atproto.admin.defs#moderationDetail',
366
366
  },
367
+ labels: {
368
+ type: 'array',
369
+ items: {
370
+ type: 'ref',
371
+ ref: 'lex:com.atproto.label.defs#label',
372
+ },
373
+ },
367
374
  invitedBy: {
368
375
  type: 'ref',
369
376
  ref: 'lex:com.atproto.server.defs#inviteCode',
@@ -461,6 +468,13 @@ export const schemaDict = {
461
468
  ref: 'lex:com.atproto.admin.defs#blobView',
462
469
  },
463
470
  },
471
+ labels: {
472
+ type: 'array',
473
+ items: {
474
+ type: 'ref',
475
+ ref: 'lex:com.atproto.label.defs#label',
476
+ },
477
+ },
464
478
  indexedAt: {
465
479
  type: 'string',
466
480
  format: 'datetime',
@@ -1049,13 +1063,40 @@ export const schemaDict = {
1049
1063
  },
1050
1064
  },
1051
1065
  },
1066
+ ComAtprotoAdminUpdateAccountEmail: {
1067
+ lexicon: 1,
1068
+ id: 'com.atproto.admin.updateAccountEmail',
1069
+ defs: {
1070
+ main: {
1071
+ type: 'procedure',
1072
+ description: "Administrative action to update an account's email",
1073
+ input: {
1074
+ encoding: 'application/json',
1075
+ schema: {
1076
+ type: 'object',
1077
+ required: ['account', 'email'],
1078
+ properties: {
1079
+ account: {
1080
+ type: 'string',
1081
+ format: 'at-identifier',
1082
+ description: 'The handle or DID of the repo.',
1083
+ },
1084
+ email: {
1085
+ type: 'string',
1086
+ },
1087
+ },
1088
+ },
1089
+ },
1090
+ },
1091
+ },
1092
+ },
1052
1093
  ComAtprotoAdminUpdateAccountHandle: {
1053
1094
  lexicon: 1,
1054
1095
  id: 'com.atproto.admin.updateAccountHandle',
1055
1096
  defs: {
1056
1097
  main: {
1057
1098
  type: 'procedure',
1058
- description: 'Administrative action to update an accounts handle',
1099
+ description: "Administrative action to update an account's handle",
1059
1100
  input: {
1060
1101
  encoding: 'application/json',
1061
1102
  schema: {
@@ -1382,16 +1423,37 @@ export const schemaDict = {
1382
1423
  type: 'string',
1383
1424
  knownValues: [
1384
1425
  'com.atproto.moderation.defs#reasonSpam',
1426
+ 'com.atproto.moderation.defs#reasonViolation',
1427
+ 'com.atproto.moderation.defs#reasonMisleading',
1428
+ 'com.atproto.moderation.defs#reasonSexual',
1429
+ 'com.atproto.moderation.defs#reasonRude',
1385
1430
  'com.atproto.moderation.defs#reasonOther',
1386
1431
  ],
1387
1432
  },
1388
1433
  reasonSpam: {
1389
1434
  type: 'token',
1390
- description: 'Moderation report reason: Spam.',
1435
+ description: 'Spam: frequent unwanted promotion, replies, mentions',
1436
+ },
1437
+ reasonViolation: {
1438
+ type: 'token',
1439
+ description: 'Direct violation of server rules, laws, terms of service',
1440
+ },
1441
+ reasonMisleading: {
1442
+ type: 'token',
1443
+ description: 'Misleading identity, affiliation, or content',
1444
+ },
1445
+ reasonSexual: {
1446
+ type: 'token',
1447
+ description: 'Unwanted or mis-labeled sexual content',
1448
+ },
1449
+ reasonRude: {
1450
+ type: 'token',
1451
+ description:
1452
+ 'Rude, harassing, explicit, or otherwise unwelcoming behavior',
1391
1453
  },
1392
1454
  reasonOther: {
1393
1455
  type: 'token',
1394
- description: 'Moderation report reason: Other.',
1456
+ description: 'Other: reports not falling under another report category',
1395
1457
  },
1396
1458
  },
1397
1459
  },
@@ -2013,6 +2075,56 @@ export const schemaDict = {
2013
2075
  },
2014
2076
  },
2015
2077
  },
2078
+ ComAtprotoServerCreateAppPassword: {
2079
+ lexicon: 1,
2080
+ id: 'com.atproto.server.createAppPassword',
2081
+ defs: {
2082
+ main: {
2083
+ type: 'procedure',
2084
+ description: 'Create an app-specific password.',
2085
+ input: {
2086
+ encoding: 'application/json',
2087
+ schema: {
2088
+ type: 'object',
2089
+ required: ['name'],
2090
+ properties: {
2091
+ name: {
2092
+ type: 'string',
2093
+ },
2094
+ },
2095
+ },
2096
+ },
2097
+ output: {
2098
+ encoding: 'application/json',
2099
+ schema: {
2100
+ type: 'ref',
2101
+ ref: 'lex:com.atproto.server.createAppPassword#appPassword',
2102
+ },
2103
+ },
2104
+ errors: [
2105
+ {
2106
+ name: 'AccountTakedown',
2107
+ },
2108
+ ],
2109
+ },
2110
+ appPassword: {
2111
+ type: 'object',
2112
+ required: ['name', 'password', 'createdAt'],
2113
+ properties: {
2114
+ name: {
2115
+ type: 'string',
2116
+ },
2117
+ password: {
2118
+ type: 'string',
2119
+ },
2120
+ createdAt: {
2121
+ type: 'string',
2122
+ format: 'datetime',
2123
+ },
2124
+ },
2125
+ },
2126
+ },
2127
+ },
2016
2128
  ComAtprotoServerCreateInviteCode: {
2017
2129
  lexicon: 1,
2018
2130
  id: 'com.atproto.server.createInviteCode',
@@ -2071,9 +2183,12 @@ export const schemaDict = {
2071
2183
  useCount: {
2072
2184
  type: 'integer',
2073
2185
  },
2074
- forAccount: {
2075
- type: 'string',
2076
- format: 'did',
2186
+ forAccounts: {
2187
+ type: 'array',
2188
+ items: {
2189
+ type: 'string',
2190
+ format: 'did',
2191
+ },
2077
2192
  },
2078
2193
  },
2079
2194
  },
@@ -2087,13 +2202,29 @@ export const schemaDict = {
2087
2202
  codes: {
2088
2203
  type: 'array',
2089
2204
  items: {
2090
- type: 'string',
2205
+ type: 'ref',
2206
+ ref: 'lex:com.atproto.server.createInviteCodes#accountCodes',
2091
2207
  },
2092
2208
  },
2093
2209
  },
2094
2210
  },
2095
2211
  },
2096
2212
  },
2213
+ accountCodes: {
2214
+ type: 'object',
2215
+ required: ['account', 'codes'],
2216
+ properties: {
2217
+ account: {
2218
+ type: 'string',
2219
+ },
2220
+ codes: {
2221
+ type: 'array',
2222
+ items: {
2223
+ type: 'string',
2224
+ },
2225
+ },
2226
+ },
2227
+ },
2097
2228
  },
2098
2229
  },
2099
2230
  ComAtprotoServerCreateSession: {
@@ -2379,6 +2510,50 @@ export const schemaDict = {
2379
2510
  },
2380
2511
  },
2381
2512
  },
2513
+ ComAtprotoServerListAppPasswords: {
2514
+ lexicon: 1,
2515
+ id: 'com.atproto.server.listAppPasswords',
2516
+ defs: {
2517
+ main: {
2518
+ type: 'query',
2519
+ description: 'List all app-specific passwords.',
2520
+ output: {
2521
+ encoding: 'application/json',
2522
+ schema: {
2523
+ type: 'object',
2524
+ required: ['passwords'],
2525
+ properties: {
2526
+ passwords: {
2527
+ type: 'array',
2528
+ items: {
2529
+ type: 'ref',
2530
+ ref: 'lex:com.atproto.server.listAppPasswords#appPassword',
2531
+ },
2532
+ },
2533
+ },
2534
+ },
2535
+ },
2536
+ errors: [
2537
+ {
2538
+ name: 'AccountTakedown',
2539
+ },
2540
+ ],
2541
+ },
2542
+ appPassword: {
2543
+ type: 'object',
2544
+ required: ['name', 'createdAt'],
2545
+ properties: {
2546
+ name: {
2547
+ type: 'string',
2548
+ },
2549
+ createdAt: {
2550
+ type: 'string',
2551
+ format: 'datetime',
2552
+ },
2553
+ },
2554
+ },
2555
+ },
2556
+ },
2382
2557
  ComAtprotoServerRefreshSession: {
2383
2558
  lexicon: 1,
2384
2559
  id: 'com.atproto.server.refreshSession',
@@ -2482,6 +2657,28 @@ export const schemaDict = {
2482
2657
  },
2483
2658
  },
2484
2659
  },
2660
+ ComAtprotoServerRevokeAppPassword: {
2661
+ lexicon: 1,
2662
+ id: 'com.atproto.server.revokeAppPassword',
2663
+ defs: {
2664
+ main: {
2665
+ type: 'procedure',
2666
+ description: 'Revoke an app-specific password by name.',
2667
+ input: {
2668
+ encoding: 'application/json',
2669
+ schema: {
2670
+ type: 'object',
2671
+ required: ['name'],
2672
+ properties: {
2673
+ name: {
2674
+ type: 'string',
2675
+ },
2676
+ },
2677
+ },
2678
+ },
2679
+ },
2680
+ },
2681
+ },
2485
2682
  ComAtprotoSyncGetBlob: {
2486
2683
  lexicon: 1,
2487
2684
  id: 'com.atproto.sync.getBlob',
@@ -2715,8 +2912,7 @@ export const schemaDict = {
2715
2912
  latest: {
2716
2913
  type: 'string',
2717
2914
  format: 'cid',
2718
- description:
2719
- 'The latest commit you in the commit range (inclusive',
2915
+ description: 'The latest commit in the commit range (inclusive)',
2720
2916
  },
2721
2917
  },
2722
2918
  },
@@ -4017,6 +4213,46 @@ export const schemaDict = {
4017
4213
  },
4018
4214
  },
4019
4215
  },
4216
+ AppBskyFeedGetPosts: {
4217
+ lexicon: 1,
4218
+ id: 'app.bsky.feed.getPosts',
4219
+ defs: {
4220
+ main: {
4221
+ type: 'query',
4222
+ description: "A view of an actor's feed.",
4223
+ parameters: {
4224
+ type: 'params',
4225
+ required: ['uris'],
4226
+ properties: {
4227
+ uris: {
4228
+ type: 'array',
4229
+ items: {
4230
+ type: 'string',
4231
+ format: 'at-uri',
4232
+ },
4233
+ maxLength: 25,
4234
+ },
4235
+ },
4236
+ },
4237
+ output: {
4238
+ encoding: 'application/json',
4239
+ schema: {
4240
+ type: 'object',
4241
+ required: ['posts'],
4242
+ properties: {
4243
+ posts: {
4244
+ type: 'array',
4245
+ items: {
4246
+ type: 'ref',
4247
+ ref: 'lex:app.bsky.feed.defs#postView',
4248
+ },
4249
+ },
4250
+ },
4251
+ },
4252
+ },
4253
+ },
4254
+ },
4255
+ },
4020
4256
  AppBskyFeedGetRepostedBy: {
4021
4257
  lexicon: 1,
4022
4258
  id: 'app.bsky.feed.getRepostedBy',
@@ -4495,6 +4731,15 @@ export const schemaDict = {
4495
4731
  defs: {
4496
4732
  main: {
4497
4733
  type: 'query',
4734
+ parameters: {
4735
+ type: 'params',
4736
+ properties: {
4737
+ seenAt: {
4738
+ type: 'string',
4739
+ format: 'datetime',
4740
+ },
4741
+ },
4742
+ },
4498
4743
  output: {
4499
4744
  encoding: 'application/json',
4500
4745
  schema: {
@@ -4528,6 +4773,10 @@ export const schemaDict = {
4528
4773
  cursor: {
4529
4774
  type: 'string',
4530
4775
  },
4776
+ seenAt: {
4777
+ type: 'string',
4778
+ format: 'datetime',
4779
+ },
4531
4780
  },
4532
4781
  },
4533
4782
  output: {
@@ -4761,6 +5010,7 @@ export const ids = {
4761
5010
  'com.atproto.admin.reverseModerationAction',
4762
5011
  ComAtprotoAdminSearchRepos: 'com.atproto.admin.searchRepos',
4763
5012
  ComAtprotoAdminTakeModerationAction: 'com.atproto.admin.takeModerationAction',
5013
+ ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
4764
5014
  ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
4765
5015
  ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
4766
5016
  ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle',
@@ -4779,6 +5029,7 @@ export const ids = {
4779
5029
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
4780
5030
  ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob',
4781
5031
  ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount',
5032
+ ComAtprotoServerCreateAppPassword: 'com.atproto.server.createAppPassword',
4782
5033
  ComAtprotoServerCreateInviteCode: 'com.atproto.server.createInviteCode',
4783
5034
  ComAtprotoServerCreateInviteCodes: 'com.atproto.server.createInviteCodes',
4784
5035
  ComAtprotoServerCreateSession: 'com.atproto.server.createSession',
@@ -4789,12 +5040,14 @@ export const ids = {
4789
5040
  ComAtprotoServerGetAccountInviteCodes:
4790
5041
  'com.atproto.server.getAccountInviteCodes',
4791
5042
  ComAtprotoServerGetSession: 'com.atproto.server.getSession',
5043
+ ComAtprotoServerListAppPasswords: 'com.atproto.server.listAppPasswords',
4792
5044
  ComAtprotoServerRefreshSession: 'com.atproto.server.refreshSession',
4793
5045
  ComAtprotoServerRequestAccountDelete:
4794
5046
  'com.atproto.server.requestAccountDelete',
4795
5047
  ComAtprotoServerRequestPasswordReset:
4796
5048
  'com.atproto.server.requestPasswordReset',
4797
5049
  ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword',
5050
+ ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword',
4798
5051
  ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob',
4799
5052
  ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks',
4800
5053
  ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
@@ -4822,6 +5075,7 @@ export const ids = {
4822
5075
  AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed',
4823
5076
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
4824
5077
  AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
5078
+ AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
4825
5079
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
4826
5080
  AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline',
4827
5081
  AppBskyFeedLike: 'app.bsky.feed.like',
@@ -0,0 +1,36 @@
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 AppBskyFeedDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ uris: string[]
13
+ }
14
+
15
+ export type InputSchema = undefined
16
+
17
+ export interface OutputSchema {
18
+ posts: AppBskyFeedDefs.PostView[]
19
+ [k: string]: unknown
20
+ }
21
+
22
+ export interface CallOptions {
23
+ headers?: Headers
24
+ }
25
+
26
+ export interface Response {
27
+ success: boolean
28
+ headers: Headers
29
+ data: OutputSchema
30
+ }
31
+
32
+ export function toKnownErr(e: any) {
33
+ if (e instanceof XRPCError) {
34
+ }
35
+ return e
36
+ }
@@ -7,7 +7,9 @@ import { isObj, hasProp } from '../../../../util'
7
7
  import { lexicons } from '../../../../lexicons'
8
8
  import { CID } from 'multiformats/cid'
9
9
 
10
- export interface QueryParams {}
10
+ export interface QueryParams {
11
+ seenAt?: string
12
+ }
11
13
 
12
14
  export type InputSchema = undefined
13
15
 
@@ -12,6 +12,7 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
12
12
  export interface QueryParams {
13
13
  limit?: number
14
14
  cursor?: string
15
+ seenAt?: string
15
16
  }
16
17
 
17
18
  export type InputSchema = undefined
@@ -8,6 +8,7 @@ import { CID } from 'multiformats/cid'
8
8
  import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
9
9
  import * as ComAtprotoModerationDefs from '../moderation/defs'
10
10
  import * as ComAtprotoServerDefs from '../server/defs'
11
+ import * as ComAtprotoLabelDefs from '../label/defs'
11
12
 
12
13
  export interface ActionView {
13
14
  id: number
@@ -195,6 +196,7 @@ export interface RepoViewDetail {
195
196
  relatedRecords: {}[]
196
197
  indexedAt: string
197
198
  moderation: ModerationDetail
199
+ labels?: ComAtprotoLabelDefs.Label[]
198
200
  invitedBy?: ComAtprotoServerDefs.InviteCode
199
201
  invites?: ComAtprotoServerDefs.InviteCode[]
200
202
  [k: string]: unknown
@@ -257,6 +259,7 @@ export interface RecordViewDetail {
257
259
  cid: string
258
260
  value: {}
259
261
  blobs: BlobView[]
262
+ labels?: ComAtprotoLabelDefs.Label[]
260
263
  indexedAt: string
261
264
  moderation: ModerationDetail
262
265
  repo: RepoView