
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@embed-ai/types
Advanced tools
TypeScript types for Embed AI APIs, providing comprehensive type definitions for Farcaster feed management, AI labeling, and content filtering.
bun install @embed-ai/types effect
Note:
effectis a peer dependency and must be installed alongside@embed-ai/types
import type { ForYou, ForYouResponse, FeedOptions } from '@embed-ai/types'
import type { ForYou, ForYouReranked, popular, trendingNow } from '@embed-ai/types/feeds'
import type { LabelsForItems, LabelsForText, LabelsForUsers } from '@embed-ai/types/labels'
import type { SemanticSearch, Similar, TopicParam, FiltersParam } from '@embed-ai/types/search'
import type { UsersFeedForChannel, UsersFeedForItem, UsersFeedForTopic } from '@embed-ai/types/users'
import type { ForYouResponse, ForYouApiResponse } from '@embed-ai/types/responses'
The package also exports Effect schemas for runtime validation and parsing:
import { ForYou, ForYouEncoded } from '@embed-ai/types'
// Runtime validation
const result = ForYou.decode(inputData)
if (result._tag === 'Right') {
// Valid data
const validatedData = result.right
} else {
// Invalid data
console.error('Validation failed:', result.left)
}
// Encoding for API requests
const encodedData = ForYouEncoded.encode(data)
ForYou, ForYouReranked, popular, trendingNow, etc.ForYouResponse, ForYouApiResponseFiltersParam, PromotionFiltersParam, ScoringParamLabelsForItems, LabelsForText, LabelsForUsersSemanticSearch, Similar, TopicParamEach schema has a corresponding *Encoded version for API serialization.
import type {
CreateFeedOptions,
FeedCreateUpdateResponse,
FeedGetResponse,
ListFeedsResponse,
UpdateFeedOptions
} from '@embed-ai/types'
import type {
ForYou,
ForYouResponse,
FiltersParam,
LabelsForItems
} from '@embed-ai/types'
// Or use organized imports
import type { ForYou, ForYouResponse } from '@embed-ai/types/feeds'
import type { FiltersParam } from '@embed-ai/types/search'
import type { LabelsForItems } from '@embed-ai/types/labels'
// Runtime validation
import { ForYou as ForYouSchema } from '@embed-ai/types'
const validationResult = ForYouSchema.decode(requestData)
ForYou, ForYouReranked, popular, trendingNowFiltersParam, PromotionFiltersParam, ScoringParamSemanticSearch, Similar, TopicParamUsersFeedForChannel, UsersFeedForItem, UsersFeedForTopic, UsersFeedSimilar, UsersSemanticSearchLabelsForItems, LabelsForText, LabelsForUsers, LabelsTopItems, LabelsTopUsersForYouResponse, ForYouApiResponseFeedCreateUpdateResponse, FeedGetResponse, ListFeedsResponseCreateFeedOptions, UpdateFeedOptionsAILabelsFilterParam, ColdstartParam, Empty, FallbackFeedsParam, FeedDiversityConfigParamThe package provides both a flat export (all types from root) and organized subpath exports:
@embed-ai/types - All types and schemas@embed-ai/types/feeds - Feed-related types and schemas@embed-ai/types/labels - AI labeling types and schemas@embed-ai/types/search - Search and filtering types and schemas@embed-ai/types/users - User feed types and schemas@embed-ai/types/responses - Response types and schemasBSD-3-Clause
FAQs
TypeScript types for Embed AI APIs
We found that @embed-ai/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.