import * as v from "valibot" declare const notionUserIdBrand: unique symbol export type NotionUserId = string & { readonly [notionUserIdBrand]: "NotionUserId" } export const notionUserSchema = v.object({ object: v.literal("user"), id: v.string(), name: v.optional(v.string()), avatar_url: v.nullable(v.string()), type: v.literal("person"), person: v.object({ email: v.string(), }), }) export type NotionUser = v.InferOutput export const notionUserListSchema = v.object({ object: v.literal("list"), results: v.array(notionUserSchema), next_cursor: v.nullable(v.string()), has_more: v.boolean(), type: v.literal("user"), user: v.record(v.string(), v.unknown()), }) export type NotionUserList = v.InferOutput