-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
230 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* GENERATED CODE - DO NOT MODIFY | ||
*/ | ||
import { ValidationResult, BlobRef } from '@atproto/lexicon' | ||
import { isObj, hasProp } from '../../../../util' | ||
import { lexicons } from '../../../../lexicons' | ||
import { CID } from 'multiformats/cid' | ||
|
||
export interface SkeletonSearchPost { | ||
uri: string | ||
[k: string]: unknown | ||
} | ||
|
||
export function isSkeletonSearchPost(v: unknown): v is SkeletonSearchPost { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#skeletonSearchPost' | ||
) | ||
} | ||
|
||
export function validateSkeletonSearchPost(v: unknown): ValidationResult { | ||
return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchPost', v) | ||
} | ||
|
||
export interface SkeletonSearchActor { | ||
did: string | ||
[k: string]: unknown | ||
} | ||
|
||
export function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#skeletonSearchActor' | ||
) | ||
} | ||
|
||
export function validateSkeletonSearchActor(v: unknown): ValidationResult { | ||
return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchActor', v) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
packages/bsky/src/lexicon/types/app/bsky/unspecced/defs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* GENERATED CODE - DO NOT MODIFY | ||
*/ | ||
import { ValidationResult, BlobRef } from '@atproto/lexicon' | ||
import { lexicons } from '../../../../lexicons' | ||
import { isObj, hasProp } from '../../../../util' | ||
import { CID } from 'multiformats/cid' | ||
|
||
export interface SkeletonSearchPost { | ||
uri: string | ||
[k: string]: unknown | ||
} | ||
|
||
export function isSkeletonSearchPost(v: unknown): v is SkeletonSearchPost { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#skeletonSearchPost' | ||
) | ||
} | ||
|
||
export function validateSkeletonSearchPost(v: unknown): ValidationResult { | ||
return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchPost', v) | ||
} | ||
|
||
export interface SkeletonSearchActor { | ||
did: string | ||
[k: string]: unknown | ||
} | ||
|
||
export function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#skeletonSearchActor' | ||
) | ||
} | ||
|
||
export function validateSkeletonSearchActor(v: unknown): ValidationResult { | ||
return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchActor', v) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* GENERATED CODE - DO NOT MODIFY | ||
*/ | ||
import { ValidationResult, BlobRef } from '@atproto/lexicon' | ||
import { lexicons } from '../../../../lexicons' | ||
import { isObj, hasProp } from '../../../../util' | ||
import { CID } from 'multiformats/cid' | ||
|
||
export interface SkeletonSearchPost { | ||
uri: string | ||
[k: string]: unknown | ||
} | ||
|
||
export function isSkeletonSearchPost(v: unknown): v is SkeletonSearchPost { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#skeletonSearchPost' | ||
) | ||
} | ||
|
||
export function validateSkeletonSearchPost(v: unknown): ValidationResult { | ||
return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchPost', v) | ||
} | ||
|
||
export interface SkeletonSearchActor { | ||
did: string | ||
[k: string]: unknown | ||
} | ||
|
||
export function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#skeletonSearchActor' | ||
) | ||
} | ||
|
||
export function validateSkeletonSearchActor(v: unknown): ValidationResult { | ||
return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchActor', v) | ||
} |
Oops, something went wrong.