Run codemod for replacing BskyAgent with AtpAgent (#10862)

This commit is contained in:
DS Boyce
2026-06-11 08:46:01 -07:00
committed by GitHub
parent e3e7db2350
commit c8634105c1
37 changed files with 195 additions and 134 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import {type BskyAgent} from '@atproto/api'
import {type AtpAgent} from '@atproto/api'
import {type I18n} from '@lingui/core'
import {msg} from '@lingui/core/macro'
@@ -13,7 +13,7 @@ export async function getServiceAuthToken({
lxm,
exp,
}: {
agent: BskyAgent
agent: AtpAgent
aud?: string
lxm: string
exp?: number
@@ -30,7 +30,7 @@ export async function getServiceAuthToken({
return serviceAuth.token
}
export async function getVideoUploadLimits(agent: BskyAgent, i18n: I18n) {
export async function getVideoUploadLimits(agent: AtpAgent, i18n: I18n) {
const token = await getServiceAuthToken({
agent,
lxm: 'app.bsky.video.getUploadLimits',
+2 -2
View File
@@ -1,5 +1,5 @@
import {createUploadTask, FileSystemUploadType} from 'expo-file-system/legacy'
import {type AppBskyVideoDefs, type BskyAgent} from '@atproto/api'
import {type AppBskyVideoDefs, type AtpAgent} from '@atproto/api'
import {type I18n} from '@lingui/core'
import {msg} from '@lingui/core/macro'
import {nanoid} from 'nanoid/non-secure'
@@ -19,7 +19,7 @@ export async function uploadVideo({
i18n,
}: {
video: CompressedVideo
agent: BskyAgent
agent: AtpAgent
did: string
setProgress: (progress: number) => void
signal: AbortSignal
+2 -2
View File
@@ -1,4 +1,4 @@
import {type AppBskyVideoDefs, type BskyAgent} from '@atproto/api'
import {type AppBskyVideoDefs, type AtpAgent} from '@atproto/api'
import {type I18n} from '@lingui/core'
import {msg} from '@lingui/core/macro'
import {nanoid} from 'nanoid/non-secure'
@@ -18,7 +18,7 @@ export async function uploadVideo({
i18n,
}: {
video: CompressedVideo
agent: BskyAgent
agent: AtpAgent
did: string
setProgress: (progress: number) => void
signal: AbortSignal