@aegrid/types
v0.1.1
Published
Shared TypeScript types for the Aegrid agent commerce platform
Maintainers
Readme
@aegrid/types
Shared TypeScript types for the Aegrid agent commerce platform.
Install
npm install @aegrid/typesWhat's Included
Core Types
ServiceListing— AI service with endpoint, pricing, uptime, capability tags, and agent readiness scoreCommerceProduct— Purchasable product with variants, pricing, and merchant infoCommerceOrder— Order with approval, payment, and fulfillment statusBuyerContext/ShippingAddress— Buyer details for purchases
Search & API Types
SearchParams/SearchResult— Service search request and responseApiExecuteParams/ApiExecuteResult— Aegrid gateway executionExecuteParams/ExecuteResult— One-call agent purchase
Enums & Constants
CAPABILITY_TAGS— Full taxonomy of AI capabilities (inference, image-generation, embeddings, etc.)Platform,PricingModel,ListingType,SortOption,InvocationTypeErrorCode— All API error codes including commerce-specific codes
Usage
import type { ServiceListing, SearchParams, CommerceOrder } from '@aegrid/types';
import { CAPABILITY_TAGS } from '@aegrid/types';
const params: SearchParams = {
q: 'image generation',
capability: 'image-generation',
pricing: 'free',
limit: 10,
};Also Available
- aegrid-sdk — TypeScript SDK for the Aegrid API
- aegrid-mcp — MCP server for Claude Desktop, Claude Code, and Cursor
License
MIT
