@vedicmatters/client
v1.1.0
Published
Official TypeScript and JavaScript client for the VedAstro API
Maintainers
Readme
@vedicmatters/client
Official TypeScript/JavaScript client for all VedAstro OpenAPI operations.
npm install @vedicmatters/clientimport { VedAstroClient } from '@vedicmatters/client';
const client = new VedAstroClient({ apiKey: process.env.VEDASTRO_API_KEY, locale: 'en' });
const result = await client.chart.report({
dateTime: '1990-05-15T10:30:00+05:30',
location: { latitude: 28.6139, longitude: 77.209 },
ayanamsa: 'LAHIRI',
ruleProfile: 'evidence_backed_birth_chart_report_v1',
});
console.log(result.data);Use client.call(operationId, request) for any generated operation. Canonical response identifiers remain English; use applyLocalizedOverlay() only for display.
The client exports OperationResponseMap, CONTRACT_VERSION, and OPENAPI_SHA256. Common evidence fields are inferred automatically, and non-JSON operations such as iCal feeds select their documented response mode without a manual override.
