@atproto/ozone 0.1.94 → 0.1.96

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 (47) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/lexicon/index.d.ts +10 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +20 -0
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +536 -4
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +286 -2
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +27 -0
  11. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts.map +1 -1
  12. package/dist/lexicon/types/app/bsky/unspecced/defs.js +18 -0
  13. package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
  14. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts +36 -0
  15. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts.map +1 -0
  16. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.js +7 -0
  17. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.js.map +1 -0
  18. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts +37 -0
  19. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts.map +1 -0
  20. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js +7 -0
  21. package/dist/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js.map +1 -0
  22. package/dist/lexicon/types/app/bsky/unspecced/getTrends.d.ts +36 -0
  23. package/dist/lexicon/types/app/bsky/unspecced/getTrends.d.ts.map +1 -0
  24. package/dist/lexicon/types/app/bsky/unspecced/getTrends.js +7 -0
  25. package/dist/lexicon/types/app/bsky/unspecced/getTrends.js.map +1 -0
  26. package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.d.ts +38 -0
  27. package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.d.ts.map +1 -0
  28. package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.js +7 -0
  29. package/dist/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.js.map +1 -0
  30. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +5 -1
  31. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
  32. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
  33. package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.d.ts +31 -0
  34. package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.d.ts.map +1 -0
  35. package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.js +7 -0
  36. package/dist/lexicon/types/com/atproto/admin/updateAccountSigningKey.js.map +1 -0
  37. package/package.json +5 -5
  38. package/src/lexicon/index.ts +62 -0
  39. package/src/lexicon/lexicons.ts +294 -2
  40. package/src/lexicon/types/app/bsky/unspecced/defs.ts +45 -0
  41. package/src/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +54 -0
  42. package/src/lexicon/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +55 -0
  43. package/src/lexicon/types/app/bsky/unspecced/getTrends.ts +54 -0
  44. package/src/lexicon/types/app/bsky/unspecced/getTrendsSkeleton.ts +56 -0
  45. package/src/lexicon/types/chat/bsky/convo/defs.ts +2 -1
  46. package/src/lexicon/types/com/atproto/admin/updateAccountSigningKey.ts +48 -0
  47. package/tsconfig.build.tsbuildinfo +1 -1
@@ -580,6 +580,35 @@ export const schemaDict = {
580
580
  },
581
581
  },
582
582
  },
583
+ ComAtprotoAdminUpdateAccountSigningKey: {
584
+ lexicon: 1,
585
+ id: 'com.atproto.admin.updateAccountSigningKey',
586
+ defs: {
587
+ main: {
588
+ type: 'procedure',
589
+ description:
590
+ "Administrative action to update an account's signing key in their Did document.",
591
+ input: {
592
+ encoding: 'application/json',
593
+ schema: {
594
+ type: 'object',
595
+ required: ['did', 'signingKey'],
596
+ properties: {
597
+ did: {
598
+ type: 'string',
599
+ format: 'did',
600
+ },
601
+ signingKey: {
602
+ type: 'string',
603
+ format: 'did',
604
+ description: 'Did-key formatted public key',
605
+ },
606
+ },
607
+ },
608
+ },
609
+ },
610
+ },
611
+ },
583
612
  ComAtprotoAdminUpdateSubjectStatus: {
584
613
  lexicon: 1,
585
614
  id: 'com.atproto.admin.updateSubjectStatus',
@@ -9699,6 +9728,92 @@ export const schemaDict = {
9699
9728
  },
9700
9729
  },
9701
9730
  },
9731
+ skeletonTrend: {
9732
+ type: 'object',
9733
+ required: [
9734
+ 'topic',
9735
+ 'displayName',
9736
+ 'link',
9737
+ 'startedAt',
9738
+ 'postCount',
9739
+ 'dids',
9740
+ ],
9741
+ properties: {
9742
+ topic: {
9743
+ type: 'string',
9744
+ },
9745
+ displayName: {
9746
+ type: 'string',
9747
+ },
9748
+ link: {
9749
+ type: 'string',
9750
+ },
9751
+ startedAt: {
9752
+ type: 'string',
9753
+ format: 'datetime',
9754
+ },
9755
+ postCount: {
9756
+ type: 'integer',
9757
+ },
9758
+ status: {
9759
+ type: 'string',
9760
+ knownValues: ['hot'],
9761
+ },
9762
+ category: {
9763
+ type: 'string',
9764
+ },
9765
+ dids: {
9766
+ type: 'array',
9767
+ items: {
9768
+ type: 'string',
9769
+ format: 'did',
9770
+ },
9771
+ },
9772
+ },
9773
+ },
9774
+ trendView: {
9775
+ type: 'object',
9776
+ required: [
9777
+ 'topic',
9778
+ 'displayName',
9779
+ 'link',
9780
+ 'startedAt',
9781
+ 'postCount',
9782
+ 'actors',
9783
+ ],
9784
+ properties: {
9785
+ topic: {
9786
+ type: 'string',
9787
+ },
9788
+ displayName: {
9789
+ type: 'string',
9790
+ },
9791
+ link: {
9792
+ type: 'string',
9793
+ },
9794
+ startedAt: {
9795
+ type: 'string',
9796
+ format: 'datetime',
9797
+ },
9798
+ postCount: {
9799
+ type: 'integer',
9800
+ },
9801
+ status: {
9802
+ type: 'string',
9803
+ knownValues: ['hot'],
9804
+ },
9805
+ category: {
9806
+ type: 'string',
9807
+ },
9808
+ actors: {
9809
+ type: 'array',
9810
+ items: {
9811
+ type: 'ref',
9812
+ ref: 'lex:app.bsky.actor.defs#profileViewBasic',
9813
+ },
9814
+ },
9815
+ },
9816
+ },
9702
9817
  },
9703
9818
  },
9704
9819
  AppBskyUnspeccedGetConfig: {
@@ -9769,6 +9884,87 @@ export const schemaDict = {
9769
9884
  },
9770
9885
  },
9771
9886
  },
9887
+ AppBskyUnspeccedGetSuggestedStarterPacks: {
9888
+ lexicon: 1,
9889
+ id: 'app.bsky.unspecced.getSuggestedStarterPacks',
9890
+ defs: {
9891
+ main: {
9892
+ type: 'query',
9893
+ description: 'Get a list of suggested starterpacks',
9894
+ parameters: {
9895
+ type: 'params',
9896
+ properties: {
9897
+ limit: {
9898
+ type: 'integer',
9899
+ minimum: 1,
9900
+ maximum: 25,
9901
+ default: 10,
9902
+ },
9903
+ },
9904
+ },
9905
+ output: {
9906
+ encoding: 'application/json',
9907
+ schema: {
9908
+ type: 'object',
9909
+ required: ['starterPacks'],
9910
+ properties: {
9911
+ starterPacks: {
9912
+ type: 'array',
9913
+ items: {
9914
+ type: 'ref',
9915
+ ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
9916
+ },
9917
+ },
9918
+ },
9919
+ },
9920
+ },
9921
+ },
9922
+ },
9923
+ },
9924
+ AppBskyUnspeccedGetSuggestedStarterPacksSkeleton: {
9925
+ lexicon: 1,
9926
+ id: 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
9927
+ defs: {
9928
+ main: {
9929
+ type: 'query',
9930
+ description:
9931
+ 'Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks',
9932
+ parameters: {
9933
+ type: 'params',
9934
+ properties: {
9935
+ viewer: {
9936
+ type: 'string',
9937
+ format: 'did',
9938
+ description:
9939
+ 'DID of the account making the request (not included for public/unauthenticated queries).',
9940
+ },
9941
+ limit: {
9942
+ type: 'integer',
9943
+ minimum: 1,
9944
+ maximum: 25,
9945
+ default: 10,
9946
+ },
9947
+ },
9948
+ },
9949
+ output: {
9950
+ encoding: 'application/json',
9951
+ schema: {
9952
+ type: 'object',
9953
+ required: ['starterPacks'],
9954
+ properties: {
9955
+ starterPacks: {
9956
+ type: 'array',
9957
+ items: {
9958
+ type: 'string',
9959
+ format: 'at-uri',
9960
+ },
9961
+ },
9962
+ },
9963
+ },
9964
+ },
9965
+ },
9966
+ },
9967
+ },
9772
9968
  AppBskyUnspeccedGetSuggestionsSkeleton: {
9773
9969
  lexicon: 1,
9774
9970
  id: 'app.bsky.unspecced.getSuggestionsSkeleton',
@@ -9934,6 +10130,87 @@ export const schemaDict = {
9934
10130
  },
9935
10131
  },
9936
10132
  },
10133
+ AppBskyUnspeccedGetTrends: {
10134
+ lexicon: 1,
10135
+ id: 'app.bsky.unspecced.getTrends',
10136
+ defs: {
10137
+ main: {
10138
+ type: 'query',
10139
+ description: 'Get the current trends on the network',
10140
+ parameters: {
10141
+ type: 'params',
10142
+ properties: {
10143
+ limit: {
10144
+ type: 'integer',
10145
+ minimum: 1,
10146
+ maximum: 25,
10147
+ default: 10,
10148
+ },
10149
+ },
10150
+ },
10151
+ output: {
10152
+ encoding: 'application/json',
10153
+ schema: {
10154
+ type: 'object',
10155
+ required: ['trends'],
10156
+ properties: {
10157
+ trends: {
10158
+ type: 'array',
10159
+ items: {
10160
+ type: 'ref',
10161
+ ref: 'lex:app.bsky.unspecced.defs#trendView',
10162
+ },
10163
+ },
10164
+ },
10165
+ },
10166
+ },
10167
+ },
10168
+ },
10169
+ },
10170
+ AppBskyUnspeccedGetTrendsSkeleton: {
10171
+ lexicon: 1,
10172
+ id: 'app.bsky.unspecced.getTrendsSkeleton',
10173
+ defs: {
10174
+ main: {
10175
+ type: 'query',
10176
+ description:
10177
+ 'Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends',
10178
+ parameters: {
10179
+ type: 'params',
10180
+ properties: {
10181
+ viewer: {
10182
+ type: 'string',
10183
+ format: 'did',
10184
+ description:
10185
+ 'DID of the account making the request (not included for public/unauthenticated queries).',
10186
+ },
10187
+ limit: {
10188
+ type: 'integer',
10189
+ minimum: 1,
10190
+ maximum: 25,
10191
+ default: 10,
10192
+ },
10193
+ },
10194
+ },
10195
+ output: {
10196
+ encoding: 'application/json',
10197
+ schema: {
10198
+ type: 'object',
10199
+ required: ['trends'],
10200
+ properties: {
10201
+ trends: {
10202
+ type: 'array',
10203
+ items: {
10204
+ type: 'ref',
10205
+ ref: 'lex:app.bsky.unspecced.defs#skeletonTrend',
10206
+ },
10207
+ },
10208
+ },
10209
+ },
10210
+ },
10211
+ },
10212
+ },
10213
+ },
9937
10214
  AppBskyUnspeccedSearchActorsSkeleton: {
9938
10215
  lexicon: 1,
9939
10216
  id: 'app.bsky.unspecced.searchActorsSkeleton',
@@ -10642,7 +10919,7 @@ export const schemaDict = {
10642
10919
  },
10643
10920
  reactionView: {
10644
10921
  type: 'object',
10645
- required: ['value', 'sender'],
10922
+ required: ['value', 'sender', 'createdAt'],
10646
10923
  properties: {
10647
10924
  value: {
10648
10925
  type: 'string',
@@ -10651,6 +10928,10 @@ export const schemaDict = {
10651
10928
  type: 'ref',
10652
10929
  ref: 'lex:chat.bsky.convo.defs#reactionViewSender',
10653
10930
  },
10931
+ createdAt: {
10932
+ type: 'string',
10933
+ format: 'datetime',
10934
+ },
10654
10935
  },
10655
10936
  },
10656
10937
  reactionViewSender: {
@@ -10699,9 +10980,12 @@ export const schemaDict = {
10699
10980
  refs: [
10700
10981
  'lex:chat.bsky.convo.defs#messageView',
10701
10982
  'lex:chat.bsky.convo.defs#deletedMessageView',
10702
- 'lex:chat.bsky.convo.defs#messageAndReactionView',
10703
10983
  ],
10704
10984
  },
10985
+ lastReaction: {
10986
+ type: 'union',
10987
+ refs: ['lex:chat.bsky.convo.defs#messageAndReactionView'],
10988
+ },
10705
10989
  muted: {
10706
10990
  type: 'boolean',
10707
10991
  },
@@ -14797,6 +15081,8 @@ export const ids = {
14797
15081
  ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
14798
15082
  ComAtprotoAdminUpdateAccountPassword:
14799
15083
  'com.atproto.admin.updateAccountPassword',
15084
+ ComAtprotoAdminUpdateAccountSigningKey:
15085
+ 'com.atproto.admin.updateAccountSigningKey',
14800
15086
  ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
14801
15087
  ComAtprotoIdentityDefs: 'com.atproto.identity.defs',
14802
15088
  ComAtprotoIdentityGetRecommendedDidCredentials:
@@ -14961,11 +15247,17 @@ export const ids = {
14961
15247
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
14962
15248
  AppBskyUnspeccedGetPopularFeedGenerators:
14963
15249
  'app.bsky.unspecced.getPopularFeedGenerators',
15250
+ AppBskyUnspeccedGetSuggestedStarterPacks:
15251
+ 'app.bsky.unspecced.getSuggestedStarterPacks',
15252
+ AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:
15253
+ 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
14964
15254
  AppBskyUnspeccedGetSuggestionsSkeleton:
14965
15255
  'app.bsky.unspecced.getSuggestionsSkeleton',
14966
15256
  AppBskyUnspeccedGetTaggedSuggestions:
14967
15257
  'app.bsky.unspecced.getTaggedSuggestions',
14968
15258
  AppBskyUnspeccedGetTrendingTopics: 'app.bsky.unspecced.getTrendingTopics',
15259
+ AppBskyUnspeccedGetTrends: 'app.bsky.unspecced.getTrends',
15260
+ AppBskyUnspeccedGetTrendsSkeleton: 'app.bsky.unspecced.getTrendsSkeleton',
14969
15261
  AppBskyUnspeccedSearchActorsSkeleton:
14970
15262
  'app.bsky.unspecced.searchActorsSkeleton',
14971
15263
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
@@ -9,6 +9,7 @@ import {
9
9
  is$typed as _is$typed,
10
10
  type OmitKey,
11
11
  } from '../../../../util'
12
+ import type * as AppBskyActorDefs from '../actor/defs.js'
12
13
 
13
14
  const is$typed = _is$typed,
14
15
  validate = _validate
@@ -80,3 +81,47 @@ export function isTrendingTopic<V>(v: V) {
80
81
  export function validateTrendingTopic<V>(v: V) {
81
82
  return validate<TrendingTopic & V>(v, id, hashTrendingTopic)
82
83
  }
84
+
85
+ export interface SkeletonTrend {
86
+ $type?: 'app.bsky.unspecced.defs#skeletonTrend'
87
+ topic: string
88
+ displayName: string
89
+ link: string
90
+ startedAt: string
91
+ postCount: number
92
+ status?: 'hot' | (string & {})
93
+ category?: string
94
+ dids: string[]
95
+ }
96
+
97
+ const hashSkeletonTrend = 'skeletonTrend'
98
+
99
+ export function isSkeletonTrend<V>(v: V) {
100
+ return is$typed(v, id, hashSkeletonTrend)
101
+ }
102
+
103
+ export function validateSkeletonTrend<V>(v: V) {
104
+ return validate<SkeletonTrend & V>(v, id, hashSkeletonTrend)
105
+ }
106
+
107
+ export interface TrendView {
108
+ $type?: 'app.bsky.unspecced.defs#trendView'
109
+ topic: string
110
+ displayName: string
111
+ link: string
112
+ startedAt: string
113
+ postCount: number
114
+ status?: 'hot' | (string & {})
115
+ category?: string
116
+ actors: AppBskyActorDefs.ProfileViewBasic[]
117
+ }
118
+
119
+ const hashTrendView = 'trendView'
120
+
121
+ export function isTrendView<V>(v: V) {
122
+ return is$typed(v, id, hashTrendView)
123
+ }
124
+
125
+ export function validateTrendView<V>(v: V) {
126
+ return validate<TrendView & V>(v, id, hashTrendView)
127
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
14
+ import type * as AppBskyGraphDefs from '../graph/defs.js'
15
+
16
+ const is$typed = _is$typed,
17
+ validate = _validate
18
+ const id = 'app.bsky.unspecced.getSuggestedStarterPacks'
19
+
20
+ export interface QueryParams {
21
+ limit: number
22
+ }
23
+
24
+ export type InputSchema = undefined
25
+
26
+ export interface OutputSchema {
27
+ starterPacks: AppBskyGraphDefs.StarterPackViewBasic[]
28
+ }
29
+
30
+ export type HandlerInput = undefined
31
+
32
+ export interface HandlerSuccess {
33
+ encoding: 'application/json'
34
+ body: OutputSchema
35
+ headers?: { [key: string]: string }
36
+ }
37
+
38
+ export interface HandlerError {
39
+ status: number
40
+ message?: string
41
+ }
42
+
43
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
44
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
45
+ auth: HA
46
+ params: QueryParams
47
+ input: HandlerInput
48
+ req: express.Request
49
+ res: express.Response
50
+ resetRouteRateLimits: () => Promise<void>
51
+ }
52
+ export type Handler<HA extends HandlerAuth = never> = (
53
+ ctx: HandlerReqCtx<HA>,
54
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -0,0 +1,55 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton'
18
+
19
+ export interface QueryParams {
20
+ /** DID of the account making the request (not included for public/unauthenticated queries). */
21
+ viewer?: string
22
+ limit: number
23
+ }
24
+
25
+ export type InputSchema = undefined
26
+
27
+ export interface OutputSchema {
28
+ starterPacks: string[]
29
+ }
30
+
31
+ export type HandlerInput = undefined
32
+
33
+ export interface HandlerSuccess {
34
+ encoding: 'application/json'
35
+ body: OutputSchema
36
+ headers?: { [key: string]: string }
37
+ }
38
+
39
+ export interface HandlerError {
40
+ status: number
41
+ message?: string
42
+ }
43
+
44
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
45
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
46
+ auth: HA
47
+ params: QueryParams
48
+ input: HandlerInput
49
+ req: express.Request
50
+ res: express.Response
51
+ resetRouteRateLimits: () => Promise<void>
52
+ }
53
+ export type Handler<HA extends HandlerAuth = never> = (
54
+ ctx: HandlerReqCtx<HA>,
55
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -0,0 +1,54 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
14
+ import type * as AppBskyUnspeccedDefs from './defs.js'
15
+
16
+ const is$typed = _is$typed,
17
+ validate = _validate
18
+ const id = 'app.bsky.unspecced.getTrends'
19
+
20
+ export interface QueryParams {
21
+ limit: number
22
+ }
23
+
24
+ export type InputSchema = undefined
25
+
26
+ export interface OutputSchema {
27
+ trends: AppBskyUnspeccedDefs.TrendView[]
28
+ }
29
+
30
+ export type HandlerInput = undefined
31
+
32
+ export interface HandlerSuccess {
33
+ encoding: 'application/json'
34
+ body: OutputSchema
35
+ headers?: { [key: string]: string }
36
+ }
37
+
38
+ export interface HandlerError {
39
+ status: number
40
+ message?: string
41
+ }
42
+
43
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
44
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
45
+ auth: HA
46
+ params: QueryParams
47
+ input: HandlerInput
48
+ req: express.Request
49
+ res: express.Response
50
+ resetRouteRateLimits: () => Promise<void>
51
+ }
52
+ export type Handler<HA extends HandlerAuth = never> = (
53
+ ctx: HandlerReqCtx<HA>,
54
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -0,0 +1,56 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
14
+ import type * as AppBskyUnspeccedDefs from './defs.js'
15
+
16
+ const is$typed = _is$typed,
17
+ validate = _validate
18
+ const id = 'app.bsky.unspecced.getTrendsSkeleton'
19
+
20
+ export interface QueryParams {
21
+ /** DID of the account making the request (not included for public/unauthenticated queries). */
22
+ viewer?: string
23
+ limit: number
24
+ }
25
+
26
+ export type InputSchema = undefined
27
+
28
+ export interface OutputSchema {
29
+ trends: AppBskyUnspeccedDefs.SkeletonTrend[]
30
+ }
31
+
32
+ export type HandlerInput = undefined
33
+
34
+ export interface HandlerSuccess {
35
+ encoding: 'application/json'
36
+ body: OutputSchema
37
+ headers?: { [key: string]: string }
38
+ }
39
+
40
+ export interface HandlerError {
41
+ status: number
42
+ message?: string
43
+ }
44
+
45
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
46
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
47
+ auth: HA
48
+ params: QueryParams
49
+ input: HandlerInput
50
+ req: express.Request
51
+ res: express.Response
52
+ resetRouteRateLimits: () => Promise<void>
53
+ }
54
+ export type Handler<HA extends HandlerAuth = never> = (
55
+ ctx: HandlerReqCtx<HA>,
56
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -113,6 +113,7 @@ export interface ReactionView {
113
113
  $type?: 'chat.bsky.convo.defs#reactionView'
114
114
  value: string
115
115
  sender: ReactionViewSender
116
+ createdAt: string
116
117
  }
117
118
 
118
119
  const hashReactionView = 'reactionView'
@@ -164,8 +165,8 @@ export interface ConvoView {
164
165
  lastMessage?:
165
166
  | $Typed<MessageView>
166
167
  | $Typed<DeletedMessageView>
167
- | $Typed<MessageAndReactionView>
168
168
  | { $type: string }
169
+ lastReaction?: $Typed<MessageAndReactionView> | { $type: string }
169
170
  muted: boolean
170
171
  status?: 'request' | 'accepted' | (string & {})
171
172
  unreadCount: number
@@ -0,0 +1,48 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'com.atproto.admin.updateAccountSigningKey'
18
+
19
+ export interface QueryParams {}
20
+
21
+ export interface InputSchema {
22
+ did: string
23
+ /** Did-key formatted public key */
24
+ signingKey: string
25
+ }
26
+
27
+ export interface HandlerInput {
28
+ encoding: 'application/json'
29
+ body: InputSchema
30
+ }
31
+
32
+ export interface HandlerError {
33
+ status: number
34
+ message?: string
35
+ }
36
+
37
+ export type HandlerOutput = HandlerError | void
38
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
39
+ auth: HA
40
+ params: QueryParams
41
+ input: HandlerInput
42
+ req: express.Request
43
+ res: express.Response
44
+ resetRouteRateLimits: () => Promise<void>
45
+ }
46
+ export type Handler<HA extends HandlerAuth = never> = (
47
+ ctx: HandlerReqCtx<HA>,
48
+ ) => Promise<HandlerOutput> | HandlerOutput