@@ -4,7 +4,10 @@ import AtpAgent from '@atproto/api'
44import { renameIfExists , rmIfExists } from '@atproto/common'
55import { SeedClient , TestNetworkNoAppView , basicSeed } from '@atproto/dev-env'
66import { verifyRepoCar } from '@atproto/repo'
7- import { AppContext , scripts } from '../dist'
7+ import type { AppContext } from '../../pds/dist/context'
8+ import { scripts } from '../dist'
9+ import type { RecovererContextNoDb } from '../dist/scripts/sequencer-recovery/recoverer'
10+ import type { RotateKeysContext } from '../dist/scripts/rotate-keys'
811
912describe ( 'recovery' , ( ) => {
1013 let network : TestNetworkNoAppView
@@ -135,7 +138,10 @@ describe('recovery', () => {
135138 await restore ( [ alice , bob , elli ] )
136139
137140 // run recovery operation
138- await scripts [ 'sequencer-recovery' ] ( network . pds . ctx , [ '0' , '10' , 'true' ] )
141+ await scripts [ 'sequencer-recovery' ] (
142+ network . pds . ctx as unknown as RecovererContextNoDb ,
143+ [ '0' , '10' , 'true' ] ,
144+ )
139145
140146 // ensure alice's CAR is exactly the same as before the loss, including intermediate states based on tracked revs
141147 const startCarAfter = await getCar ( alice , startRev )
@@ -165,7 +171,10 @@ describe('recovery', () => {
165171 } )
166172
167173 it ( 'rotates keys for users' , async ( ) => {
168- await scripts [ 'rotate-keys' ] ( network . pds . ctx , [ elli ] )
174+ await scripts [ 'rotate-keys' ] (
175+ network . pds . ctx as unknown as RotateKeysContext ,
176+ [ elli ] ,
177+ )
169178 const elliKey = await ctx . actorStore . keypair ( elli )
170179
171180 const plcData = await ctx . plcClient . getDocumentData ( elli )
0 commit comments