···8899const is$typed = _is$typed,
1010 validate = _validate
1111-const id = 'app.example.follow'
1111+const id = 'xyz.statusphere.status'
12121313export interface Record {
1414- $type: 'app.example.follow'
1515- /** DID of the account being followed */
1616- subject: string
1717- /** When the follow was created */
1414+ $type: 'xyz.statusphere.status'
1515+ status: string
1816 createdAt: string
1917 [k: string]: unknown
2018}
-30
packages/example/src/types/app/example/like.ts
···11-/**
22- * GENERATED CODE - DO NOT MODIFY
33- */
44-import { type ValidationResult, BlobRef } from '@atproto/lexicon'
55-import { CID } from 'multiformats/cid'
66-import { validate as _validate } from '../../../lexicons'
77-import { type $Typed, is$typed as _is$typed, type OmitKey } from '../../../util'
88-import type * as AppExampleDefs from './defs.js'
99-1010-const is$typed = _is$typed,
1111- validate = _validate
1212-const id = 'app.example.like'
1313-1414-export interface Record {
1515- $type: 'app.example.like'
1616- subject: AppExampleDefs.PostRef
1717- /** When the like was created */
1818- createdAt: string
1919- [k: string]: unknown
2020-}
2121-2222-const hashRecord = 'main'
2323-2424-export function isRecord<V>(v: V) {
2525- return is$typed(v, id, hashRecord)
2626-}
2727-2828-export function validateRecord<V>(v: V) {
2929- return validate<Record & V>(v, id, hashRecord, true)
3030-}
-36
packages/example/src/types/app/example/post.ts
···11-/**
22- * GENERATED CODE - DO NOT MODIFY
33- */
44-import { type ValidationResult, BlobRef } from '@atproto/lexicon'
55-import { CID } from 'multiformats/cid'
66-import { validate as _validate } from '../../../lexicons'
77-import { type $Typed, is$typed as _is$typed, type OmitKey } from '../../../util'
88-import type * as AppExampleDefs from './defs.js'
99-1010-const is$typed = _is$typed,
1111- validate = _validate
1212-const id = 'app.example.post'
1313-1414-export interface Record {
1515- $type: 'app.example.post'
1616- /** Post text content */
1717- text: string
1818- /** Creation timestamp */
1919- createdAt: string
2020- /** Languages the post is written in */
2121- langs?: string[]
2222- /** Referenced entities in the post */
2323- entities?: AppExampleDefs.Entity[]
2424- reply?: AppExampleDefs.ReplyRef
2525- [k: string]: unknown
2626-}
2727-2828-const hashRecord = 'main'
2929-3030-export function isRecord<V>(v: V) {
3131- return is$typed(v, id, hashRecord)
3232-}
3333-3434-export function validateRecord<V>(v: V) {
3535- return validate<Record & V>(v, id, hashRecord, true)
3636-}
-34
packages/example/src/types/app/example/profile.ts
···11-/**
22- * GENERATED CODE - DO NOT MODIFY
33- */
44-import { type ValidationResult, BlobRef } from '@atproto/lexicon'
55-import { CID } from 'multiformats/cid'
66-import { validate as _validate } from '../../../lexicons'
77-import { type $Typed, is$typed as _is$typed, type OmitKey } from '../../../util'
88-99-const is$typed = _is$typed,
1010- validate = _validate
1111-const id = 'app.example.profile'
1212-1313-export interface Record {
1414- $type: 'app.example.profile'
1515- /** Display name */
1616- displayName?: string
1717- /** Profile description */
1818- description?: string
1919- /** Profile avatar image */
2020- avatar?: string
2121- /** Profile banner image */
2222- banner?: string
2323- [k: string]: unknown
2424-}
2525-2626-const hashRecord = 'main'
2727-2828-export function isRecord<V>(v: V) {
2929- return is$typed(v, id, hashRecord)
3030-}
3131-3232-export function validateRecord<V>(v: V) {
3333- return validate<Record & V>(v, id, hashRecord, true)
3434-}
-30
packages/example/src/types/app/example/repost.ts
···11-/**
22- * GENERATED CODE - DO NOT MODIFY
33- */
44-import { type ValidationResult, BlobRef } from '@atproto/lexicon'
55-import { CID } from 'multiformats/cid'
66-import { validate as _validate } from '../../../lexicons'
77-import { type $Typed, is$typed as _is$typed, type OmitKey } from '../../../util'
88-import type * as AppExampleDefs from './defs.js'
99-1010-const is$typed = _is$typed,
1111- validate = _validate
1212-const id = 'app.example.repost'
1313-1414-export interface Record {
1515- $type: 'app.example.repost'
1616- subject: AppExampleDefs.PostRef
1717- /** When the repost was created */
1818- createdAt: string
1919- [k: string]: unknown
2020-}
2121-2222-const hashRecord = 'main'
2323-2424-export function isRecord<V>(v: V) {
2525- return is$typed(v, id, hashRecord)
2626-}
2727-2828-export function validateRecord<V>(v: V) {
2929- return validate<Record & V>(v, id, hashRecord, true)
3030-}