Client side atproto account migrator in your web browser, along with services for backups and adversarial migrations.
0

Configure Feed

Select the types of activity you want to include in your feed.

pds-moover / packages / moover / types / atprotoUtils.d.ts
1.1 kB 28 lines
1export const handleResolver: CompositeHandleResolver 2export const docResolver: CompositeDidDocumentResolver<'plc' | 'web'> 3/** 4 * Cleans the handle of @ and some other unicode characters that used to show up when copied from the profile 5 * @param handle {string} 6 * @returns {string} 7 */ 8export function cleanHandle(handle: string): string 9/** 10 * Convince helper to resolve a handle to a did and then find the PDS url from the did document. 11 * 12 * @param handle 13 * @returns {Promise<{usersDid: string, pds: string}>} 14 */ 15export function handleAndPDSResolver(handle: any): Promise<{ 16 usersDid: string 17 pds: string 18}> 19/** 20 * Fetches the DID Web from the .well-known/did.json endpoint of the server. 21 * Legacy and was helpful if the web ui and server are on the same domain, not as useful now 22 * @param baseUrl 23 * @returns {Promise<*>} 24 */ 25export function fetchPDSMooverDIDWeb(baseUrl: any): Promise<any> 26import { CompositeHandleResolver } from '@atcute/identity-resolver' 27import { CompositeDidDocumentResolver } from '@atcute/identity-resolver' 28//# sourceMappingURL=atprotoUtils.d.ts.map