[SDK] Remove @atproto/api (#11386)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import {
|
||||
type AtIdentifierString,
|
||||
type DidString,
|
||||
type HandleString,
|
||||
toDatetimeString,
|
||||
} from '@atproto/syntax'
|
||||
import {toDatetimeString} from '@atproto/syntax'
|
||||
import {useMutation} from '@tanstack/react-query'
|
||||
|
||||
import {until} from '#/lib/async/until'
|
||||
@@ -28,9 +23,9 @@ export function useVerificationCreateMutation() {
|
||||
|
||||
const {uri} = await pdsClient.create(app.bsky.graph.verification, {
|
||||
// the profile view is still legacy-typed, so its strings are unbranded
|
||||
subject: profile.did as DidString,
|
||||
subject: profile.did,
|
||||
createdAt: toDatetimeString(new Date()),
|
||||
handle: profile.handle as HandleString,
|
||||
handle: profile.handle,
|
||||
displayName: profile.displayName || '',
|
||||
})
|
||||
|
||||
@@ -48,7 +43,7 @@ export function useVerificationCreateMutation() {
|
||||
},
|
||||
() => {
|
||||
return appviewClient.call(app.bsky.actor.getProfile, {
|
||||
actor: (profile.did ?? '') as AtIdentifierString,
|
||||
actor: profile.did ?? '',
|
||||
})
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user