~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/stream

jetstream v2 in zig · mirror of https://tangled.org/zat.dev/stream

0
0
10 lines · 342 B Raw History
import * as v from '@atcute/lexicons/validations';

// Only the profile fields used for archive recognition cross this boundary.
const identityProfile = v.object({
  handle: v.string(),
  displayName: v.optional(v.string()),
  avatar: v.optional(v.string()),
});

export const parseIdentityProfile = input => v.parse(identityProfile, input);