// This file is auto-generated by @hey-api/openapi-ts import { client } from './client.gen.js'; import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js'; import type { AngelListData, AngelListErrors, AngelListResponses, AngelNumberData, AngelNumberErrors, AngelNumberResponses, AngelPersonalData, AngelPersonalErrors, AngelPersonalResponses, AngelTodayData, AngelTodayErrors, AngelTodayResponses, AshtakavargaData, AshtakavargaErrors, AshtakavargaResponses, AshtottariDashaData, AshtottariDashaErrors, AshtottariDashaResponses, AtmakarakaData, AtmakarakaErrors, AtmakarakaResponses, AyanamshaData, AyanamshaErrors, AyanamshaResponses, BalanceNumberData, BalanceNumberErrors, BalanceNumberResponses, BusinessNameData, BusinessNameErrors, BusinessNamePostData, BusinessNamePostErrors, BusinessNamePostResponses, BusinessNameResponses, ChaldeanData, ChaldeanErrors, ChaldeanResponses, CharDashaData, CharDashaErrors, CharDashaResponses, ChartSvgData, ChartSvgErrors, ChartSvgResponses, CrystalData, CrystalErrors, CrystalResponses, CrystalsByPlanetData, CrystalsByPlanetErrors, CrystalsByPlanetResponses, CrystalsListData, CrystalsListErrors, CrystalsListResponses, CrystalsRecommendData, CrystalsRecommendErrors, CrystalsRecommendNatalData, CrystalsRecommendNatalErrors, CrystalsRecommendNatalResponses, CrystalsRecommendResponses, DashaData, DashaErrors, DashaResponses, DashaTransitsData, DashaTransitsErrors, DashaTransitsResponses, DivisionalChartsData, DivisionalChartsErrors, DivisionalChartsResponses, DoshasData, DoshasErrors, DoshasResponses, DreamSymbolData, DreamSymbolErrors, DreamSymbolResponses, DreamSymbolsData, DreamSymbolsErrors, DreamSymbolsResponses, ExpressionNumberData, ExpressionNumberErrors, ExpressionNumberResponses, GemstonesData, GemstonesErrors, GemstonesResponses, GeocodeData, GeocodeErrors, GeocodeResponses, GhatChakraData, GhatChakraErrors, GhatChakraResponses, GocharData, GocharErrors, GocharResponses, HoroscopeDailyData, HoroscopeDailyErrors, HoroscopeDailyResponses, HoroscopeMonthlyData, HoroscopeMonthlyErrors, HoroscopeMonthlyResponses, HoroscopeWeeklyData, HoroscopeWeeklyErrors, HoroscopeWeeklyResponses, HoroscopeYearlyData, HoroscopeYearlyErrors, HoroscopeYearlyResponses, IshtaDevataData, IshtaDevataErrors, IshtaDevataResponses, KarmicLessonsData, KarmicLessonsErrors, KarmicLessonsResponses, KpChartData, KpChartErrors, KpChartResponses, KpRulingPlanetsData, KpRulingPlanetsErrors, KpRulingPlanetsResponses, KpSignificatorsData, KpSignificatorsErrors, KpSignificatorsResponses, LalKitabChartData, LalKitabChartErrors, LalKitabChartResponses, LalKitabRemediesData, LalKitabRemediesErrors, LalKitabRemediesResponses, LifePathData, LifePathErrors, LifePathPostData, LifePathPostErrors, LifePathPostResponses, LifePathResponses, LoShuData, LoShuErrors, LoShuResponses, LuckyNumbersData, LuckyNumbersErrors, LuckyNumbersPostData, LuckyNumbersPostErrors, LuckyNumbersPostResponses, LuckyNumbersResponses, MatchmakingDashakootData, MatchmakingDashakootErrors, MatchmakingDashakootResponses, MatchmakingData, MatchmakingErrors, MatchmakingPapasamyamData, MatchmakingPapasamyamErrors, MatchmakingPapasamyamResponses, MatchmakingPoruthamData, MatchmakingPoruthamErrors, MatchmakingPoruthamResponses, MatchmakingResponses, MatchmakingThirumanaPoruthamData, MatchmakingThirumanaPoruthamErrors, MatchmakingThirumanaPoruthamResponses, MaturityNumberData, MaturityNumberErrors, MaturityNumberResponses, MobileNumberData, MobileNumberErrors, MobileNumberPostData, MobileNumberPostErrors, MobileNumberPostResponses, MobileNumberResponses, MuhurtaData, MuhurtaErrors, MuhurtaResponses, NakshatraData2, NakshatraErrors, NakshatraPredictionData, NakshatraPredictionErrors, NakshatraPredictionResponses, NakshatraResponses, NameCorrectionData, NameCorrectionErrors, NameCorrectionResponses, NatalChartData, NatalChartErrors, NatalChartResponses, NumberMeaningData, NumberMeaningErrors, NumberMeaningResponses, NumerologyCompatibilityData, NumerologyCompatibilityErrors, NumerologyCompatibilityResponses, NumerologyProfileData, NumerologyProfileErrors, NumerologyProfileResponses, PanchangaCalendarData, PanchangaCalendarErrors, PanchangaCalendarPostData, PanchangaCalendarPostErrors, PanchangaCalendarPostResponses, PanchangaCalendarResponses, PanchangaChoghadiyaData, PanchangaChoghadiyaErrors, PanchangaChoghadiyaGetData, PanchangaChoghadiyaGetErrors, PanchangaChoghadiyaGetResponses, PanchangaChoghadiyaResponses, PanchangaData, PanchangaErrors, PanchangaFestivalsData, PanchangaFestivalsErrors, PanchangaFestivalsResponses, PanchangaGetData, PanchangaGetErrors, PanchangaGetResponses, PanchangaHoraData, PanchangaHoraErrors, PanchangaHoraGetData, PanchangaHoraGetErrors, PanchangaHoraGetResponses, PanchangaHoraResponses, PanchangaRahuKaalData, PanchangaRahuKaalErrors, PanchangaRahuKaalGetData, PanchangaRahuKaalGetErrors, PanchangaRahuKaalGetResponses, PanchangaRahuKaalResponses, PanchangaResponses, PanchangaTamilData, PanchangaTamilErrors, PanchangaTamilResponses, PersonalCyclesData, PersonalCyclesErrors, PersonalCyclesResponses, PersonalityNumberData, PersonalityNumberErrors, PersonalityNumberResponses, PersonalYearData, PersonalYearErrors, PersonalYearPostData, PersonalYearPostErrors, PersonalYearPostResponses, PersonalYearResponses, PitraDoshaData, PitraDoshaErrors, PitraDoshaResponses, PlanetNatureData, PlanetNatureErrors, PlanetNatureResponses, PrashnaData, PrashnaErrors, PrashnaResponses, PujaSuggestionsData, PujaSuggestionsErrors, PujaSuggestionsResponses, ReferenceChartsData, ReferenceChartsErrors, ReferenceChartsResponses, RemediesData, RemediesErrors, RemediesResponses, RudrakshaData, RudrakshaErrors, RudrakshaResponses, SadeSatiData, SadeSatiErrors, SadeSatiResponses, SoulUrgeNumberData, SoulUrgeNumberErrors, SoulUrgeNumberResponses, StrengthData, StrengthErrors, StrengthResponses, TarabalaData, TarabalaErrors, TarabalaResponses, TarotCardData, TarotCardErrors, TarotCardOfTheDayData, TarotCardOfTheDayErrors, TarotCardOfTheDayResponses, TarotCardResponses, TarotCardsData, TarotCardsErrors, TarotCardsResponses, TarotCelticCrossData, TarotCelticCrossErrors, TarotCelticCrossResponses, TarotDrawData, TarotDrawErrors, TarotDrawResponses, TarotMajorArcanaData, TarotMajorArcanaErrors, TarotMajorArcanaResponses, TarotSuitData, TarotSuitErrors, TarotSuitResponses, TarotThreeCardData, TarotThreeCardErrors, TarotThreeCardResponses, TarotYesNoData, TarotYesNoErrors, TarotYesNoResponses, TimezoneData, TimezoneErrors, TimezoneResponses, TransitsData, TransitsErrors, TransitsResponses, VarshaphalData, VarshaphalErrors, VarshaphalHarshaBalaData, VarshaphalHarshaBalaErrors, VarshaphalHarshaBalaResponses, VarshaphalResponses, VarshaphalSahamData, VarshaphalSahamErrors, VarshaphalSahamResponses, VedicDailyFactorsData, VedicDailyFactorsErrors, VedicDailyFactorsResponses, VedicEventsData, VedicEventsErrors, VedicEventsResponses, VedicSignificationsData, VedicSignificationsErrors, VedicSignificationsResponses, VehicleNumberData, VehicleNumberErrors, VehicleNumberPostData, VehicleNumberPostErrors, VehicleNumberPostResponses, VehicleNumberResponses, WesternAspectsData, WesternAspectsErrors, WesternAspectsResponses, WesternBiorhythmData, WesternBiorhythmErrors, WesternBiorhythmResponses, WesternChartData, WesternChartErrors, WesternChartResponses, WesternCompatibilityData, WesternCompatibilityErrors, WesternCompatibilityResponses, WesternCompatibilityZodiacData, WesternCompatibilityZodiacErrors, WesternCompatibilityZodiacResponses, WesternCompositeData, WesternCompositeErrors, WesternCompositeResponses, WesternDailyFactorsData, WesternDailyFactorsErrors, WesternDailyFactorsResponses, WesternDayData, WesternDayErrors, WesternDayGetData, WesternDayGetErrors, WesternDayGetResponses, WesternDayResponses, WesternEclipsesData, WesternEclipsesErrors, WesternEclipsesResponses, WesternEventsData, WesternEventsErrors, WesternEventsResponses, WesternHoraryData, WesternHoraryErrors, WesternHoraryResponses, WesternHoroscopeDailyData, WesternHoroscopeDailyErrors, WesternHoroscopeDailyResponses, WesternHoroscopeMonthlyData, WesternHoroscopeMonthlyErrors, WesternHoroscopeMonthlyResponses, WesternHoroscopeWeeklyData, WesternHoroscopeWeeklyErrors, WesternHoroscopeWeeklyResponses, WesternHoroscopeYearlyData, WesternHoroscopeYearlyErrors, WesternHoroscopeYearlyResponses, WesternLunarReturnData, WesternLunarReturnErrors, WesternLunarReturnResponses, WesternMoonCalendarData, WesternMoonCalendarErrors, WesternMoonCalendarResponses, WesternMoonPhaseData, WesternMoonPhaseErrors, WesternMoonPhaseResponses, WesternNatalChartData, WesternNatalChartErrors, WesternNatalChartResponses, WesternPlanetaryHoursData, WesternPlanetaryHoursErrors, WesternPlanetaryHoursGetData, WesternPlanetaryHoursGetErrors, WesternPlanetaryHoursGetResponses, WesternPlanetaryHoursResponses, WesternPlanetaryReturnData, WesternPlanetaryReturnErrors, WesternPlanetaryReturnResponses, WesternProfectionsData, WesternProfectionsErrors, WesternProfectionsResponses, WesternProgressionsSecondaryData, WesternProgressionsSecondaryErrors, WesternProgressionsSecondaryResponses, WesternProgressionsSolarArcData, WesternProgressionsSolarArcErrors, WesternProgressionsSolarArcResponses, WesternSignificationsData, WesternSignificationsErrors, WesternSignificationsResponses, WesternSolarReturnData, WesternSolarReturnErrors, WesternSolarReturnResponses, WesternSynastryData, WesternSynastryErrors, WesternSynastryResponses, WesternTransitsDailyData, WesternTransitsDailyErrors, WesternTransitsDailyResponses, WesternTransitsMonthlyData, WesternTransitsMonthlyErrors, WesternTransitsMonthlyResponses, WesternTransitsWeeklyData, WesternTransitsWeeklyErrors, WesternTransitsWeeklyResponses, WesternVoidOfCourseData, WesternVoidOfCourseErrors, WesternVoidOfCourseGetData, WesternVoidOfCourseGetErrors, WesternVoidOfCourseGetResponses, WesternVoidOfCourseResponses, YogasData, YogasErrors, YogasResponses, YoginiDashaData, YoginiDashaErrors, YoginiDashaResponses } from './types.gen.js'; export type Options = Options2 & { /** * You can provide a client instance returned by `createClient()` instead of * individual options. This might be also useful if you want to implement a * custom client. */ client?: Client; /** * You can pass arbitrary values through the `meta` object. This can be * used to access values that aren't defined as part of the SDK function. */ meta?: keyof ClientMeta extends never ? Record : ClientMeta; }; /** * Jaimini Charakarakas * * Computes all 8 Jaimini Charakarakas from the natal chart, from Atmakaraka to Darakaraka. The eight are Atmakaraka, Amatyakaraka, Bhratrikaraka, Matrikaraka, Pitrikaraka, Putrakaraka, Gnatikaraka, and Darakaraka. The planet with the highest degree in its sign becomes the Atmakaraka. Request JSON follows BirthInput: `name` (optional, default Chart), `date` (YYYY-MM-DD), `time` (HH:MM, required), either `location` or `latitude`/`longitude`/`timezone`, optional `ayanamsa` (lahiri|raman|kp|tropical). */ export const atmakaraka = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/atmakaraka', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Ashtakavarga * * Computes the Ashtakavarga system for a given birth chart. * * **What is Ashtakavarga?** * Ashtakavarga is a Vedic system that assigns benefic points (bindus) to each * house based on the positions of the 7 classical planets and the Lagna (ascendant). * It is used to assess the relative strength of each house and to time events * through transit analysis — a planet transiting a house with more bindus produces * better results. * * **What this endpoint returns:** * * - **bhinna** — Bhinna Ashtakavarga (BAV): the raw contribution table for each * planet and the Lagna. Each entry maps Sanskrit sign name (Mesha…Meena) to bindus * in that sign. * * - **bhinna_after_trikona** — BAV after Trikona Shodana (triangular reduction). * Points in trinal houses are equalised. Per-planet objects keyed by sign name. * * - **bhinna_after_ekadhipatya** — BAV after both Trikona and Ekadhipatya Shodana * (lordship reduction, BPHS Ch.70; a sign counts as occupied only when one of the * seven grahas is in it). The most refined per-planet table, keyed by sign name. * * - **sarva** — Sarva Ashtakavarga (SAV): the raw sum across all 7 planets. * Object keyed by sign name. The 12 signs share 337 bindus, about 28 each, so a * sign with more than 28 is above average. * * - **sarva_reduced** — SAV computed from the fully reduced planet tables, the * input to Shodhya Pinda. Transit grading uses the raw tables, not these. * Keyed by sign name. * * - **after_trikona** / **after_ekadhipatya** — legacy: the reductions applied to the * summed SAV, kept for backward compatibility. Not classical values (Shodhana is * applied per planet); prefer **sarva_reduced**. * * **How to use bindus for transit timing:** * When a planet transits a house in its own Bhinna chart, the number of bindus * in that house indicates how favourable the transit will be. 8 bindus is maximum, * 0 is minimum. In the SAV, a sign with more than 28 bindus (the average) is * favourable for transits, and the more bindus, the better. * * **Ayanamsa:** All positions are sidereal. Default is Lahiri. * * Returns Bhinna Ashtakavarga (BAV) and Sarva Ashtakavarga (SAV) scores for all planets and houses. */ export const ashtakavarga = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/ashtakavarga', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Ashtottari Dasha * * Computes Ashtottari Dasha periods for a given birth chart. * * **What is Ashtottari Dasha?** * Ashtottari Dasha is a 108-year dasha cycle using 8 planets (excluding Ketu). * It is considered applicable only for specific charts where Rahu occupies a * Kendra (1, 4, 7, 10) or Trikona (1, 5, 9) counted from the sign of the Lagna * lord, but not the Lagna itself (BPHS Ch.46 v.17). For a Scorpio or Aquarius * Lagna the stronger co-lord is used. * * **Applicability check:** * This endpoint first checks whether Ashtottari applies to the given chart. * If the condition above is not met, the response will contain * `applicable: false` and a reason string instead of dasha periods. The * paksha/day-night condition is not evaluated. * * **Starting planet and balance:** * Counting from Ardra, the nakshatras belong to the lords in groups of 4, 3, 4, * 3, 4, 3, 4, 3 (Sun, Moon, Mars, Mercury, Saturn — with Abhijit — Jupiter, * Rahu, Venus). The balance at birth is the lord's years times the share of its * whole nakshatra group still ahead of the Moon. The first * period starts at birth; its sub-periods are the tail of the full period, and * it carries `dasha_start_date` and `balance_years`. * * **Timeline length:** mahadashas follow in order and continue into the next * 108-year cycle until the timeline reaches at least age 120 (usually 10 or 11 * mahadashas). Before 2026-10-08 only the first 8 were returned. * * **The 8 planets and their durations:** * - Sun — 6 years * - Moon — 15 years * - Mars — 8 years * - Mercury — 17 years * - Saturn — 10 years * - Jupiter — 19 years * - Rahu — 12 years * - Venus — 21 years * * **Levels:** * - `levels: 1` — returns Maha Dasha periods only * - `levels: 2` — returns Maha Dasha with Antar Dasha sub-periods (default) * - `levels: 3`–`5` — adds Pratyantar, Sookshma and Prana (same rule at every level) * * **Date format:** All dates are returned in DD/MM/YYYY format. * * **Ayanamsa:** Default is Lahiri; the request's `ayanamsa` is applied. */ export const ashtottariDasha = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/ashtottari', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Generate Kundali chart SVG * * Generate Vedic astrological chart SVGs. Always returns North Indian and South Indian charts for Lagna (D1) and Navamsa (D9), as SVG strings. Each planet shows abbreviation, degree°minutes', and its marks. North Indian charts number each house with its sign (Mesha = 1), as tradition does; South Indian charts show house numbers counted from the Lagna, and East Indian charts show sign names only. Send `vargas` (any of D1, D2, D3, D4, D7, D9, D10, D12, D16, D20, D24, D27, D30, D40, D45, D60) and `styles` (north, south, east) to also get those divisional charts in `vargas`. Marks: R (Vakri) and ↑/↓ (exalted/debilitated in that chart's sign, BPHS Ch. 3) on every drawing; C (Asta) and V (Vargottama) on D1 and D9 only. Options: show_degrees, theme (light/dark), colors, transparent, show_details (name, date, time, place). The response contains SVG strings for each chart style. To render them: * * 1. In browser: create an HTML file, * paste the SVG string directly * into the body tag. * * 2. In React/Vue/Angular: use * dangerouslySetInnerHTML or v-html * to render the SVG string. * * 3. To preview instantly: copy the * lagna_north value and paste into * https://svgviewer.dev * * Chart styles returned: * - lagna_north: North Indian style * (diamond layout) * - lagna_south: South Indian style * (square grid layout) * - navamsa_north: D9 Navamsa chart * North Indian style * - navamsa_south: D9 Navamsa chart * South Indian style * - vargas: the divisional charts you asked for, in each style you asked for * - legend: R=Vakri(Retrograde) * ↑=Exalted ↓=Debilitated * C=Asta(Combust) V=Vargottama */ export const chartSvg = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/chart', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Natal Chart — Janam Kundali * * Calculate a complete Vedic natal chart using Swiss Ephemeris. Returns planet positions in sidereal zodiac, house placements (whole sign), ascendant, nakshatra data, Avakahada Chakra table, and optional classical Vedic interpretation for each planet placement. Also known as Janam Kundali or Janma Kundali. Returns planets (Grahas), houses (Bhavas), ascendant (Lagna), nakshatra positions, and avakahada table. */ export const natalChart = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/natal', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Natal Chart — Tropical * * Calculate a complete Western natal chart using the tropical zodiac and Swiss Ephemeris. Returns 10 planet positions (Sun through Pluto) plus the lunar nodes (mean and true), mean Black Moon Lilith and Chiron in `points`, with tropical longitudes, Placidus (or chosen) house placements, sign-level dignity (dignity, dignity_score) and full traditional essential dignities after William Lilly (essential_dignities: domicile, exaltation, triplicity by the chart's day/night sect, term, face, detriment, fall, peregrine, total), all active aspects using standard modern Western orbs, and element/modality/hemisphere statistics. House system options: placidus (default), koch, equal, whole_sign. */ export const westernNatalChart = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/natal', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western natal wheel — SVG * * Draw a Western (tropical) natal chart wheel as SVG. It shows the sign ring, house cusps (placidus, koch, equal or whole_sign) with the AC/DC and MC/IC axes, the 10 planets, the lunar nodes, Chiron and Black Moon Lilith, and aspect lines. The Ascendant is at 9 o'clock and the zodiac runs counter-clockwise. Each body has a tick at its exact longitude; crowded glyphs are spread apart with a leader line. Positions, cusps and aspects are the ones POST /v1/western/natal returns. Without a birth time the wheel has no houses and puts 0° Aries on the left; positions are then for 06:00 local time, so the Moon can be several degrees off. */ export const westernChart = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/chart', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Moon Phase * * Calculate the lunar phase for any date using the tropical zodiac, computed at 18:00 UTC on that date. Returns the phase name in Dane Rudhyar's eight 45-degree phases (New Moon, Waxing Crescent, First Quarter, Waxing Gibbous, Full Moon, Waning Gibbous, Last Quarter, Waning Crescent; each begins at its angle), phase angle, illumination percentage, moon age since the previous exact New Moon, the exact instant of the next principal phase, and principal_phase when a New Moon, First Quarter, Full Moon or Last Quarter falls on the UTC date. Defaults to today (UTC) if no date given. */ export const westernMoonPhase = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/moon/phase', ...options }); /** * Western Moon Phase Calendar * * Returns lunar phase data for every day in a given month, each day computed at 18:00 UTC (same fields as the moon phase endpoint). The days of the month's New Moons, First Quarters, Full Moons and Last Quarters carry principal_phase and its exact instant (principal_phase_at, UTC): use those, not the 45-degree phase_name bands, to mark full and new moon dates. Defaults to current month (UTC) if no year/month given. */ export const westernMoonCalendar = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/moon/calendar', ...options }); /** * Western Aspect Grid * * Calculate all active aspects between any set of planetary positions. Provide a dictionary of body names to tropical ecliptic longitudes. Uses standard modern Western orbs by default: major aspects 5°, sextile 3°, minor aspects 1.5°. Custom orbs can be provided per aspect type. */ export const westernAspects = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/aspects', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Daily Transits * * Transits for one day against the natal chart: all 10 planets with tropical longitudes and their active aspects to natal positions. Orbs are the standard modern Western transit orbs: major 3°, sextile 2°, minor 1°. Each aspect carries exact_at, the UTC moment it is exact (searched 30 days either side; null if outside that window). Each transiting planet carries natal_house, the natal house it is passing through (house_system as requested; null without a birth time). The sky is read at 12:00 UTC unless snapshot_time (and snapshot_timezone) give the user's own clock time; snapshot_utc says which instant was used. Defaults to today (UTC) if no date is given. */ export const westernTransitsDaily = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/transits/daily', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Weekly Transits * * 7-day transit window vs natal chart. Returns day-by-day transit snapshots plus peak aspects (active 4+ days in the window). Use start_date to set the week start. Defaults to today. */ export const westernTransitsWeekly = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/transits/weekly', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Monthly Transits * * 30-day transit window vs natal chart. Returns day-by-day transit snapshots plus peak aspects (active 10+ days in the window). Use start_date to set the month start. Defaults to today. */ export const westernTransitsMonthly = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/transits/monthly', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Published reference charts * * Test charts with reference values from an independent source, so anyone can check the maths. The 25 edge cases of the verification harness (clock changes, southern hemisphere, polar night and day, the date line, 45-minute zones, historical offsets, leap day, the range limits) and a sample of random charts, each with the sidereal longitudes, signs, nakshatras and ascendant from an independent reference implementation, plus a Moon-on-a-nakshatra-boundary case from a direct Swiss Ephemeris call and an unknown-birth-time behaviour case. Send each input to /v1/astro/natal and compare. */ export const referenceCharts = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/reference-charts', ...options }); /** * Western horary chart facts * * The chart of a question's moment with the facts Lilly's horary method reads, each rule named. House rulers (traditional rulers), the significators (lord of the 1st and the Moon for the querent, lord of the quesited house), their aspects with Lilly's orbs and whether an applying aspect perfects before a sign change, the Moon's last and next aspects and void-of-course state, combustion, and the considerations before judgement (radicality by the hour lord, early or late Ascendant, Saturn in the 7th, the Moon in the Via Combusta). The yes or no is left to the reader. Christian Astrology (1647). */ export const westernHorary = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/horary', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Vedic events over a date range * * One timeline of everything that happens to a chart over 1 to 31 days, each event with its exact time. Sidereal sign ingresses with the new sign's house from the natal Moon, stations, Moon nakshatra changes with Tarabala, Moon sign changes with Chandrabala, exact degree conjunctions with natal planets, eclipses with their contacts, Purnima and Amavasya (the exact full and new Moon, with the tithi's start and end), and Vimshottari dasha changes (to the day). Each event carries the verdict its own rule gives, or null. No weighting. */ export const vedicEvents = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/events', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western events over a date range * * One timeline of everything that happens to a chart over 1 to 31 days, each event with its exact time. Exact major aspects from the transiting planets to the natal planets and angles, tropical sign ingresses and stations (Sun to Saturn), Moon sign changes, void-of-course periods, New and Full Moons and quarters, eclipses with their contacts, and the profection year turning on the birthday. Each event carries the verdict Lilly's rules give, or null; Uranus, Neptune and Pluto carry none. No weighting. */ export const westernEvents = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/events', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western daily factors * * Every Western factor for one person on one day, in one shape, with no weighting. Each factor carries its raw value and range, its frame, the verdict Lilly's rules give, the rule's source, the significations it touches and the time it holds. Covers every transit-to-natal aspect with its exact time, each transiting planet's sign, dignity and natal house, the Moon's phase, sign changes and void-of-course periods, the planetary hours, and the lord of the year from annual profections. Transits are read at target_time (local 12:00 by default) on the day. Uranus, Neptune and Pluto carry no verdict because the classical texts give none. */ export const westernDailyFactors = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/daily-factors', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Vedic daily factors * * Every classical factor for one person on one day, in one shape, with no weighting. Each factor carries its raw value and range, its frame, the verdict its own rule gives, the rule's source, the significations it touches and the time it holds. Covers the nine gochar transits with bindus and vedha, Sade Sati, Chandra Ashtama, Tarabala and Chandrabala with the Moon's change times, the active Vimshottari dasha lords and the transits aspecting them, same-sign contacts to natal planets with the exact degree crossing, the day's tithi, yoga, karana and vara, and the Moon's phase. Transits are read at target_time (local 12:00 by default) on the day. No weighting and no score: the caller decides what matters. */ export const vedicDailyFactors = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/daily-factors', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Vedic significations (BPHS) * * What each house and planet signifies in Brihat Parashara Hora Shastra, as a fixed list with stable ids. Houses: chapter 11, verses 2-13. Planets: chapter 3, verses 12-13 and the karaka verses of chapters 8 and 14 (Santhanam edition). Rahu and Ketu are left out because BPHS gives them no such verse. Two levels: a domain (relationships, work, wealth …) and the signification itself. Ids are stable: never renamed, removed or reused; a retired entry stays with deprecated=true and replaced_by. The list says what the texts say; it does not decide what counts as love, work or energy for an app, so each app keeps its own mapping. Cacheable for a day. */ export const vedicSignifications = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/significations', ...options }); /** * Western significations (Lilly) * * What each house and planet signifies in William Lilly's Christian Astrology (1647), as a fixed list with stable ids: the twelve houses (pp. 50-56) and the seven planets (pp. 57-83: kinds of people, professions, manners when well and ill dignified). Uranus, Neptune and Pluto are left out because Lilly has none. Two levels: a domain (relationships, work, wealth …) and the signification itself. Ids are stable: never renamed, removed or reused; a retired entry stays with deprecated=true and replaced_by. The list says what the texts say; it does not decide what counts as love, work or energy for an app, so each app keeps its own mapping. Cacheable for a day. */ export const westernSignifications = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/significations', ...options }); /** * Tarabala and Chandrabala * * Tarabala and Chandrabala for any date, with the Moon's star and sign change times. For every Moon nakshatra and Moon sign in the range (1 to 31 civil days) it gives the exact start and end, the tara counted from the birth nakshatra with its name and whether it is favourable, and the Moon's house from the natal Moon sign with the chandrabala verdict (Muhurta Chintamani rules). Needs the birth Moon, so a birth time makes it exact; without one the natal Moon may be a star off. */ export const tarabala = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/tarabala', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western day view (GET) * * Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). */ export const westernDayGet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/day', ...options }); /** * Western day view * * One calendar day at a place, Western style: planetary hours, void-of-course Moon periods, Moon sign changes and the Moon phase. The day runs from local midnight to midnight; every planetary hour that falls in it is listed, with the void-of-course periods that overlap it and the Moon's tropical sign at the start and end. Same engines as /v1/western/planetary-hours and /v1/western/moon/void-of-course, in one call. Western counterpart of the panchanga civil day. */ export const westernDay = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/day', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Eclipses * * Solar and lunar eclipses in a date range, past or future, up to 10 years. Each gives the type, time of greatest eclipse, start and end (UTC) and the eclipse degree in the tropical zodiac (Swiss Ephemeris). Add birth data to get, for each eclipse, the natal planets and angles within 3° of the eclipse degree by conjunction or opposition. Without a birth time the Ascendant and MC are skipped and the natal Moon is approximate. */ export const westernEclipses = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/eclipses', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Annual profections * * Annual profections for a birth chart and a date: the whole-sign house activated this year, its sign, and the lord of the year (the sign's traditional ruler). Rule: the Ascendant sign is the 1st house at birth and the activated sign moves forward one sign every birthday, so at age N the profected house is (N mod 12) + 1. A birth time is required because the count starts from the Ascendant; without one the request is rejected with a clear message. Includes where the year lord sits natally and the next twelve profection years. */ export const westernProfections = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/profections', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Planetary hours (GET) * * Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age. */ export const westernPlanetaryHoursGet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/planetary-hours', ...options }); /** * Planetary hours * * The 24 planetary hours for a date and place, with the planet ruling each hour. Sunrise to sunset and sunset to the next sunrise are each split into 12 equal parts, so hours are longer by day in summer and shorter in winter. The first hour after sunrise belongs to the planet of the weekday (Sunday Sun, Monday Moon, Tuesday Mars, Wednesday Mercury, Thursday Jupiter, Friday Venus, Saturday Saturn); the rest follow the Chaldean order Saturn, Jupiter, Mars, Sun, Venus, Mercury, Moon. Same calculation as /v1/astro/panchanga/hora, with Western naming and both local and UTC times. */ export const westernPlanetaryHours = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/planetary-hours', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Void-of-course Moon (GET) * * Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age. */ export const westernVoidOfCourseGet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/moon/void-of-course', ...options }); /** * Void-of-course Moon * * Void-of-course Moon periods in a date range (UTC). Rule used: the traditional one — the Moon is void from its last exact Ptolemaic aspect (conjunction, sextile, square, trine, opposition) to the Sun, Mercury, Venus, Mars, Jupiter or Saturn until it enters the next sign (William Lilly, Christian Astrology, 1647, p. 112). Outer planets are not counted. Each period gives start and end in UTC, the last aspect, the sign the Moon is in and the sign it enters next. Range limit 92 days. */ export const westernVoidOfCourse = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/moon/void-of-course', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Synastry * * Aspect grid between two natal charts using the tropical zodiac. Returns all inter-chart aspects using standard modern Western orbs. Useful for relationship compatibility analysis. */ export const westernSynastry = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/synastry', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Composite Chart * * Midpoint composite chart for two people using modern Western midpoint technique. Each composite planet is the midpoint of the two natal positions. Returns composite planets with dignities and internal aspects. */ export const westernComposite = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/composite', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Compatibility Score * * Overall compatibility score (0-100) between two natal charts. Scores element affinity, synastry aspects between personal planets (Sun, Moon, Venus, Mars), and Sun/Moon/rising sign comparisons. */ export const westernCompatibility = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/compatibility', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Zodiac Sign Compatibility * * Sign-to-sign compatibility without birth data. Based on element and modality affinity (Asterwise heuristic scores). Pass sign names as query parameters: ?sign1=Aries&sign2=Leo. Only the twelve English tropical sign names are accepted (case-insensitive); anything else returns 422. */ export const westernCompatibilityZodiac = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/compatibility/zodiac', ...options }); /** * Western Solar Return * * Western solar return chart for a given year, cast for the exact moment the Sun returns to its natal tropical longitude. The chart is a complete Western natal chart for that moment at the birth location. Provide the year as an integer (e.g. 2026). */ export const westernSolarReturn = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/solar-return', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Lunar Return * * Western lunar return chart: the next moment after a given date that the Moon returns to its natal tropical longitude (about every 27.3 days). The chart is a complete Western natal chart for that moment at the birth location. */ export const westernLunarReturn = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/lunar-return', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Planetary Return * * Next return chart for any planet after a given date. Finds the exact moment the specified planet returns to its natal tropical longitude and builds a complete Western natal chart for that moment at the birth location. Supported planets: Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto. */ export const westernPlanetaryReturn = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/planetary-return', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Secondary Progressions * * Secondary progressed chart using the day-for-a-year method. Each day after birth symbolises one year of life (1 ephemeris day = 1 tropical year = 365.2421904 days). Returns all 10 progressed planet positions, the solar arc, and the progressed angles: MC = natal MC + solar arc in longitude, Ascendant derived from that MC (its RAMC) at the birth latitude. Defaults to today if no target_date provided. */ export const westernProgressionsSecondary = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/progressions/secondary', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Western Solar Arc Directions * * Solar Arc Directions for a target date. The solar arc (progressed Sun - natal Sun) is applied uniformly to every natal planet and angle. Unlike secondary progressions, all planets advance at the same rate (~1° per year). Returns directed positions for all 10 planets plus directed MC and ASC. */ export const westernProgressionsSolarArc = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/progressions/solar-arc', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Panchanga (GET) * * Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age. */ export const panchangaGet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga', ...options }); /** * Daily Panchanga * * Vedic Panchanga for a date and location. The top-level tithi, vara, nakshatra, yoga and karana are the limbs at sunrise (or at `time` when given). The rest describes the whole panchanga day, sunrise to next sunrise: every tithi, nakshatra, yoga and karana active in it with ISO start and end times and kshaya/vriddhi flags; sunrise, sunset, moonrise and moonset; Sun and Moon rashi; lunar month in amanta and purnimanta reckoning (with Adhik months); Vikram, Shaka and Gujarati samvat; ritu and ayana; and the day's timings: Rahu Kaal, Gulika, Yamaganda, Abhijit, Brahma Muhurta, Durmuhurta, Varjyam, Amrit Kaal, Bhadra, Panchaka, Pradosh and others. */ export const panchanga = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Choghadiya (GET) * * Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age. */ export const panchangaChoghadiyaGet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/choghadiya', ...options }); /** * Choghadiya periods * * Calculate all 16 Choghadiya periods (8 day + 8 night) for a given date and location. Each period is classified (e.g. highly auspicious for Amrit, good, beneficial, neutral, or inauspicious) with the ruling planet. */ export const panchangaChoghadiya = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/choghadiya', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Planetary hours (Hora) (GET) * * Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age. */ export const panchangaHoraGet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/hora', ...options }); /** * Planetary hours (Hora) * * Calculates all 24 Hora (planetary hours) for a date and location, using unequal seasonal hours. Sunrise to sunset and sunset to next sunrise are each split into 12 equal parts. The first hora after sunrise is ruled by the sunrise-boundary Vedic vara lord; subsequent horas follow the Chaldean sequence. Response includes a convention field naming the division used. */ export const panchangaHora = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/hora', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Rahu Kaal (GET) * * Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age. */ export const panchangaRahuKaalGet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/rahu-kaal', ...options }); /** * Rahu Kaal, Gulika Kaal, Yamaganda Kaal * * Calculate the three inauspicious time periods for a given date and location. Rahu Kaal, Gulika Kaal (Mandi), and Yamaganda Kaal are avoided for starting auspicious activities. All three are based on dividing the day into 8 equal parts from sunrise to sunset. */ export const panchangaRahuKaal = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/rahu-kaal', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Monthly Panchanga calendar (GET) * * Same answer as POST /v1/astro/panchanga/calendar, with the same fields as query parameters (`latitude` and `longitude` for `lat` and `lon`). */ export const panchangaCalendar = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/calendar', ...options }); /** * Monthly Panchanga calendar * * Panchanga for every day of a month at a location, one entry per day. Each day keeps the sunrise tithi, vara, nakshatra, yoga, karana and Rahu Kaal, and adds sunrise, sunset, moonrise, moonset, paksha, the lunar month (amanta and purnimanta, with Adhik months), Bhadra windows, and every tithi, nakshatra, yoga and karana active between that sunrise and the next with ISO start and end times. A kshaya tithi (one no sunrise touches) appears on the day it runs, flagged is_kshaya; a tithi that holds two sunrises is flagged is_vriddhi on both days. Give `year` (1900-2100), `month` (1-12) and either `location` (a city name) or `lat` and `lon` (also accepted as `latitude` and `longitude`); `timezone` defaults to Asia/Kolkata. */ export const panchangaCalendarPost = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/calendar', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Tamil Panchanga * * Tamil Panchanga for a date and location: Rahu Kalam, Yamagandam, Kuligai, Nalla Neram and the Tamil solar month. Rahu Kalam, Yamagandam and Kuligai are the Tamil inauspicious periods (emagandam is the Tamil spelling of Yamagandam and repeats the same period), Nalla Neram (daytime windows free of those periods), and the Tamil solar month name derived from the Sun's sidereal position at sunrise. */ export const panchangaTamil = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/tamil', ...options }); /** * Hindu festival and vrat calendar * * Hindu festivals, vrats, sankrantis, eclipses and periods for a year at a location. Each lunar festival is fixed by its lunar month (amanta, with Adhik months detected from new moons and sankrantis), its tithi, and the part of the day in which the tithi must prevail (sunrise, forenoon, Madhyahna, Aparahna, Pradosh, Nishita, moonrise), with the classical tie-breaks when a tithi spans two days, Bhadra rules for Holika Dahan and Raksha Bandhan, and the Smarta Ekadashi rule. Categories: festival (about 50 named festivals), vrat (every Ekadashi, Pradosh, Sankashti Chaturthi, Masik Shivaratri, Purnima, the Purnima vrat (fast) day and Amavasya), sankranti (12 solar ingresses), eclipse (with local visibility and contact times), period (Adhik Maas, Chaturmas, Pitru Paksha, Navratri, Holashtak, Kharmas). By default only the named festivals are returned; pass `categories` for the rest. Lahiri ayanamsa. */ export const panchangaFestivals = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/panchanga/festivals', ...options }); /** * Divisional charts — Varga * * Computes all 16 Vedic divisional charts (Varga charts) for a given * birth date, time, and location. * * **What are divisional charts?** * In Vedic astrology, the birth chart (D1) is divided into progressively finer * subdivisions to reveal different areas of life. Each divisional chart isolates * a specific domain — the D9 Navamsha reveals spouse and dharma, the D10 Dashamsha * reveals career, the D60 Shashtyamsha is the most subtle and reveals karmic residue * from past lives. * * **The 16 charts returned:** * - D1 — Rashi (natal chart) * - D2 — Hora (wealth) * - D3 — Drekkana (siblings) * - D4 — Chaturthamsha (property) * - D7 — Saptamsha (children) * - D9 — Navamsha (spouse, dharma) — the most consulted divisional chart * - D10 — Dashamsha (career) * - D12 — Dwadashamsha (parents) * - D16 — Shodashamsha (vehicles) * - D20 — Vimshamsha (spirituality) * - D24 — Chaturvimshamsha (education) * - D27 — Bhamsha (vitality) * - D30 — Trimshamsha (misfortunes) * - D40 — Khavedamsha (auspicious effects) * - D45 — Akshavedamsha (all life matters) * - D60 — Shashtyamsha (subtle karmic residue) * * Each chart shows every planet's sign placement within that divisional * subdivision, with its dignity there (exalted, debilitated, own sign, friendly, * neutral or enemy) and whether it is vargottama (same sign as in D1). When the * birth time is known, each chart also has its own lagna, every planet's * whole-sign house from that lagna, and a `houses` table per chart (sign, lord * and occupants of each house). Use the D9 alongside the D1 for most * interpretive work. * * **Ayanamsa:** All positions are sidereal. Default is Lahiri. * * Also known as Varga charts or Amsha charts. Only the requested chart_type is returned. To get all sixteen charts, omit the chart_type parameter. */ export const divisionalCharts = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/divisional', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Daily horoscope * * Returns today's pre-generated daily horoscope for the given Moon sign. Content is computed from Vedic transit data and generated using AI. Returns 404 if today's horoscope has not been generated yet. */ export const horoscopeDaily = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/horoscope/daily/{moon_sign}', ...options }); /** * Weekly horoscope * * Returns this week's pre-generated weekly horoscope for the given Moon sign. */ export const horoscopeWeekly = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/horoscope/weekly/{moon_sign}', ...options }); /** * Monthly horoscope * * Returns this month's pre-generated monthly horoscope for the given Moon sign. */ export const horoscopeMonthly = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/horoscope/monthly/{moon_sign}', ...options }); /** * Yearly horoscope * * Returns this year's pre-generated yearly horoscope for the given Moon sign. */ export const horoscopeYearly = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/horoscope/yearly/{moon_sign}', ...options }); /** * Western daily horoscope * * Returns today's pre-generated Western daily horoscope for the given Sun sign (tropical). */ export const westernHoroscopeDaily = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/horoscope/daily/{sun_sign}', ...options }); /** * Western weekly horoscope * * Returns this week's pre-generated Western weekly horoscope for the given Sun sign. */ export const westernHoroscopeWeekly = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/horoscope/weekly/{sun_sign}', ...options }); /** * Western monthly horoscope * * Returns this month's pre-generated Western monthly horoscope for the given Sun sign. */ export const westernHoroscopeMonthly = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/horoscope/monthly/{sun_sign}', ...options }); /** * Western yearly horoscope * * Returns this year's pre-generated Western yearly horoscope for the given Sun sign. */ export const westernHoroscopeYearly = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/horoscope/yearly/{sun_sign}', ...options }); /** * Muhurta — Auspicious Timing * * Finds and ranks auspicious time windows for an activity between two dates (up to a year) at a location. The range is cut at every change of tithi, nakshatra, yoga, karana, lagna, sunrise and sunset and at the edges of Rahu Kaal, Yamaganda, Gulika, Durmuhurta, Varjyam and Bhadra, so windows start and end at exact moments. A moment is ruled out when the season bars the activity (Chaturmas, Adhik Maas, Pitru Paksha, Kharmas, Holashtak, Guru or Shukra asta, Panchaka, per activity), when its nakshatra, tithi or weekday is not one the activity allows, or when it falls in an inauspicious period. Survivors are scored 0-100 and returned with ISO 8601 start_at and end_at, the civil date and the panchanga day, the reasons and cautions (the earlier fields, including HH:MM start and end on the panchanga day's date, are still returned). Optional participants (up to two) add Tarabala and Chandrabala. Activities: marriage, griha_pravesh, business, travel, naming_ceremony, vehicle_purchase, property_purchase, mundan, annaprashan, upanayana, vidyarambha. */ export const muhurta = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/muhurta', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Vimshottari Dasha * * Calculate the complete Vimshottari Dasha timeline for a birth chart. Returns Mahadasha, Antardasha, Pratyantar, Sookshma, and Prana periods up to 5 levels deep, with start and end dates for each. The starting planet is determined by the Moon's nakshatra at birth (Janma Nakshatra). The first Mahadasha row starts at birth and lasts the balance; its sub-periods are the remaining tail of the full Mahadasha, which began before birth, so the period running at birth is usually not the Mahadasha lord's own. That row also gives dasha_start_date and balance_years. Dates are DD/MM/YYYY. Send from_date and/or to_date (YYYY-MM-DD, UTC) to get only the periods running in that range, at every level: a five-level timeline is over 20 MB, one year of it is about 100 KB. Levels 4 and 5 count as 3 and 10 calls toward the per-minute limit; with both dates set no more than 10 years apart they count as 1. Interpretation text accompanies the currently active Mahadasha and Antardasha. */ export const dasha = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/dasha', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Dasha-Transit Correlation * * Correlates active Vimshottari Dasha lords (maha, antar, pratyantar) with current planetary transits. Returns conjunction and aspect correlations scored by strength, and highlights periods of significance. Aspects are Vedic graha drishti cast by the transiting planet (BPHS Ch.26): every planet aspects its 7th sign, Jupiter also its 5th and 9th, Saturn its 3rd and 10th, Mars its 4th and 8th. Each correlation gives `aspect_house` (the natal dasha lord's sign counted from the transiting planet, 1 = same sign) and `drishti` ('7th', '3rd', ...; absent for a conjunction). `aspect_type` is conjunction, opposition, trine (Jupiter 5th/9th), square (Saturn 10th, Mars 4th) or special (Saturn 3rd, Mars 8th). Request JSON follows BirthInput plus optional `target_date`, `target_time`, `target_timezone` for the analysis moment: `name`, `date`, `time`, `location` or `latitude`/`longitude`/`timezone`, `ayanamsa`. */ export const dashaTransits = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/dasha-transits', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Jaimini Char Dasha * * Computes Jaimini Char Dasha — a sign-based dasha system from the Jaimini school of astrology. Returns mahadasha and antardasha periods starting from the ascendant (Lagna), with the current active mahadasha and antardasha highlighted. Method: K.N. Rao, as in his own dated case notes. The sequence runs forward when the 9th sign from the Lagna is savya (Aries, Taurus, Gemini, Libra, Scorpio, Sagittarius) and backward otherwise; period years count to the sign lord (savya forward, apasavya backward) minus one, 12 for the lord in its own rashi, with no year added or taken off for an exalted or debilitated lord (some software adds or subtracts one). Scorpio and Aquarius count to the co-lord outside the sign, or with both outside to the one with more planets, then the one further advanced. With `cycles` 2 or 3, every cycle repeats the first cycle's years. Antardashas are 12 equal parts (each as many months as the mahadasha has years); K.N. Rao: they run forward or backward by the 9th sign from the mahadasha sign (the same rule the Lagna uses), starting from the next sign, and the mahadasha sign's own antardasha comes last. Request JSON follows BirthInput plus `cycles` (1–3): `name`, `date` (YYYY-MM-DD), `time` (HH:MM, required), either `location` or `latitude`/`longitude`/`timezone`, `ayanamsa`. */ export const charDasha = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/char-dasha', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Dashakoot — 10-Koota Compatibility * * Scores the South Indian Dashakoot match out of 10: ten poruthams, each 1 when it agrees and 0 when it does not. The poruthams are Dina, Gana, Mahendra, Stree Deergha, Yoni, Rasi, Rasi Adhipati, Vashya, Rajju and Vedha. Returns the per-porutham breakdown, the percentage, a compatibility level (Excellent 8+, Good 6+, Average 5+, otherwise Poor), and Nadi, Bhakoot, Rajju and Vedha dosha flags. Nadi and Bhakoot are reported but not scored. */ export const matchmakingDashakoot = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/matchmaking/dashakoot', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Papasamyam — Malefic Planet Compatibility * * Computes Papasamyam, the malefic-planet compatibility check, between two natal charts. Scores each person based on Sun, Mars, Saturn, Rahu, Ketu in houses 1, 2, 4, 7, 8, 12 from Lagna, Moon, and Venus (#105). Compatible if score difference ≤ 11. person1 = groom, person2 = bride. */ export const matchmakingPapasamyam = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/matchmaking/papasamyam', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Kerala Porutham — 10-Porutham Compatibility * * Computes all 10 Kerala Poruthams: Dinam, Ganam, Mahendra, Stree Deergha, Yoni, Rasi, Rasiyathipaty, Rajju, Vedha, and Vasya. Rajju and Vedha are absolute vetoes — if either fails the match is prohibited. person1 = groom, person2 = bride. */ export const matchmakingPorutham = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/matchmaking/porutham', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Thirumana Porutham (12 Poruthams) * * Computes the 12 Tamil Thirumana Poruthams: the 10 standard Poruthams plus Nadi and Varna, with Tamil names. Includes Rajju severity classification (Siro=most severe to Pada=least severe). Rajju and Vedha are absolute vetoes. person1 = groom, person2 = bride. */ export const matchmakingThirumanaPorutham = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/matchmaking/thirumana-porutham', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Calculate dosha report * * Detect the Vedic doshas in a natal chart, with cancellations. Covered: Mangal, Kaal Sarp (with its named type), Kala Amrita, Gandmool, Grahan, Guru Chandal, Kemadruma, Shrapit, Shani, Paap Kartari, Pitru and Gulika. A conjunction is the same sign; no degree orb decides a dosha. Aspects are full Parashari graha drishti counted from the aspecting planet's sign (Mars 4/7/8, Jupiter 5/7/9, Saturn 3/7/10, Rahu 7); house lords are whole sign from the lagna. Mangal Dosha is checked from the Lagna, Moon and Venus: `present` is after cancellation, `details.present_by_placement` is Mars's placement alone, and `details.cancellations` lists only real cancellations. Kemadruma follows BPHS 37.11 (`details.formed`, then cancellations). Pitru Dosha is present only when a BPHS 83.20–83.30 father's-curse combination forms; general Sun / 9th-lord conditions are listed as `details.indicators`. Gulika follows BPHS 3.66–67 for day and night births. With an unknown birth time, buckets that depend on the Lagna carry `needs_birth_time: true`. */ export const doshas = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/dosha', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Gochar — Transit Analysis * * Computes planetary transits against a natal chart using classical Vedic rules. Returns house positions from Moon and Lagna, Vedha obstruction checks, raw Bhinna Ashtakavarga bindus for each transit sign (5+ makes a transit favourable, 3 or fewer unfavourable, whatever the house), Sade Sati and Chandra Ashtama flags, and classical transit interpretations for all 9 planets. Request JSON follows BirthInput plus optional transit fields `target_date`, `target_time`, `target_timezone`: `name`, `date`, `time`, `location` or `latitude`/`longitude`/`timezone`, `ayanamsa`. */ export const gochar = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/gochar', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Calculate yoga combinations * * Detects classical Vedic yogas in a natal chart, such as Pancha Mahapurusha, Raja, Gajakesari and Neecha Bhanga Raja Yoga. Others include Budhaditya, Chandra Mangala, Viparita Raja, Amala, and more. House lords are taken by whole sign from the lagna (so they are found at polar latitudes too) and aspects are full Parashari graha drishti only. Each detected yoga returns formation conditions, the classical texts it is drawn from, a modern summary, and keywords. When no birth time is given, yogas that depend on the lagna are marked needs_birth_time. */ export const yogas = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/yoga', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Kundali Milan — Matchmaking * * Complete Vedic compatibility analysis using Ashtakoot Guna Milan (36-point system). Returns all 8 koota scores, Mangal Dosha compatibility with Dosha Samya analysis, classical veto checks (Vedha and Rajju Dosha), supplementary checks (Mahendra, Stree Deergha), and compatibility narrative with strengths, concerns, and recommendation. Also known as Kundali Milan, Gun Milan, or Ashtakoot Milan. Calculates 36-point compatibility score with Rajju, Vedha, and Dosha Samya classical rules. */ export const matchmaking = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/matchmaking', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Generate numerology profile * * Builds a complete numerology profile from name and birth date (BirthInput-aligned: `name`, `date`). Returns core numbers, interpretations, cycles, and supportive metadata. */ export const numerologyProfile = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/profile', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Calculate numerology compatibility * * Scores the numerology compatibility of two people from their Life Path numbers, which come from each person's birth `date`. Each person also sends `name` (required), which does not change the score. Returns score, level, and explanatory strengths/challenges. */ export const numerologyCompatibility = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/compatibility', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get life path number (deprecated GET) * * Deprecated: put the birth date in a JSON body with POST /v1/numerology/life-path instead, so it stays out of URLs and logs. This GET form keeps working for at least 12 months and answers with a `Deprecation` header. * * @deprecated */ export const lifePath = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/life-path', ...options }); /** * Get life path number * * Calculates the life path number for a birth date and returns interpretation details. Body: `date` (YYYY-MM-DD). Returns number, master/karmic markers, and guidance keywords. */ export const lifePathPost = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/life-path', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get personal year number (deprecated GET) * * Deprecated: put the birth date in a JSON body with POST /v1/numerology/personal-year instead, so it stays out of URLs and logs. This GET form keeps working for at least 12 months and answers with a `Deprecation` header. * * @deprecated */ export const personalYear = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/personal-year', ...options }); /** * Get personal year number * * Calculates the personal year number and its guidance for a birth date. Body: `date` (YYYY-MM-DD), optional `year` (defaults to the current calendar year). Returns theme, opportunities, challenges, and practical advice. */ export const personalYearPost = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/personal-year', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Business Name Numerology (GET) * * Same answer as POST /v1/numerology/business-name, with `name` as a query parameter. */ export const businessName = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/business-name', ...options }); /** * Business Name Numerology * * Scores a business name by its Pythagorean Expression number, with theme, harmony score (1-10) and recommended uses. The number is worked part by part like /v1/numerology/expression: each word is reduced on its own (11, 22, 33 kept), then the words are added and reduced. A name with no letters (e.g. '123') is rejected with 422 `validation_error`. */ export const businessNamePost = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/business-name', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Generate lucky numbers (deprecated GET) * * Deprecated: put the name and birth date in a JSON body with POST /v1/numerology/lucky-numbers instead, so it stays out of URLs and logs. This GET form keeps working for at least 12 months and answers with a `Deprecation` header. * * @deprecated */ export const luckyNumbers = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/lucky-numbers', ...options }); /** * Generate lucky numbers * * Generates a deterministic lucky number set from `name` and `date` in the JSON body (BirthInput-aligned), with optional `count` (1-20, default 6). Returns lucky numbers with supporting numerology context. */ export const luckyNumbersPost = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/lucky-numbers', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get number meaning by context * * Returns interpretation details for a specific number within a numerology context. Query `context` defaults to `general` (same meanings as life path). Allowed numbers: 1-9, 11, 22 and 33 for general, life_path, expression, soul_urge and personality; 1-9 for birth_day (a master Birth Day 11 or 22 in a profile uses the 2 or 4 text) and personal_year. Any other number answers 422 `validation_error` with the allowed values in `details`. Returns meaning text and optional thematic guidance fields. */ export const numberMeaning = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/meaning/{number}', ...options }); /** * Name Correction Analysis * * Analyses a full name using Pythagorean numerology and suggests spelling variants that are more harmonious with the life path number. Expression, Soul Urge and Personality are worked part by part, the same way as /v1/numerology/expression, /soul-urge and /personality. karmic_debt (and is_master) refer to the Expression number; expression_karmic_debt, soul_urge_karmic_debt and personality_karmic_debt give each number's karmic debt (13, 14, 16 or 19 anywhere in its reduction). Returns current name scores and up to 8 alternatives ranked by harmony. */ export const nameCorrection = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/name-correction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Chaldean Numerology Profile * * Computes a full Chaldean numerology profile. Chaldean uses a different letter-value table than Pythagorean (numbers 1-8 only; 9 is sacred). Returns name number, birth number, and compound destiny number with interpretations. */ export const chaldean = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/chaldean', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Lo Shu Grid * * Builds a Lo Shu 3x3 numerology grid from a birth date. Returns the grid with digit counts, present/missing/repeated numbers, plane analysis over the eight lines of the square (rows mental/emotional/practical, columns thought/will/action, two diagonals), and per-number trait interpretation. In `number_analysis`, `plane` is the legacy v1 grouping (1-3 mental, 4-6 physical, 7-9 spiritual) and `lo_shu_plane` is the number's row of the square (mental 4-9-2, emotional 3-5-7, practical 8-1-6). */ export const loShu = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/lo-shu', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Mobile Number Numerology (deprecated GET) * * Deprecated: send the mobile number in a JSON body with POST /v1/numerology/mobile-number instead, so it stays out of URLs and logs. This GET form keeps working for at least 12 months and answers with a `Deprecation` header. * * @deprecated */ export const mobileNumber = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/mobile-number', ...options }); /** * Mobile Number Numerology * * Analyses a mobile/phone number numerologically. Body: `number`, optional `country` (ISO 3166 alpha-2). Sums the digits of the national number, country code left out (libphonenumber): with `country` the number is read as dialled there first, international prefix included; a valid '+' or '00' number drops its country code; a '+' number that is not valid sums every digit after the '+', and a '00' number that is not valid is summed as written; with no prefix and no `country`, only India's code is removed (a 12-digit number starting 91) and any other number is summed as written, since the country cannot be known. Reduces to a single number and returns theme, harmony score, recommended uses, `digits_used`, `country_code` when one was left out, and `master_number` when the total passes through 11, 22 or 33. A number with no digits, or only zeros, is rejected with 422 `validation_error`, and so is an unknown `country` (issue `unknown_country`, field `country`). */ export const mobileNumberPost = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/mobile-number', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Vehicle Number Numerology (deprecated GET) * * Deprecated: send the vehicle number in a JSON body with POST /v1/numerology/vehicle-number instead, so it stays out of URLs and logs. This GET form keeps working for at least 12 months and answers with a `Deprecation` header. * * @deprecated */ export const vehicleNumber = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/vehicle-number', ...options }); /** * Vehicle Number Numerology * * Analyses a vehicle registration number numerologically. Body: `number`. Extracts digits, sums to single number, returns theme and harmony score. `is_master` / `master_number` report a total that passes through 11, 22 or 33. A plate with no digits, or only zeros, is rejected with 422 `validation_error`. */ export const vehicleNumberPost = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/vehicle-number', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Expression (Destiny) Number * * Calculates the Expression (Destiny) number from the full name. Uses all letters with Pythagorean values, reducing each name part separately before summing (Decoz method). Preserves master numbers 11, 22, 33. karmic_debt_number is 13, 14, 16 or 19 when it appears anywhere in the reduction of the total (e.g. 58 → 13 → 4). */ export const expressionNumber = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/expression', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Soul Urge (Heart's Desire) Number * * Calculates the Soul Urge number from vowels (A, E, I, O, U) in the full name. Reduces each name part separately (11, 22, 33 kept). Y is treated as a consonant in this implementation. karmic_debt_number is 13, 14, 16 or 19 when it appears anywhere in the reduction of the total. */ export const soulUrgeNumber = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/soul-urge', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Personality Number * * Calculates the Personality number from consonants in the full name. Reduces each name part separately (11, 22, 33 kept). Represents the outer personality visible to others. karmic_debt_number is 13, 14, 16 or 19 when it appears anywhere in the reduction of the total. */ export const personalityNumber = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/personality', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Maturity (Realization) Number * * Calculates the Maturity number from Life Path + Expression. Represents the underlying wish or desire that surfaces from around age 35. Requires both name and birth date. */ export const maturityNumber = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/maturity', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Balance Number * * Calculates the Balance number from the first letter of each name part. Indicates how a person handles stress and unresolved issues. */ export const balanceNumber = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/balance', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Karmic Lessons * * Identifies karmic lessons from the name — the digit values 1-9 that are absent from the name's letter values. Missing numbers indicate areas requiring development in this lifetime. */ export const karmicLessons = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/karmic-lessons', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Personal Year, Month, and Day * * Returns the Personal Year, Personal Month, and Personal Day numbers for a birth date and target date. Defaults to today if year/month/day not provided. Personal Day is only included when target day is provided. */ export const personalCycles = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/personal-cycles', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Today's angel number * * Compute today's angel number from the current date. The date's digits are summed and reduced to a single digit (1-9), then the triple sequence of that digit is returned (e.g. digit 3 → angel number 333). The same number is returned for all callers on the same date. "Today" is the current date in UTC unless you pass `timezone` (the caller's IANA zone, e.g. Asia/Kolkata) or an explicit `date`. */ export const angelToday = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/angel/today', ...options }); /** * List supported angel numbers * * Returns the curated set of angel-number patterns this API interprets. Use this endpoint to discover valid inputs for GET /v1/numerology/angel/{number}. Numbers outside this list (e.g. Pythagorean master numbers 11/22/33) are not part of the angel-number tradition and return 404 from the lookup endpoint. */ export const angelList = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/angel', ...options }); /** * Angel number meaning * * Look up the meaning of a specific angel number such as 111, 444 or 1234. Supported numbers: 000, 111–999 (single repeating digit), 1010, 1111, 1122, 1212, 1234, 2222–9999 (double repeating digit), 911. Pass the number as a string path parameter, e.g. /v1/numerology/angel/444. */ export const angelNumber = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/angel/{number}', ...options }); /** * Personal angel number * * Compute your personal angel number from your birth date. Uses the Pythagorean Life Path number (digit-fusing method) as the base. Life Path 1-9 maps to the triple sequence (e.g. LP 4 → 444). Master numbers 11, 22, 33 map to 1111, 2222, 3333 respectively. */ export const angelPersonal = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/numerology/angel/personal', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Complete crystal database * * Returns all 54 crystals in the database sorted alphabetically. Each entry includes chakra associations, elemental correspondences, Vedic and Western planetary assignments, healing properties, origins, affirmations, and safety cautions. Vedic correspondences are strictly separated: 'navaratna' (classical primary gem), 'uparatna' (substitute gem; the description says when a substitute is modern rather than classical), or 'none_classical' (no Vedic gem use). */ export const crystalsList = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/crystals', ...options }); /** * Crystals by Vedic planet * * Returns all crystals associated with a specific Vedic planet. Planets: Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu. Results are sorted with primary Navaratna gems first, then Uparatna substitutes, each group alphabetically. Only Navaratna and Uparatna Vedic assignments are included — crystals without classical Vedic gemstone support are not returned here. */ export const crystalsByPlanet = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/crystals/by-planet/{planet}', ...options }); /** * Crystal recommendations * * Recommend crystals based on zodiac sign, chakra, or intention keyword. At least one filter must be provided. Providing multiple filters returns crystals that match the most criteria first. Valid chakras: Root, Sacral, Solar Plexus, Heart, Throat, Third Eye, Crown. Returns up to `limit` crystals (default 5, max 20). */ export const crystalsRecommend = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/crystals/recommend', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Natal Chart Crystal Recommendations * * Recommend crystals from the natal chart's functional benefics, using the same rule as POST /v1/astro/gemstones (BPHS Ch.34 lordship, whole-sign from the lagna). Recommended: the lagna lord (always auspicious) = Life Stone (+5), the Yogakaraka = supreme benefic (+5), the 9th lord = Fortune Stone (+4), the 5th lord = Lucky Stone (+3). A 5th/9th lord that also owns a Dusthana (6, 8, 12) is still recommended, with that Dusthana named in warnings[]. Contraindicated (natal_context.contraindicated_lords, never returned): Dusthana lords that own no Trikona, and debilitated or combust planets. Kendra-only and 2nd/3rd/11th lords are neither recommended nor contraindicated. Only crystals with Vedic assignments (Navaratna or Uparatna) are returned. Dangerous gem combinations are flagged in warnings[]. */ export const crystalsRecommendNatal = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/crystals/recommend/natal', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Single crystal lookup * * Lookup a specific crystal by slug, name, or common alias (case-insensitive). Examples: 'amethyst', 'blue-sapphire', 'rose-quartz', 'Tiger's Eye'. Gem names used by POST /v1/astro/gemstones resolve too: 'Hessonite', "Cat's Eye", 'Tiger Eye', 'Honey-colored Zircon', 'Diamond'. */ export const crystal = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/crystals/{name}', ...options }); /** * Dream symbol database * * Returns all dream symbols from the database, optionally filtered by category. Each symbol includes dual-tradition interpretation: Jungian/Western psychological analysis and classical Vedic dream tradition meaning with auspiciousness rating. The traditions_agree field flags where Western and Vedic interpretations conflict. Categories: animals, nature, people, places, objects, actions, body, abstract. */ export const dreamSymbols = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/dreams/symbols', ...options }); /** * Single dream symbol lookup * * Lookup a specific dream symbol by slug or name (case-insensitive). Examples: 'snake', 'eagle', 'childhood-home', 'teeth falling out'. Returns full dual-tradition interpretation including Jungian archetype, Vedic dream tradition meaning, context variants, and related symbols. */ export const dreamSymbol = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/dreams/symbol/{name}', ...options }); /** * All Tarot Cards * * Returns the complete 78-card Rider-Waite-Smith deck with full metadata. Each card includes id, name, arcana type, suit, element, astrological correspondence, upright and reversed meanings, keywords, yes/no polarity, and visual description. Use this endpoint to populate card databases, build card browsers, or reference individual card data. */ export const tarotCards = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/cards', ...options }); /** * Single Tarot Card * * Returns full data for a single card by its slug ID. Example IDs: 'the-fool', 'ace-of-wands', 'king-of-cups', 'the-world', 'ten-of-swords'. */ export const tarotCard = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/cards/{card_id}', ...options }); /** * Major Arcana Cards * * Returns all 22 Major Arcana cards (The Fool through The World). Major Arcana represent archetypal life themes and major life events. */ export const tarotMajorArcana = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/major-arcana', ...options }); /** * Tarot Cards by Suit * * Returns all 14 cards in a given suit: wands, cups, swords, or pentacles. Wands=fire/career, Cups=water/emotions, Swords=air/intellect, Pentacles=earth/material. */ export const tarotSuit = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/suits/{suit}', ...options }); /** * Card of the Day * * Returns a deterministic daily tarot card. The same card is returned for all requests on the same date — seeded by SHA-256 hash of the date string. Optionally provide a date (YYYY-MM-DD) to get the card for any day. "Today" is the current date in UTC unless you pass `timezone` (the caller's IANA zone, e.g. Asia/Kolkata) or an explicit `date`. */ export const tarotCardOfTheDay = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/card-of-the-day', ...options }); /** * Draw Tarot Cards * * Draw N random unique cards from the 78-card deck using cryptographic randomness. Each API call produces a fresh independent draw. Count must be between 1 and 78. Default: 1. Set allow_reversed=true to enable reversed card orientation (each card independently has a 50% chance of reversal). */ export const tarotDraw = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/draw', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Three-Card Spread * * Past / Present / Future tarot spread: draws 3 unique cards, one for each position. The positions are past (what led here), present (current situation), future (where this leads). Each position includes the card data, its orientation, the position meaning, and the active interpretation for that orientation. */ export const tarotThreeCard = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/spread/three-card', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Celtic Cross Spread * * Full 10-card Celtic Cross spread — traditional ten-position tarot spread. Positions: present, challenge, root, past, possible outcome, near future, self, external influences, hopes and fears, final outcome. Returns each card with its spread position, position meaning, and active interpretation for the drawn orientation. */ export const tarotCelticCross = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/spread/celtic-cross', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Yes/No Tarot Reading * * Draw one card for a yes/no answer. Answer logic: yes-polarity card upright = 'yes' (strong). Yes-polarity card reversed = 'maybe' (leaning). No-polarity card upright = 'no' (strong). No-polarity card reversed = 'maybe' (leaning). Maybe-polarity card = 'maybe' (unclear). Reversed cards are enabled by default for this spread. */ export const tarotYesNo = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/tarot/spread/yes-no', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Personalised Remedies * * Prescribes personalised Vedic remedies based on planetary dignity in the natal chart. Prioritises debilitated planets, planets in enemy signs, dusthana lords (6th/8th/12th house rulers), planets placed in those houses, and combust planets; is_dusthana_lord, in_dusthana_house and is_combust say which. Returns mantras, gemstones, colours, fasting days, and daily actions. Request JSON follows BirthInput: `name`, `date`, `time`, `location` or `latitude`/`longitude`/`timezone`, `ayanamsa`. Plus `top_n` (1–9) to cap how many planets receive remedy rows. */ export const remedies = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/remedies', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Gemstone Recommendations * * Recommends gemstones based on the natal chart. Primary gemstone strengthens the Lagna lord (always a functional benefic). Further slots: Yogakaraka, 5th lord, 9th lord, and Atmakaraka. `secondary` is the first of those that is not the lagna lord's and not contraindicated. Returns contraindicated gemstones: dusthana (6/8/12) lords that own no trikona, debilitated planets, and combust planets — the same rule as POST /v1/crystals/recommend/natal. A slot whose planet is contraindicated carries `contraindicated: true` and a `caution`; it is never a silent recommendation. Request JSON follows BirthInput: `name`, `date`, `time`, `location` or `latitude`/`longitude`/`timezone`, `ayanamsa`. */ export const gemstones = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/gemstones', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Ishta Devta — Personal Deity * * Computes Ishta Devta (personal deity) from the 12th house lord of the Navamsa (D9) chart per Jaimini-tradition rules. Returns the ruling planet, associated deity, and D9 positions. Request JSON follows BirthInput: `name` (optional, default Chart), `date` (YYYY-MM-DD), `time` (HH:MM, required), either `location` or `latitude`/`longitude`/`timezone`, optional `ayanamsa` (lahiri|raman|kp|tropical). */ export const ishtaDevata = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/ishta-devta', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * KP Natal Chart * * Computes the KP (Krishnamurti Paddhati) natal chart using Krishnamurti ayanamsa and Placidus house system. Returns planet positions with nakshatra lord and sub-lord, and all 12 house cusps with sub-lords. Planet `house` is the KP (cusp-to-cusp) house: a planet is in house h from cusp h up to, not including, cusp h+1 of the sidereal Placidus cusps, and a planet exactly on a cusp is in the house that cusp starts (no orb before a cusp). `rasi_house` is the whole-sign house from the lagna sign. Inside the polar circles, where Placidus cusps do not exist, the request fails with 422 `validation_error` instead of returning another house system; its `details` item has `type` and `issue` `no_quadrant_houses_at_this_latitude` and `input_format_ok: true` (the input is valid; the sky has no Placidus cusps there). Request JSON follows BirthInput: `name`, `date` (YYYY-MM-DD), `time` (HH:MM, required), either `location` or `latitude`/`longitude`/`timezone`. `ayanamsa` is accepted but ignored: KP always uses the Krishnamurti ayanamsa. */ export const kpChart = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/kp/chart', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * KP House Significators * * Computes KP house significators for all 12 houses. For each house returns: occupants (cusp-to-cusp), the sign lord of the cusp, planets in the nakshatra of an occupant, and planets in the nakshatra of the sign lord. Krishnamurti ranks them strongest first as: planets in the star of occupants, occupants, planets in the star of the sign lord, the sign lord; `strength_order` lists them in that order. `all_significators` keeps its original order (occupants, sign lord, star of occupants, star of sign lord) and is not a ranking. Planet `house` is the KP (cusp-to-cusp) house: a planet is in house h from cusp h up to, not including, cusp h+1 of the sidereal Placidus cusps, and a planet exactly on a cusp is in the house that cusp starts (no orb before a cusp). `rasi_house` is the whole-sign house from the lagna sign. Inside the polar circles, where Placidus cusps do not exist, the request fails with 422 `validation_error` instead of returning another house system; its `details` item has `type` and `issue` `no_quadrant_houses_at_this_latitude` and `input_format_ok: true` (the input is valid; the sky has no Placidus cusps there). Request JSON follows BirthInput: `name`, `date` (YYYY-MM-DD), `time` (HH:MM, required), either `location` or `latitude`/`longitude`/`timezone`. `ayanamsa` is accepted but ignored: KP always uses the Krishnamurti ayanamsa. */ export const kpSignificators = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/kp/significators', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * KP Ruling Planets * * Computes KP Ruling Planets at a given moment (no natal birth chart). Request body: `latitude`, `longitude`, optional `target_date`, `target_time`, `target_timezone`. KP takes ruling planets at the moment of judgment, so with no `target_date` and no `target_time` the current instant is used. `target_time` alone means that time today; `target_date` alone means 12:00 on that date. Local date and time are read in `target_timezone`, which defaults to the time zone at the coordinates. `target_utc` and `target_timezone` in the response show the instant and zone used. A date not in the calendar (e.g. 2026-02-30) is rejected with 422 saying it does not exist; dates outside 1800-01-01 to 2099-12-31 are rejected with 422 too. A local time skipped by a daylight-saving change is read with the offset before the change (moved forward by the gap), a repeated time as its first occurrence; `local_time_status` says which applied. Works at every latitude, including inside the polar circles: only the ascendant is used, which needs no house cusps (the day lord still needs a sunrise). Returns day lord, Moon sign/nakshatra/sub lords, ascendant sign/nakshatra/sub lords, and the combined list of ruling planets in priority order. */ export const kpRulingPlanets = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/kp/ruling-planets', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Lal Kitab Chart * * Computes a Lal Kitab chart following the 1952 Lal Kitab: houses are counted from the Vedic lagna (whole sign) and the lagna house is read as house 1 (Aries). Returns the ascendant and all 9 planets with their Lal Kitab house, pakka ghar, uchcha (exalted) and neecha (debilitated) flags, fixed or doubtful effect and malefic indications, the 12 houses, and the 9 Lal Kitab debts (rin) with their remedies. Ayanamsa: lahiri (default), raman or kp; tropical is rejected because Lal Kitab starts from the sidereal Indian chart. Without a birth time a sunrise chart is used and birth_time_provided is false; houses are then approximate. */ export const lalKitabChart = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/lal-kitab/chart', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Lal Kitab Remedies * * Lal Kitab remedies for the planets that need them. Following the 1952 Lal Kitab, a planet is listed when its effect is doubtful (it is not in its own house, pakka ghar, or exaltation or debilitation house, or it is a companion planet) and its placement is generally malefic (an enemy's house, or its debilitation house when it is a companion planet). Planets that are malefic but have a fixed effect are listed separately as not remediable. Also returns remedies for any indicated debts (rin). */ export const lalKitabRemedies = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/lal-kitab/remedies', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Prashna (Horary Chart) * * Computes a Prashna (Horary) chart for the exact moment a question is asked. Returns lagna, Moon analysis, house lord condition, occupants of the relevant house, and a classical verdict (favourable / unfavourable / mixed) with confidence level. Question category determines which house is analysed; that house and its lord are taken by whole sign from the lagna, like the planets' houses. */ export const prashna = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/prashna', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Nakshatra Profile * * Returns the complete classical profile of one nakshatra, from deity and ruling planet to favourable activities and body map. The profile covers deity, ruling planet, gana, nature, body part, profession, life themes, strengths, challenges, favorable/unfavorable activities, and body map. The name is matched ignoring case, spaces, hyphens and common romanisation differences (e.g. 'uttarashadha' finds Uttara Ashadha, 'Aswini' finds Ashwini); an unknown name returns 404 with the 27 valid names. */ export const nakshatra = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/nakshatra/{name}', ...options }); /** * Graha Nature * * Returns classical graha properties for all nine planets or a single planet. Includes tattva, guna, gender, caste, direction, color, deity, ruling day, metal, body part governed, and naisargika maitri (natural friends, enemies, neutrals). Pass ?planet=Sun (or Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu) for a single planet. Omit ?planet to get all nine planets. */ export const planetNature = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/planet-nature', ...options }); /** * Puja Suggestions * * Returns classical puja recommendations for planetary propitiation. Each planet has a specific puja, presiding deity, day of the week, offerings, grain, and mantra. Pass ?planet=Saturn for a single planet. Omit ?planet to get all nine planets. */ export const pujaSuggestions = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/puja-suggestions', ...options }); /** * Rudraksha Recommendations * * Returns Rudraksha bead recommendations per planet. Each planet maps to a specific mukhi (face count) with presiding deity, exact beej mantra, recommended metal, wearing day, how the bead is worn (strung at the neck or wrist, not on a finger), and classical notes including the important distinction that mukhi assignments are attributed to deities in tradition — planetary correspondence is traditional astrological synthesis. Pass ?planet=Jupiter for a single planet. Omit ?planet to get all nine planets. */ export const rudraksha = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/rudraksha', ...options }); /** * Ayanamsha Values * * Returns ayanamsha values for all four supported systems (Lahiri, Raman, KP, Tropical) for a given date. Each system returns the value in decimal degrees and DMS (degrees/minutes/seconds) format. Pass ?date=YYYY-MM-DD for a specific date. Omit ?date to get today's values (today's UTC date). Lahiri is the Indian government standard and default for Jyotish. */ export const ayanamsha = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/ayanamsha', ...options }); /** * Biorhythm Cycles * * Computes physical (23-day), emotional (28-day), and intellectual (33-day) biorhythm cycles for a birth date. Returns cycle values (-1.0 to +1.0), percentage, phase label (High above +0.5, Low below -0.5, otherwise Rising or Falling by the curve's direction), trend, and critical day flags. Critical days occur when a cycle crosses zero — these represent instability and vulnerability to poor judgment. Supports single-day and multi-day (up to 90 days) range requests. Formula: sin(2π × t / cycle_length) where t = days since birth. Source: Wilhelm Fliess (1897) physical cycle; Hermann Swoboda (1900) emotional cycle; Alfred Teltscher (1926) intellectual cycle. */ export const westernBiorhythm = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/western/biorhythm', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Personal Nakshatra Prediction (Tarabala) * * Returns a personalised daily prediction using Tarabala and Chandrabala for the day at the birth place (sunrise to next sunrise). The top-level tara is the one at sunrise; transit_nakshatras lists every nakshatra the Moon passes through that day with its tara. The tara names the round of nine: the first tara is Janma at count 1 (Moon in the birth nakshatra), Anujanma at 10 and Trijanma at 19. Tarabala measures the auspiciousness of the current day for an individual by assessing the relationship between their natal Moon nakshatra and the daily transit Moon nakshatra. Nine Taras from Janma (birth) to Ati-Mitra (great friend). Chandrabala measures the transit Moon's house from natal Moon. Also returns the transit nakshatra's quality type (Dhruva/Chara/ Ugra/Tikshna/Kshipra/Mridu/Mishra) with auspicious and inauspicious activities for today. */ export const nakshatraPrediction = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/nakshatra/prediction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Pitru Dosha (Pitru Shapa) * * Detects Pitru Dosha (Pitru Shapa, the father's curse) from the eleven combinations of BPHS 83.20–83.30, each read literally. `present` is true only when at least one combination forms; `combinations_detail` names the verse and the chart factors. Conjunction is the same sign; aspects are full Parashari graha drishti (Mars 4/7/8, Jupiter 5/7/9, Saturn 3/7/10, Rahu 7); malefics are the chart's natural malefics (Sun, Mars, Saturn, Rahu, Ketu, a waning Moon, a Mercury joined by a malefic). House lords are whole sign from the lagna. General Sun and 9th-lord conditions are listed as `indicators` and never make the dosha present. BPHS gives no grading, so `severity` is null and `combinations_count` says how many combinations formed. Remedies are those of BPHS 83.31–83.32. The same rule fills the pitru_dosha bucket of /v1/astro/dosha. */ export const pitraDosha = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/pitra-dosha', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Ghat Chakra * * Returns the four Ghatak (inauspicious) timing parameters for a native based on their Janma Rasi (natal Moon sign). Ghat Chakra identifies the lunar month (Masa), lunar day group (Tithi), weekday (Vara), and transit nakshatra that are persistently inauspicious for that individual. When transit periods align with these Ghatak parameters, starting new ventures, surgery, travel, or auspicious ceremonies should be avoided. */ export const ghatChakra = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/ghat-chakra', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Geocode a Place to Coordinates and Timezone * * Resolve a city or place name to coordinates and timezone. * * Returns up to `limit` matches (default 5, at most 10). When a query is ambiguous * (e.g. 'Fatehabad' exists in multiple states), multiple results * are returned so the developer can present a disambiguation UI * or use the first result. Repeat matches for one place (same city, state * and country within 5 km) are listed once. * * Examples: ?q=Mumbai, ?q=Rome Italy, ?q=New York USA, ?q=London UK * * Pass state/country for precise results: * ?q=Fatehabad,Haryana or ?q=Fatehabad&country=in */ export const geocode = (options: Options): RequestResult => (options.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/utils/geocode', ...options }); /** * IANA Timezone for Coordinates * * Returns the IANA timezone (e.g. Asia/Kolkata) for a latitude and longitude pair. * Fully offline — no external API call. * Accepts ?latitude=&longitude= and/or ?lat=&lon= (any pair that supplies both coordinates). * Examples: ?latitude=19.055&longitude=72.869 (Mumbai), ?lat=19.055&lon=72.869 */ export const timezone = (options?: Options): RequestResult => (options?.client ?? client).get({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/utils/timezone', ...options }); /** * Sade Sati periods * * Calculate all Sade Sati periods for a natal chart. Returns rising, peak, and setting phases for each period (first entry, final exit and every stay of Saturn in the sign, so retrograde re-entries are shown), current active status and phase from Saturn's sign on the check date, intensity score (0-100 scale, 40-90 while active), intensity label, and next upcoming period. Optionally check status for a specific date using check_date. Sade Sati is Saturn's 7.5-year transit over natal Moon sign and adjacent signs. Small Panoti (Dhaiya) covers Saturn in the 4th or 8th sign from natal Moon (~2.5 years each). Returns all past, current, and future Sade Sati cycles with phase descriptions. */ export const sadeSati = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/sade-sati', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Calculate planetary strength suite * * Builds a composite strength report including shadbala, divisional charts, ashtakavarga, and karakas from birth input. Returns a unified strength payload for all supported modules. */ export const strength = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/strength', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Planetary transits — Gochar * * Scans a date range for planetary sign ingresses (Moon included) and retrograde/direct station events, each with its exact UTC time. Lahiri sidereal by default; set ayanamsa to 'tropical' for Western (tropical) sign changes, or 'raman' / 'kp' for those ayanamsas. Also known as Gochar. */ export const transits = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/transits', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Yogini Dasha * * Computes Yogini Dasha periods for a given birth chart. * * **What is Yogini Dasha?** * Yogini Dasha is a Nakshatra-based dasha system using 8 Yoginis, each ruled * by a planet. The total cycle is 36 years. It is considered highly accurate * for timing events in the near term and is widely used alongside Vimshottari. * * **Timeline:** the opening Yogini runs from birth for its balance, then three * full 36-year cycles follow (past age 108). The first row carries * `dasha_start_date` (when the full period began, before birth) and * `balance_years`; its antardashas are the tail of the full period. * * **Antardashas:** each lasts MD years × AD Yogini years / 36, starting from * the Mahadasha's own Yogini (the published proportional rule). * * **The 8 Yoginis and their durations:** * - Mangala (Moon) — 1 year * - Pingala (Sun) — 2 years * - Dhanya (Jupiter) — 3 years * - Bhramari (Mars) — 4 years * - Bhadrika (Mercury) — 5 years * - Ulka (Saturn) — 6 years * - Siddha (Venus) — 7 years * - Sankata (Rahu) — 8 years * * **Starting Yogini** is determined by the Moon's Nakshatra at birth. * * **Levels:** * - `levels: 1` — returns Maha Dasha periods only * - `levels: 2` — returns Maha Dasha with Antar Dasha sub-periods (default) * * **Date format:** All dates are returned in DD/MM/YYYY format. * * **Ayanamsa:** Default is Lahiri; the request's `ayanamsa` is applied. */ export const yoginiDasha = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/yogini', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Varshaphal — Solar Return Chart * * Computes the Varshaphal (annual horoscope) for a given year. Finds the exact moment when the Sun returns to its natal longitude (the return nearest the birthday in target_year; in UT it can fall a day either side, or on 31 December for a 1 January birthday), computes all planet positions at that moment, and returns Muntha (natal lagna sign + completed years, target_year minus birth year), the Varsha Pati (Tajika year lord, elected from the five Pancha Adhikaris) and Tajika Ithasala/Musaripha between the seven grahas. year_lord / vara_lord is the weekday lord at the return, not the Varsha Pati. Request JSON follows BirthInput plus `target_year`: `name`, `date` (YYYY-MM-DD), `time` (HH:MM, required), either `location` or `latitude`/`longitude`/`timezone`, `ayanamsa`. */ export const varshaphal = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/varshaphal', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Varshaphal — Tajika Saham Points * * Computes all 10 Tajika Saham (sensitive points) for a Varshaphal chart. Sahams are the Tajika equivalent of Arabic Parts — mathematically derived points that focus on specific life themes for the year. Formula: A - B + C, plus 30° when C is not on the arc from B forward to A (Tajika Neelakanthi). C is the Varsha ascendant except for Mitra (Venus) and Santapa (the 6th house, ascendant + 150°). For a night return A and B swap, except Vyapara. Day formulas: Punya Moon-Sun, Vidya Sun-Moon, Yashas Jupiter-Punya, Mitra Jupiter-Punya+Venus, Mahatmya Punya-Mars, Asha Saturn-Mars, Karmakarya Mars-Mercury, Vyapara Mars-Saturn, Vivaha Venus-Saturn, Santapa Saturn-Moon+6th house. Yashas, Mitra and Mahatmya use Punya Saham as an operand — computed first. */ export const varshaphalSaham = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/varshaphal/saham', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Varshaphal — Harsha Bala * * Computes Harsha Bala (positional happiness score) for all 7 classical planets in the Varshaphal chart. Maximum = 20 per planet (4 components × 5 points). Harsha Bala measures whether a planet is positionally comfortable in the annual chart — distinct from Pancha Vargeeya Bala which measures mathematical strength. A planet with high Pancha Vargeeya Bala but zero Harsha Bala has the capacity to deliver results but will do so through stress and frustration. Components: Sthana (happy house: Sun 9th, Moon 3rd, Mars 6th, Mercury 1st, Jupiter 11th, Venus 5th, Saturn 12th), Swakshetra/Uccha (own or exaltation sign), Pum-Stri (masculine Sun, Mars, Jupiter in houses 4-6 or 10-12; feminine Moon, Mercury, Venus, Saturn in houses 1-3 or 7-9), Dina-Ratri (masculine planets in a day return, feminine in a night return). Houses are whole signs from the Varsha lagna. */ export const varshaphalHarshaBala = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/v1/astro/varshaphal/harsha-bala', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } });