{"openapi":"3.0.0","paths":{"/v2/geocode/search":{"get":{"description":"Forward geocoding with typo-tolerant text matching.\n\nReturns matching cities with state/province, country metadata, coordinates, and canonical `locationId` values for astrology endpoints.\n\n**Parameters:**\n- `country`: Filter to show ONLY cities from this country\n- `priorityCountry`: Show all countries, but prioritize this one first\n\nCity coordinates and timezones are static reference data.","operationId":"searchCity","parameters":[{"name":"city","required":true,"in":"query","description":"City name to search for (ASCII)","schema":{"minLength":2,"maxLength":100,"example":"Patna","type":"string"}},{"name":"country","required":false,"in":"query","description":"ISO 3166-1 alpha-2 country code to filter results (shows ONLY this country)","schema":{"example":"IN","type":"string"}},{"name":"priorityCountry","required":false,"in":"query","description":"ISO 3166-1 alpha-2 country code to prioritize in results (shows all countries, but this one first)","schema":{"example":"IN","type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of results (1-50)","schema":{"minimum":1,"maximum":50,"default":10,"example":10,"type":"number"}},{"name":"minSimilarity","required":false,"in":"query","description":"Minimum similarity score to filter results (0-1). Default 0.33 balances typo-tolerance with noise filtering. Raise for stricter matching, lower for more lenient suggestions.","schema":{"minimum":0,"maximum":1,"default":0.33,"example":0.33,"type":"number"}}],"responses":{"200":{"description":"Array of matching cities with full state and country names","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CitySearchResultDto"}}}}]}}}},"400":{"description":"Invalid search query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Search cities by name","tags":["Geocode"],"security":[{"RuntimeApiKey":[]}]}},"/v2/geocode/reverse":{"get":{"description":"Find the nearest cities for any latitude and longitude coordinate pair, ordered by distance in meters.\n\nCity coordinates and timezones are static reference data.","operationId":"reverseGeocode","parameters":[{"name":"lat","required":true,"in":"query","description":"Latitude in decimal degrees","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":true,"in":"query","description":"Longitude in decimal degrees","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of results","schema":{"minimum":1,"maximum":10,"default":1,"example":1,"type":"number"}}],"responses":{"200":{"description":"Array of nearest cities with distance in meters","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CitySearchResultDto"}}}}]}}}},"400":{"description":"Invalid reverse geocode query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Reverse geocode (coordinates to city)","tags":["Geocode"],"security":[{"RuntimeApiKey":[]}]}},"/v2/panchang":{"get":{"description":"\nCalculate the complete Panchang (Vedic calendar) for the given datetime and location.\n\n**Returns (Pancha Anga - Five Limbs):**\n1. **Tithi** - Lunar day (1-30), including paksha (fortnight), nature, and completion percentage\n2. **Nakshatra** - Moon's lunar mansion (1-27), including lord and pada\n3. **Yoga** - Sun+Moon combination (1-27), including nature and auspiciousness\n4. **Karana** - Half-tithi (1-60), including type (chara/sthira) and Vishti status\n5. **Vaar** - Weekday, including ruling planet\n\n**Also Returns:**\n- **Sun Times** - Sunrise, sunset, day length, twilight times\n- **Muhurta** - Rahukaal, Yamaganda, Gulika, Abhijit periods\n- **Ayanamsa** - Precession value used for calculations\n\n**Cache:** DAILY (1 day) - Panchang changes daily.\n\n**Classical References:**\n- Surya Siddhanta for astronomical calculations\n- Muhurta Chintamani for muhurta periods\n- Brihat Samhita for tithi/nakshatra properties\n    ","operationId":"getPanchang","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Optional, defaults to 0.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Datetime in ISO 8601 format (local time). Panchang is calculated for this moment. Format: YYYY-MM-DDTHH:mm:ss. Values are validated.","schema":{"example":"2026-03-15T06:00:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}}],"responses":{"200":{"description":"Panchang calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PanchangResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get complete daily Panchang","tags":["Panchang"],"security":[{"RuntimeApiKey":[]}]}},"/v2/panchang/muhurta":{"get":{"description":"\nCalculate the daily muhurta (auspicious/inauspicious time periods).\n\n**Returns:**\n- **Rahukaal** - Period ruled by Rahu. Avoid starting new ventures.\n- **Yamaganda** - Period ruled by Yama. Avoid important activities.\n- **Gulika** - Period ruled by Gulika (son of Saturn). Avoid auspicious work.\n- **Abhijit** - Most auspicious 48-minute period around solar noon.\n\n**Calculation Method:**\n- Day (sunrise to sunset) is divided into 8 equal parts (hora)\n- Each inauspicious period occupies specific horas based on weekday\n- Abhijit muhurta is 24 minutes before and after solar noon\n\n**Note:** These times are location-specific as they depend on local sunrise/sunset.\n\n**Cache:** DAILY (1 day)\n\n**Classical Reference:** Muhurta Chintamani\n    ","operationId":"getMuhurta","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Optional, defaults to 0.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Datetime in ISO 8601 format (local time). Panchang is calculated for this moment. Format: YYYY-MM-DDTHH:mm:ss. Values are validated.","schema":{"example":"2026-03-15T06:00:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}}],"responses":{"200":{"description":"Muhurta periods calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/MuhurtaResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get daily Muhurta periods","tags":["Panchang"],"security":[{"RuntimeApiKey":[]}]}},"/v2/panchang/auspicious":{"get":{"description":"\nQuick check to determine if a specific time is auspicious for important activities.\n\n**Checks:**\n- Tithi nature (auspicious/inauspicious)\n- Rikta tithi (4, 9, 14 of each paksha - generally avoided)\n- Yoga nature (inauspicious yogas like Vishkumbha, Vyatipata, etc.)\n- Vishti (Bhadra) karana\n\n**Returns:**\n- `isAuspicious`: Boolean indicating overall auspiciousness\n- `concerns`: List of negative factors found\n- `positives`: List of positive factors found\n\n**Note:** This is a basic check. Comprehensive muhurta analysis requires\nconsidering many more factors including planetary positions, nakshatras, etc.\n\n**Cache:** HOURLY (1 hour)\n    ","operationId":"isAuspicious","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Optional, defaults to 0.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Datetime in ISO 8601 format (local time). Panchang is calculated for this moment. Format: YYYY-MM-DDTHH:mm:ss. Values are validated.","schema":{"example":"2026-03-15T06:00:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}}],"responses":{"200":{"description":"Auspiciousness check completed","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"isAuspicious":{"type":"boolean","example":true},"concerns":{"type":"array","items":{"type":"string"},"example":["Vishti (Bhadra) karana - avoid important activities"]},"positives":{"type":"array","items":{"type":"string"},"example":["Tithi panchami is auspicious"]}}}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Check if time is auspicious","tags":["Panchang"],"security":[{"RuntimeApiKey":[]}]}},"/v2/panchang/search":{"get":{"description":"\nFind dates when specific panchang conditions occur within a date range.\nThis is \"reverse panchang\" - instead of getting panchang for a date,\nfind dates that match specific panchang criteria.\n\n**Use Cases:**\n- Find all Krishna Ashtami in Bhadrapada (Janmashtami): `tithi=8&paksha=krishna&masa=bhadrapada`\n- Find Diwali dates (Kartik Krishna Amavasya at pradosh): `tithi=30&masa=kartik&matchAt=pradosh`\n- Find all Purnima in a lunar month: `tithi=15&paksha=shukla&masa=kartik`\n- Find all Ekadashi fasting days: `tithi=11`\n\n**Search Criteria (at least one required):**\n- `tithi` - Tithi number (1-30)\n- `paksha` - Lunar fortnight (shukla/krishna)\n- `nakshatra` - Moon's lunar mansion name\n- `yoga` - Sun+Moon yoga name\n- `karana` - Half-tithi name\n- `vaar` - Weekday name\n- `masa` - Lunar month (kartik, bhadrapada, phalguna, etc.)\n\n**Lunar Month (Masa) Filtering:**\n- `masa` - Filter by lunar month (kartik, bhadrapada, etc.)\n- `masaSystem` - Month naming: amant (South India, default) or purnimant (North India)\n- `excludeAdhikaMasa` - Skip intercalary months (default: true)\n\n**Observance Window Filtering:**\n- `matchAt` - Filter by when tithi is active:\n  - `sunrise` - Udaya tithi (default for most festivals)\n  - `pradosh` - Active during twilight (Diwali, Maha Shivaratri)\n  - `nishita` - Active at midnight (Janmashtami)\n  - `madhyahna` - Active mid-day (Ram Navami)\n  - `aparahna` - Active afternoon (Shraddha)\n  - `any` - No filtering (default)\n\n**Response Options:**\n- `includeTimings` - Include pradosh/nishita/madhyahna/aparahna times\n\n**Cache:** IMMUTABLE (1 year) - Astronomical data is deterministic.\n\n**Note:** For commonly needed dates (Diwali, Holi, etc.), use `/v2/festivals/{year}` instead.\n    ","operationId":"searchPanchang","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided.","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"startDate","required":true,"in":"query","description":"Start date of search range in YYYY-MM-DD format.","schema":{"example":"2026-01-01","type":"string"}},{"name":"endDate","required":true,"in":"query","description":"End date of search range in YYYY-MM-DD format.","schema":{"example":"2026-12-31","type":"string"}},{"name":"tithi","required":false,"in":"query","description":"Tithi number (1-30). 1-15 are Shukla Paksha tithis, 16-30 are Krishna Paksha tithis. If paksha is provided, tithi must be 1-15. To search for Krishna Ashtami, use tithi=8 with paksha=krishna.","schema":{"minimum":1,"maximum":30,"example":8,"type":"number"}},{"name":"paksha","required":false,"in":"query","description":"Paksha (lunar fortnight). shukla=waxing (bright), krishna=waning (dark). Use with tithi parameter.","schema":{"example":"krishna","type":"string","enum":["shukla","krishna"]}},{"name":"nakshatra","required":false,"in":"query","description":"Nakshatra name (Moon's lunar mansion). Examples: ashwini, bharani, rohini, mrigashira, etc.","schema":{"example":"rohini","type":"string","enum":["ashwini","bharani","krittika","rohini","mrigashira","ardra","punarvasu","pushya","ashlesha","magha","purva-phalguni","uttara-phalguni","hasta","chitra","swati","vishakha","anuradha","jyeshtha","mula","purva-ashadha","uttara-ashadha","shravana","dhanishta","shatabhisha","purva-bhadrapada","uttara-bhadrapada","revati"]}},{"name":"yoga","required":false,"in":"query","description":"Yoga name (Sun+Moon combination). Examples: vishkumbha, preeti, siddhi, shubha, etc.","schema":{"example":"siddhi","type":"string","enum":["vishkumbha","priti","ayushman","saubhagya","shobhana","atiganda","sukarma","dhriti","shoola","ganda","vriddhi","dhruva","vyaghata","harshana","vajra","siddhi","vyatipata","variyana","parigha","shiva","siddha","sadhya","shubha","shukla","brahma","indra","vaidhriti"]}},{"name":"karana","required":false,"in":"query","description":"Karana name (half-tithi). Examples: bava, balava, kaulava, taitila, etc.","schema":{"example":"bava","type":"string","enum":["bava","balava","kaulava","taitila","gara","vanija","vishti","kimstughna","shakuni","chatushpada","naga"]}},{"name":"vaar","required":false,"in":"query","description":"Weekday name. ravivar=Sunday, somvar=Monday, etc.","schema":{"example":"somvar","type":"string","enum":["ravivar","somvar","mangalvar","budhvar","guruvar","shukravar","shanivar"]}},{"name":"masa","required":false,"in":"query","description":"Lunar month name. Filter results to only this month. Examples: kartik (for Diwali), bhadrapada (for Janmashtami), phalguna (for Holi).","schema":{"example":"kartik","type":"string","enum":["chaitra","vaishakha","jyeshtha","ashadha","shravana","bhadrapada","ashwin","kartik","margashirsha","pausha","magha","phalguna"]}},{"name":"masaSystem","required":false,"in":"query","description":"Lunar month naming system. amant=South India (default, matches Drikpanchang), purnimant=North India. In Purnimant, Krishna Paksha belongs to the next month.","schema":{"default":"amant","example":"amant","type":"string","enum":["purnimant","amant"]}},{"name":"excludeAdhikaMasa","required":false,"in":"query","description":"Exclude Adhika Masa (intercalary/leap months) from results. Festivals are typically not celebrated in Adhika Masa.","schema":{"default":true,"example":true,"type":"boolean"}},{"name":"matchAt","required":false,"in":"query","description":"Filter by observance window. sunrise=udaya tithi (default for most festivals), pradosh=twilight (Diwali), nishita=midnight (Janmashtami), madhyahna=mid-day (Ram Navami), aparahna=afternoon (Shraddha), any=no filtering.","schema":{"default":"any","example":"sunrise","type":"string","enum":["sunrise","pradosh","nishita","madhyahna","aparahna","any"]}},{"name":"includeTimings","required":false,"in":"query","description":"Include observance window timings (pradosh, nishita, madhyahna, aparahna) in response.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of results to return (1-100).","schema":{"minimum":1,"maximum":100,"default":50,"example":50,"type":"number"}},{"name":"async","required":false,"in":"query","description":"If true, queue this reverse panchang search as async job and return job handle.","schema":{"default":false,"example":false,"type":"boolean"}}],"responses":{"200":{"description":"Search completed successfully, or queued as async job for heavy request.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/PanchangSearchResponseDto"},{"$ref":"#/components/schemas/ReverseJobAcceptedDto"}]}}}]}}}},"400":{"description":"Invalid search criteria or date range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Search for dates by panchang criteria (Reverse Panchang)","tags":["Panchang"],"security":[{"RuntimeApiKey":[]}]},"post":{"description":"\nAdvanced reverse panchang search using POST body.\nSupports all existing panchang filters plus multi-planet transit filters.\n\nTransit filters are addon-only, i.e. at least one panchang criterion is required.\n    ","operationId":"searchPanchangAdvanced","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanchangSearchPostRequestDto"},"examples":{"krishnaAshtamiWithSunFilter":{"summary":"Krishna Ashtami search with Sun sign transit filter","value":{"locationId":1276300,"startDate":"2026-01-01","endDate":"2026-12-31","tithi":8,"paksha":"krishna","transitFilters":[{"planet":"sun","sign":"leo"}],"limit":10}}}}}},"responses":{"200":{"description":"Advanced search completed successfully, or queued as async job for heavy request.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/PanchangSearchResponseDto"},{"$ref":"#/components/schemas/ReverseJobAcceptedDto"}]}}}]}}}},"400":{"description":"Invalid search criteria or date range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Advanced reverse panchang search with optional transit filters","tags":["Panchang"],"security":[{"RuntimeApiKey":[]}]}},"/v2/chart":{"get":{"description":"\nCalculate the D1 (Rasi) birth chart for the given birth data.\n\n**Response Modes:**\n- **Default (`falit=false`, ~6 KB):** Core astronomical calculations — positions, signs, houses, and basic dignity\n- **Enriched (`falit=true`, ~35 KB):** Full interpretation context with avasthas, special states, functional nature, and planetary war/exchange\n\n**Included by default (`falit=false`):**\n- Ascendant with sign, nakshatra, pada\n- All 12 planets (Navagraha + Uranus/Neptune/Pluto) with positions, signs, houses, nakshatras\n- 12 house cusps with signs and lords\n- Ayanamsa value used\n\n**Additional Context (`falit=true`):**\n- dignityFlags: Boolean flags for filtering (isExalted, isDebilitated, etc.)\n- houseType: Kendra/Trikona/Dusthana classification\n- avasthas: Baaladi, Jagradadi, Deeptadi, Lajjitadi states\n- specialStates: Vargottama, Gandanta, Digbala, Pushkara\n- functionalNature: Yogakaraka, Maraka, Badhaka status\n- neechaBhanga: Debilitation cancellation (if applicable)\n- yuddha: Planetary war detection\n- parivartan: Sign exchange detection\n- summary: Chart-level statistics\n\nBirth charts are deterministic and safe to cache long-term.\n    ","operationId":"getD1Chart","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Optional, defaults to 0.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss or YYYY-MM-DDTHH:mm. Values are validated.","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP. Ignored if system=western.","schema":{"default":1,"example":1,"type":"number"}},{"name":"system","required":false,"in":"query","description":"Astrology system. Vedic uses sidereal zodiac, Western uses tropical.","schema":{"default":"vedic","type":"string","enum":["vedic","western"]}},{"name":"houseSystem","required":false,"in":"query","description":"House system. Vedic typically uses whole-sign, Western uses Placidus.","schema":{"default":"whole-sign","type":"string","enum":["whole-sign","equal","placidus","koch","campanus","regiomontanus","porphyry"]}},{"name":"falit","required":false,"in":"query","description":"Interpretation context toggle. false (default, ~6 KB): core positions, signs, houses, basic dignity. true (~35 KB): adds dignityFlags, houseType, avasthas, specialStates, functionalNature, neechaBhanga, yuddha, parivartan, aspects, and structured interpretation context.","schema":{"default":false,"example":false,"type":"boolean"}}],"responses":{"200":{"description":"D1 birth chart calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ChartResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get D1 (Rasi) birth chart","tags":["Chart"],"security":[{"RuntimeApiKey":[]}]}},"/v2/chart/d/{division}":{"get":{"description":"\nCalculate any of the 16 Shodash Varga divisional charts from Vedic astrology (Parashari system).\n\n## Supported Divisions\n\n| Division | Name | Sanskrit | Purpose |\n|----------|------|----------|---------|\n| D1 | Rasi | Rashi | Birth chart — overall life, personality, physical body |\n| D2 | Hora | Hora | Wealth, financial prosperity, material assets |\n| D3 | Drekkana | Drekkana | Siblings, courage, short travels, communication |\n| D4 | Chaturthamsa | Chaturthamsha | Property, fixed assets, vehicles, home, mother |\n| D7 | Saptamsa | Saptamsha | Children, progeny, fertility, creative output |\n| D9 | Navamsa | Navamsha | Spouse, marriage, dharma, inner strength, destiny |\n| D10 | Dasamsa | Dashamsha | Career, profession, public standing, fame |\n| D12 | Dwadasamsa | Dwadashamsha | Parents, ancestry, lineage, inheritance |\n| D16 | Shodasamsa | Shodashamsha | Vehicles, conveyances, comforts, luxuries |\n| D20 | Vimsamsa | Vimshamsha | Spiritual pursuits, worship, upasana, religious life |\n| D24 | Chaturvimsamsa | Chaturvimshamsha | Education, learning, knowledge, academic pursuits |\n| D27 | Bhamsa | Saptavimshamsha | Physical strength, stamina, vitality, endurance |\n| D30 | Trimsamsa | Trimshamsha | Misfortunes, evils, obstacles, adverse karma |\n| D40 | Khavedamsa | Khavedamsha | Auspicious/inauspicious effects, maternal legacy |\n| D45 | Akshavedamsa | Akshavedamsha | General fortune, paternal legacy, moral character |\n| D60 | Shashtiamsa | Shashtiamsha | Past life karma, deepest karmic patterns (most precise) |\n\n## Varga Groups\n\n- **Shadvarga (6):** D1, D2, D3, D9, D12, D30\n- **Saptavarga (7):** Shadvarga + D7\n- **Dashavarga (10):** Saptavarga + D10, D16, D60\n- **Shodashvarga (16):** All 16 divisions listed above\n\n## Response Modes\n\n- **Default (`falit=false`, ~6 KB):** Core astronomical positions, signs, houses, and basic dignity\n- **Enriched (`falit=true`, ~35 KB):** Full interpretation context with avasthas, special states, functional nature, and planetary war/exchange\n\n## Examples\n\n```\nGET /v2/chart/d/9?locationId=1276300&datetime=1993-03-12T05:30:00   # Navamsa\nGET /v2/chart/d/10?locationId=1276300&datetime=1993-03-12T05:30:00  # Dasamsa\nGET /v2/chart/d/60?locationId=1276300&datetime=1993-03-12T05:30:00  # Shashtiamsa\n```\n\n## Error Response\n\nUnsupported division numbers return 400 with the list of valid divisions.\n\nDivisional charts are deterministic and safe to cache long-term.\n    ","operationId":"getDivisionalChart","parameters":[{"name":"division","required":true,"in":"path","description":"Shodash Varga division number. D1=Rasi, D2=Hora, D3=Drekkana, D4=Chaturthamsa, D7=Saptamsa, D9=Navamsa, D10=Dasamsa, D12=Dwadasamsa, D16=Shodasamsa, D20=Vimsamsa, D24=Chaturvimsamsa, D27=Bhamsa, D30=Trimsamsa, D40=Khavedamsa, D45=Akshavedamsa, D60=Shashtiamsa","schema":{"example":9,"type":"number","enum":[1,2,3,4,7,9,10,12,16,20,24,27,30,40,45,60]}},{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Optional, defaults to 0.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss or YYYY-MM-DDTHH:mm. Values are validated.","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP. Ignored if system=western.","schema":{"default":1,"example":1,"type":"number"}},{"name":"system","required":false,"in":"query","description":"Astrology system. Vedic uses sidereal zodiac, Western uses tropical.","schema":{"default":"vedic","type":"string","enum":["vedic","western"]}},{"name":"houseSystem","required":false,"in":"query","description":"House system. Vedic typically uses whole-sign, Western uses Placidus.","schema":{"default":"whole-sign","type":"string","enum":["whole-sign","equal","placidus","koch","campanus","regiomontanus","porphyry"]}},{"name":"falit","required":false,"in":"query","description":"Interpretation context toggle. false (default, ~6 KB): core positions, signs, houses, basic dignity. true (~35 KB): adds dignityFlags, houseType, avasthas, specialStates, functionalNature, neechaBhanga, yuddha, parivartan, aspects, and structured interpretation context.","schema":{"default":false,"example":false,"type":"boolean"}}],"responses":{"200":{"description":"Divisional chart calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ChartResponseDto"}}}]}}}},"400":{"description":"Unsupported division number. Returns list of valid Shodash Varga divisions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get divisional chart (Shodash Varga)","tags":["Chart"],"security":[{"RuntimeApiKey":[]}]}},"/v2/chart/reverse-d1":{"post":{"description":"\nFind birth datetime by matching D1 chart constraints.\n\n**How it works:**\n- Uses coarse-to-fine search with adaptive time jumps.\n- Refines likely windows at minute precision.\n- Returns `exact` only when a unique minute-level match exists.\n- Returns ranked `matches` otherwise for manual refinement.\n- Optional `constraints.bnn` adds BNN life-area relevance as tie-break only for near-equal reverse matches. It never overrides a stronger normal reverse D1 match.\n- Optional BNN divisional confirmation (`D9`/`D10`) is confidence support only and stays opt-in.\n\n**Supported constraints:**\n- Ascendant sign/degree/nakshatra/pada\n- Planet constraints (house/sign/degree/nakshatra/pada/motion) including Uranus/Neptune/Pluto\n- Optional panchang filters (tithi, vaar, moon nakshatra)\n- Optional BNN block: `gender`, single `lifeArea`, optional `includeDivisional`\n\n**Guardrails:**\n- Minimum 3 constraint fields required.\n- `constraints.bnn` does not count toward that minimum.\n- Maximum search range is 30 years.\n- House system in v1 is whole-sign.\n    ","operationId":"reverseD1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReverseD1RequestDto"},"examples":{"bhagalpurSearch":{"summary":"Reverse D1 birth search with 3 constraints","value":{"locationId":1276300,"startDate":"1993-01-01","endDate":"1993-12-31","constraints":{"ascendant":{"sign":"aquarius"},"planets":[{"planet":"sun","sign":"aquarius","house":1},{"planet":"moon","nakshatra":"swati"}]},"limit":10}}}}}},"responses":{"200":{"description":"Reverse D1 search completed, or queued as async job for heavy request.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/ReverseD1ResponseDto"},{"$ref":"#/components/schemas/ReverseJobAcceptedDto"}]}}}]}}}},"400":{"description":"Invalid constraints or unsupported search range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Reverse D1 search for birth datetime","tags":["Chart"],"security":[{"RuntimeApiKey":[]}]}},"/v2/yoga":{"get":{"description":"\nDetect planetary yogas (beneficial combinations) and doshas (afflictions) in the birth chart.\n\n**Yogas Detected:**\n- **Pancha Mahapurusha Yogas**: Ruchaka (Mars), Bhadra (Mercury), Hamsa (Jupiter), Malavya (Venus), Shasha (Saturn)\n- **Gaja Kesari Yoga**: Jupiter in kendra from Moon\n- **Budha Aditya Yoga**: Sun-Mercury conjunction\n- **Chandra Mangala Yoga**: Moon-Mars conjunction\n\n**Doshas Detected:**\n- **Manglik Dosha**: Mars in 1,2,4,7,8,12 from Ascendant/Moon/Venus\n- **Kalsarpa Dosha**: All planets hemmed between Rahu-Ketu\n\n**Returns:**\n- List of detected yogas with strength assessment\n- List of doshas with severity and remedies\n- Cancellation factors if applicable\n\n**Cache:** IMMUTABLE (1 year) - yoga detection is deterministic.\n    ","operationId":"getYogas","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Optional, defaults to 0.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss or YYYY-MM-DDTHH:mm. Values are validated.","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP. Ignored if system=western.","schema":{"default":1,"example":1,"type":"number"}},{"name":"system","required":false,"in":"query","description":"Astrology system. Vedic uses sidereal zodiac, Western uses tropical.","schema":{"default":"vedic","type":"string","enum":["vedic","western"]}},{"name":"houseSystem","required":false,"in":"query","description":"House system. Vedic typically uses whole-sign, Western uses Placidus.","schema":{"default":"whole-sign","type":"string","enum":["whole-sign","equal","placidus","koch","campanus","regiomontanus","porphyry"]}},{"name":"falit","required":false,"in":"query","description":"Interpretation context toggle. false (default, ~6 KB): core positions, signs, houses, basic dignity. true (~35 KB): adds dignityFlags, houseType, avasthas, specialStates, functionalNature, neechaBhanga, yuddha, parivartan, aspects, and structured interpretation context.","schema":{"default":false,"example":false,"type":"boolean"}}],"responses":{"200":{"description":"Yogas and doshas calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get Yogas and Doshas","tags":["Yoga"],"security":[{"RuntimeApiKey":[]}]}},"/v2/dasha":{"get":{"description":"\nCalculate the complete Vimshottari dasha timeline from birth data.\n\n**Input:**\n- Birth location (via locationId OR lat/lng/tz)\n- Birth datetime in ISO 8601 format\n\n**Output:**\n- Birth nakshatra and balance at birth\n- 9 mahadasha periods with dates and durations\n- Optional: Antardasha, pratyantardasha, sookshma, and prana sub-periods\n- Current running dasha (if within range)\n\n**Response size (with all levels enabled):**\n- Mahadasha only: 9 | +Antardasha: 81 | +Pratyantardasha: 729 | +Sookshma: 6,561 | +Prana: 59,049\n\n**Example:**\n`GET /v2/dasha?locationId=1276300&datetime=1993-03-12T05:30:00`\n\n**Classical Reference:** BPHS Chapter 46-50\n\n**Note on Accuracy:**\nThis API uses Swiss Ephemeris (DE431/NASA JPL) with Lahiri ayanamsa.\nDasha dates may vary by ±7 days compared to software using Indian\nGovernment official Lahiri (e.g., Astrosage). This variance arises from:\n- Different ayanamsa definitions (~20 arc-seconds)\n- Different ephemeris calculations (~32 arc-seconds in Moon position)\nBoth are valid; Indian Government Lahiri is the traditional standard in India.\n    ","operationId":"getDashaTimeline","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID for birth location. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Birth latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Birth longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier for birth location. Required if locationId not provided.","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Birth location elevation in meters above sea level.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss. Values are validated.","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code for sidereal calculation. 1=Lahiri (default), 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}},{"name":"includeAntardasha","required":false,"in":"query","description":"Include antardasha (sub-periods) for each mahadasha. Increases response size.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"includePratyantardasha","required":false,"in":"query","description":"Include pratyantardasha (sub-sub-periods). Requires includeAntardasha=true.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"includeSookshma","required":false,"in":"query","description":"Include sookshma dasha (4th level sub-periods). Requires includePratyantardasha=true AND either mahadashaPlanet or a <= 10-year fromDate/toDate window.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"includePrana","required":false,"in":"query","description":"Include prana dasha (5th level sub-periods). Requires includeSookshma=true AND either both mahadashaPlanet+antardashaPlanet or a <= 366-day fromDate/toDate window.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"fromDate","required":false,"in":"query","description":"Optional inclusive filter start date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss) to trim deep sub-period trees to a specific window.","schema":{"example":"2026-01-01","type":"string"}},{"name":"toDate","required":false,"in":"query","description":"Optional inclusive filter end date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss) to trim deep sub-period trees to a specific window.","schema":{"example":"2026-12-31","type":"string"}},{"name":"mahadashaPlanet","required":false,"in":"query","description":"Optional Mahadasha lord filter (lowercase Navgrah planet) to scope sub-periods.","schema":{"example":"jupiter","type":"string","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu"]}},{"name":"antardashaPlanet","required":false,"in":"query","description":"Optional Antardasha lord filter (lowercase Navgrah planet) to scope sub-periods.","schema":{"example":"saturn","type":"string","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu"]}}],"responses":{"200":{"description":"Dasha timeline calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/DashaTimelineResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Calculate Vimshottari dasha timeline","tags":["Dasha"],"security":[{"RuntimeApiKey":[]}]}},"/v2/dasha/current":{"get":{"description":"\nFind the currently running Vimshottari dasha period.\n\n**Input:**\n- Birth location and datetime (same as /v2/dasha)\n- Optional: currentDate to check (defaults to now)\n\n**Output:**\n- Current mahadasha, antardasha, pratyantardasha, sookshma, prana (all 5 levels)\n- Percentage elapsed in each period\n- Time remaining in each period\n\n**Example:**\n`GET /v2/dasha/current?locationId=1276300&datetime=1993-03-12T05:30:00`\n`GET /v2/dasha/current?locationId=1276300&datetime=1993-03-12T05:30:00&currentDate=2025-01-01T00:00:00`\n    ","operationId":"getCurrentDasha","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID for birth location. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Birth latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Birth longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier for birth location. Required if locationId not provided.","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Birth location elevation in meters above sea level.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss. Values are validated.","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code for sidereal calculation. 1=Lahiri (default), 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}},{"name":"currentDate","required":false,"in":"query","description":"Date to check current running dasha. If not provided, uses current system time. Values are validated.","schema":{"example":"2024-03-15T12:00:00","type":"string"}}],"responses":{"200":{"description":"Current dasha found","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/CurrentDashaResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get current running dasha","tags":["Dasha"],"security":[{"RuntimeApiKey":[]}]}},"/v2/transit":{"get":{"description":"\nCalculate current (transit) positions of 12 planets (Navagraha + Uranus/Neptune/Pluto).\n\n**Input:**\n- datetime: Date/time for transit calculation\n- tz: Timezone (optional, defaults to Asia/Kolkata)\n- ayanamsa: Ayanamsa code (default: Lahiri)\n- includeNakshatra: Include nakshatra details (optional)\n- timeline: Timeline depth (default sign)\n- timelineDetail: summary or full\n- timelineLookaheadYears: Optional permanence range override\n\n**Output:**\n- All planet positions with sign, degree, retrograde status\n- Optional: Nakshatra details for each planet\n\n**Example:**\n`GET /v2/transit?datetime=2024-03-15T12:00:00`\n`GET /v2/transit?datetime=2024-03-15T12:00:00&tz=Asia/Kolkata&includeNakshatra=true&timeline=sign`\n`GET /v2/transit?datetime=2024-03-15T12:00:00&timeline=sign_nakshatra_pada&timelineDetail=full`\n    ","operationId":"getTransitPositions","parameters":[{"name":"datetime","required":true,"in":"query","description":"Datetime for transit positions in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss. Values are validated (e.g., month must be 01-12).","schema":{"example":"2024-03-15T12:00:00","type":"string"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier for the datetime. Defaults to Asia/Kolkata if not provided.","schema":{"default":"Asia/Kolkata","example":"Asia/Kolkata","type":"string","enum":["Asia/Kolkata","UTC","Asia/Dubai","Asia/Singapore","Asia/Tokyo","Europe/London","Europe/Berlin","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","Australia/Sydney"]}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code for sidereal calculation. 1=Lahiri (default), 3=Raman, 5=KP. Use 0 for tropical.","schema":{"default":1,"example":1,"type":"number"}},{"name":"includeNakshatra","required":false,"in":"query","description":"Include nakshatra details for each planet position.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"includeSignExit","required":false,"in":"query","description":"Include sign exit dates showing when each planet will enter the next sign. Useful for transit timing.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"timeline","required":false,"in":"query","description":"Transit timeline depth. Default is sign timeline only. Use none to disable timeline.","schema":{"default":"sign","example":"sign","type":"string","enum":["none","sign","sign_nakshatra","sign_nakshatra_pada"]}},{"name":"timelineDetail","required":false,"in":"query","description":"Timeline verbosity. summary gives compact next/final/returns. full adds event stream.","schema":{"default":"summary","example":"summary","type":"string","enum":["summary","full"]}},{"name":"timelineLookaheadYears","required":false,"in":"query","description":"Optional lookahead range in years for timeline permanence checks. If omitted, per-planet optimized defaults are used.","schema":{"minimum":0.1,"maximum":120,"example":12,"type":"number"}}],"responses":{"200":{"description":"Transit positions calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/TransitResponseDto"}}}]}}}},"400":{"description":"Invalid timeline parameters. Example: timelineDetail=full is not allowed when timeline=none.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get current planetary positions","tags":["Transit"],"security":[{"RuntimeApiKey":[]}]}},"/v2/transit/to-natal":{"get":{"description":"\nCalculate transit positions and their relationship to a birth chart.\n\nUses **Parashari house-based aspect rules** (BPHS Chapter 65-66):\n- All planets: 7th aspect\n- Mars: additionally 4th and 8th\n- Jupiter: additionally 5th and 9th\n- Saturn: additionally 3rd and 10th\n- Rahu/Ketu: 7th-only (nodes have no special aspects)\n- Outer planets (Uranus/Neptune/Pluto): no Vedic aspects\n\n**Input:**\n- datetime: Transit date/time\n- birthDatetime: Birth date/time\n- Birth location (locationId OR lat/lng/birthTz)\n- ayanamsa: Ayanamsa code\n- includeSignExit: Include sign transition estimates for transit planets\n- includeAspects: Calculate Parashari transit aspects to natal planets\n- timeline: Timeline depth (default sign)\n- timelineDetail: summary or full\n- timelineLookaheadYears: Optional permanence range override\n\n**Output:**\n- Current transit positions\n- Which natal house each transit is passing through\n- Optional: Parashari transit aspects with aspectType (7th, 4th, 5th, 9th, etc.)\n\n**Example:**\n`GET /v2/transit/to-natal?datetime=2024-03-15T12:00:00&birthDatetime=1993-03-12T05:30:00&locationId=1276300`\n`GET /v2/transit/to-natal?datetime=2024-03-15T12:00:00&birthDatetime=1993-03-12T05:30:00&locationId=1276300&includeAspects=true`\n\n**Classical Reference:** BPHS Chapter 65-66 (Gochar Phala)\n    ","operationId":"getTransitsToNatal","parameters":[{"name":"datetime","required":true,"in":"query","description":"Datetime for transit positions in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss. Values are validated (e.g., month must be 01-12).","schema":{"example":"2024-03-15T12:00:00","type":"string"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier for the datetime. Defaults to Asia/Kolkata if not provided.","schema":{"default":"Asia/Kolkata","example":"Asia/Kolkata","type":"string","enum":["Asia/Kolkata","UTC","Asia/Dubai","Asia/Singapore","Asia/Tokyo","Europe/London","Europe/Berlin","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","Australia/Sydney"]}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code for sidereal calculation. 1=Lahiri (default), 3=Raman, 5=KP. Use 0 for tropical.","schema":{"default":1,"example":1,"type":"number"}},{"name":"includeNakshatra","required":false,"in":"query","description":"Include nakshatra details for each planet position.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"includeSignExit","required":false,"in":"query","description":"Include sign exit dates showing when each planet will enter the next sign. Useful for transit timing.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"timeline","required":false,"in":"query","description":"Transit timeline depth. Default is sign timeline only. Use none to disable timeline.","schema":{"default":"sign","example":"sign","type":"string","enum":["none","sign","sign_nakshatra","sign_nakshatra_pada"]}},{"name":"timelineDetail","required":false,"in":"query","description":"Timeline verbosity. summary gives compact next/final/returns. full adds event stream.","schema":{"default":"summary","example":"summary","type":"string","enum":["summary","full"]}},{"name":"timelineLookaheadYears","required":false,"in":"query","description":"Optional lookahead range in years for timeline permanence checks. If omitted, per-planet optimized defaults are used.","schema":{"minimum":0.1,"maximum":120,"example":12,"type":"number"}},{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID for birth location. Use GET /v2/geocode/search to find. When locationId is provided, do not send lat/lng/birthTz.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Birth latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Birth longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"birthTz","required":false,"in":"query","description":"IANA timezone for birth location. Required if locationId not provided.","schema":{"example":"Asia/Kolkata","type":"string","enum":["Asia/Kolkata","UTC","Asia/Dubai","Asia/Singapore","Asia/Tokyo","Europe/London","Europe/Berlin","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","Australia/Sydney"]}},{"name":"birthDatetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Required for natal chart comparison. Values are validated.","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"includeAspects","required":false,"in":"query","description":"Include aspects from transit planets to natal planets.","schema":{"default":false,"example":false,"type":"boolean"}}],"responses":{"200":{"description":"Transit to natal analysis completed","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/TransitToNatalResponseDto"}}}]}}}},"400":{"description":"Invalid timeline parameters. Example: timelineDetail=full is not allowed when timeline=none.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get transit positions relative to birth chart","tags":["Transit"],"security":[{"RuntimeApiKey":[]}]}},"/v2/transit/timeline":{"get":{"description":"\nGet timeline-first transit data with optimized defaults for prediction workflows.\n\n**Defaults:**\n- timeline=sign (ON by default)\n- timelineDetail=summary\n- per-planet optimized lookahead when timelineLookaheadYears is omitted\n- async routing by cost estimate (or force with async=true)\n\n**Use cases:**\n- Find next and stable ingress for sign/nakshatra/pada\n- Detect retrograde return loops\n- Feed compact timeline summaries into AI prediction prompts\n\n**Examples:**\n`GET /v2/transit/timeline?datetime=2026-04-21T02:00:00`\n`GET /v2/transit/timeline?datetime=2026-04-21T02:00:00&planets=saturn,jupiter&timeline=sign_nakshatra_pada&timelineDetail=full`\n`GET /v2/transit/timeline?datetime=2026-04-21T02:00:00&timeline=sign_nakshatra&timelineDetail=full&async=true`\n    ","operationId":"getTransitTimeline","parameters":[{"name":"datetime","required":true,"in":"query","description":"Datetime for transit positions in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss. Values are validated (e.g., month must be 01-12).","schema":{"example":"2024-03-15T12:00:00","type":"string"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier for the datetime. Defaults to Asia/Kolkata if not provided.","schema":{"default":"Asia/Kolkata","example":"Asia/Kolkata","type":"string","enum":["Asia/Kolkata","UTC","Asia/Dubai","Asia/Singapore","Asia/Tokyo","Europe/London","Europe/Berlin","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","Australia/Sydney"]}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code for sidereal calculation. 1=Lahiri (default), 3=Raman, 5=KP. Use 0 for tropical.","schema":{"default":1,"example":1,"type":"number"}},{"name":"includeNakshatra","required":false,"in":"query","description":"Include nakshatra details for each planet position.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"includeSignExit","required":false,"in":"query","description":"Include sign exit dates showing when each planet will enter the next sign. Useful for transit timing.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"timeline","required":false,"in":"query","description":"Transit timeline depth. Default is sign timeline only. Use none to disable timeline.","schema":{"default":"sign","example":"sign","type":"string","enum":["none","sign","sign_nakshatra","sign_nakshatra_pada"]}},{"name":"timelineDetail","required":false,"in":"query","description":"Timeline verbosity. summary gives compact next/final/returns. full adds event stream.","schema":{"default":"summary","example":"summary","type":"string","enum":["summary","full"]}},{"name":"timelineLookaheadYears","required":false,"in":"query","description":"Optional lookahead range in years for timeline permanence checks. If omitted, per-planet optimized defaults are used.","schema":{"minimum":0.1,"maximum":120,"example":12,"type":"number"}},{"name":"async","required":false,"in":"query","description":"Force async execution via reverse job queue. If false, auto-routing decides based on estimated cost.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"planets","required":false,"in":"query","description":"Optional comma-separated planet list. Defaults to all supported planets (sun..pluto).","schema":{"example":"saturn,jupiter,rahu","type":"string"}}],"responses":{"200":{"description":"Transit timeline calculated (sync) or queued as async job (for heavy request).","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/TransitTimelineResponseDto"},{"$ref":"#/components/schemas/ReverseJobAcceptedDto"}]}}}]}}}},"400":{"description":"Invalid timeline request. Example: timelineDetail=full requires timeline to include at least one dimension.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get dedicated transit timeline for AI/research","tags":["Transit"],"security":[{"RuntimeApiKey":[]}]}},"/v2/transit/reverse":{"post":{"description":"\nFind time windows where selected planetary transit conditions match.\n\nSupports multi-planet AND constraints:\n- planet\n- sign\n- nakshatra\n- pada\n- degree ± tolerance\n- motion (direct/retrograde/stationary)\n    ","operationId":"reverseTransit","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReverseTransitRequestDto"},"examples":{"sunInAries":{"summary":"Find when Sun transits Aries (Mesha Sankranti)","value":{"startDate":"2026-01-01","endDate":"2026-12-31","tz":"Asia/Kolkata","ayanamsa":1,"constraints":{"planets":[{"planet":"sun","sign":"aries"}]},"limit":10}}}}}},"responses":{"200":{"description":"Reverse transit search completed, or queued as async job for heavy request.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/ReverseTransitResponseDto"},{"$ref":"#/components/schemas/ReverseJobAcceptedDto"}]}}}]}}}},"400":{"description":"Invalid constraints or date range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Reverse transit search by planetary constraints","tags":["Transit"],"security":[{"RuntimeApiKey":[]}]}},"/v2/festivals/{year}":{"get":{"description":"\nReturns all Hindu festivals for the specified year with calculated dates.\nFestival dates are computed using reverse panchang (finding dates that match specific tithi/nakshatra conditions).\n\n**Categories:**\n- `major` - Pan-India festivals (Diwali, Holi, Dussehra, etc.)\n- `regional` - State-specific festivals (Onam, Pongal, Ugadi, etc.)\n- `vrat` - Fasting days (Ekadashi, Shivaratri, Karwa Chauth, etc.)\n- `jayanti` - Birth anniversaries (Janmashtami, Ram Navami, etc.)\n- `seasonal` - Seasonal festivals (Makar Sankranti, Baisakhi, etc.)\n\n**Caching:**\nFestival dates are astronomically deterministic - same inputs always produce same outputs.\nResults are cached for 1 year.\n    ","operationId":"getYearFestivals","parameters":[{"name":"year","required":true,"in":"path","description":"Year (e.g., 2026)","schema":{"example":2026,"type":"number"}},{"name":"locationId","required":false,"in":"query","description":"GeoNames location ID for sunrise/sunset calculations","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude (-90 to 90). Required with lng and tz if locationId not provided.","schema":{"example":25.2445,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude (-180 to 180). Required with lat and tz if locationId not provided.","schema":{"example":86.9718,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone (e.g., Asia/Kolkata). Required with lat and lng if locationId not provided.","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code (1=Lahiri, 3=Raman, 5=KP). Default: 1","schema":{"example":1,"type":"number"}},{"name":"ids","required":false,"in":"query","description":"Comma-separated festival IDs to filter (e.g., diwali,holi,navratri-sharad)","schema":{"example":"diwali,holi","type":"string"}},{"name":"category","required":false,"in":"query","description":"Filter by festival category","schema":{"enum":["major","regional","vrat","jayanti","seasonal"],"type":"string"}}],"responses":{"400":{"description":"Invalid year, location coordinates, or filter parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get Hindu festivals for a year","tags":["Festivals"],"security":[{"RuntimeApiKey":[]}]}},"/v2/festivals/{year}/{id}":{"get":{"description":"\nReturns detailed information for a specific festival in the given year.\nIncludes exact timing, sub-events (for multi-day festivals), and significance.\n\n**Example IDs:**\n- `diwali` - Festival of lights\n- `holi` - Festival of colors\n- `navratri-sharad` - Autumn Navratri\n- `janmashtami` - Krishna's birthday\n- `maha-shivaratri` - Great night of Shiva\n    ","operationId":"getFestival","parameters":[{"name":"year","required":true,"in":"path","description":"Year (e.g., 2026)","schema":{"example":2026,"type":"number"}},{"name":"id","required":true,"in":"path","description":"Festival ID (e.g., diwali, holi, navratri-sharad)","schema":{"example":"diwali","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"GeoNames location ID","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude (-90 to 90)","schema":{"example":25.2445,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude (-180 to 180)","schema":{"example":86.9718,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. Default: 1 (Lahiri)","schema":{"example":1,"type":"number"}}],"responses":{"400":{"description":"Invalid year, festival ID, or location parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get specific festival details","tags":["Festivals"],"security":[{"RuntimeApiKey":[]}]}},"/v2/astronomical":{"get":{"description":"\nCalculate sunrise, sunset, moonrise, moonset, and related astronomical times for a specific date and location.\n\n**Calculation Methods:**\n- `standard`: Upper limb with atmospheric refraction (civil/meteorological use, matches timeanddate.com)\n- `hindu`: Disc center at geometric horizon (Vedic/religious use, matches traditional panchangs)\n\n**Sun Output includes:**\n- Sunrise and sunset times\n- Solar noon (sun at highest point) and midnight (sun at lowest point)\n- Day and night length\n\n**Moon Output includes:**\n- Moonrise, moonset, and moon transit\n- Moon phase (name, illumination %, paksha)\n- Moon position (tropical longitude, latitude)\n\n**Time Formats:**\nAll times are provided in multiple formats:\n- `jd`: Julian Day for astronomical calculations\n- `utc`: ISO 8601 UTC timestamp\n- `local`: ISO 8601 local timestamp with timezone offset\n- `localTime`: HH:mm:ss format\n- `formatted`: Human-readable string with timezone\n\n**Polar Regions:**\nAt extreme latitudes, the sun or moon may not rise or set on certain dates.\nThe response will include `polarCondition` with an explanation.\n\n**Cache:** DAILY (1 day) - Astronomical times change daily for each location.\n\n**Accuracy:** Swiss Ephemeris provides sub-arcminute accuracy. Results are\nverified against timeanddate.com, NOAA Solar Calculator, and USNO data.\n    ","operationId":"getAstronomicalTimes","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":19.076,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":72.877,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Affects refraction calculations.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":14,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Date in ISO 8601 format (local time). Astronomical times are calculated for this date. Format: YYYY-MM-DDTHH:mm:ss","schema":{"example":"2024-03-15T06:00:00","type":"string"}},{"name":"method","required":false,"in":"query","description":"Calculation method:\n- standard: Upper limb with atmospheric refraction (civil/meteorological use, matches timeanddate.com)\n- hindu: Disc center at geometric horizon (Vedic/religious use, matches traditional panchangs)","schema":{"default":"standard","example":"standard","type":"string","enum":["standard","hindu"]}}],"responses":{"200":{"description":"Astronomical times calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/AstronomicalTimesResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get combined sun and moon times","tags":["Astronomical Times"],"security":[{"RuntimeApiKey":[]}]}},"/v2/astronomical/sun":{"get":{"description":"\nCalculate sunrise, sunset, solar noon, twilight times for a specific location and date.\n\n**Calculation Methods:**\n- `standard`: Upper limb touching horizon with atmospheric refraction (~34 arcminutes).\n  This is the civil definition used by meteorological services and matches timeanddate.com.\n- `hindu`: Disc center at geometric horizon (no refraction correction).\n  This matches traditional Vedic/Hindu sunrise/sunset used for religious observances.\n  Hindu sunrise is typically 2-4 minutes later than standard sunrise.\n\n**Twilight Phases (when `includeTwilight=true`):**\n- **Civil (6°)**: Sun is 6° below horizon. Outdoor activities possible without artificial light.\n  The horizon and terrestrial objects are clearly distinguishable.\n- **Nautical (12°)**: Sun is 12° below horizon. The horizon is visible at sea.\n  General outlines of objects are distinguishable.\n- **Astronomical (18°)**: Sun is 18° below horizon. Full astronomical darkness.\n  Sky is dark enough for all astronomical observations.\n\n**Output includes:**\n- Sunrise and sunset times\n- Solar noon (sun at highest altitude, upper meridian transit)\n- Solar midnight (sun at lowest altitude, lower meridian transit)\n- Day length (sunrise to sunset)\n- Night length (sunset to next sunrise)\n- Twilight times for all three phases (if requested)\n\n**Polar Regions:**\nAt latitudes above ~66.5°, the sun may not rise (polar night) or set (midnight sun)\nduring certain periods of the year. The response will include `polarCondition`.\n\n**Cache:** DAILY (1 day)\n    ","operationId":"getSunTimes","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":19.076,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":72.877,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Affects refraction calculations.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":14,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Date in ISO 8601 format (local time). Astronomical times are calculated for this date. Format: YYYY-MM-DDTHH:mm:ss","schema":{"example":"2024-03-15T06:00:00","type":"string"}},{"name":"method","required":false,"in":"query","description":"Calculation method:\n- standard: Upper limb with atmospheric refraction (civil/meteorological use, matches timeanddate.com)\n- hindu: Disc center at geometric horizon (Vedic/religious use, matches traditional panchangs)","schema":{"default":"standard","example":"standard","type":"string","enum":["standard","hindu"]}},{"name":"includeTwilight","required":false,"in":"query","description":"Include twilight times (civil, nautical, astronomical dawn/dusk)","schema":{"default":true,"example":true,"type":"boolean"}}],"responses":{"200":{"description":"Sun times calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/SunTimesResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get sun times for a date","tags":["Astronomical Times"],"security":[{"RuntimeApiKey":[]}]}},"/v2/astronomical/moon":{"get":{"description":"\nCalculate moonrise, moonset, lunar transit, and moon phase information for a specific date and location.\n\n**Moon Timing Notes:**\n- Moon times shift by approximately 50 minutes later each day\n- On some days, the moon may not rise or set (particularly at high latitudes)\n- Moonrise can occur after sunset (evening moonrise) or before sunrise (early morning moonrise)\n\n**Phase Information (when `includePhase=true`):**\n- **name**: Phase name (new, waxing-crescent, first-quarter, waxing-gibbous, full, waning-gibbous, last-quarter, waning-crescent)\n- **angle**: Phase angle in degrees (0° = New Moon, 180° = Full Moon)\n- **illumination**: Percentage of visible disk illuminated (0-100%)\n- **paksha**: Lunar fortnight for Vedic traditions\n  - `shukla`: Bright/waxing fortnight (new moon to full moon)\n  - `krishna`: Dark/waning fortnight (full moon to new moon)\n- **isWaxing**: Whether the moon is growing brighter\n- **daysSinceNew**: Days since the last new moon\n- **daysUntilFull**: Days until the next full moon\n\n**Output includes:**\n- Moonrise, moonset, and moon transit times\n- Moon phase details\n- Moon position (tropical longitude and latitude)\n- Evening visibility indicator\n\n**Cache:** DAILY (1 day)\n    ","operationId":"getMoonTimes","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":19.076,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":72.877,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Affects refraction calculations.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":14,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Date in ISO 8601 format (local time). Astronomical times are calculated for this date. Format: YYYY-MM-DDTHH:mm:ss","schema":{"example":"2024-03-15T06:00:00","type":"string"}},{"name":"method","required":false,"in":"query","description":"Calculation method:\n- standard: Upper limb with atmospheric refraction (civil/meteorological use, matches timeanddate.com)\n- hindu: Disc center at geometric horizon (Vedic/religious use, matches traditional panchangs)","schema":{"default":"standard","example":"standard","type":"string","enum":["standard","hindu"]}},{"name":"includePhase","required":false,"in":"query","description":"Include moon phase information (name, illumination, paksha)","schema":{"default":true,"example":true,"type":"boolean"}}],"responses":{"200":{"description":"Moon times calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/MoonTimesResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get moon times for a date","tags":["Astronomical Times"],"security":[{"RuntimeApiKey":[]}]}},"/v2/astronomical/eclipses":{"get":{"description":"\nSearch deterministic eclipse events (solar, lunar, or both) in a UTC date range.\n\n**Range Contract:**\n- startDateUtc/endDateUtc are interpreted as UTC date boundaries.\n- If location input is provided, response also includes local-time fields and local visibility.\n\n**Output:**\n- Event type normalization (total/partial/annular/annular-total/penumbral)\n- Contact timings and durations\n- Optional local visibility details (isVisible, local contacts, local duration)\n- Optional full Swiss raw arrays with `detailLevel=full`\n\n**Async Routing:**\n- auto queue by cost-estimator\n- forced queue for ranges >= 20 years\n- queue on demand with `runAsync=true`\n    ","operationId":"searchEclipses","parameters":[{"name":"startDateUtc","required":true,"in":"query","description":"UTC date boundary start in YYYY-MM-DD format. Filtering is always UTC based.","schema":{"example":"2026-01-01","type":"string"}},{"name":"endDateUtc","required":true,"in":"query","description":"UTC date boundary end in YYYY-MM-DD format. Filtering is always UTC based.","schema":{"example":"2026-12-31","type":"string"}},{"name":"eclipseType","required":false,"in":"query","description":"Which eclipse type should be included in result.","schema":{"default":"both","example":"both","type":"string","enum":["solar","lunar","both"]}},{"name":"detailLevel","required":false,"in":"query","description":"summary gives compact payload. full includes Swiss raw arrays and advanced fields.","schema":{"default":"summary","example":"summary","type":"string","enum":["summary","full"]}},{"name":"isVisibleOnly","required":false,"in":"query","description":"If true, return only events visible at provided location. Requires location input.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"runAsync","required":false,"in":"query","description":"If true, force async route when queue is available and return job handle.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"locationId","required":false,"in":"query","description":"GeoNames location id for local visibility and local time enrichment.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required with lng and tz when locationId is not given.","schema":{"minimum":-90,"maximum":90,"example":25.2445,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required with lat and tz when locationId is not given.","schema":{"minimum":-180,"maximum":180,"example":86.9718,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone id. Required with lat/lng for location enrichment.","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Observer elevation in meters (optional).","schema":{"minimum":-500,"maximum":10000,"example":52,"type":"number"}}],"responses":{"200":{"description":"Eclipse search completed sync, or queued as async job for heavy request.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/EclipseSearchResponseDto"},{"$ref":"#/components/schemas/ReverseJobAcceptedDto"}]}}}]}}}},"400":{"description":"Invalid date range, location, or filter settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Search solar and lunar eclipses","tags":["Astronomical Times"],"security":[{"RuntimeApiKey":[]}]}},"/v2/matching/ashtakoot":{"post":{"description":"\nCalculate marriage compatibility using the traditional Ashtakoot (8-factor) system.\n\n**The 8 Kootas:**\n1. **Varna** (1 pt) - Spiritual/ego compatibility based on nakshatra caste\n2. **Vashya** (2 pts) - Dominance pattern based on Moon sign\n3. **Tara** (3 pts) - Birth star compatibility (nakshatras counted from each other)\n4. **Yoni** (4 pts) - Physical/sexual compatibility (animal symbols)\n5. **Graha Maitri** (5 pts) - Mental compatibility (Moon sign lords' friendship)\n6. **Gana** (6 pts) - Temperament (Deva/Manushya/Rakshasa)\n7. **Bhakoot** (7 pts) - Love and family harmony (Moon sign relationship)\n8. **Nadi** (8 pts) - Health and progeny (genetic compatibility)\n\n**Total: 36 points**\n\n**Important Doshas:**\n- **Nadi Dosha** - Same nadi (0 points) may indicate health/progeny issues\n- **Bhakoot Dosha** - Certain sign combinations (2-12, 6-8, 5-9) indicate challenges\n\n**Input:**\nBoth persons require birth datetime and location. Location can be:\n- GeoNames `locationId` (preferred, auto-resolves coordinates)\n- Manual coordinates: `lat`, `lng`, `tz`\n\n**Cache:** IMMUTABLE (1 year) - Astronomical data is deterministic.\n\n**Classical Reference:** Muhurta Chintamani\n    ","operationId":"calculateAshtakoot","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AshtakootRequestDto"},"examples":{"bhagalpurPatnaMatch":{"summary":"Ashtakoota Guna Milan sample request","value":{"groom":{"name":"groom","locationId":1276300,"datetime":"1993-03-12T05:30:00"},"bride":{"name":"bride","locationId":1260086,"datetime":"1995-07-18T11:15:00"},"ayanamsa":1}}}}}},"responses":{"200":{"description":"Matching calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/AshtakootResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Calculate Ashtakoot (8-factor) Guna Milan","tags":["Matching"],"security":[{"RuntimeApiKey":[]}]}},"/v2/strength/ashtakavarga":{"get":{"description":"\nCalculate the Ashtakavarga strength analysis for a birth chart.\n\n**Ashtakavarga Components:**\n- **BAV (Bhinnashtakavarga)**: Individual planet's bindu distribution across 12 signs\n- **SAV (Sarvashtakavarga)**: Combined strength from all 7 planets\n\n**How It Works:**\nEach of the 8 contributors (7 planets + Lagna) assigns benefic points (bindus)\nto each sign based on fixed rules from Brihat Parashara Hora Shastra.\n\n**Key Values:**\n- Each planet's BAV shows 0-8 bindus per sign\n- SAV shows 0-56 bindus per sign (typically 18-35)\n- **SAV Grand Total is ALWAYS exactly 337** for any valid chart\n\n**Interpretation Thresholds:**\n- SAV ≥ 28 in a sign: Strong area\n- SAV ≤ 25 in a sign: Weak area\n- Planet BAV ≥ 4: Planet strong in that sign\n- Planet BAV ≤ 3: Planet weak in that sign\n\n**Use Cases:**\n- Transit analysis (planets transiting high-bindu signs give better results)\n- Identify strongest/weakest areas in the chart\n- Muhurta selection (choose times when Moon transits high-SAV signs)\n\n**Cache:** IMMUTABLE (1 year) - Astronomical data is deterministic.\n\n**Classical Reference:** Brihat Parashara Hora Shastra\n    ","operationId":"getAshtakavarga","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.2445,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":86.9718,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided.","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":52,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}}],"responses":{"200":{"description":"Ashtakavarga calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/AshtakavargaResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Calculate Ashtakavarga (8-fold planetary strength)","tags":["Strength"],"security":[{"RuntimeApiKey":[]}]}},"/v2/strength/shadbala":{"get":{"description":"\nCalculate the Shadbala (six-fold strength) analysis for a birth chart per BPHS Ch.27.\n\n**Shadbala Components (all in Virupas, 60 Virupas = 1 Rupa):**\n\n1. **Sthana Bala** (Positional Strength):\n   - Uchcha Bala: Exaltation strength (distance from debilitation point ÷ 3)\n   - Saptavargaja Bala: Strength across 7 divisional charts (D1/D2/D3/D7/D9/D12/D30)\n   - Ojayugmarasi Bala: Odd/even sign & navamsha parity\n   - Kendradi Bala: Angular house placement (Kendra/Panapara/Apoklima)\n   - Drekkana Bala: Decanate gender match\n\n2. **Dig Bala** (Directional Strength): Distance from directional house cusp\n\n3. **Kala Bala** (Temporal Strength):\n   - Natonnata Bala: Day/night strength\n   - Paksha Bala: Lunar phase strength\n   - Tribhaga Bala: Three-part day/night strength\n   - Varsha-Masa-Dina-Hora Bala: Year/Month/Day/Hour lord strength (15/30/45/60 Virupas)\n   - Ayana Bala: Solstice strength via true declination and true obliquity\n\n4. **Cheshta Bala** (Motional Strength):\n   - Sun: Ayana Bala after Sun-specific Ayana doubling\n   - Moon: Paksha Bala\n   - Mars-Saturn: Seeghra Kendra formula using orbital elements\n\n5. **Naisargika Bala** (Natural/Intrinsic Strength): Fixed per BPHS\n\n6. **Drik Bala** (Aspectual Strength): Vedic aspects with selectable method\n   - `drikBala=graha` (default): stable current Graha Drishti output; safe for existing clients\n   - `drikBala=sputa`: exact longitude-based Sputa Drishti interpolation with benefic/malefic rectification\n\n**Drik Bala Method UX:**\n- Omit `drikBala` for the stable default `graha` method.\n- Use `drikBala=sputa` only when you want Sputa Drishti. This can change Drik Bala, total Shadbala, strongest/weakest planets, and strength classification.\n- The response includes `settings.drikBala` and each planet includes `drikBala.method` for auditability.\n- Sputa contributions include exact angle, raw Sputa Virupas, rectification factor, and benefic/malefic nature.\n\n**Required Strength Thresholds (in Rupas):**\nSun: 6.5 | Moon: 6.0 | Mars: 5.0 | Mercury: 7.0 | Jupiter: 6.5 | Venus: 5.5 | Saturn: 5.0\n\n**Astronomical Precision:**\n- Mean orbital elements (VSOP87) for Cheshta Bala Seeghra Kendra\n- True obliquity of the ecliptic and equatorial declination for Ayana Bala\n- Exact Mesha Sankranti solar ingress calculations for Varsha Lord\n\n**Classical Reference:** Brihat Parashara Hora Shastra, Chapter 27\n    ","operationId":"getShadbala","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.2445,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":86.9718,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided.","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":52,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP.","schema":{"default":1,"example":1,"type":"number"}},{"name":"drikBala","required":false,"in":"query","description":"Optional Drik Bala method. graha is the default stable method. sputa uses exact longitude-based Sputa Drishti interpolation and can change totals/classifications.","schema":{"enum":["graha","sputa"],"type":"string"}}],"responses":{"200":{"description":"Shadbala calculated successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ShadbalaResponseDto"}}}]}}}},"400":{"description":"Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Calculate Shadbala (six-fold planetary strength)","tags":["Strength"],"security":[{"RuntimeApiKey":[]}]}},"/v2/interpret/planet-house":{"get":{"description":"\nReturns interpretation for a planet placed in a specific house.\nCovers: personality, career, wealth, health, relationships, spirituality.\n\n**Response modes:**\n- `standard`: Full interpretation with all fields\n- `compact`: Minimal output (summary + keywords)\n- `thematic`: LLM-optimized (themes + context for AI)\n\n**Classical sources:** BPHS, Phaladeepika, Saravali, B.V. Raman\n    ","operationId":"getPlanetHouse","parameters":[{"name":"planet","required":true,"in":"query","description":"Planet name (lowercase)","schema":{"example":"sun","type":"string","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu","uranus","neptune","pluto"]}},{"name":"house","required":true,"in":"query","description":"House number (1-12)","schema":{"minimum":1,"maximum":12,"example":1,"type":"number"}},{"name":"mode","required":false,"in":"query","description":"Response mode: standard (full), compact (minimal), thematic (LLM-optimized)","schema":{"enum":["standard","compact","thematic"],"type":"string"}}],"responses":{"400":{"description":"Invalid planet, house, sign, nakshatra, or mode parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get planet-in-house interpretation","tags":["Interpretation"],"security":[{"RuntimeApiKey":[]}]}},"/v2/interpret/planet-sign":{"get":{"description":"\nReturns interpretation for a planet placed in a specific sign.\nCovers: personality, career, health, relationships, dignity analysis.\n\n**Dignity levels:** exalted, own, friend, neutral, enemy, debilitated\n\n**Response modes:**\n- `standard`: Full interpretation with all fields\n- `compact`: Minimal output (summary + keywords)\n- `thematic`: LLM-optimized (themes + context for AI)\n    ","operationId":"getPlanetSign","parameters":[{"name":"planet","required":true,"in":"query","description":"Planet name (lowercase)","schema":{"example":"moon","type":"string","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu","uranus","neptune","pluto"]}},{"name":"sign","required":true,"in":"query","description":"Sign name (lowercase)","schema":{"example":"cancer","type":"string","enum":["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces"]}},{"name":"mode","required":false,"in":"query","description":"Response mode: standard (full), compact (minimal), thematic (LLM-optimized)","schema":{"enum":["standard","compact","thematic"],"type":"string"}}],"responses":{"400":{"description":"Invalid planet or sign parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get planet-in-sign interpretation","tags":["Interpretation"],"security":[{"RuntimeApiKey":[]}]}},"/v2/interpret/nakshatra":{"get":{"description":"\nReturns interpretation for a lunar mansion (nakshatra).\nCovers: core energy, primary qualities, life themes, deity, symbol, lord.\n\n**27 Nakshatras:** Ashwini to Revati\n\n**Response modes:**\n- `standard`: Full nakshatra data\n- `compact`: Minimal output (summary + keywords)\n- `thematic`: LLM-optimized (themes + context for AI)\n    ","operationId":"getNakshatra","parameters":[{"name":"nakshatra","required":true,"in":"query","description":"Nakshatra name (lowercase, hyphenated)","schema":{"example":"ashwini","type":"string","enum":["ashwini","bharani","krittika","rohini","mrigashira","ardra","punarvasu","pushya","ashlesha","magha","purva-phalguni","uttara-phalguni","hasta","chitra","swati","vishakha","anuradha","jyeshtha","mula","purva-ashadha","uttara-ashadha","shravana","dhanishta","shatabhisha","purva-bhadrapada","uttara-bhadrapada","revati"]}},{"name":"mode","required":false,"in":"query","description":"Response mode: standard (full), compact (minimal), thematic (LLM-optimized)","schema":{"enum":["standard","compact","thematic"],"type":"string"}}],"responses":{"400":{"description":"Invalid nakshatra or mode parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get nakshatra interpretation","tags":["Interpretation"],"security":[{"RuntimeApiKey":[]}]}},"/v2/interpret/lordship":{"get":{"description":"\nReturns interpretation for a house lord placed in another house.\nCritical for accurate Vedic predictions.\n\n**Example:** 1st lord in 5th house = Lagna lord placed in house of children/creativity\n\n**144 combinations:** 12 lords × 12 placements\n\n**Response modes:**\n- `standard`: Full interpretation with timing indicators\n- `compact`: Minimal output (summary + keywords)\n- `thematic`: LLM-optimized (themes + context for AI)\n    ","operationId":"getLordship","parameters":[{"name":"lord","required":true,"in":"query","description":"Lord of house number (1-12)","schema":{"minimum":1,"maximum":12,"example":1,"type":"number"}},{"name":"placement","required":true,"in":"query","description":"Placed in house number (1-12)","schema":{"minimum":1,"maximum":12,"example":5,"type":"number"}},{"name":"mode","required":false,"in":"query","description":"Response mode: standard (full), compact (minimal), thematic (LLM-optimized)","schema":{"enum":["standard","compact","thematic"],"type":"string"}}],"responses":{"400":{"description":"Invalid lord or placement house number (must be 1-12)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get house lordship interpretation","tags":["Interpretation"],"security":[{"RuntimeApiKey":[]}]}},"/v2/interpret/archetype/planet/{planet}":{"get":{"description":"\nReturns core archetype for a planet.\nFoundational layer for compositional interpretation.\n\n**Includes:** Core essence, nature, element, significations, karakas,\nbody parts, diseases, gemstone, remedies, relationships, dignity details.\n    ","operationId":"getPlanetArchetype","parameters":[{"name":"planet","required":true,"in":"path","description":"Planet name (lowercase)","schema":{"example":"jupiter","type":"string","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu","uranus","neptune","pluto"]}}],"responses":{"400":{"description":"Invalid planet name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get planet archetype","tags":["Interpretation"],"security":[{"RuntimeApiKey":[]}]}},"/v2/interpret/archetype/house/{house}":{"get":{"description":"\nReturns significations for a house (1-12).\nFoundational layer for understanding house meanings.\n\n**Includes:** Primary significations, body parts, relationships,\nactivities, aims (dharma/artha/kama/moksha).\n    ","operationId":"getHouseSignification","parameters":[{"name":"house","required":true,"in":"path","description":"House number (1-12)","schema":{"minimum":1,"maximum":12,"example":7,"type":"number"}}],"responses":{"400":{"description":"Invalid house number (must be 1-12)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get house signification","tags":["Interpretation"],"security":[{"RuntimeApiKey":[]}]}},"/v2/interpret/metadata":{"get":{"description":"\nReturns statistics about available interpretation data.\nUseful for understanding API coverage.\n    ","operationId":"getInterpretationMetadata","parameters":[],"responses":{"200":{"description":""},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get interpretation coverage metadata","tags":["Interpretation"],"security":[{"RuntimeApiKey":[]}]}},"/v2/bnn/context":{"get":{"description":"\nReturns deterministic BNN context blocks for AI orchestration and astrologer verification.\n\n**Mode behavior**\n- `standard`: Full structured context\n- `thematic`: Prompt-ready compact blocks\n- `debug`: Full trace including chain-order metadata\n\nNo runtime narrative prose is generated; payload is evidence-first.\n    ","operationId":"getContext","parameters":[{"name":"locationId","required":false,"in":"query","description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields.","schema":{"example":1276300,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"Latitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-90,"maximum":90,"example":25.5941,"type":"number"}},{"name":"lng","required":false,"in":"query","description":"Longitude in decimal degrees. Required if locationId not provided.","schema":{"minimum":-180,"maximum":180,"example":85.1376,"type":"number"}},{"name":"tz","required":false,"in":"query","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London","schema":{"example":"Asia/Kolkata","type":"string"}},{"name":"elevation","required":false,"in":"query","description":"Elevation in meters above sea level. Optional, defaults to 0.","schema":{"minimum":-500,"maximum":10000,"default":0,"example":53,"type":"number"}},{"name":"datetime","required":true,"in":"query","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss or YYYY-MM-DDTHH:mm. Values are validated.","schema":{"example":"1993-03-12T05:30:00","type":"string"}},{"name":"ayanamsa","required":false,"in":"query","description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP. Ignored if system=western.","schema":{"default":1,"example":1,"type":"number"}},{"name":"system","required":false,"in":"query","description":"Astrology system. Vedic uses sidereal zodiac, Western uses tropical.","schema":{"default":"vedic","type":"string","enum":["vedic","western"]}},{"name":"houseSystem","required":false,"in":"query","description":"House system. Vedic typically uses whole-sign, Western uses Placidus.","schema":{"default":"whole-sign","type":"string","enum":["whole-sign","equal","placidus","koch","campanus","regiomontanus","porphyry"]}},{"name":"falit","required":false,"in":"query","description":"Interpretation context toggle. false (default, ~6 KB): core positions, signs, houses, basic dignity. true (~35 KB): adds dignityFlags, houseType, avasthas, specialStates, functionalNature, neechaBhanga, yuddha, parivartan, aspects, and structured interpretation context.","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"gender","required":true,"in":"query","description":"Gender required for dynamic BNN role assignment","schema":{"example":"male","type":"string","enum":["male","female"]}},{"name":"mode","required":false,"in":"query","description":"BNN response mode: standard (default), thematic (LLM-ready), debug (full trace)","schema":{"default":"standard","example":"standard","type":"string","enum":["standard","thematic","debug"]}}],"responses":{"200":{"description":"BNN context built successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/BnnContextResponseDto"}}}]}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get BNN chart context","tags":["BNN"],"security":[{"RuntimeApiKey":[]}]}},"/v2/bnn/interpret/life-area":{"post":{"description":"\nReturns life-area specific deterministic evidence for orchestration.\n\n**Mode behavior**\n- `standard`: Full life-area filtered context\n- `thematic`: Prompt-ready compact blocks\n- `debug`: Full trace including ordering and warnings\n    ","operationId":"interpretLifeArea","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BnnLifeAreaRequestDto"},"examples":{"careerLifeArea":{"summary":"BNN career life-area evidence request","value":{"birthData":{"locationId":1276300,"datetime":"1993-03-12T05:30:00","ayanamsa":1},"gender":"male","lifeArea":"career","mode":"thematic","includeDivisional":["D10"]}}}}}},"responses":{"200":{"description":"BNN life-area context built successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/BnnLifeAreaResponseDto"}}}]}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get BNN life-area interpretation context","tags":["BNN"],"security":[{"RuntimeApiKey":[]}]}},"/v2/bnn/timeline/progression":{"post":{"description":"\nReturns deterministic symbolic progression markers for Jupiter, Saturn, Rahu, and Ketu.\n\n**Mode behavior**\n- `standard`: Full natal targets and marker rows\n- `thematic`: Prompt-ready marker rows without heavy debug internals\n- `debug`: Full solved-root trace, rate metadata, and dedupe details\n\nThis endpoint returns markers only. It does not generate runtime prediction prose.\n    ","operationId":"getProgression","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BnnProgressionRequestDto"},"examples":{"earlyCareerWindow":{"summary":"BNN progression markers for ages 18 to 35","value":{"birthData":{"locationId":1276300,"datetime":"1993-03-12T05:30:00","ayanamsa":1},"gender":"male","mode":"standard","fromAge":18,"toAge":35}}}}}},"responses":{"200":{"description":"BNN progression markers built successfully","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/BnnProgressionResponseDto"}}}]}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get BNN progression marker timeline","tags":["BNN"],"security":[{"RuntimeApiKey":[]}]}},"/v2/reverse-jobs/{jobId}":{"get":{"description":"Returns queued/active/completed/failed state and progress for an async reverse computation job.","operationId":"getReverseJobStatus","parameters":[{"name":"jobId","required":true,"in":"path","description":"Short alphanumeric job ID returned in ReverseJobAcceptedDto.","schema":{"example":"A7K2","type":"string"}}],"responses":{"200":{"description":"Reverse job status fetched successfully.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ReverseJobStatusDto"}}}]}}}},"400":{"description":"Invalid job ID format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"404":{"description":"Reverse job not found or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get reverse async job status","tags":["Reverse Jobs"],"security":[{"RuntimeApiKey":[]}]}},"/v2/reverse-jobs/{jobId}/result":{"get":{"description":"Returns final completed result payload, or pending/failed state if job is not complete.","operationId":"getReverseJobResult","parameters":[{"name":"jobId","required":true,"in":"path","description":"Short alphanumeric job ID returned in ReverseJobAcceptedDto.","schema":{"example":"A7K2","type":"string"}}],"responses":{"200":{"description":"Reverse job result fetched successfully.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ApiResponseDto"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ReverseJobResultDto"}}}]}}}},"400":{"description":"Invalid job ID format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"401":{"description":"Unauthorized — missing or invalid `x-api-key` header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"404":{"description":"Reverse job not found or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"429":{"description":"Too Many Requests — rate limit exceeded for this API key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get reverse async job result","tags":["Reverse Jobs"],"security":[{"RuntimeApiKey":[]}]}}},"info":{"title":"Shreeng Engine API","description":"Deterministic Vedic Astrology, Kundli, Panchang, Dasha, Transit, BNN, and Geocode REST API.\n\n### For AI Coding Agents (Cursor, Claude Code, Antigravity, Codex)\nPoint your coding agent at [`/llms-full.txt`](https://docs.shreeng.com/llms-full.txt) for the complete endpoint + request schema Markdown reference, [`/llms.txt`](https://docs.shreeng.com/llms.txt) for the compact route index, or [`/openapi.json`](https://docs.shreeng.com/openapi.json) for raw OpenAPI 3.0 JSON.\n\n### Authentication\nRuntime API key required for all protected REST endpoints. Send via the `x-api-key` header (or `Authorization: Bearer <runtime-api-key>`). Get a free API key at https://developers.shreeng.com.\n\n### Quickstart (Copy-Paste)\n1. Resolve birth or event location via `GET /v2/geocode/search` (e.g. `city=Bhagalpur`) to get a canonical `locationId` (or pass `lat`, `lng`, and IANA `tz`).\n2. Call any domain endpoint (for example `GET /v2/chart?locationId=1276300&datetime=1993-03-12T05:30:00`) using local ISO datetime (`YYYY-MM-DDTHH:mm:ss`) and default Lahiri ayanamsa (`1`).\n\n```bash\n# Step 1: Resolve city -> canonical locationId (Bhagalpur = 1276300)\ncurl -s \"https://api.shreeng.com/v2/geocode/search?city=Bhagalpur&country=IN\" -H \"x-api-key: $SHREENG_API_KEY\"\n\n# Step 2: Calculate D1 Kundli chart (local ISO datetime, NO Z suffix)\ncurl -s \"https://api.shreeng.com/v2/chart?locationId=1276300&datetime=1993-03-12T05:30:00\" -H \"x-api-key: $SHREENG_API_KEY\"\n```\n\n```ts\nconst res = await fetch(\"https://api.shreeng.com/v2/chart?locationId=1276300&datetime=1993-03-12T05:30:00\", {\n  headers: { \"x-api-key\": process.env.SHREENG_API_KEY! },\n});\nconst { success, data, error } = await res.json();\n```\n\n### Important Rules & Common Pitfalls\n- **Datetime format (`YYYY-MM-DDTHH:mm:ss`):** Always send local civil time WITHOUT a `Z` or UTC offset (e.g. `1993-03-12T05:30:00`). Never pass JS `new Date().toISOString()` (`...Z`) or `+05:30` in query/body inputs.\n- **Location exclusivity:** Send EITHER `locationId` OR all three of `lat`, `lng`, and IANA `tz` (e.g. `Asia/Kolkata`). Do not combine both in the same request.\n- **Canonical conventions:** 1-indexed houses (`1..12`), lowercase planet/sign/nakshatra names, and default Lahiri ayanamsa (`1`) unless explicitly overridden (`3`=Raman, `5`=KP, `0`=Tropical).\n- **Standard errors, rate limits & upgrades:** Validation issues return `400` (`REQUEST_VALIDATION_FAILED` with `whatIsWrong` and `howToFix`); missing/invalid keys return `401`; plan-gated features return `403` (`TIER_UPGRADE_REQUIRED` / `DATE_RANGE_TIER_EXCEEDED`); rate/concurrency limits return `429` (`RATE_LIMIT_EXCEEDED`, `CONCURRENCY_LIMIT_EXCEEDED`, `FREE_MONTHLY_QUOTA_EXCEEDED`, or `REVERSE_QUOTA_EXCEEDED` with `Retry-After` and `X-Shreeng-Upgrade-Hint`). Enforced windows emit `X-RateLimit-{Limit,Remaining,Reset}-{burst3s,minute,hour,day}` plus `X-RateLimit-{Limit,Remaining,Reset}-month` on the Free tier.\n\n### Asynchronous Reverse Jobs\nHeavy reverse queries (`/v2/panchang/search`, `/v2/chart/reverse-d1`, `/v2/transit/reverse`, `/v2/astronomical/eclipses`) return a `ReverseJobAcceptedDto` (`statusUrl`, `resultUrl`). Poll `GET /v2/reverse-jobs/{jobId}` until completed, then fetch `GET /v2/reverse-jobs/{jobId}/result`.\n\n### Response Envelope\n- Success: `{ \"success\": true, \"data\": <payload>, \"meta\": { \"timestamp\": \"<UTC ISO>\", \"responseTimeMs\": <number> } }`\n- Error: `{ \"success\": false, \"error\": { \"statusCode\": <number>, \"errorCode\": \"<string>\", \"message\": \"<string|string[]>\" } }`","version":"1.0","contact":{"name":"Shreeng Engine","url":"https://shreeng.com"}},"tags":[{"name":"Geocode","description":"Resolve city names or latitude/longitude coordinates to canonical GeoNames location IDs and timezones."},{"name":"Chart","description":"Deterministic Parashari birth charts (D1, Navamsa, divisional Vargas), planetary longitudes, and reverse chart search."},{"name":"Panchang","description":"Daily Vedic Panchang (Tithi, Nakshatra, Yoga, Karana, Vara), muhurta windows, and reverse panchang queries."},{"name":"Dasha","description":"Vimshottari Mahadasha, Antardasha, and Pratyantardasha timelines."},{"name":"Transit","description":"Planetary transit snapshots, Gochar evaluation, Sade Sati, and reverse transit windows."},{"name":"Strength","description":"Shadbala planetary strength and Ashtakavarga bindu tables."},{"name":"Yoga","description":"Classical Parashari Yoga and Dosha detection with deterministic conditions."},{"name":"Matching","description":"Ashtakoota compatibility matching and Guna Milan scoring."},{"name":"Festivals","description":"Deterministic Hindu festival and vrat dates computed from Panchang rules."},{"name":"Astronomical Times","description":"Sunrise, sunset, moonrise, moonset, and solar/lunar eclipse timelines."},{"name":"Interpretation","description":"Verified classical placement interpretations and structured evidence modes."},{"name":"BNN","description":"Bhrigu Nandi Nadi (BNN) sequential context and life-area interpretation."},{"name":"Reverse Jobs","description":"Status and result polling endpoints for asynchronous reverse-engine computations."}],"servers":[{"url":"https://api.shreeng.com","description":"Production API"}],"components":{"securitySchemes":{"RuntimeApiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Runtime API key required for all protected REST endpoints. Send via the `x-api-key` header (or `Authorization: Bearer <runtime-api-key>`). Get a free API key at https://developers.shreeng.com."}},"schemas":{"ErrorPayloadDto":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"message":{"oneOf":[{"type":"string","example":"Validation failed"},{"type":"array","items":{"type":"string"}}]},"error":{"type":"string","example":"Bad Request"},"errorCode":{"type":"string","example":"TIER_UPGRADE_REQUIRED"},"whatIsWrong":{"type":"string","example":"Current plan does not include this feature."},"howToFix":{"type":"string","example":"Upgrade your plan at https://shreeng.com/pricing."},"requiredTier":{"type":"string","example":"developer"},"path":{"type":"string","example":"/v2/chart"},"timestamp":{"type":"string","example":"2026-04-21T10:30:00.000Z"}},"required":["statusCode","message","path","timestamp"]},"ErrorResponseDto":{"type":"object","properties":{"success":{"type":"boolean","example":false},"error":{"$ref":"#/components/schemas/ErrorPayloadDto"}},"required":["success","error"]},"ResponseCacheMetaDto":{"type":"object","properties":{"ttl":{"type":"number","example":31536000,"description":"Cache TTL in seconds."},"profile":{"type":"string","example":"IMMUTABLE","description":"Cache profile applied to this endpoint."},"key":{"type":"string","example":"v2:chart?locationId=1276300&datetime=1993-03-12T05:30:00","description":"Deterministic cache key used for tracing."}},"required":["ttl","profile","key"]},"ResponseMetaDto":{"type":"object","properties":{"timestamp":{"type":"string","example":"2024-01-15T10:30:00.000Z"},"responseTimeMs":{"type":"number","example":12},"cache":{"$ref":"#/components/schemas/ResponseCacheMetaDto"}},"required":["timestamp","responseTimeMs"]},"ApiResponseDto":{"type":"object","properties":{"success":{"type":"boolean","example":true},"data":{"type":"object"},"meta":{"$ref":"#/components/schemas/ResponseMetaDto"}},"required":["success","data","meta"]},"CitySearchResultDto":{"type":"object","properties":{"locationId":{"type":"number","example":1344377,"description":"Location ID for chart API calls"},"name":{"type":"string","example":"Haldia","description":"City name (ASCII, no special characters)"},"state":{"type":"string","example":"West Bengal","description":"State/province name"},"country":{"type":"string","example":"India","description":"Country name"},"latitude":{"type":"number","example":22.0264,"description":"Latitude (decimal degrees)"},"longitude":{"type":"number","example":88.108,"description":"Longitude (decimal degrees)"},"timezone":{"type":"string","example":"Asia/Kolkata","description":"IANA timezone identifier"},"elevation":{"type":"number","example":6,"description":"Elevation in meters"},"matchedName":{"type":"string","example":"Haldia","description":"Name variant that matched the search query"},"similarity":{"type":"number","example":0.95,"description":"Search similarity score (0-1)"},"distanceMeters":{"type":"number","example":1234.5,"description":"Distance in meters (reverse geocode only)"}},"required":["locationId","name","country","latitude","longitude","timezone","elevation"]},"ElementTimingDto":{"type":"object","properties":{"startTime":{"type":"string","example":"2026-01-24T02:30:00+05:30","description":"Start time in ISO 8601 format with timezone offset (e.g., 2026-01-24T02:30:00+05:30)."},"endTime":{"type":"string","example":"2026-01-24T14:45:00+05:30","description":"End time in ISO 8601 format with timezone offset (e.g., 2026-01-24T14:45:00+05:30)."},"startTimeFormatted":{"type":"string","example":"24 January 2026, 2:30 AM IST","description":"Human-readable start time with timezone abbreviation."},"endTimeFormatted":{"type":"string","example":"24 January 2026, 2:45 PM IST","description":"Human-readable end time with timezone abbreviation."},"durationMinutes":{"type":"number","example":735,"description":"Total duration in minutes."},"durationFormatted":{"type":"string","example":"12 hours, 15 minutes","description":"Total duration in human-readable format."},"elapsedMinutes":{"type":"number","example":330,"description":"Minutes elapsed since this element started (at the queried datetime). Useful for progress tracking."},"elapsedFormatted":{"type":"string","example":"5 hours, 30 minutes","description":"Elapsed time in human-readable format."},"remainingMinutes":{"type":"number","example":405,"description":"Minutes remaining until this element ends (at the queried datetime). Useful for countdown displays."},"remainingFormatted":{"type":"string","example":"6 hours, 45 minutes","description":"Remaining time in human-readable format."},"description":{"type":"string","example":"from 24 January 2026, 2:30 AM IST to 24 January 2026, 2:45 PM IST","description":"Full description of the timing range."}},"required":["startTime","endTime","startTimeFormatted","endTimeFormatted","durationMinutes","durationFormatted","elapsedMinutes","elapsedFormatted","remainingMinutes","remainingFormatted","description"]},"TithiResponseDto":{"type":"object","properties":{"number":{"type":"number","example":5,"description":"Tithi number (1-30). 1-15 are Shukla Paksha, 16-30 are Krishna Paksha."},"name":{"type":"object","example":"panchami","description":"Tithi name in lowercase (pratipada to amavasya)."},"paksha":{"type":"string","example":"shukla","enum":["shukla","krishna"],"description":"Paksha (lunar fortnight). Shukla = waxing (bright), Krishna = waning (dark)."},"lord":{"type":"string","example":"sun","description":"Ruling planet of this tithi."},"lordNumber":{"type":"number","example":1,"description":"Canonical number of tithi lord planet (1-12)."},"nature":{"type":"string","example":"auspicious","enum":["auspicious","inauspicious","mixed","neutral"],"description":"General nature of the tithi for muhurta purposes."},"percentComplete":{"type":"number","example":67.5,"description":"Percentage of tithi completed (0-100). Useful for timing transitions."},"isRikta":{"type":"boolean","example":false,"description":"Whether this is a Rikta (empty) tithi (4, 9, 14 of each paksha). Generally avoided for auspicious work."},"isAuspicious":{"type":"boolean","example":true,"description":"Whether this tithi is generally considered auspicious."},"timing":{"description":"Timing details including start/end times, duration, and elapsed/remaining time at the queried datetime.","allOf":[{"$ref":"#/components/schemas/ElementTimingDto"}]}},"required":["number","name","paksha","lord","lordNumber","nature","percentComplete","isRikta","isAuspicious","timing"]},"NakshatraResponseDto":{"type":"object","properties":{"number":{"type":"number","example":12,"description":"Nakshatra number (1-27)."},"name":{"type":"string","example":"uttara-phalguni","description":"Nakshatra name in lowercase with hyphens."},"lord":{"type":"string","example":"sun","description":"Ruling planet of this nakshatra (Vimshottari dasha lord)."},"lordNumber":{"type":"number","example":1,"description":"Canonical number of nakshatra lord planet (1-12)."},"pada":{"type":"number","example":3,"description":"Pada (quarter) of the nakshatra (1-4)."},"moonLongitude":{"type":"number","example":145.75,"description":"Moon's sidereal longitude in degrees (0-360)."},"timing":{"description":"Timing details including start/end times, duration, and elapsed/remaining time at the queried datetime.","allOf":[{"$ref":"#/components/schemas/ElementTimingDto"}]}},"required":["number","name","lord","lordNumber","pada","moonLongitude","timing"]},"YogaResponseDto":{"type":"object","properties":{"number":{"type":"number","example":15,"description":"Yoga number (1-27)."},"name":{"type":"object","example":"vajra","description":"Yoga name in lowercase."},"nature":{"type":"string","example":"auspicious","enum":["auspicious","inauspicious","mixed"],"description":"General nature of the yoga."},"percentComplete":{"type":"number","example":45.2,"description":"Percentage of yoga completed (0-100)."},"isAuspicious":{"type":"boolean","example":true,"description":"Whether this yoga is generally auspicious."},"isInauspicious":{"type":"boolean","example":false,"description":"Whether this is an inauspicious yoga (Vishkumbha, Atiganda, Shoola, Ganda, Vyaghata, Vajra, Vyatipata, Parigha, Vaidhriti)."},"timing":{"description":"Timing details including start/end times, duration, and elapsed/remaining time at the queried datetime.","allOf":[{"$ref":"#/components/schemas/ElementTimingDto"}]}},"required":["number","name","nature","percentComplete","isAuspicious","isInauspicious","timing"]},"KaranaResponseDto":{"type":"object","properties":{"number":{"type":"number","example":9,"description":"Karana number (1-60). Two karanas per tithi."},"name":{"type":"object","example":"balava","description":"Karana name in lowercase."},"type":{"type":"string","example":"chara","enum":["chara","sthira"],"description":"Karana type. Chara (movable) karanas repeat, Sthira (fixed) karanas appear once per lunar month."},"nature":{"type":"string","example":"auspicious","enum":["auspicious","inauspicious","mixed"],"description":"General nature of the karana."},"percentComplete":{"type":"number","example":35,"description":"Percentage of karana completed (0-100)."},"isVishti":{"type":"boolean","example":false,"description":"Whether this is Vishti (Bhadra) karana. Generally inauspicious, avoided for important work."},"tithi":{"type":"number","example":3,"description":"The tithi number this karana belongs to."},"isFirstHalf":{"type":"boolean","example":true,"description":"Whether this is the first half of the tithi."},"timing":{"description":"Timing details including start/end times, duration, and elapsed/remaining time at the queried datetime.","allOf":[{"$ref":"#/components/schemas/ElementTimingDto"}]}},"required":["number","name","type","nature","percentComplete","isVishti","tithi","isFirstHalf","timing"]},"VaarResponseDto":{"type":"object","properties":{"index":{"type":"number","example":5,"description":"Weekday index (0=Sunday, 1=Monday, ... 6=Saturday)."},"name":{"type":"object","example":"shukravar","description":"Weekday name in Hindi/Sanskrit."},"englishName":{"type":"string","example":"Friday","description":"Weekday name in English."},"lord":{"type":"string","example":"venus","description":"Ruling planet of this day."},"lordNumber":{"type":"number","example":6,"description":"Canonical number of weekday lord planet (1-12)."}},"required":["index","name","englishName","lord","lordNumber"]},"SunTimesDto":{"type":"object","properties":{"sunrise":{"type":"string","example":"06:23:45","description":"Sunrise time in HH:mm:ss format (local time)."},"sunset":{"type":"string","example":"18:32:15","description":"Sunset time in HH:mm:ss format (local time)."},"dayLengthHours":{"type":"number","example":12.14,"description":"Day length in hours (sunrise to sunset)."},"civilDawn":{"type":"object","example":"06:01:30","description":"Civil dawn (Sun 6 degrees below horizon). Null in polar regions."},"civilDusk":{"type":"object","example":"18:54:30","description":"Civil dusk (Sun 6 degrees below horizon). Null in polar regions."}},"required":["sunrise","sunset","dayLengthHours"]},"MoonPhaseDto":{"type":"object","properties":{"name":{"type":"string","example":"waxing-gibbous","description":"Moon phase name: new, waxing-crescent, first-quarter, waxing-gibbous, full, waning-gibbous, last-quarter, waning-crescent."},"illumination":{"type":"number","example":78.5,"description":"Moon illumination percentage (0-100)."},"paksha":{"type":"string","example":"shukla","enum":["shukla","krishna"],"description":"Paksha (lunar fortnight). Shukla = waxing (bright), Krishna = waning (dark)."},"isWaxing":{"type":"boolean","example":true,"description":"Whether moon is waxing (growing brighter)."}},"required":["name","illumination","paksha","isWaxing"]},"MoonTimesDto":{"type":"object","properties":{"moonrise":{"type":"object","example":"19:45:30","nullable":true,"description":"Moonrise time in HH:mm:ss format (local time). Null if moon does not rise on this day."},"moonset":{"type":"object","example":"07:15:45","nullable":true,"description":"Moonset time in HH:mm:ss format (local time). Null if moon does not set on this day."},"phase":{"description":"Moon phase information at the queried datetime.","allOf":[{"$ref":"#/components/schemas/MoonPhaseDto"}]}},"required":["phase"]},"TimePeriodDto":{"type":"object","properties":{"start":{"type":"string","example":"07:30:00","description":"Start time in HH:mm:ss format (local time)."},"end":{"type":"string","example":"09:00:00","description":"End time in HH:mm:ss format (local time)."},"durationHours":{"type":"number","example":1.5,"description":"Duration in hours."}},"required":["start","end","durationHours"]},"MuhurtaResponseDto":{"type":"object","properties":{"rahukaal":{"description":"Rahukaal - Inauspicious period ruled by Rahu. Avoid starting new ventures.","allOf":[{"$ref":"#/components/schemas/TimePeriodDto"}]},"yamaganda":{"description":"Yamaganda - Inauspicious period ruled by Yama. Avoid important activities.","allOf":[{"$ref":"#/components/schemas/TimePeriodDto"}]},"gulika":{"description":"Gulika - Inauspicious period (son of Saturn). Avoid auspicious work.","allOf":[{"$ref":"#/components/schemas/TimePeriodDto"}]},"abhijit":{"nullable":true,"description":"Abhijit Muhurta - Most auspicious 48-minute period around solar noon. Null if not applicable.","allOf":[{"$ref":"#/components/schemas/TimePeriodDto"}]}},"required":["rahukaal","yamaganda","gulika"]},"PanchangResponseDto":{"type":"object","properties":{"tithi":{"description":"Tithi (lunar day) - First limb of Panchang.","allOf":[{"$ref":"#/components/schemas/TithiResponseDto"}]},"nakshatra":{"description":"Nakshatra (Moon's lunar mansion) - Second limb of Panchang.","allOf":[{"$ref":"#/components/schemas/NakshatraResponseDto"}]},"yoga":{"description":"Yoga (Sun+Moon combination) - Third limb of Panchang.","allOf":[{"$ref":"#/components/schemas/YogaResponseDto"}]},"karana":{"description":"Karana (half-tithi) - Fourth limb of Panchang.","allOf":[{"$ref":"#/components/schemas/KaranaResponseDto"}]},"vaar":{"description":"Vaar (weekday) - Fifth limb of Panchang.","allOf":[{"$ref":"#/components/schemas/VaarResponseDto"}]},"sunTimes":{"description":"Sun times for the day.","allOf":[{"$ref":"#/components/schemas/SunTimesDto"}]},"moonTimes":{"description":"Moon times for the day (moonrise, moonset, phase).","allOf":[{"$ref":"#/components/schemas/MoonTimesDto"}]},"muhurta":{"description":"Daily muhurta periods (Rahukaal, Yamaganda, Gulika, Abhijit).","allOf":[{"$ref":"#/components/schemas/MuhurtaResponseDto"}]},"ayanamsa":{"type":"object","example":{"name":"Lahiri","value":24.175},"description":"Ayanamsa used for sidereal calculations."},"meta":{"type":"object","example":{"datetime":"2024-03-15T06:00:00","timezone":"Asia/Kolkata","julianDay":2460385.5},"description":"Calculation metadata."}},"required":["tithi","nakshatra","yoga","karana","vaar","sunTimes","moonTimes","muhurta","ayanamsa","meta"]},"SearchCriteriaDto":{"type":"object","properties":{"tithi":{"type":"number","example":23,"description":"Absolute tithi number (1-30) searched for."},"paksha":{"type":"object","example":"krishna","description":"Paksha searched for."},"nakshatra":{"type":"string","example":"rohini","description":"Nakshatra searched for."},"yoga":{"type":"object","example":"siddhi","description":"Yoga searched for."},"karana":{"type":"object","example":"vishti","description":"Karana searched for."},"vaar":{"type":"object","example":"shukravar","description":"Weekday searched for."},"masa":{"type":"object","example":"kartik","description":"Lunar month searched for."},"masaSystem":{"type":"object","example":"amant","description":"Lunar month system used."},"matchAt":{"type":"object","example":"sunrise","description":"Observance window filter applied."},"description":{"type":"string","example":"Krishna Paksha Ashtami in Kartik","description":"Human-readable description of the search criteria."}}},"SearchResultPanchangDto":{"type":"object","properties":{"tithi":{"type":"object","description":"Tithi information"},"nakshatra":{"type":"object","description":"Nakshatra information"},"yoga":{"type":"object","description":"Yoga information"},"karana":{"type":"object","description":"Karana information"},"vaar":{"type":"object","description":"Vaar (weekday) information"}},"required":["tithi","nakshatra","yoga","karana","vaar"]},"SearchResultMasaDto":{"type":"object","properties":{"name":{"type":"object","example":"kartik","description":"Lunar month name."},"number":{"type":"number","example":8,"description":"Month number (1=Chaitra, 12=Phalguna)."},"isAdhikaMasa":{"type":"boolean","example":false,"description":"True if this is an Adhika (intercalary) month."},"system":{"type":"string","example":"amant","enum":["purnimant","amant"],"description":"Lunar month system used."}},"required":["name","number","isAdhikaMasa","system"]},"SearchResultSunDto":{"type":"object","properties":{"sunrise":{"type":"string","example":"2026-10-20T06:15:00+05:30","description":"Sunrise time in ISO 8601 format."},"sunset":{"type":"string","example":"2026-10-20T18:05:00+05:30","description":"Sunset time in ISO 8601 format."}},"required":["sunrise","sunset"]},"ObservanceTimePeriodDto":{"type":"object","properties":{"start":{"type":"string","example":"2026-10-20T18:05:00+05:30","description":"Start time in ISO 8601 format."},"end":{"type":"string","example":"2026-10-20T20:29:00+05:30","description":"End time in ISO 8601 format."},"durationMinutes":{"type":"number","example":144,"description":"Duration in minutes."}},"required":["start","end","durationMinutes"]},"SearchResultTimingsDto":{"type":"object","properties":{"pradosh":{"description":"Pradosh Kaal (twilight period, 144 min after sunset).","allOf":[{"$ref":"#/components/schemas/ObservanceTimePeriodDto"}]},"nishita":{"description":"Nishita Kaal (midnight period, 1/15th of night).","allOf":[{"$ref":"#/components/schemas/ObservanceTimePeriodDto"}]},"madhyahna":{"description":"Madhyahna (mid-day, 3rd of 5 daylight kalas).","allOf":[{"$ref":"#/components/schemas/ObservanceTimePeriodDto"}]},"aparahna":{"description":"Aparahna (afternoon, 4th-5th of 5 daylight kalas).","allOf":[{"$ref":"#/components/schemas/ObservanceTimePeriodDto"}]}},"required":["pradosh","nishita","madhyahna","aparahna"]},"PanchangSearchResultDto":{"type":"object","properties":{"date":{"type":"string","example":"2026-10-20","description":"Gregorian date (YYYY-MM-DD) when this condition is active at sunrise."},"startTime":{"type":"string","example":"2026-01-22T14:30:00+05:30","description":"Start time in ISO 8601 format with timezone."},"endTime":{"type":"string","example":"2026-01-23T12:45:00+05:30","description":"End time in ISO 8601 format with timezone."},"startTimeFormatted":{"type":"string","example":"22 January 2026, 2:30 PM","description":"Human-readable start time."},"endTimeFormatted":{"type":"string","example":"23 January 2026, 12:45 PM","description":"Human-readable end time."},"durationMinutes":{"type":"number","example":1335,"description":"Duration in minutes."},"panchang":{"description":"Panchang elements at this time.","allOf":[{"$ref":"#/components/schemas/SearchResultPanchangDto"}]},"masa":{"description":"Lunar month information.","allOf":[{"$ref":"#/components/schemas/SearchResultMasaDto"}]},"sun":{"description":"Sun times for the date.","allOf":[{"$ref":"#/components/schemas/SearchResultSunDto"}]},"timings":{"description":"Observance window timings. Only included if includeTimings=true.","allOf":[{"$ref":"#/components/schemas/SearchResultTimingsDto"}]}},"required":["date","startTime","endTime","startTimeFormatted","endTimeFormatted","durationMinutes","panchang","masa","sun"]},"SearchRangeDto":{"type":"object","properties":{"startDate":{"type":"string","example":"2026-01-01"},"endDate":{"type":"string","example":"2026-12-31"}},"required":["startDate","endDate"]},"PanchangSearchResponseDto":{"type":"object","properties":{"criteria":{"description":"The search criteria used.","allOf":[{"$ref":"#/components/schemas/SearchCriteriaDto"}]},"results":{"description":"List of matching results.","type":"array","items":{"$ref":"#/components/schemas/PanchangSearchResultDto"}},"totalFound":{"type":"number","example":12,"description":"Total number of results found."},"searchRange":{"description":"The date range searched.","allOf":[{"$ref":"#/components/schemas/SearchRangeDto"}]},"cacheHit":{"type":"boolean","example":true,"description":"Whether the result was served from cache."}},"required":["criteria","results","totalFound","searchRange","cacheHit"]},"ReverseJobRequestSummaryDto":{"type":"object","properties":{"startDate":{"type":"string","example":"1990-01-01"},"endDate":{"type":"string","example":"2020-12-31"},"rangeYears":{"type":"number","example":30.99},"constraintsCount":{"type":"number","example":8},"planetCount":{"type":"number","example":3},"planets":{"example":["sun","moon","mars"],"type":"array","items":{"type":"string"}},"ayanamsa":{"type":"number","example":1},"timezone":{"type":"string","example":"Asia/Kolkata"},"bnnApplied":{"type":"boolean","example":true},"bnnLifeArea":{"type":"string","example":"career"},"bnnIncludeDivisional":{"example":["D10"],"type":"array","items":{"type":"string"}}}},"ReverseJobPollingDto":{"type":"object","properties":{"recommendedPollAfterMs":{"type":"number","example":5000},"statusUrl":{"type":"string","example":"/v2/reverse-jobs/A7K2"},"resultUrl":{"type":"string","example":"/v2/reverse-jobs/A7K2/result"}},"required":["recommendedPollAfterMs","statusUrl","resultUrl"]},"ReverseJobAcceptedDto":{"type":"object","properties":{"mode":{"type":"string","example":"async"},"jobId":{"type":"string","example":"A7K2"},"endpoint":{"type":"string","example":"reverse-d1"},"jobType":{"type":"string","example":"reverse-transit"},"jobTypeLabel":{"type":"string","example":"Reverse Transit"},"status":{"type":"object","example":"queued"},"statusUrl":{"type":"string","example":"/v2/reverse-jobs/A7K2"},"resultUrl":{"type":"string","example":"/v2/reverse-jobs/A7K2/result"},"deduped":{"type":"boolean","example":false},"estimatedCost":{"type":"number","example":2840},"estimatedRangeYears":{"type":"number","example":30.5},"routeReason":{"type":"string","example":"estimated_cost_2840_over_sync_budget_2000"},"requestSummary":{"$ref":"#/components/schemas/ReverseJobRequestSummaryDto"},"polling":{"$ref":"#/components/schemas/ReverseJobPollingDto"}},"required":["mode","jobId","endpoint","jobType","jobTypeLabel","status","statusUrl","resultUrl","deduped","estimatedCost","estimatedRangeYears","routeReason"]},"TransitFilterDto":{"type":"object","properties":{"planet":{"type":"string","example":"sun","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu","uranus","neptune","pluto"],"description":"Planet name."},"sign":{"type":"string","example":"pisces","enum":["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces"],"description":"Transit sign filter."},"nakshatra":{"type":"string","example":"revati","enum":["ashwini","bharani","krittika","rohini","mrigashira","ardra","punarvasu","pushya","ashlesha","magha","purva-phalguni","uttara-phalguni","hasta","chitra","swati","vishakha","anuradha","jyeshtha","mula","purva-ashadha","uttara-ashadha","shravana","dhanishta","shatabhisha","purva-bhadrapada","uttara-bhadrapada","revati"],"description":"Transit nakshatra filter."},"pada":{"type":"number","example":1,"enum":[1,2,3,4],"description":"Transit nakshatra pada filter."},"motion":{"type":"string","example":"retrograde","enum":["direct","retrograde","stationary"],"description":"Transit motion state filter."},"degree":{"type":"number","example":10.5,"minimum":0,"maximum":30,"description":"Degree in sign filter (0-30)."},"degreeTolerance":{"type":"number","example":0.5,"minimum":0,"maximum":5,"default":0.5,"description":"Degree tolerance for degree matching."}}},"PanchangSearchPostRequestDto":{"type":"object","properties":{"locationId":{"type":"number","example":1276300,"description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz. When locationId is provided, do not send manual location fields."},"lat":{"type":"number","example":25.5941,"minimum":-90,"maximum":90,"description":"Latitude in decimal degrees. Required if locationId not provided."},"lng":{"type":"number","example":85.1376,"minimum":-180,"maximum":180,"description":"Longitude in decimal degrees. Required if locationId not provided."},"tz":{"type":"string","example":"Asia/Kolkata","description":"IANA timezone identifier. Required if locationId not provided."},"startDate":{"type":"string","example":"2026-01-01","description":"Start date of search range in YYYY-MM-DD format."},"endDate":{"type":"string","example":"2026-12-31","description":"End date of search range in YYYY-MM-DD format."},"tithi":{"type":"number","example":8,"minimum":1,"maximum":30,"description":"Tithi number (1-30). 1-15 are Shukla Paksha tithis, 16-30 are Krishna Paksha tithis. If paksha is provided, tithi must be 1-15. To search for Krishna Ashtami, use tithi=8 with paksha=krishna."},"paksha":{"type":"string","example":"krishna","enum":["shukla","krishna"],"description":"Paksha (lunar fortnight). shukla=waxing (bright), krishna=waning (dark). Use with tithi parameter."},"nakshatra":{"type":"string","example":"rohini","enum":["ashwini","bharani","krittika","rohini","mrigashira","ardra","punarvasu","pushya","ashlesha","magha","purva-phalguni","uttara-phalguni","hasta","chitra","swati","vishakha","anuradha","jyeshtha","mula","purva-ashadha","uttara-ashadha","shravana","dhanishta","shatabhisha","purva-bhadrapada","uttara-bhadrapada","revati"],"description":"Nakshatra name (Moon's lunar mansion). Examples: ashwini, bharani, rohini, mrigashira, etc."},"yoga":{"type":"string","example":"siddhi","enum":["vishkumbha","priti","ayushman","saubhagya","shobhana","atiganda","sukarma","dhriti","shoola","ganda","vriddhi","dhruva","vyaghata","harshana","vajra","siddhi","vyatipata","variyana","parigha","shiva","siddha","sadhya","shubha","shukla","brahma","indra","vaidhriti"],"description":"Yoga name (Sun+Moon combination). Examples: vishkumbha, preeti, siddhi, shubha, etc."},"karana":{"type":"string","example":"bava","enum":["bava","balava","kaulava","taitila","gara","vanija","vishti","kimstughna","shakuni","chatushpada","naga"],"description":"Karana name (half-tithi). Examples: bava, balava, kaulava, taitila, etc."},"vaar":{"type":"string","example":"somvar","enum":["ravivar","somvar","mangalvar","budhvar","guruvar","shukravar","shanivar"],"description":"Weekday name. ravivar=Sunday, somvar=Monday, etc."},"masa":{"type":"string","example":"kartik","enum":["chaitra","vaishakha","jyeshtha","ashadha","shravana","bhadrapada","ashwin","kartik","margashirsha","pausha","magha","phalguna"],"description":"Lunar month name. Filter results to only this month. Examples: kartik (for Diwali), bhadrapada (for Janmashtami), phalguna (for Holi)."},"masaSystem":{"type":"string","example":"amant","enum":["purnimant","amant"],"default":"amant","description":"Lunar month naming system. amant=South India (default, matches Drikpanchang), purnimant=North India. In Purnimant, Krishna Paksha belongs to the next month."},"excludeAdhikaMasa":{"type":"boolean","example":true,"default":true,"description":"Exclude Adhika Masa (intercalary/leap months) from results. Festivals are typically not celebrated in Adhika Masa."},"matchAt":{"type":"string","example":"sunrise","enum":["sunrise","pradosh","nishita","madhyahna","aparahna","any"],"default":"any","description":"Filter by observance window. sunrise=udaya tithi (default for most festivals), pradosh=twilight (Diwali), nishita=midnight (Janmashtami), madhyahna=mid-day (Ram Navami), aparahna=afternoon (Shraddha), any=no filtering."},"includeTimings":{"type":"boolean","example":false,"default":false,"description":"Include observance window timings (pradosh, nishita, madhyahna, aparahna) in response."},"ayanamsa":{"type":"number","example":1,"default":1,"description":"Ayanamsa code. 1=Lahiri (default), 3=Raman, 5=KP."},"limit":{"type":"number","example":50,"default":50,"minimum":1,"maximum":100,"description":"Maximum number of results to return (1-100)."},"async":{"type":"boolean","example":false,"default":false,"description":"If true, queue this reverse panchang search as async job and return job handle."},"transitFilters":{"description":"Optional addon transit filters. At least one panchang criterion is still required.","type":"array","items":{"$ref":"#/components/schemas/TransitFilterDto"}}},"required":["startDate","endDate"]},"AscendantDto":{"type":"object","properties":{"longitude":{"type":"number","description":"**Absolute Longitude (0-360°)**\n\nPosition in the zodiac measured from 0° Aries.\n\n**Calculation:** Determined by the exact moment and location of birth using Swiss Ephemeris.","example":295.5,"minimum":0,"maximum":360},"sign":{"type":"string","description":"**Zodiac Sign**\n\nThe sign where the ascendant falls. Each sign = 30° of the zodiac.","example":"capricorn"},"signNumber":{"type":"number","description":"Canonical sign number (1-12).","example":10},"signLord":{"type":"string","description":"**Sign Lord (Rashi Adhipati)**\n\nPlanet that rules the ascendant sign. Critical for overall chart analysis.","example":"saturn"},"degree":{"type":"number","description":"Degree within the sign (0-30°)","example":25.5,"minimum":0,"maximum":30},"degreeFormatted":{"type":"string","description":"Formatted degree as DMS (degrees°minutes'seconds\")","example":"25°30'0\""},"nakshatra":{"type":"string","description":"**Nakshatra (Lunar Mansion)**\n\nOne of 27 nakshatras. Each = 13°20' of the zodiac. Important for dasha calculations.","example":"dhanishta"},"nakshatraNumber":{"type":"number","description":"Canonical nakshatra number (1-27).","example":23},"nakshatraLord":{"type":"string","description":"Ruling planet of the nakshatra","example":"mars"},"pada":{"type":"number","description":"**Nakshatra Pada (Quarter)**\n\nEach nakshatra has 4 padas of 3°20' each. Determines Navamsa sign.","example":2,"minimum":1,"maximum":4}},"required":["longitude","sign","signNumber","signLord","degree","degreeFormatted","nakshatra","nakshatraNumber","nakshatraLord","pada"]},"AspectPlanetDto":{"type":"object","properties":{"planet":{"type":"string","description":"Canonical planet key in the target house.","example":"mars"},"planetNumber":{"type":"number","description":"Canonical planet number (1-12, sun..pluto).","example":3},"name":{"type":"string","description":"Display name.","example":"Mars"}},"required":["planet","planetNumber","name"]},"GivenAspectDto":{"type":"object","properties":{"aspectType":{"type":"string","description":"Classical aspect type counted from the source planet house. Navgrah cast 7th; Mars also 4th/8th; Jupiter also 5th/9th; Saturn also 3rd/10th.","example":"7th","enum":["3rd","4th","5th","7th","8th","9th","10th"]},"nature":{"type":"string","description":"Natural aspect nature from the source planet.","example":"malefic","enum":["benefic","malefic","neutral"]},"targetHouse":{"type":"number","description":"Target house receiving the aspect.","example":7,"minimum":1,"maximum":12},"targetSign":{"type":"string","description":"Target sign receiving the aspect.","example":"leo"},"targetSignNumber":{"type":"number","description":"Canonical target sign number (1-12).","example":5},"targetPlanets":{"description":"Planets occupying the target house.","type":"array","items":{"$ref":"#/components/schemas/AspectPlanetDto"}}},"required":["aspectType","nature","targetHouse","targetSign","targetSignNumber","targetPlanets"]},"ReceivedAspectDto":{"type":"object","properties":{"sourcePlanet":{"type":"string","description":"Canonical source planet key.","example":"saturn"},"sourcePlanetNumber":{"type":"number","description":"Canonical source planet number (1-12, sun..pluto).","example":7},"sourcePlanetName":{"type":"string","description":"Source planet display name.","example":"Saturn"},"sourceHouse":{"type":"number","description":"House occupied by the source planet.","example":10,"minimum":1,"maximum":12},"sourceSign":{"type":"string","description":"Sign occupied by the source planet.","example":"taurus"},"sourceSignNumber":{"type":"number","description":"Canonical source sign number (1-12).","example":2},"aspectType":{"type":"string","description":"Classical aspect type counted from the source planet house.","example":"10th","enum":["3rd","4th","5th","7th","8th","9th","10th"]},"nature":{"type":"string","description":"Natural aspect nature from the source planet.","example":"malefic","enum":["benefic","malefic","neutral"]}},"required":["sourcePlanet","sourcePlanetNumber","sourcePlanetName","sourceHouse","sourceSign","sourceSignNumber","aspectType","nature"]},"PlanetAspectsDto":{"type":"object","properties":{"given":{"description":"Aspects cast by this planet. Uranus, Neptune, and Pluto return an empty array in the current Vedic contract.","type":"array","items":{"$ref":"#/components/schemas/GivenAspectDto"}},"received":{"description":"Aspects received by this planet from other Navgrah.","type":"array","items":{"$ref":"#/components/schemas/ReceivedAspectDto"}}},"required":["given","received"]},"DignityFlagsDto":{"type":"object","properties":{"isExalted":{"type":"boolean","description":"**Uccha (Exalted)**\n\n**What:** Planet at its point of maximum strength. Like a king in his own palace.\n\n**Exaltation Signs & Degrees:**\n| Planet | Sign | Exact Degree |\n|--------|------|--------------|\n| Sun | Aries | 10° |\n| Moon | Taurus | 3° |\n| Mars | Capricorn | 28° |\n| Mercury | Virgo | 15° |\n| Jupiter | Cancer | 5° |\n| Venus | Pisces | 27° |\n| Saturn | Libra | 20° |\n\n**Why Useful:** Exalted planet's dasha brings excellent results in areas it signifies.\n\n**Search:** \"Uccha Graha BPHS\", \"Exaltation degrees Vedic\"\n\n**Classical Reference:** BPHS Ch.3 Sl.15-18","example":true},"isMoolatrikona":{"type":"boolean","description":"**Moolatrikona (Special Own Sign Zone)**\n\n**What:** A specific degree range within a planet's own sign where it has exceptional strength. Stronger than simple own-sign placement.\n\n**Moolatrikona Ranges:**\n| Planet | Sign | Degrees |\n|--------|------|---------|\n| Sun | Leo | 0°-20° |\n| Moon | Taurus | 3°-30° |\n| Mars | Aries | 0°-12° |\n| Mercury | Virgo | 15°-20° |\n| Jupiter | Sagittarius | 0°-10° |\n| Venus | Libra | 0°-15° |\n| Saturn | Aquarius | 0°-20° |\n\n**Why Useful:** Moolatrikona is second only to exaltation. Planet gives strong, reliable results.\n\n**Classical Reference:** BPHS Ch.3 Sl.19-21","example":false},"isOwnSign":{"type":"boolean","description":"**Swa Rashi (Own Sign)**\n\n**What:** Planet in a sign it rules. Comfortable and stable, like being at home.\n\n**Own Signs:**\n| Planet | Rules |\n|--------|-------|\n| Sun | Leo |\n| Moon | Cancer |\n| Mars | Aries, Scorpio |\n| Mercury | Gemini, Virgo |\n| Jupiter | Sagittarius, Pisces |\n| Venus | Taurus, Libra |\n| Saturn | Capricorn, Aquarius |\n\n**Why Useful:** Own sign planets give steady, self-directed results without external dependency.\n\n**Classical Reference:** BPHS Ch.3 Sl.11-14","example":false},"isFriendly":{"type":"boolean","description":"**Mitra Rashi (Friendly Sign)**\n\n**What:** Planet in a sign ruled by a naturally friendly planet. Supported but not fully independent.\n\n**Planetary Friendships:**\n| Planet | Friends |\n|--------|---------|\n| Sun | Moon, Mars, Jupiter |\n| Moon | Sun, Mercury |\n| Mars | Sun, Moon, Jupiter |\n| Mercury | Sun, Venus |\n| Jupiter | Sun, Moon, Mars |\n| Venus | Mercury, Saturn |\n| Saturn | Mercury, Venus |\n\n**Why Useful:** Friendly sign gives good results with support from the sign lord.\n\n**Classical Reference:** BPHS Ch.3 Sl.28-31","example":false},"isNeutral":{"type":"boolean","description":"**Sama Rashi (Neutral Sign)**\n\n**What:** Planet in a sign ruled by a planet that is neither friend nor enemy. Average conditions.\n\n**Why Useful:** Neutral placement gives average, unremarkable results. Planet needs other support (aspects, conjunctions) for better results.","example":true},"isEnemy":{"type":"boolean","description":"**Shatru Rashi (Enemy Sign)**\n\n**What:** Planet in a sign ruled by a naturally inimical planet. Uncomfortable, results through struggle.\n\n**Planetary Enmities:**\n| Planet | Enemies |\n|--------|---------|\n| Sun | Venus, Saturn |\n| Moon | None |\n| Mars | Mercury |\n| Mercury | Moon |\n| Jupiter | Mercury, Venus |\n| Venus | Sun, Moon |\n| Saturn | Sun, Moon, Mars |\n\n**Why Useful:** Enemy sign indicates challenges in that planet's significations. May need remedies.\n\n**Classical Reference:** BPHS Ch.3 Sl.28-31","example":false},"isDebilitated":{"type":"boolean","description":"**Neecha (Debilitated)**\n\n**What:** Planet at its weakest point - exactly opposite to exaltation sign.\n\n**Debilitation Signs:**\n| Planet | Debilitated In | Exact Degree |\n|--------|----------------|--------------|\n| Sun | Libra | 10° |\n| Moon | Scorpio | 3° |\n| Mars | Cancer | 28° |\n| Mercury | Pisces | 15° |\n| Jupiter | Capricorn | 5° |\n| Venus | Virgo | 27° |\n| Saturn | Aries | 20° |\n\n**Why Useful:** Check for Neecha Bhanga (cancellation) - cancelled debilitation can give Raja Yoga!\n\n**Search:** \"Neecha Graha\", \"Debilitation Vedic astrology\"\n\n**Classical Reference:** BPHS Ch.3 Sl.15-18, Ch.28 (Neecha Bhanga)","example":false},"strength":{"type":"number","description":"**Dignity Strength (0.0-1.0)**\n\nNormalized strength based on dignity:\n| Dignity | Strength |\n|---------|----------|\n| Exalted | 1.0 |\n| Moolatrikona | 0.9 |\n| Own Sign | 0.8 |\n| Friendly | 0.6 |\n| Neutral | 0.5 |\n| Enemy | 0.3 |\n| Debilitated | 0.1 |\n\n**Why Useful:** Use for weighted calculations and comparisons.","example":0.8,"minimum":0,"maximum":1}},"required":["isExalted","isMoolatrikona","isOwnSign","isFriendly","isNeutral","isEnemy","isDebilitated","strength"]},"HouseTypeDto":{"type":"object","properties":{"isKendra":{"type":"boolean","description":"**Kendra (Angular House)**\n\n**What:** Houses 1, 4, 7, 10 — the four pillars (Vishnu Sthanas). Most powerful houses.\n\n**Significations:**\n- 1st (Lagna): Self, body, personality, health\n- 4th (Sukha): Home, mother, vehicles, emotions, education\n- 7th (Kalatra): Spouse, partnerships, business, public dealing\n- 10th (Karma): Career, status, father, government, authority\n\n**Why Useful:**\n- Planets in kendra are strong and give prominent results\n- Benefics in kendra = Hamsa/Malavya/etc. Yoga\n- Malefics in kendra cause problems but less harmful than in dusthana\n- Kendradhipati Dosha: Natural benefics as kendra lords lose some beneficence\n\n**Search:** \"Kendra houses BPHS\", \"Angular houses Vedic\"\n\n**Classical Reference:** BPHS Ch.11 Sl.5-8","example":true},"isTrikona":{"type":"boolean","description":"**Trikona (Trine House)**\n\n**What:** Houses 1, 5, 9 — the most auspicious houses (Lakshmi Sthanas). Dharma triangle.\n\n**Significations:**\n- 1st (also kendra): Self - connects both pillars\n- 5th (Putra): Children, creativity, intelligence, past-life merit (Purva Punya)\n- 9th (Bhagya): Father, guru, fortune, higher learning, dharma, long journeys\n\n**Why Useful:**\n- Trikona lords are ALWAYS benefic regardless of natural nature\n- 5th + 9th connection = powerful Raja Yoga\n- 9th lord placement crucial for fortune and dharma\n\n**Search:** \"Trikona houses Vedic\", \"Lakshmi Sthana\"\n\n**Classical Reference:** BPHS Ch.11 Sl.9-12, Phaladeepika Ch.15","example":false},"isDusthana":{"type":"boolean","description":"**Dusthana (Difficult House)**\n\n**What:** Houses 6, 8, 12 — houses of difficulty, representing life's challenges.\n\n**Significations:**\n- 6th (Shatru): Enemies, disease, debt, service, competition, maternal uncle\n- 8th (Mrityu): Death, transformation, inheritance, occult, in-laws, chronic illness\n- 12th (Vyaya): Loss, expenses, foreign lands, moksha, bed pleasures, imprisonment\n\n**Why Useful:**\n- Planets here face challenges in giving results\n- Dusthana lords in dusthana = Viparita Raja Yoga (adversity becomes advantage)\n- Important for health, legal issues, and longevity analysis\n- Malefics do better in 6th (upachaya) than 8th/12th\n\n**Search:** \"Dusthana houses\", \"Trik houses Vedic\"\n\n**Classical Reference:** BPHS Ch.11 Sl.13-15","example":false},"isUpachaya":{"type":"boolean","description":"**Upachaya (Growth House)**\n\n**What:** Houses 3, 6, 10, 11 — houses where results improve over time.\n\n**Why Useful:**\n- Malefics (Saturn, Mars, Sun, Rahu) do WELL in upachaya houses\n- Results improve with age and effort\n- 3rd for courage, 6th for defeating enemies, 10th for career, 11th for gains\n\n**Classical Reference:** BPHS Ch.11 Sl.16","example":false},"isMaraka":{"type":"boolean","description":"**Maraka (Death-Inflicting House)**\n\n**What:** Houses 2 and 7 — connected to longevity and timing of death.\n\n**Why Useful:**\n- Maraka lords' dasha in old age can indicate end of life\n- In younger years, indicates health challenges, not death\n- Important for Ayurdaya (longevity) calculations\n- 2nd = family, speech; 7th = partnerships (both \"endings\" in life cycle)\n\n**Classical Reference:** BPHS Ch.44 (Ayurdaya), Phaladeepika Ch.13","example":false},"aim":{"type":"string","description":"**Purushartha (Life Aim)**\n\n**What:** Each house belongs to one of four life goals:\n- **Dharma** (1, 5, 9): Purpose, righteousness, spiritual duty\n- **Artha** (2, 6, 10): Wealth, material resources, career\n- **Kama** (3, 7, 11): Desires, relationships, fulfillment\n- **Moksha** (4, 8, 12): Liberation, inner peace, transformation\n\n**Why Useful:** Planets concentrated in one aim indicate life focus.\n\n**Classical Reference:** BPHS Ch.11, Brihat Jataka Ch.1","example":"artha","enum":["dharma","artha","kama","moksha"]},"quality":{"type":"string","description":"**House Quality**\n\n- **Angular** (1, 4, 7, 10): Strongest positions, most visible in life\n- **Succedent** (2, 5, 8, 11): Supporting positions, resources and consequences\n- **Cadent** (3, 6, 9, 12): Transitional, communication and service","example":"angular","enum":["angular","succedent","cadent"]}},"required":["isKendra","isTrikona","isDusthana","isUpachaya","isMaraka","aim","quality"]},"BaaladiAvasthaDto":{"type":"object","properties":{"state":{"type":"string","description":"**Baaladi Avastha (Age-Based State)**\n\n**What:** Planets have \"age states\" based on degree within sign (0-30°). Like humans, strongest in youth.\n\n**Calculation (degree within sign):**\n| State | Degrees | Strength | Meaning |\n|-------|---------|----------|---------|\n| Baalya (Infant) | 0-6° | 25% | Undeveloped, potential energy |\n| Kumara (Child) | 6-12° | 50% | Growing, learning |\n| Yuva (Youth) | 12-18° | 100% | Peak strength, full vigor |\n| Vridha (Old) | 18-24° | 50% | Declining, wisdom-focused |\n| Mrita (Dead) | 24-30° | 12.5% | Exhausted, minimal effect |\n\n**Why Useful:**\n- Yuva planets give full results in their dasha\n- Mrita planets delay or deny their significations\n- Important for Shadbala calculations\n\n**Search:** \"Baaladi Avastha BPHS\", \"Planetary states Vedic\"\n\n**Classical Reference:** BPHS Ch.45 \"Avastha Adhyaya\"","example":"yuva","enum":["baalya","kumara","yuva","vridha","mrita"]},"strength":{"type":"number","description":"**Strength Multiplier (0.0-1.0)**\n\nBased on avastha:\n- Baalya: 0.25\n- Kumara: 0.50\n- Yuva: 1.00\n- Vridha: 0.50\n- Mrita: 0.125","example":1,"minimum":0,"maximum":1}},"required":["state","strength"]},"AvasthasDto":{"type":"object","properties":{"baaladi":{"description":"Age-based state (Baalya, Kumara, Yuva, Vridha, Mrita)","allOf":[{"$ref":"#/components/schemas/BaaladiAvasthaDto"}]},"jagradadi":{"type":"object","description":"**Jagradadi Avastha (Awareness State)**\n\nBased on dignity:\n- **Jagrat** (Awake): Exalted/Own/Moolatrikona — fully active\n- **Swapna** (Dreaming): Friendly/Neutral — partially active\n- **Sushupti** (Deep Sleep): Enemy/Debilitated — dormant","example":{"state":"jagrat","strength":1}},"deeptadi":{"type":"object","description":"**Deeptadi Avastha (Luminosity State)**\n\n9 states based on overall condition:\nDeepta (1.0) → Swastha (0.9) → Mudita (0.75) → Shanta (0.6) → Dina (0.5) → Vikala (0.3) → Khala (0.25) → Kopa (0.2) → Bhita (0.1)","example":{"state":"swastha","strength":0.9}},"lajjitadi":{"type":"object","description":"**Lajjitadi Avastha (Emotional State)**\n\n6 states based on house, conjunctions, aspects:\n- Lajjita (Ashamed): In 5th with Rahu/Ketu/Saturn/Mars\n- Garvita (Proud): Exalted or Moolatrikona\n- Kshudita (Hungry): Enemy sign + enemy aspect\n- Trushita (Thirsty): Water sign + malefic aspect\n- Mudita (Delighted): With friend in friend's sign\n- Kshobhita (Agitated): With Sun + malefic aspect\n\nnull if no specific state applies.","example":{"state":"garvita","effect":"positive"},"nullable":true},"combinedStrength":{"type":"number","description":"Weighted average strength from all avasthas (0.0-1.0)","example":0.85,"minimum":0,"maximum":1}},"required":["baaladi","jagradadi","deeptadi","combinedStrength"]},"SpecialStatesDto":{"type":"object","properties":{"isVargottama":{"type":"boolean","description":"**Vargottama**\n\n**What:** Planet in SAME sign in both D1 (Rasi) and D9 (Navamsa). Very auspicious.\n\n**How Calculated:** Compare planet's sign in D1 vs D9. Same = Vargottama.\n\n**Technical (degree ranges for Vargottama):**\n- Movable signs (Aries, Cancer, Libra, Capricorn): 0°-3°20'\n- Fixed signs (Taurus, Leo, Scorpio, Aquarius): 13°20'-16°40'\n- Dual signs (Gemini, Virgo, Sagittarius, Pisces): 26°40'-30°\n\n**Why Useful:**\n- Acts like planet in own sign\n- Strengthens marriage if 7th lord is Vargottama\n- Ascendant Vargottama = strong personality, good health\n\n**Search:** \"Vargottama planets\", \"Same sign D1 D9\"\n\n**Classical Reference:** Phaladeepika Ch.3: \"Vargottama planets are very strong\"","example":true},"isGandanta":{"type":"boolean","description":"**Gandanta (Karmic Knot)**\n\n**What:** Planet at junction between water and fire signs. Karmic knot — transformative.\n\n**Gandanta Zones (first/last 3°20'):**\n- Pisces ↔ Aries (Revati-Ashwini)\n- Cancer ↔ Leo (Ashlesha-Magha)\n- Scorpio ↔ Sagittarius (Jyeshtha-Moola)\n\n**Why Useful:**\n- Moon in Gandanta at birth = challenging early life\n- Indicates deep karmic lessons\n- Avoid for muhurta (electional astrology)\n\n**Search:** \"Gandanta Vedic\", \"Jyeshtha Moola junction\"\n\n**Classical Reference:** BPHS Ch.3: \"Gandanta born face early life struggles\"","example":false},"hasDigbala":{"type":"boolean","description":"**Digbala (Directional Strength)**\n\n**What:** Planets gain strength in specific houses based on direction.\n\n**Digbala Houses:**\n| Planet | Strong House | Direction |\n|--------|--------------|-----------|\n| Sun, Mars | 10th | South |\n| Moon, Venus | 4th | North |\n| Mercury, Jupiter | 1st | East |\n| Saturn | 7th | West |\n\n**Why Useful:**\n- Component of Shadbala (6-fold strength)\n- Planet with Digbala excels in its significations\n- Opposite house = Digbala-heena (directionally weak)\n\n**Search:** \"Digbala Shadbala\", \"Directional strength Vedic\"\n\n**Classical Reference:** BPHS Ch.27 (Shadbala)","example":true},"isPushkara":{"type":"boolean","description":"**Pushkara (Auspicious Position)**\n\n**What:** Planet in Pushkara Navamsa or at Pushkara Bhaga (exact degree).\n\n**Why Useful:**\n- Enhances planet's positive results\n- Important for Muhurta (electional astrology)\n- Pushkara Bhaga = specific lucky degrees in each sign\n\n**Classical Reference:** BPHS Ch.4","example":false},"navamsaSign":{"type":"string","description":"D9 (Navamsa) sign for quick reference","example":"Aries"}},"required":["isVargottama","isGandanta","hasDigbala","isPushkara"]},"FunctionalNatureDto":{"type":"object","properties":{"nature":{"type":"string","description":"**Functional Nature (Chart-Specific)**\n\n**What:** Unlike NATURAL benefic/malefic, functional nature depends on houses RULED for this specific ascendant.\n\n**Calculation Rules:**\n1. Yogakaraka: Rules both kendra AND trikona — best planet\n2. Trikona lords (5th, 9th): Always functional benefic\n3. Kendra lords: Neutral (Kendradhipati Dosha for natural benefics)\n4. Dusthana lords (6th, 8th, 12th): Functional malefic\n\n**Why Useful:** A natural malefic (Saturn) can be highly beneficial if Yogakaraka (Taurus/Libra ascendant). Dasha of functional benefic = good period.\n\n**Search:** \"Functional benefic Vedic\", \"Yogakaraka planet\"\n\n**Classical Reference:** BPHS Ch.34, Phaladeepika Ch.6","example":"yogakaraka","enum":["yogakaraka","benefic","neutral","malefic"]},"isYogakaraka":{"type":"boolean","description":"**Yogakaraka**\n\n**What:** Single planet ruling BOTH kendra (1,4,7,10) AND trikona (1,5,9). Most auspicious.\n\n**Yogakaraka by Ascendant:**\n| Ascendant | Yogakaraka | Houses |\n|-----------|------------|--------|\n| Taurus | Saturn | 9th + 10th |\n| Cancer | Mars | 5th + 10th |\n| Leo | Mars | 4th + 9th |\n| Libra | Saturn | 4th + 5th |\n| Capricorn | Venus | 5th + 10th |\n| Aquarius | Venus | 4th + 9th |\n\n**Why Useful:** Yogakaraka dasha is the best period. Strengthen for maximum benefit.","example":true},"isMarakaLord":{"type":"boolean","description":"**Maraka Lord (Death-Inflicting)**\n\n**What:** Lord of 2nd or 7th house. Related to longevity.\n\n**Why Useful:**\n- Maraka dasha in old age can indicate end of life\n- In younger years, health challenges not death\n- Important for longevity (Ayurdaya) analysis","example":false},"isBadhakesh":{"type":"boolean","description":"**Badhakesh (Obstruction Planet)**\n\n**What:** Lord of Badhaka Sthana (obstruction house):\n- Movable signs: 11th house lord\n- Fixed signs: 9th house lord\n- Dual signs: 7th house lord\n\n**Why Useful:** Badhakesh dasha can bring unexplained obstacles.","example":false},"rulesHouses":{"description":"Houses ruled by this planet","example":[9,10],"type":"array","items":{"type":"number"}},"reason":{"type":"string","description":"Explanation of functional nature determination","example":"Saturn rules 9th (trikona) and 10th (kendra) - Yogakaraka"}},"required":["nature","isYogakaraka","isMarakaLord","isBadhakesh","rulesHouses","reason"]},"NeechaBhangaDto":{"type":"object","properties":{"isCancelled":{"type":"boolean","description":"**Neecha Bhanga (Debilitation Cancellation)**\n\n**What:** When debilitated planet's weakness is \"cancelled\" by specific configurations, converting weakness to strength.\n\n**5 Classical Cancellation Rules:**\n1. Lord of debilitation sign in kendra from Lagna/Moon\n2. Lord of exaltation sign in kendra from Lagna/Moon\n3. Debilitated planet aspected by debilitation sign lord\n4. Debilitated planet aspected by exaltation sign lord\n5. Debilitation sign lord is itself exalted\n\n**Example:** Moon debilitated in Scorpio. Mars (Scorpio lord) in 4th house from Lagna → cancellation.\n\n**Why Useful:**\n- Cancelled debilitation can give Raja Yoga results!\n- Important for career/wealth predictions\n- Key factor in chart strength assessment\n\n**Search:** \"Neecha Bhanga Raja Yoga\", \"Debilitation cancellation\"\n\n**Classical Reference:** BPHS Ch.28, Phaladeepika Ch.7","example":true},"cancelledBy":{"description":"Rules that cancelled the debilitation. Multiple = stronger.","example":["Debilitation lord Mars in 4th (kendra from Lagna)"],"type":"array","items":{"type":"string"}},"strength":{"type":"string","description":"**Cancellation Strength**\n\n- **full**: 2+ rules apply — strong Raja Yoga potential\n- **partial**: 1 rule applies — moderate improvement","example":"full","enum":["full","partial"]}},"required":["isCancelled"]},"YuddhaDto":{"type":"object","properties":{"isInWar":{"type":"boolean","description":"**Graha Yuddha (Planetary War)**\n\n**What:** When two planets are within 1° of each other, they \"war\" for dominance.\n\n**Who Participates:** Only Mars, Mercury, Jupiter, Venus, Saturn.\n**Who NEVER participates:** Sun, Moon, Rahu, Ketu.\n\n**How Winner Determined:**\n1. Planet with higher northern latitude wins\n2. If tied, brighter planet wins\n3. Winner gains +30 virupas, loser loses -30 virupas\n\n**Why Useful:**\n- Losing planet's significations weakened in its dasha\n- Affects house results where loser is placed\n- Important for muhurta — avoid wars for auspicious events\n\n**Search:** \"Graha Yuddha BPHS\", \"Planetary war Vedic\"\n\n**Classical Reference:** BPHS Ch.28 Sl.12, Phaladeepika Ch.3","example":false},"opponent":{"type":"object","description":"Opponent planet. null when not in war.","example":"Venus","nullable":true},"result":{"type":"string","description":"War result:\n- **winner**: Gains +30 virupas strength\n- **loser**: Loses -30 virupas strength","example":"winner","enum":["winner","loser"],"nullable":true},"angularSeparation":{"type":"object","description":"Angular separation in degrees","example":0.45,"nullable":true}},"required":["isInWar"]},"ParivartanDto":{"type":"object","properties":{"hasExchange":{"type":"boolean","description":"**Parivartan Yoga (Sign Exchange)**\n\n**What:** Two planets in each other's signs. Creates powerful connection.\n\n**Types:**\n- **Maha Parivartan**: Both houses among 1,2,4,5,7,9,10,11 — highly auspicious\n- **Khala Parivartan**: One planet is 3rd lord — mixed results\n- **Dainya Parivartan**: One planet is 6th/8th/12th lord — challenging\n\n**Example:** Jupiter in Capricorn (Saturn's sign) + Saturn in Pisces (Jupiter's sign)\n\n**Why Useful:**\n- Planets act as if in each other's positions\n- Maha Parivartan = Raja Yoga potential\n- Both houses get connected energetically\n\n**Search:** \"Parivartan Yoga\", \"Sign exchange Vedic\"\n\n**Classical Reference:** BPHS Ch.41, Phaladeepika Ch.6","example":false},"exchangeWith":{"type":"object","description":"Exchange partner planet","example":"Saturn","nullable":true},"housesInvolved":{"description":"Houses involved in exchange","example":[10,12],"nullable":true,"type":"array","items":{"type":"number"}},"type":{"type":"string","description":"Type of Parivartan Yoga","example":"maha","enum":["maha","khala","dainya"],"nullable":true}},"required":["hasExchange"]},"PlanetDto":{"type":"object","properties":{"planet":{"type":"string","description":"Canonical planet key (lowercase).","example":"mars"},"planetNumber":{"type":"number","description":"Canonical planet number (1-12, sun..pluto).","example":3},"name":{"type":"string","description":"Legacy display name kept for compatibility.","example":"Mars","enum":["Sun","Moon","Mars","Mercury","Jupiter","Venus","Saturn","Rahu","Ketu","Uranus","Neptune","Pluto"]},"longitude":{"type":"number","description":"Absolute longitude in zodiac (0-360°)","example":125.75,"minimum":0,"maximum":360},"sign":{"type":"string","description":"Zodiac sign name","example":"leo"},"signNumber":{"type":"number","description":"Canonical sign number (1-12).","example":5},"signLord":{"type":"string","description":"Ruling planet of the sign","example":"sun"},"house":{"type":"number","description":"House number (1-12) from ascendant","example":7,"minimum":1,"maximum":12},"degree":{"type":"number","description":"Degree within the sign (0-30°)","example":5.75,"minimum":0,"maximum":30},"degreeFormatted":{"type":"string","description":"Formatted degree as DMS","example":"5°45'0\""},"nakshatra":{"type":"string","description":"Nakshatra (lunar mansion) name","example":"magha"},"nakshatraNumber":{"type":"number","description":"Canonical nakshatra number (1-27).","example":10},"nakshatraLord":{"type":"string","description":"Ruling planet of the nakshatra","example":"ketu"},"pada":{"type":"number","description":"Nakshatra pada (quarter, 1-4)","example":1,"minimum":1,"maximum":4},"isRetrograde":{"type":"boolean","description":"**Retrograde Motion**\n\nPlanet appears to move backward from Earth's perspective. NOT Rahu/Ketu (always retrograde).\n\n**Effect:** Internalized energy, delayed but intensified results, past-life karma activation.","example":false},"dignity":{"type":"string","description":"**Dignity (Sign Strength)**\n\nPlanet's relationship with current sign:\n- **exalted**: Maximum strength (uccha)\n- **moolatrikona**: Special zone in own sign\n- **own**: Planet's own sign (swa)\n- **friend**: Friendly sign (mitra)\n- **neutral**: Neither friend nor enemy (sama)\n- **enemy**: Inimical sign (shatru)\n- **debilitated**: Minimum strength (neecha)\n\nFor Uranus/Neptune/Pluto, this field is `null` in current Vedic contract.","example":"own","enum":["exalted","moolatrikona","own","friend","neutral","enemy","debilitated"],"nullable":true},"isCombust":{"type":"object","description":"**Combustion (Asta)**\n\nPlanet too close to Sun, losing strength. Sun, Rahu, Ketu cannot be combust.\n\n**Combustion Orbs:**\n- Moon: 12° | Mars: 17° | Mercury: 14° (12° retrograde)\n- Jupiter: 11° | Venus: 10° (8° retrograde) | Saturn: 15°\n\nFor Uranus/Neptune/Pluto, this field is `null` in current Vedic contract.","example":false,"nullable":true},"combustionOrb":{"type":"object","description":"Angular distance from Sun when combust. null when NOT combust.","example":8.5,"nullable":true},"aspects":{"description":"Required classical Vedic aspect data for this planet. Rahu/Ketu cast only 7th aspect in this contract; outer planets cast no aspects.","allOf":[{"$ref":"#/components/schemas/PlanetAspectsDto"}]},"dignityFlags":{"description":"Dignity as boolean flags for filtering. **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/DignityFlagsDto"}]},"houseType":{"description":"House classifications (kendra, trikona, etc.). **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/HouseTypeDto"}]},"avasthas":{"description":"All four avastha systems. **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/AvasthasDto"}]},"specialStates":{"description":"Special states (vargottama, gandanta, digbala, pushkara). **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/SpecialStatesDto"}]},"functionalNature":{"description":"Functional nature for this ascendant. **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/FunctionalNatureDto"}]},"neechaBhanga":{"description":"Neecha Bhanga if debilitated. **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/NeechaBhangaDto"}]},"yuddha":{"description":"Planetary war status. **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/YuddhaDto"}]},"parivartan":{"description":"Sign exchange (Parivartan Yoga). **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/ParivartanDto"}]}},"required":["planet","planetNumber","name","longitude","sign","signNumber","signLord","house","degree","degreeFormatted","nakshatra","nakshatraNumber","nakshatraLord","pada","isRetrograde","aspects"]},"HouseDto":{"type":"object","properties":{"house":{"type":"number","description":"House number (1-12)","example":1,"minimum":1,"maximum":12},"cusp":{"type":"number","description":"Cusp longitude (0-360°)","example":295.5,"minimum":0,"maximum":360},"sign":{"type":"string","description":"Sign at the cusp","example":"capricorn"},"signNumber":{"type":"number","description":"Canonical sign number (1-12).","example":10},"signLord":{"type":"string","description":"Lord of the house (sign ruler)","example":"saturn"},"type":{"description":"House classifications. **Only with ?falit=true**","allOf":[{"$ref":"#/components/schemas/HouseTypeDto"}]},"occupants":{"description":"Planets occupying this house. **Only with ?falit=true**","example":["Mars","Venus"],"type":"array","items":{"type":"string"}},"aspectsFrom":{"description":"Planets aspecting this house. **Only with ?falit=true**","example":["Saturn","Jupiter"],"type":"array","items":{"type":"string"}},"lordInHouse":{"type":"number","description":"House number where the lord is placed. **Only with ?falit=true**","example":5}},"required":["house","cusp","sign","signNumber","signLord"]},"AyanamsaDto":{"type":"object","properties":{"name":{"type":"string","description":"**Ayanamsa System**\n\nPrecession correction to convert tropical to sidereal zodiac.\n\n**Common Systems:**\n- Lahiri (default, Indian govt standard)\n- Krishnamurti (KP system)\n- Raman (B.V. Raman)\n- Fagan-Bradley (Western sidereal)","example":"Lahiri"},"value":{"type":"number","description":"Ayanamsa value in degrees for the birth date","example":23.85}},"required":["name","value"]},"CacheMetaDto":{"type":"object","properties":{"ttl":{"type":"number","description":"Cache TTL in seconds","example":31536000},"profile":{"type":"string","description":"Cache profile used","example":"IMMUTABLE","enum":["IMMUTABLE","STABLE","DAILY","SHORT","NONE"]},"key":{"type":"string","description":"Cache key for debugging","example":"chart:1260086:1993-03-12T05:30:00"}},"required":["ttl","profile"]},"ChartMetaDto":{"type":"object","properties":{"chartType":{"type":"string","description":"Chart type (D1, D9, D10, etc.)","example":"D1"},"system":{"type":"string","description":"Astrology system used","example":"vedic","enum":["vedic","western"]},"houseSystem":{"type":"string","description":"House system used","example":"whole-sign","enum":["whole-sign","placidus","koch","equal"]},"calculationTimeMs":{"type":"number","description":"Calculation time in milliseconds","example":12},"swephCalls":{"type":"number","description":"Number of astronomical ephemeris calculations performed","example":18},"aspectDoctrine":{"type":"object","description":"Aspect doctrine applied to planet aspect fields. Rahu/Ketu 5th and 9th aspects are intentionally excluded by default because that rule is debated.","example":{"system":"parashari_classical_core","nodePolicy":"rahu_ketu_7th_only","outerPlanetPolicy":"no_vedic_aspects","note":"Rahu/Ketu 5th and 9th aspects are debated and not included in the default Shreeng Engine contract."}},"cache":{"description":"Cache metadata. **Always included.**","allOf":[{"$ref":"#/components/schemas/CacheMetaDto"}]}},"required":["chartType","system","houseSystem","calculationTimeMs","swephCalls","aspectDoctrine"]},"ChartResponseDto":{"type":"object","properties":{"ascendant":{"description":"Ascendant (Lagna) data","allOf":[{"$ref":"#/components/schemas/AscendantDto"}]},"planets":{"description":"All 12 planets (Navagraha + Uranus/Neptune/Pluto) with positions and dignity metadata","type":"array","items":{"$ref":"#/components/schemas/PlanetDto"}},"houses":{"description":"12 house cusps with signs and lords","type":"array","items":{"$ref":"#/components/schemas/HouseDto"}},"ayanamsa":{"description":"Ayanamsa used for calculation","allOf":[{"$ref":"#/components/schemas/AyanamsaDto"}]},"meta":{"description":"Calculation metadata including cache info","allOf":[{"$ref":"#/components/schemas/ChartMetaDto"}]}},"required":["ascendant","planets","houses","ayanamsa","meta"]},"ReverseD1BnnPrimaryKarakaDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn"},"planetNumber":{"type":"number","example":7},"sign":{"type":"string","example":"leo"},"signNumber":{"type":"number","example":5},"degreeInSign":{"type":"number","example":10.25},"house":{"type":"number","example":5},"isRetrograde":{"type":"boolean","example":false},"isCusp":{"type":"boolean","example":false}},"required":["planet","planetNumber","sign","signNumber","degreeInSign","house","isRetrograde","isCusp"]},"ReverseD1BnnDivisionalConfirmationEntryDto":{"type":"object","properties":{"status":{"type":"string","example":"positive","enum":["positive","caution","not_applicable","unknown"]},"note":{"type":"string","example":"Primary karaka in supportive house 10 in D10"}},"required":["status","note"]},"ReverseD1BnnDivisionalConfirmationDto":{"type":"object","properties":{"d9":{"$ref":"#/components/schemas/ReverseD1BnnDivisionalConfirmationEntryDto"},"d10":{"$ref":"#/components/schemas/ReverseD1BnnDivisionalConfirmationEntryDto"}}},"ReverseD1BnnResultDto":{"type":"object","properties":{"lifeArea":{"type":"string","enum":["career","business","marriage","relationships","wealth","property","children","health","travel","spirituality"],"example":"career"},"primaryKaraka":{"$ref":"#/components/schemas/ReverseD1BnnPrimaryKarakaDto"},"relevanceScore":{"type":"number","example":72,"description":"Deterministic BNN relevance score used only for tie-break among near-equal reverse D1 candidates."},"logicKeys":{"example":["WEST_AIR_CHAIN_SATURN_MERCURY","RETRO_DUAL_SATURN"],"type":"array","items":{"type":"string"}},"cautionFlags":{"example":["same_direction","retro_dual_view_active"],"type":"array","items":{"type":"string"}},"divisionalConfirmation":{"$ref":"#/components/schemas/ReverseD1BnnDivisionalConfirmationDto"},"sourceTags":{"type":"array","example":["lineage-core","engineering-default"],"items":{"type":"string","enum":["lineage-core","modern-teacher","engineering-default","pending-human-approval"]}}},"required":["lifeArea","primaryKaraka","relevanceScore","logicKeys","cautionFlags","sourceTags"]},"ReverseD1ExactMatchDto":{"type":"object","properties":{"datetime":{"type":"string","example":"1993-03-12T05:30:00+05:30","description":"Exact local datetime with offset."},"utc":{"type":"string","example":"1993-03-12T00:00:00Z","description":"Exact UTC datetime."},"score":{"type":"number","example":100,"description":"Matching score (0-100)."},"matchedConstraints":{"type":"number","example":8},"totalConstraints":{"type":"number","example":8},"matchedConstraintKeys":{"example":["ascendant.sign","planets.sun.sign","planets.moon.pada"],"description":"Constraint keys that matched exactly for this result.","type":"array","items":{"type":"string"}},"unmatchedConstraintKeys":{"example":[],"description":"Constraint keys that did not match for this result. Empty for exact unique match.","type":"array","items":{"type":"string"}},"bnn":{"description":"Optional BNN reverse relevance block. Present only when constraints.bnn is used.","allOf":[{"$ref":"#/components/schemas/ReverseD1BnnResultDto"}]}},"required":["datetime","utc","score","matchedConstraints","totalConstraints","matchedConstraintKeys","unmatchedConstraintKeys"]},"ReverseD1CandidateDto":{"type":"object","properties":{"startTime":{"type":"string","example":"1993-03-12T05:20:00+05:30","description":"Candidate window start."},"endTime":{"type":"string","example":"1993-03-12T05:40:00+05:30","description":"Candidate window end."},"bestTime":{"type":"string","example":"1993-03-12T05:30:00+05:30","description":"Best-ranked datetime inside this window."},"score":{"type":"number","example":87.5},"matchedConstraints":{"type":"number","example":7},"totalConstraints":{"type":"number","example":8},"matchedConstraintKeys":{"example":["ascendant.sign","planets.sun.sign","planets.moon.pada"],"description":"Constraint keys that matched for the best time in this window.","type":"array","items":{"type":"string"}},"unmatchedConstraintKeys":{"example":["planets.uranus.motion"],"description":"Constraint keys that did not match for the best time in this window.","type":"array","items":{"type":"string"}},"bnn":{"description":"Optional BNN reverse relevance block. Present only when constraints.bnn is used.","allOf":[{"$ref":"#/components/schemas/ReverseD1BnnResultDto"}]}},"required":["startTime","endTime","bestTime","score","matchedConstraints","totalConstraints","matchedConstraintKeys","unmatchedConstraintKeys"]},"ReverseD1ResponseMetaDto":{"type":"object","properties":{"startDate":{"type":"string","example":"1990-01-01"},"endDate":{"type":"string","example":"1995-12-31"},"totalCandidates":{"type":"number","example":14},"cacheHit":{"type":"boolean","example":false},"bnnApplied":{"type":"boolean","example":false,"description":"Whether optional BNN reverse scoring was applied."},"warning":{"type":"string","example":"Birth date is before timezone standardization. Historical offset differs from modern offset."},"evaluatedPoints":{"type":"number","example":2400}},"required":["startDate","endDate","totalCandidates","cacheHit","bnnApplied"]},"ReverseD1ResponseDto":{"type":"object","properties":{"status":{"type":"string","example":"multiple","enum":["exact","multiple","none"],"description":"Search result mode."},"exactMatch":{"$ref":"#/components/schemas/ReverseD1ExactMatchDto"},"matches":{"description":"Possible matching birth-time windows when exact unique match is not found.","type":"array","items":{"$ref":"#/components/schemas/ReverseD1CandidateDto"}},"suggestions":{"example":["Add Moon nakshatra or one more planet degree to get exact match."],"type":"array","items":{"type":"string"}},"meta":{"$ref":"#/components/schemas/ReverseD1ResponseMetaDto"}},"required":["status","matches","suggestions","meta"]},"ReverseD1AscendantConstraintDto":{"type":"object","properties":{"sign":{"type":"string","example":"aquarius","description":"Ascendant sign (lowercase preferred)."},"degree":{"type":"number","example":12.5,"minimum":0,"maximum":30,"description":"Ascendant degree in sign (0-30)."},"degreeTolerance":{"type":"number","example":0.5,"minimum":0,"maximum":5,"description":"Tolerance for ascendant degree matching."},"nakshatra":{"type":"string","example":"dhanishta","description":"Ascendant nakshatra name."},"pada":{"type":"number","example":2,"minimum":1,"maximum":4,"description":"Ascendant nakshatra pada (1-4)."}}},"ReverseD1PlanetConstraintDto":{"type":"object","properties":{"planet":{"type":"string","example":"jupiter","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu","uranus","neptune","pluto"],"description":"Planet name in lowercase."},"house":{"type":"number","example":8,"minimum":1,"maximum":12,"description":"Expected house (1-12)."},"sign":{"type":"string","example":"virgo","description":"Expected zodiac sign."},"degree":{"type":"number","example":18.75,"minimum":0,"maximum":30,"description":"Planet degree in sign (0-30)."},"degreeTolerance":{"type":"number","example":0.5,"minimum":0,"maximum":5,"description":"Tolerance for degree matching."},"nakshatra":{"type":"string","example":"hasta","description":"Expected nakshatra name."},"pada":{"type":"number","example":3,"minimum":1,"maximum":4,"description":"Expected nakshatra pada (1-4)."},"motion":{"type":"string","example":"retrograde","enum":["direct","retrograde","stationary"],"description":"Expected motion state."}},"required":["planet"]},"ReverseD1PanchangFilterDto":{"type":"object","properties":{"tithi":{"type":"number","example":11,"minimum":1,"maximum":30,"description":"Optional tithi filter (1-30)."},"vaar":{"type":"string","example":"somvar","description":"Optional weekday filter (somvar/monday etc.)."},"nakshatra":{"type":"string","example":"rohini","description":"Optional Moon nakshatra filter."}}},"ReverseD1BnnConstraintDto":{"type":"object","properties":{"gender":{"type":"string","description":"Gender required for BNN role-aware reverse scoring.","enum":["male","female"],"example":"male"},"lifeArea":{"type":"string","description":"Single BNN life-area used for reverse relevance scoring.","enum":["career","business","marriage","relationships","wealth","property","children","health","travel","spirituality"],"example":"career"},"includeDivisional":{"type":"array","description":"Optional BNN divisional confirmation. This is tie-break support only and does not count as a hard reverse D1 filter.","example":["D10"],"items":{"type":"string","enum":["D9","D10"]}}},"required":["gender","lifeArea"]},"ReverseD1ConstraintsDto":{"type":"object","properties":{"ascendant":{"description":"Ascendant-level constraints.","allOf":[{"$ref":"#/components/schemas/ReverseD1AscendantConstraintDto"}]},"planets":{"description":"Planet constraints. Minimum 1 recommended.","type":"array","items":{"$ref":"#/components/schemas/ReverseD1PlanetConstraintDto"}},"panchang":{"description":"Optional panchang filters for faster narrowing.","allOf":[{"$ref":"#/components/schemas/ReverseD1PanchangFilterDto"}]},"bnn":{"description":"Optional BNN reverse scoring block. This refines ranking only and does not count toward the minimum three normal reverse D1 constraint fields.","allOf":[{"$ref":"#/components/schemas/ReverseD1BnnConstraintDto"}]}}},"ReverseD1RequestDto":{"type":"object","properties":{"locationId":{"type":"number","example":1276300,"description":"GeoNames location id. Preferred mode."},"lat":{"type":"number","example":25.2445,"minimum":-90,"maximum":90,"description":"Latitude. Required when locationId is not provided."},"lng":{"type":"number","example":86.9718,"minimum":-180,"maximum":180,"description":"Longitude. Required when locationId is not provided."},"tz":{"type":"string","example":"Asia/Kolkata","description":"IANA timezone. Required when locationId is not provided."},"startDate":{"type":"string","example":"1990-01-01","description":"Search range start date (YYYY-MM-DD)."},"endDate":{"type":"string","example":"1995-12-31","description":"Search range end date (YYYY-MM-DD)."},"constraints":{"description":"Reverse D1 constraints. At least 3 constraint fields are required.","allOf":[{"$ref":"#/components/schemas/ReverseD1ConstraintsDto"}]},"limit":{"type":"number","example":20,"minimum":1,"maximum":50,"default":20,"description":"Maximum candidate windows to return."},"candidateLimit":{"type":"number","example":20,"deprecated":true,"description":"Deprecated field. Not supported now. Use `limit` instead."},"ayanamsa":{"type":"number","example":1,"default":1,"description":"Ayanamsa code. Defaults to current D1 API default."},"houseSystem":{"type":"string","enum":["whole-sign","equal","placidus","koch","campanus","regiomontanus","porphyry"],"default":"whole-sign","description":"House system. Reverse D1 v1 uses whole-sign matching."},"includeDebug":{"type":"boolean","example":false,"default":false,"description":"Include extra debug metadata in response (currently `meta.evaluatedPoints`)."},"async":{"type":"boolean","example":false,"default":false,"description":"If true, queue this reverse search as async job and return job handle."}},"required":["startDate","endDate","constraints"]},"BirthNakshatraInfoDto":{"type":"object","properties":{"nakshatra":{"type":"string","example":"ashwini","description":"Moon nakshatra at birth"},"nakshatraNumber":{"type":"number","example":1,"description":"Canonical nakshatra number (1-27)."},"lord":{"type":"string","example":"ketu","description":"Nakshatra lord (determines first dasha)"},"lordNumber":{"type":"number","example":9,"description":"Canonical number of nakshatra lord (1-12)."},"pada":{"type":"number","example":2,"minimum":1,"maximum":4,"description":"Nakshatra pada (quarter)"},"moonLongitude":{"type":"number","example":125.75,"description":"Moon sidereal longitude at birth"}},"required":["nakshatra","nakshatraNumber","lord","lordNumber","pada","moonLongitude"]},"DashaBalanceDto":{"type":"object","properties":{"planet":{"type":"string","example":"ketu","description":"First dasha planet (same as nakshatra lord)"},"planetNumber":{"type":"number","example":9,"description":"Canonical number of first dasha planet (1-12)."},"yearsRemaining":{"type":"number","example":4.25,"description":"Years remaining in first dasha at birth"},"yearsElapsed":{"type":"number","example":2.75,"description":"Years elapsed in first dasha at birth"},"percentElapsed":{"type":"number","example":39.29,"description":"Percentage elapsed in first dasha at birth"}},"required":["planet","planetNumber","yearsRemaining","yearsElapsed","percentElapsed"]},"PranaDashaResponseDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Ruling planet of this period"},"planetNumber":{"type":"number","example":7,"description":"Canonical planet number (1-12, sun..pluto)."},"startDate":{"type":"string","example":"2020-03-15","description":"Period start date (YYYY-MM-DD)"},"endDate":{"type":"string","example":"2039-03-15","description":"Period end date (YYYY-MM-DD)"},"duration":{"type":"string","example":"19y 0m 0d","description":"Period duration in human-readable format"},"durationDays":{"type":"number","example":6939.75,"description":"Period duration in days"},"level":{"type":"string","example":"prana","enum":["prana"],"description":"Period level identifier"}},"required":["planet","planetNumber","startDate","endDate","duration","durationDays","level"]},"SookshmaDashaResponseDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Ruling planet of this period"},"planetNumber":{"type":"number","example":7,"description":"Canonical planet number (1-12, sun..pluto)."},"startDate":{"type":"string","example":"2020-03-15","description":"Period start date (YYYY-MM-DD)"},"endDate":{"type":"string","example":"2039-03-15","description":"Period end date (YYYY-MM-DD)"},"duration":{"type":"string","example":"19y 0m 0d","description":"Period duration in human-readable format"},"durationDays":{"type":"number","example":6939.75,"description":"Period duration in days"},"level":{"type":"string","example":"sookshma","enum":["sookshma"],"description":"Period level identifier"},"pranas":{"description":"Prana sub-periods within this sookshma. Only included if includePrana=true.","type":"array","items":{"$ref":"#/components/schemas/PranaDashaResponseDto"}}},"required":["planet","planetNumber","startDate","endDate","duration","durationDays","level"]},"PratyantardashaResponseDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Ruling planet of this period"},"planetNumber":{"type":"number","example":7,"description":"Canonical planet number (1-12, sun..pluto)."},"startDate":{"type":"string","example":"2020-03-15","description":"Period start date (YYYY-MM-DD)"},"endDate":{"type":"string","example":"2039-03-15","description":"Period end date (YYYY-MM-DD)"},"duration":{"type":"string","example":"19y 0m 0d","description":"Period duration in human-readable format"},"durationDays":{"type":"number","example":6939.75,"description":"Period duration in days"},"level":{"type":"string","example":"pratyantardasha","enum":["pratyantardasha"],"description":"Period level identifier"},"sookshmas":{"description":"Sookshma sub-periods within this pratyantardasha. Only included if includeSookshma=true.","type":"array","items":{"$ref":"#/components/schemas/SookshmaDashaResponseDto"}}},"required":["planet","planetNumber","startDate","endDate","duration","durationDays","level"]},"AntardashaResponseDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Ruling planet of this period"},"planetNumber":{"type":"number","example":7,"description":"Canonical planet number (1-12, sun..pluto)."},"startDate":{"type":"string","example":"2020-03-15","description":"Period start date (YYYY-MM-DD)"},"endDate":{"type":"string","example":"2039-03-15","description":"Period end date (YYYY-MM-DD)"},"duration":{"type":"string","example":"19y 0m 0d","description":"Period duration in human-readable format"},"durationDays":{"type":"number","example":6939.75,"description":"Period duration in days"},"level":{"type":"string","example":"antardasha","enum":["antardasha"],"description":"Period level identifier"},"pratyantardashas":{"description":"Sub-sub-periods within this antardasha. Only included if includePratyantardasha=true.","type":"array","items":{"$ref":"#/components/schemas/PratyantardashaResponseDto"}}},"required":["planet","planetNumber","startDate","endDate","duration","durationDays","level"]},"MahadashaResponseDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Ruling planet of this period"},"planetNumber":{"type":"number","example":7,"description":"Canonical planet number (1-12, sun..pluto)."},"startDate":{"type":"string","example":"2020-03-15","description":"Period start date (YYYY-MM-DD)"},"endDate":{"type":"string","example":"2039-03-15","description":"Period end date (YYYY-MM-DD)"},"duration":{"type":"string","example":"19y 0m 0d","description":"Period duration in human-readable format"},"durationDays":{"type":"number","example":6939.75,"description":"Period duration in days"},"level":{"type":"string","example":"mahadasha","enum":["mahadasha"],"description":"Period level identifier"},"durationYears":{"type":"number","example":19,"description":"Period duration in years"},"antardashas":{"description":"Sub-periods within this mahadasha. Only included if includeAntardasha=true.","type":"array","items":{"$ref":"#/components/schemas/AntardashaResponseDto"}}},"required":["planet","planetNumber","startDate","endDate","duration","durationDays","level","durationYears"]},"CurrentDashaLevelDetailsDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Ruling planet"},"planetNumber":{"type":"number","example":7,"description":"Canonical planet number (1-12, sun..pluto)."},"startDate":{"type":"string","example":"2012-01-14","description":"Period start date"},"endDate":{"type":"string","example":"2031-01-14","description":"Period end date"},"durationDays":{"type":"number","example":6939.75,"description":"Total period duration in days"},"elapsed":{"type":"number","example":74,"description":"Percentage elapsed (0-100)"},"elapsedDays":{"type":"number","example":5138.42,"description":"Days elapsed since period start"},"remaining":{"type":"string","example":"4y 11m 8d","description":"Time remaining (human-readable)"},"remainingDays":{"type":"number","example":1801.33,"description":"Days remaining until period end"},"index":{"type":"number","example":6,"description":"Position within parent (0-based, 0-8)"},"of":{"type":"number","example":9,"description":"Total sub-periods in parent"},"nextPlanet":{"type":"object","example":"jupiter","description":"Next period planet (null if last in parent)"},"nextPlanetNumber":{"type":"object","example":5,"description":"Canonical number of next period planet (1-12), null if last in parent."}},"required":["planet","planetNumber","startDate","endDate","durationDays","elapsed","elapsedDays","remaining","remainingDays","index","of"]},"CurrentDashaResponseDto":{"type":"object","properties":{"mahadasha":{"type":"string","example":"saturn","description":"Current mahadasha planet"},"mahadashaNumber":{"type":"number","example":7,"description":"Canonical number of current mahadasha planet (1-12)."},"antardasha":{"type":"string","example":"mercury","description":"Current antardasha planet"},"antardashaNumber":{"type":"number","example":4,"description":"Canonical number of current antardasha planet (1-12)."},"pratyantardasha":{"type":"string","example":"venus","description":"Current pratyantardasha planet"},"pratyantardashaNumber":{"type":"number","example":6,"description":"Canonical number of current pratyantardasha planet (1-12)."},"sookshma":{"type":"string","example":"saturn","description":"Current sookshma planet"},"sookshmaNumber":{"type":"number","example":7,"description":"Canonical number of current sookshma planet (1-12)."},"prana":{"type":"string","example":"mercury","description":"Current prana planet"},"pranaNumber":{"type":"number","example":4,"description":"Canonical number of current prana planet (1-12)."},"current":{"type":"string","example":"Saturn-Mercury-Venus-Moon-Mars","description":"Current dasha string (Mahadasha-Antardasha-Pratyantardasha-Sookshma-Prana)"},"mahadashaDetails":{"description":"Mahadasha details","allOf":[{"$ref":"#/components/schemas/CurrentDashaLevelDetailsDto"}]},"antardashaDetails":{"description":"Antardasha details","allOf":[{"$ref":"#/components/schemas/CurrentDashaLevelDetailsDto"}]},"pratyantardashaDetails":{"description":"Pratyantardasha details","allOf":[{"$ref":"#/components/schemas/CurrentDashaLevelDetailsDto"}]},"sookshmaDetails":{"description":"Sookshma dasha details","allOf":[{"$ref":"#/components/schemas/CurrentDashaLevelDetailsDto"}]},"pranaDetails":{"description":"Prana dasha details","allOf":[{"$ref":"#/components/schemas/CurrentDashaLevelDetailsDto"}]}},"required":["mahadasha","mahadashaNumber","antardasha","antardashaNumber","pratyantardasha","pratyantardashaNumber","sookshma","sookshmaNumber","prana","pranaNumber","current","mahadashaDetails","antardashaDetails","pratyantardashaDetails","sookshmaDetails","pranaDetails"]},"DashaTimelineResponseDto":{"type":"object","properties":{"birthNakshatra":{"description":"Birth nakshatra information","allOf":[{"$ref":"#/components/schemas/BirthNakshatraInfoDto"}]},"balanceAtBirth":{"description":"Dasha balance at birth (how much of first dasha remains)","allOf":[{"$ref":"#/components/schemas/DashaBalanceDto"}]},"mahadashas":{"description":"All mahadasha periods (9 periods covering 120 years from birth)","type":"array","items":{"$ref":"#/components/schemas/MahadashaResponseDto"}},"currentDasha":{"description":"Current running dasha (if within calculated range)","allOf":[{"$ref":"#/components/schemas/CurrentDashaResponseDto"}]},"meta":{"type":"object","description":"Calculation metadata"}},"required":["birthNakshatra","balanceAtBirth","mahadashas","meta"]},"SignExitDto":{"type":"object","properties":{"exitDate":{"type":"string","example":"2026-09-18T14:35:00+05:30","description":"Predicted datetime when planet changes sign."},"exitDateFormatted":{"type":"string","example":"18 September 2026, 2:35 PM IST","description":"Human-readable sign exit datetime."},"daysUntilExit":{"type":"number","example":186.75,"description":"Days from request datetime until sign exit."},"nextSign":{"type":"string","example":"gemini","description":"Next sign after transition."},"nextSignNumber":{"type":"number","example":3,"description":"Canonical number of next sign (1-12)."},"description":{"type":"string","example":"enters Gemini in 6 months (18 September 2026, 2:35 PM IST)","description":"Readable transition summary."}},"required":["exitDate","exitDateFormatted","daysUntilExit","nextSign","nextSignNumber","description"]},"TimelineTransitionPointDto":{"type":"object","properties":{"value":{"type":"string","example":"aries","description":"Value entered at this transition."},"at":{"type":"string","example":"2028-02-23T19:24:22+05:30","description":"Transition datetime with explicit timezone offset."},"atFormatted":{"type":"string","example":"23 February 2028, 7:24 PM IST","description":"Human-readable transition datetime."}},"required":["value","at","atFormatted"]},"TimelineDimensionDto":{"type":"object","properties":{"next":{"description":"First transition from the current value.","allOf":[{"$ref":"#/components/schemas/TimelineTransitionPointDto"}]},"final":{"description":"Final stable transition in lookahead range (no return to previous value in range).","allOf":[{"$ref":"#/components/schemas/TimelineTransitionPointDto"}]},"returnsCount":{"type":"number","example":1,"description":"Number of times value returned to the previous state."},"status":{"type":"string","example":"returns_found","enum":["stable","returns_found","unresolved_in_range"],"description":"Timeline stability status for selected lookahead range."},"lookaheadYears":{"type":"number","example":12,"description":"Lookahead years used for this dimension calculation."},"summary":{"type":"string","example":"Saturn first enters Aries on 3 June 2027, returns once, then stably enters Aries on 23 February 2028.","description":"Compact human + AI-friendly summary."}},"required":["returnsCount","status","lookaheadYears","summary"]},"TimelineEventDto":{"type":"object","properties":{"kind":{"type":"string","example":"sign","enum":["sign","nakshatra","pada"],"description":"Timeline event dimension."},"from":{"type":"string","example":"pisces","description":"Value before transition."},"to":{"type":"string","example":"aries","description":"Value after transition."},"at":{"type":"string","example":"2027-06-03T05:28:21+05:30","description":"Transition datetime with explicit timezone offset."},"atFormatted":{"type":"string","example":"3 June 2027, 5:28 AM IST","description":"Human-readable transition datetime."},"motion":{"type":"string","example":"direct","enum":["direct","retrograde","stationary"],"description":"Planet motion immediately after transition."}},"required":["kind","from","to","at","atFormatted","motion"]},"PlanetTimelineDto":{"type":"object","properties":{"sign":{"description":"Sign timeline summary.","allOf":[{"$ref":"#/components/schemas/TimelineDimensionDto"}]},"nakshatra":{"description":"Nakshatra timeline summary (if requested).","allOf":[{"$ref":"#/components/schemas/TimelineDimensionDto"}]},"pada":{"description":"Pada timeline summary (if requested).","allOf":[{"$ref":"#/components/schemas/TimelineDimensionDto"}]},"events":{"description":"Detailed transition event stream (if timelineDetail=full).","type":"array","items":{"$ref":"#/components/schemas/TimelineEventDto"}}}},"PlanetTransitDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Planet name"},"planetNumber":{"type":"number","example":7,"description":"Canonical planet number (1-12, sun..pluto)."},"longitude":{"type":"number","example":340.75,"description":"Sidereal longitude (0-360 degrees)"},"sign":{"type":"string","example":"pisces","description":"Current zodiac sign"},"signNumber":{"type":"number","example":12,"description":"Canonical sign number (1-12)."},"degree":{"type":"number","example":10.75,"description":"Degree within sign (0-30)"},"degreeFormatted":{"type":"string","example":"10°45'00\"","description":"Formatted degree within sign"},"isRetrograde":{"type":"boolean","example":false,"description":"Is planet retrograde?"},"speed":{"type":"number","example":0.033,"description":"Speed in degrees per day"},"nakshatra":{"type":"object","description":"Nakshatra details (if includeNakshatra=true)"},"signExit":{"description":"Sign transition estimate (if includeSignExit=true).","allOf":[{"$ref":"#/components/schemas/SignExitDto"}]},"timeline":{"description":"Transit timeline summary (default sign timeline; disabled when timeline=none).","allOf":[{"$ref":"#/components/schemas/PlanetTimelineDto"}]}},"required":["planet","planetNumber","longitude","sign","signNumber","degree","degreeFormatted","isRetrograde","speed"]},"TransitResponseDto":{"type":"object","properties":{"planets":{"description":"Transit positions for all 12 planets (Navagraha + Uranus/Neptune/Pluto)","type":"array","items":{"$ref":"#/components/schemas/PlanetTransitDto"}},"meta":{"type":"object","description":"Calculation metadata"}},"required":["planets","meta"]},"TransitHousePositionDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn","description":"Transit planet"},"planetNumber":{"type":"number","example":7,"description":"Canonical number of transit planet (1-12)."},"natalHouse":{"type":"number","example":7,"minimum":1,"maximum":12,"description":"Natal house the transit is passing through"},"natalHouseSign":{"type":"string","example":"libra","description":"Natal house sign"},"natalHouseSignNumber":{"type":"number","example":7,"description":"Canonical number of natal house sign (1-12)."}},"required":["planet","planetNumber","natalHouse","natalHouseSign","natalHouseSignNumber"]},"TransitAspectDto":{"type":"object","properties":{"transitPlanet":{"type":"string","example":"saturn","description":"Transit planet"},"transitPlanetNumber":{"type":"number","example":7,"description":"Canonical number of transit planet (1-12)."},"natalPlanet":{"type":"string","example":"moon","description":"Natal planet being aspected"},"natalPlanetNumber":{"type":"number","example":2,"description":"Canonical number of natal planet (1-12)."},"aspectType":{"type":"string","example":"7th","description":"Parashari aspect type — house offset from transit planet. All planets: 7th. Mars: 4th/8th. Jupiter: 5th/9th. Saturn: 3rd/10th."},"aspectDegree":{"type":"number","example":7,"description":"Parashari aspect house offset (7=7th, 4=4th, 8=8th, 5=5th, 9=9th, 3=3rd, 10=10th)"},"orb":{"type":"number","example":2.5,"description":"Angular separation in degrees between transit planet and aspected natal planet"},"isApplying":{"type":"boolean","example":true,"description":"Is the aspect applying (transit getting closer to exact)?"},"strength":{"type":"number","example":1,"description":"Aspect strength — always 1.0 for Parashari house-based aspects (binary: aspecting or not)"}},"required":["transitPlanet","transitPlanetNumber","natalPlanet","natalPlanetNumber","aspectType","aspectDegree","orb","isApplying","strength"]},"TransitToNatalResponseDto":{"type":"object","properties":{"transitPositions":{"description":"Current transit positions","type":"array","items":{"$ref":"#/components/schemas/PlanetTransitDto"}},"houseTransits":{"description":"Which natal houses transits are passing through","type":"array","items":{"$ref":"#/components/schemas/TransitHousePositionDto"}},"aspects":{"description":"Transit aspects to natal planets (if includeAspects=true)","type":"array","items":{"$ref":"#/components/schemas/TransitAspectDto"}},"meta":{"type":"object","description":"Calculation metadata"}},"required":["transitPositions","houseTransits","meta"]},"TransitTimelineResponseDto":{"type":"object","properties":{"planets":{"description":"Timeline-centric transit payload for selected planets including timeline summaries and optional event stream.","type":"array","items":{"$ref":"#/components/schemas/PlanetTransitDto"}},"meta":{"type":"object","description":"Timeline query metadata.","example":{"datetime":"2026-04-21T02:00:00","timezone":"Asia/Kolkata","ayanamsa":"Lahiri","ayanamsaValue":24.214,"julianDay":2461149.354167,"timeline":"sign","timelineDetail":"summary","lookaheadYears":null}}},"required":["planets","meta"]},"ReverseTransitPlanetSnapshotDto":{"type":"object","properties":{"planet":{"type":"string","example":"sun"},"planetNumber":{"type":"number","example":1,"description":"Canonical planet number (1-12)."},"sign":{"type":"string","example":"pisces"},"signNumber":{"type":"number","example":12,"description":"Canonical sign number (1-12)."},"degree":{"type":"number","example":10.25},"nakshatra":{"type":"string","example":"revati"},"nakshatraNumber":{"type":"number","example":27,"description":"Canonical nakshatra number (1-27)."},"pada":{"type":"number","example":1},"motion":{"type":"string","example":"direct"}},"required":["planet","planetNumber","sign","signNumber","degree","nakshatra","nakshatraNumber","pada","motion"]},"ReverseTransitWindowDto":{"type":"object","properties":{"startTime":{"type":"string","example":"2026-03-28T05:25:00+05:30"},"endTime":{"type":"string","example":"2026-03-28T07:10:00+05:30"},"bestTime":{"type":"string","example":"2026-03-28T06:12:00+05:30"},"durationMinutes":{"type":"number","example":105},"snapshot":{"type":"array","items":{"$ref":"#/components/schemas/ReverseTransitPlanetSnapshotDto"}}},"required":["startTime","endTime","bestTime","durationMinutes","snapshot"]},"ReverseTransitResponseDto":{"type":"object","properties":{"results":{"description":"Matching transit windows.","type":"array","items":{"$ref":"#/components/schemas/ReverseTransitWindowDto"}},"totalFound":{"type":"number","example":12},"meta":{"type":"object","description":"Search metadata.","example":{"startDate":"2026-01-01","endDate":"2026-12-31","timezone":"Asia/Kolkata","ayanamsa":"Lahiri","ayanamsaCode":46}}},"required":["results","totalFound","meta"]},"ReverseTransitPlanetConstraintDto":{"type":"object","properties":{"planet":{"type":"string","example":"sun","enum":["sun","moon","mars","mercury","jupiter","venus","saturn","rahu","ketu","uranus","neptune","pluto"],"description":"Planet name."},"sign":{"type":"string","example":"pisces","enum":["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces"],"description":"Transit sign filter."},"nakshatra":{"type":"string","example":"revati","enum":["ashwini","bharani","krittika","rohini","mrigashira","ardra","punarvasu","pushya","ashlesha","magha","purva-phalguni","uttara-phalguni","hasta","chitra","swati","vishakha","anuradha","jyeshtha","mula","purva-ashadha","uttara-ashadha","shravana","dhanishta","shatabhisha","purva-bhadrapada","uttara-bhadrapada","revati"],"description":"Transit nakshatra filter."},"pada":{"type":"number","example":1,"enum":[1,2,3,4],"description":"Transit nakshatra pada filter."},"motion":{"type":"string","example":"retrograde","enum":["direct","retrograde","stationary"],"description":"Transit motion state filter."},"degree":{"type":"number","example":10.5,"minimum":0,"maximum":30,"description":"Degree in sign filter."},"degreeTolerance":{"type":"number","example":0.5,"minimum":0,"maximum":5,"default":0.5,"description":"Degree tolerance in sign matching."}},"required":["planet"]},"ReverseTransitConstraintsDto":{"type":"object","properties":{"planets":{"description":"Planet constraints. All constraints are AND matched.","type":"array","items":{"$ref":"#/components/schemas/ReverseTransitPlanetConstraintDto"}}},"required":["planets"]},"ReverseTransitRequestDto":{"type":"object","properties":{"startDate":{"type":"string","example":"2026-01-01","description":"Search range start date (YYYY-MM-DD)."},"endDate":{"type":"string","example":"2026-12-31","description":"Search range end date (YYYY-MM-DD)."},"tz":{"type":"string","example":"Asia/Kolkata","default":"Asia/Kolkata","enum":["Asia/Kolkata","UTC","Asia/Dubai","Asia/Singapore","Asia/Tokyo","Europe/London","Europe/Berlin","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","Australia/Sydney"],"description":"IANA timezone for output window formatting."},"ayanamsa":{"type":"number","example":1,"default":1,"description":"Ayanamsa code for sidereal calculation."},"constraints":{"description":"Reverse transit constraints.","allOf":[{"$ref":"#/components/schemas/ReverseTransitConstraintsDto"}]},"limit":{"type":"number","example":50,"default":50,"minimum":1,"maximum":100,"description":"Maximum windows to return."},"async":{"type":"boolean","example":false,"default":false,"description":"If true, queue this reverse transit search as async job and return job handle."}},"required":["startDate","endDate","constraints"]},"TimeEventDto":{"type":"object","properties":{"jd":{"type":"number","example":2460385.76458,"description":"Julian Day (UT). Useful for astronomical calculations and interoperability."},"utc":{"type":"string","example":"2024-03-15T00:21:00Z","description":"ISO 8601 UTC timestamp."},"local":{"type":"string","example":"2024-03-15T05:51:00+05:30","description":"ISO 8601 local timestamp with timezone offset."},"localTime":{"type":"string","example":"05:51:00","description":"Local time in HH:mm:ss format (24-hour)."},"formatted":{"type":"string","example":"Friday, 15 March 2024, 5:51 AM IST","description":"Human-readable formatted time with timezone abbreviation."}},"required":["jd","utc","local","localTime"]},"PolarConditionDto":{"type":"object","properties":{"condition":{"type":"string","example":"polar-day","enum":["polar-day","polar-night","moon-always-up","moon-always-down"],"description":"Type of polar condition."},"message":{"type":"string","example":"Sun does not set at this location on this date (midnight sun)","description":"Human-readable explanation."}},"required":["condition","message"]},"SunTimesDataDto":{"type":"object","properties":{"sunrise":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"sunset":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"solarNoon":{"$ref":"#/components/schemas/TimeEventDto"},"solarMidnight":{"$ref":"#/components/schemas/TimeEventDto"},"dayLengthHours":{"type":"object","nullable":true},"dayLengthFormatted":{"type":"object","nullable":true},"nightLengthHours":{"type":"object","nullable":true},"nightLengthFormatted":{"type":"object","nullable":true},"polarCondition":{"$ref":"#/components/schemas/PolarConditionDto"}},"required":["solarNoon","solarMidnight"]},"MoonTimesDataDto":{"type":"object","properties":{"moonrise":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"moonset":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"moonTransit":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"phase":{"$ref":"#/components/schemas/MoonPhaseDto"},"longitude":{"type":"number"},"latitude":{"type":"number"},"isVisibleEvening":{"type":"boolean"},"polarCondition":{"$ref":"#/components/schemas/PolarConditionDto"}},"required":["longitude","latitude","isVisibleEvening"]},"CalculationMetaDto":{"type":"object","properties":{"date":{"type":"string","example":"2024-03-15","description":"Date for which calculations were performed."},"timezone":{"type":"string","example":"Asia/Kolkata","description":"IANA timezone identifier."},"utcOffset":{"type":"string","example":"+05:30","description":"UTC offset in ±HH:mm format."},"location":{"type":"object","example":"Mumbai, Maharashtra, India","nullable":true,"description":"Location name if resolved from locationId."},"coordinates":{"type":"object","example":{"latitude":19.076,"longitude":72.877,"elevation":14},"description":"Geographic coordinates used for calculation."},"method":{"type":"string","example":"standard","enum":["standard","hindu"],"description":"Calculation method used."},"julianDay":{"type":"number","example":2460385.5,"description":"Julian Day at local midnight for this date."}},"required":["date","timezone","utcOffset","coordinates","method","julianDay"]},"AstronomicalTimesResponseDto":{"type":"object","properties":{"sun":{"description":"Sun timing data (sunrise, sunset, twilight, etc.)","allOf":[{"$ref":"#/components/schemas/SunTimesDataDto"}]},"moon":{"description":"Moon timing data (moonrise, moonset, phase, etc.)","allOf":[{"$ref":"#/components/schemas/MoonTimesDataDto"}]},"meta":{"description":"Shared calculation metadata.","allOf":[{"$ref":"#/components/schemas/CalculationMetaDto"}]}},"required":["sun","moon","meta"]},"TwilightPairDto":{"type":"object","properties":{"dawn":{"nullable":true,"description":"Dawn time (morning twilight start). Null in polar regions.","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"dusk":{"nullable":true,"description":"Dusk time (evening twilight end). Null in polar regions.","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"angle":{"type":"number","example":6,"description":"Sun depression angle in degrees below horizon."},"description":{"type":"string","example":"Sun is 6° below horizon. Outdoor activities possible without artificial light.","description":"Description of this twilight phase."}},"required":["angle","description"]},"TwilightTimesDto":{"type":"object","properties":{"civil":{"description":"Civil twilight (6° below horizon). Outdoor activities possible.","allOf":[{"$ref":"#/components/schemas/TwilightPairDto"}]},"nautical":{"description":"Nautical twilight (12° below horizon). Horizon visible at sea.","allOf":[{"$ref":"#/components/schemas/TwilightPairDto"}]},"astronomical":{"description":"Astronomical twilight (18° below horizon). Full darkness for astronomy.","allOf":[{"$ref":"#/components/schemas/TwilightPairDto"}]}},"required":["civil","nautical","astronomical"]},"SunTimesResponseDto":{"type":"object","properties":{"sunrise":{"nullable":true,"description":"Sunrise time. Null in polar regions during polar night.","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"sunset":{"nullable":true,"description":"Sunset time. Null in polar regions during midnight sun.","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"solarNoon":{"description":"Solar noon - sun at highest point in the sky (upper meridian transit).","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"solarMidnight":{"description":"Solar midnight - sun at lowest point (lower meridian transit).","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"dayLengthHours":{"type":"object","example":12.1,"nullable":true,"description":"Day length in hours (sunrise to sunset). Null in polar regions."},"dayLengthFormatted":{"type":"object","example":"12h 6m 0s","nullable":true,"description":"Day length formatted. Null in polar regions."},"nightLengthHours":{"type":"object","example":11.9,"nullable":true,"description":"Night length in hours (sunset to next sunrise). Null in polar regions."},"nightLengthFormatted":{"type":"object","example":"11h 54m 0s","nullable":true,"description":"Night length formatted. Null in polar regions."},"twilight":{"description":"Twilight times (civil, nautical, astronomical). Only if includeTwilight=true.","allOf":[{"$ref":"#/components/schemas/TwilightTimesDto"}]},"polarCondition":{"description":"Polar condition details if sun does not rise or set.","allOf":[{"$ref":"#/components/schemas/PolarConditionDto"}]},"meta":{"description":"Calculation metadata including location and method.","allOf":[{"$ref":"#/components/schemas/CalculationMetaDto"}]}},"required":["solarNoon","solarMidnight","meta"]},"MoonTimesResponseDto":{"type":"object","properties":{"moonrise":{"nullable":true,"description":"Moonrise time. Null if moon does not rise on this day.","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"moonset":{"nullable":true,"description":"Moonset time. Null if moon does not set on this day.","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"moonTransit":{"nullable":true,"description":"Moon transit - moon at highest point in sky. Null if moon doesn't transit.","allOf":[{"$ref":"#/components/schemas/TimeEventDto"}]},"phase":{"description":"Moon phase information. Only if includePhase=true.","allOf":[{"$ref":"#/components/schemas/MoonPhaseDto"}]},"longitude":{"type":"number","example":145.75,"description":"Moon's tropical longitude in degrees (0-360)."},"latitude":{"type":"number","example":5.2,"description":"Moon's latitude in degrees (typically -5 to +5)."},"isVisibleEvening":{"type":"boolean","example":true,"description":"Whether the moon is visible in the evening sky."},"polarCondition":{"description":"Polar condition details if moon does not rise or set for extended period.","allOf":[{"$ref":"#/components/schemas/PolarConditionDto"}]},"meta":{"description":"Calculation metadata including location and method.","allOf":[{"$ref":"#/components/schemas/CalculationMetaDto"}]}},"required":["longitude","latitude","isVisibleEvening","meta"]},"EclipseSubtypeCountsDto":{"type":"object","properties":{"totalCount":{"type":"number","example":1},"partialCount":{"type":"number","example":2},"annularCount":{"type":"number","example":1},"annularTotalCount":{"type":"number","example":0},"penumbralCount":{"type":"number","example":2},"unknownCount":{"type":"number","example":0}},"required":["totalCount","partialCount","annularCount","annularTotalCount","penumbralCount","unknownCount"]},"EclipseSummaryDto":{"type":"object","properties":{"totalEclipseCount":{"type":"number","example":6},"solarEclipseCount":{"type":"number","example":2},"lunarEclipseCount":{"type":"number","example":4},"centralEclipseCount":{"type":"number","example":1},"nonCentralEclipseCount":{"type":"number","example":5},"visibleAtLocationEclipseCount":{"type":"number","example":3,"description":"Present only when location is provided. Count of events visible at requested location."},"firstEclipseTimeUtc":{"type":"string","example":"2026-03-03T12:45:18Z","description":"UTC time of first eclipse event in this response."},"lastEclipseTimeUtc":{"type":"string","example":"2026-12-29T09:12:04Z","description":"UTC time of last eclipse event in this response."},"eclipseSubtypeCounts":{"$ref":"#/components/schemas/EclipseSubtypeCountsDto"}},"required":["totalEclipseCount","solarEclipseCount","lunarEclipseCount","centralEclipseCount","nonCentralEclipseCount","eclipseSubtypeCounts"]},"EclipseTimeDto":{"type":"object","properties":{"utcDateTime":{"type":"string","example":"2026-03-03T12:45:18Z"},"localDateTime":{"type":"string","example":"2026-03-03T18:15:18+05:30","description":"Local date-time with explicit offset. Present only when location context exists."},"julianDayUt":{"type":"number","example":2461102.98173,"description":"Julian day in UT. Returned only for detailLevel=full."}},"required":["utcDateTime"]},"EclipseContactTimesDto":{"type":"object","properties":{"firstContactTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"secondContactTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"thirdContactTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"fourthContactTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"eclipseStartTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"eclipseEndTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"totalOrAnnularStartTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"totalOrAnnularEndTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"penumbralStartTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"penumbralEndTime":{"$ref":"#/components/schemas/EclipseTimeDto"}}},"EclipseDurationSecondsDto":{"type":"object","properties":{"eclipseWindowSeconds":{"type":"object","example":7260,"description":"Total eclipse window in seconds (start contact to end contact)."},"totalOrAnnularPhaseSeconds":{"type":"object","example":210,"description":"Total or annular phase duration in seconds when applicable."},"penumbralPhaseSeconds":{"type":"object","example":7680,"description":"Penumbral phase duration in seconds when applicable."},"localVisibilityWindowSeconds":{"type":"object","example":4200,"description":"Locally visible eclipse duration in seconds."}}},"EclipseBoundaryCoordinatesDto":{"type":"object","properties":{"northLongitude":{"type":"object","example":70.1},"northLatitude":{"type":"object","example":15.4},"southLongitude":{"type":"object","example":84.2},"southLatitude":{"type":"object","example":18.3}}},"EclipsePathGeometryDto":{"type":"object","properties":{"centralLineLongitude":{"type":"object","example":77.2},"centralLineLatitude":{"type":"object","example":12.5},"umbraBoundary":{"$ref":"#/components/schemas/EclipseBoundaryCoordinatesDto"},"penumbraBoundary":{"$ref":"#/components/schemas/EclipseBoundaryCoordinatesDto"}}},"EclipseLocationVisibilityDto":{"type":"object","properties":{"isVisibleAtLocation":{"type":"boolean","example":true},"contactTimes":{"$ref":"#/components/schemas/EclipseContactTimesDto"},"durationSeconds":{"$ref":"#/components/schemas/EclipseDurationSecondsDto"},"trueAltitudeDegrees":{"type":"object","example":24.5},"apparentAltitudeDegrees":{"type":"object","example":24.8},"eclipseMagnitude":{"type":"object","example":0.86},"eclipseObscuration":{"type":"object","example":0.79},"moonriseTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"moonsetTime":{"$ref":"#/components/schemas/EclipseTimeDto"}},"required":["isVisibleAtLocation"]},"EclipseEventDto":{"type":"object","properties":{"eventId":{"type":"string","example":"solar:2461129.123456"},"eclipseType":{"type":"string","enum":["solar","lunar"],"example":"solar"},"eclipseSubtype":{"type":"string","enum":["total","partial","annular","annular-total","penumbral","unknown"],"example":"partial"},"isCentralEclipse":{"type":"boolean","example":false},"maximumEclipseTime":{"$ref":"#/components/schemas/EclipseTimeDto"},"contactTimes":{"$ref":"#/components/schemas/EclipseContactTimesDto"},"durationSeconds":{"$ref":"#/components/schemas/EclipseDurationSecondsDto"},"sarosSeriesNumber":{"type":"object","example":145},"sarosMemberNumber":{"type":"object","example":37},"eclipseMagnitude":{"type":"object","example":0.92},"eclipseObscuration":{"type":"object","example":0.81},"pathGeometry":{"$ref":"#/components/schemas/EclipsePathGeometryDto"},"locationVisibility":{"$ref":"#/components/schemas/EclipseLocationVisibilityDto"},"swissEclipseFlagBitmask":{"type":"number","example":20,"description":"Raw Swiss eclipse flag bitmask. Returned only for detailLevel=full."},"swissRawOutput":{"type":"object","description":"Raw Swiss output arrays and flags. Returned only for detailLevel=full."}},"required":["eventId","eclipseType","eclipseSubtype","isCentralEclipse","maximumEclipseTime","contactTimes","durationSeconds"]},"EclipseSearchMetaDto":{"type":"object","properties":{"searchStartDateUtc":{"type":"string","example":"2026-01-01"},"searchEndDateUtc":{"type":"string","example":"2026-12-31"},"requestedEclipseType":{"type":"string","enum":["solar","lunar","both"],"example":"both"},"detailLevel":{"type":"string","enum":["summary","full"],"example":"summary"},"isVisibleOnlyFilter":{"type":"boolean","example":false},"totalEvents":{"type":"number","example":6},"isCacheHit":{"type":"boolean","example":false},"locationTimezone":{"type":"string","example":"Asia/Kolkata","description":"Present only when location enrichment is requested."}},"required":["searchStartDateUtc","searchEndDateUtc","requestedEclipseType","detailLevel","isVisibleOnlyFilter","totalEvents","isCacheHit"]},"EclipseSearchResponseDto":{"type":"object","properties":{"eclipseSummary":{"$ref":"#/components/schemas/EclipseSummaryDto"},"eclipseEvents":{"type":"array","items":{"$ref":"#/components/schemas/EclipseEventDto"}},"searchMeta":{"$ref":"#/components/schemas/EclipseSearchMetaDto"}},"required":["eclipseSummary","eclipseEvents","searchMeta"]},"MoonPositionDto":{"type":"object","properties":{"longitude":{"type":"number","example":197.894,"description":"Sidereal longitude in degrees"},"nakshatra":{"type":"string","example":"swati","description":"Nakshatra name"},"nakshatraNumber":{"type":"number","example":15,"description":"Nakshatra number (1-27)"},"pada":{"type":"number","example":4,"description":"Pada (quarter) 1-4"},"sign":{"type":"string","example":"libra","description":"Moon sign (rashi)"},"signNumber":{"type":"number","example":7,"description":"Sign number (1-12)"},"signLord":{"type":"string","example":"venus","description":"Sign lord"}},"required":["longitude","nakshatra","nakshatraNumber","pada","sign","signNumber","signLord"]},"MatchingPersonDto":{"type":"object","properties":{"name":{"type":"string","example":"groom","description":"Person label"},"moon":{"description":"Moon position details","allOf":[{"$ref":"#/components/schemas/MoonPositionDto"}]}},"required":["moon"]},"KootaScoreDto":{"type":"object","properties":{"name":{"type":"string","example":"Varna","description":"Koota name"},"maxPoints":{"type":"number","example":1,"description":"Maximum possible points"},"points":{"type":"number","example":1,"description":"Points obtained"},"description":{"type":"string","example":"Spiritual/ego compatibility","description":"What this koota measures"},"details":{"type":"object","example":{"groom":"shudra","bride":"shudra"},"description":"Values used for calculation"}},"required":["name","maxPoints","points","description"]},"AshtakootKootasDto":{"type":"object","properties":{"varna":{"description":"Varna (Caste) - 1 point max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]},"vashya":{"description":"Vashya (Dominance) - 2 points max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]},"tara":{"description":"Tara (Birth Star) - 3 points max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]},"yoni":{"description":"Yoni (Physical/Sexual) - 4 points max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]},"grahaMaitri":{"description":"Graha Maitri (Mental) - 5 points max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]},"gana":{"description":"Gana (Temperament) - 6 points max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]},"bhakoot":{"description":"Bhakoot (Love/Family) - 7 points max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]},"nadi":{"description":"Nadi (Health/Genetic) - 8 points max","allOf":[{"$ref":"#/components/schemas/KootaScoreDto"}]}},"required":["varna","vashya","tara","yoni","grahaMaitri","gana","bhakoot","nadi"]},"MatchingDoshasDto":{"type":"object","properties":{"nadiDosha":{"type":"boolean","example":false,"description":"Nadi Dosha - Same nadi (0 points)"},"bhakootDosha":{"type":"object","example":null,"description":"Bhakoot Dosha effect if present"}},"required":["nadiDosha"]},"AshtakootResponseDto":{"type":"object","properties":{"groom":{"description":"Groom (first person) details","allOf":[{"$ref":"#/components/schemas/MatchingPersonDto"}]},"bride":{"description":"Bride (second person) details","allOf":[{"$ref":"#/components/schemas/MatchingPersonDto"}]},"kootas":{"description":"All 8 Koota scores","allOf":[{"$ref":"#/components/schemas/AshtakootKootasDto"}]},"totalPoints":{"type":"number","example":28,"description":"Total points obtained (0-36)"},"maxPoints":{"type":"number","example":36,"description":"Maximum possible points"},"percentage":{"type":"number","example":77.78,"description":"Match percentage"},"verdict":{"type":"string","example":"Excellent Match","description":"Match verdict based on score"},"recommendation":{"type":"string","example":"Highly recommended for marriage","description":"Detailed recommendation"},"doshas":{"description":"Doshas detected","allOf":[{"$ref":"#/components/schemas/MatchingDoshasDto"}]},"ayanamsa":{"type":"object","example":{"code":1,"name":"Lahiri","value":23.456},"description":"Ayanamsa used for calculations"}},"required":["groom","bride","kootas","totalPoints","maxPoints","percentage","verdict","recommendation","doshas","ayanamsa"]},"PersonBirthDataDto":{"type":"object","properties":{"name":{"type":"string","example":"groom","description":"Label for this person (groom/bride or any identifier)"},"locationId":{"type":"number","example":1276300,"description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields."},"lat":{"type":"number","example":25.2445,"minimum":-90,"maximum":90,"description":"Latitude in decimal degrees. Required if locationId not provided."},"lng":{"type":"number","example":86.9718,"minimum":-180,"maximum":180,"description":"Longitude in decimal degrees. Required if locationId not provided."},"tz":{"type":"string","example":"Asia/Kolkata","description":"IANA timezone identifier. Required if locationId not provided."},"elevation":{"type":"number","example":52,"default":0,"minimum":-500,"maximum":10000,"description":"Elevation in meters above sea level."},"datetime":{"type":"string","example":"1993-03-12T05:30:00","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss"}},"required":["name","datetime"]},"AshtakootRequestDto":{"type":"object","properties":{"groom":{"description":"Birth details of the groom (or first person)","allOf":[{"$ref":"#/components/schemas/PersonBirthDataDto"}]},"bride":{"description":"Birth details of the bride (or second person)","allOf":[{"$ref":"#/components/schemas/PersonBirthDataDto"}]},"ayanamsa":{"type":"number","example":1,"default":1,"description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP."}},"required":["groom","bride"]},"SignBinduDto":{"type":"object","properties":{"sign":{"type":"number","example":1,"description":"Sign number (1-12)"},"signName":{"type":"string","example":"aries","description":"Sign name"},"bindu":{"type":"number","example":5,"description":"Bindu count for this sign"}},"required":["sign","signName","bindu"]},"PlanetBAVDto":{"type":"object","properties":{"planet":{"type":"string","example":"sun","description":"Planet name"},"bav":{"example":[4,5,3,6,4,5,3,4,5,6,3,4],"description":"Bindu array for each sign (12 values)","type":"array","items":{"type":"string"}},"totalBindu":{"type":"number","example":48,"description":"Total bindus for this planet"},"signWise":{"description":"Sign-wise breakdown with names","type":"array","items":{"$ref":"#/components/schemas/SignBinduDto"}}},"required":["planet","bav","totalBindu","signWise"]},"AshtakavargaResponseDto":{"type":"object","properties":{"planets":{"description":"Bhinnashtakavarga (BAV) for each of 7 planets","type":"array","items":{"$ref":"#/components/schemas/PlanetBAVDto"}},"sarvashtakavarga":{"type":"object","description":"Sarvashtakavarga (SAV) - combined strength","properties":{"signWise":{"type":"array","items":{"$ref":"#/components/schemas/SAVSignDto"}},"grandTotal":{"type":"number","example":337}}},"interpretation":{"type":"object","description":"Interpretation based on SAV values","properties":{"strongSigns":{"type":"array","items":{"type":"number"}},"weakSigns":{"type":"array","items":{"type":"number"}},"summary":{"type":"string"}}}},"required":["planets","sarvashtakavarga","interpretation"]},"ShadbalaCalculationSettingsDto":{"type":"object","properties":{"drikBala":{"type":"string","example":"graha","enum":["graha","sputa"],"description":"Selected Drik Bala method. Defaults to graha for backwards-safe numeric output; set sputa for exact longitude-based aspect interpolation."}},"required":["drikBala"]},"SthanaBalaDto":{"type":"object","properties":{"uchaBala":{"type":"number","example":45.2,"description":"Uchcha Bala (Exaltation Strength). Distance from debilitation point ÷ 3. Max: 60"},"saptavargajaBala":{"type":"number","example":210.5,"description":"Saptavargaja Bala (7 Divisional Strength). Sum of dignity points across D1/D2/D3/D7/D9/D12/D30. Max: 315"},"ojayugmarasiBala":{"type":"number","example":15,"description":"Ojayugmarasi Bala (Odd/Even Sign Strength). Based on planet gender matching sign/navamsha parity. Max: 30"},"kendradiBala":{"type":"number","example":60,"description":"Kendradi Bala (Angular House Strength). Kendra=60, Panapara=30, Apoklima=15"},"drekkanaBala":{"type":"number","example":15,"description":"Drekkana Bala (Decanate Strength). Based on planet gender matching decanate. Max: 15"},"total":{"type":"number","example":345.7,"description":"Total Sthana Bala in Virupas. Sum of all 5 sub-components."}},"required":["uchaBala","saptavargajaBala","ojayugmarasiBala","kendradiBala","drekkanaBala","total"]},"DigBalaDto":{"type":"object","properties":{"value":{"type":"number","example":38.5,"description":"Dig Bala in Virupas. Based on planet distance from its directional house. Max: 60"},"targetHouse":{"type":"string","example":"jupiter_mercury_1st, sun_mars_10th, saturn_7th, moon_venus_4th","description":"House target for Dig Bala based on planet group"}},"required":["value","targetHouse"]},"KalaBalaDto":{"type":"object","properties":{"natonnataBala":{"type":"number","example":45.8,"description":"Natonnata Bala (Day/Night Strength). Based on diurnal/nocturnal planet type vs birth time. Max: 60"},"pakshaBala":{"type":"number","example":32.3,"description":"Paksha Bala (Fortnight Strength). Based on Moon phase (Sun-Moon difference). Max: 60"},"tribhagaBala":{"type":"number","example":60,"description":"Tribhaga Bala (3-Part Day/Night). Based on which third of day/night birth occurs. Max: 60"},"varshaMasaDinaHoraBala":{"type":"number","example":45,"description":"Varsha-Masa-Dina-Hora Bala. Matching Varsha/Masa/Dina/Hora lords give 15/30/45/60 Virupas respectively. Max: 150"},"ayanaBala":{"type":"number","example":42.1,"description":"Ayana Bala (Solstice Strength). Based on planetary declination and true obliquity. Max: 60"},"total":{"type":"number","example":225.2,"description":"Total Kala Bala in Virupas. Sum of all 5 sub-components."}},"required":["natonnataBala","pakshaBala","tribhagaBala","varshaMasaDinaHoraBala","ayanaBala","total"]},"CheshtaBalaDto":{"type":"object","properties":{"value":{"type":"number","example":48.2,"description":"Cheshta Bala in Virupas. Sun=Ayana Bala after Sun-specific Ayana doubling, Moon=PakshaBala, Mars-Saturn=Seeghra Kendra formula from planetary orbital elements. Max: 60"},"method":{"type":"string","example":"seeghra_kendra","description":"Method used: ayana_bala (Sun), paksha_bala (Moon), seeghra_kendra (Mars-Saturn orbital elements)"}},"required":["value","method"]},"NaisargikaBalaDto":{"type":"object","properties":{"value":{"type":"number","example":34.29,"description":"Naisargika Bala in Virupas. Fixed intrinsic strength from BPHS. Sun=60, Moon=51.43, Venus=42.86, Jupiter=34.29, Mercury=25.71, Mars=17.14, Saturn=8.57"}},"required":["value"]},"AspectContributionDto":{"type":"object","properties":{"planet":{"type":"string","example":"jupiter","description":"The aspecting planet"},"contribution":{"type":"number","example":15,"description":"Strength contribution (+ for benefic, - for malefic)"},"aspectType":{"type":"string","example":"seventh_house_full","description":"Type of aspect applied"},"angleDegrees":{"type":"number","example":184.72,"description":"Exact aspect angle in degrees from aspecting planet to aspected planet. Present for drikBala=sputa."},"sputaVirupas":{"type":"number","example":57.64,"description":"Raw Sputa Drishti strength in Virupas before benefic/malefic rectification. Present for drikBala=sputa."},"rectificationFactor":{"type":"number","example":1.25,"description":"Rectification multiplier applied to Sputa Drishti: 1.25 for benefic aspects, 0.75 for malefic aspects. Present for drikBala=sputa."},"nature":{"type":"string","example":"benefic","enum":["benefic","malefic"],"description":"Functional nature used for Drik Bala rectification. Present for drikBala=sputa."}},"required":["planet","contribution","aspectType"]},"DrikBalaDto":{"type":"object","properties":{"method":{"type":"string","example":"graha","enum":["graha","sputa"],"description":"Drik Bala method used for this calculation. graha is the default stable method; sputa is exact longitude interpolation."},"value":{"type":"number","example":45,"description":"Drik Bala in Virupas. Net aspectual strength. Benefic aspects add strength; malefic aspects reduce strength."},"contributions":{"description":"Individual aspect contributions from each planet","type":"array","items":{"$ref":"#/components/schemas/AspectContributionDto"}}},"required":["method","value","contributions"]},"PlanetShadbalaDto":{"type":"object","properties":{"planet":{"type":"string","example":"jupiter","description":"Planet name"},"sthanaBala":{"description":"Sthana Bala (Positional Strength) with 5 sub-components","allOf":[{"$ref":"#/components/schemas/SthanaBalaDto"}]},"digBala":{"description":"Dig Bala (Directional Strength)","allOf":[{"$ref":"#/components/schemas/DigBalaDto"}]},"kalaBala":{"description":"Kala Bala (Temporal Strength) with 5 sub-components","allOf":[{"$ref":"#/components/schemas/KalaBalaDto"}]},"cheshtaBala":{"description":"Cheshta Bala (Motional Strength from planetary orbital elements)","allOf":[{"$ref":"#/components/schemas/CheshtaBalaDto"}]},"naisargikaBala":{"description":"Naisargika Bala (Natural/Intrinsic Strength)","allOf":[{"$ref":"#/components/schemas/NaisargikaBalaDto"}]},"drikBala":{"description":"Drik Bala (Aspectual Strength with contributions)","allOf":[{"$ref":"#/components/schemas/DrikBalaDto"}]},"totalVirupas":{"type":"number","example":485.5,"description":"Total Shadbala in Virupas. Sum of all 6 balas."},"totalRupas":{"type":"number","example":8.09,"description":"Total Shadbala in Rupas. 1 Rupa = 60 Virupas."},"requiredRupas":{"type":"number","example":6.5,"description":"Required minimum Shadbala in Rupas for this planet per BPHS."},"isStrong":{"type":"boolean","example":true,"description":"Whether this planet exceeds its required Shadbala and is considered strong."},"strengthRatio":{"type":"number","example":1.24,"description":"Strength ratio = actual Rupas / required Rupas. >1 means strong."},"strengthClassification":{"type":"string","example":"strong","description":"Strength classification: very_strong (ratio≥1.5), strong (≥1.0), adequate (≥0.75), weak (<0.75)","enum":["very_strong","strong","adequate","weak"]}},"required":["planet","sthanaBala","digBala","kalaBala","cheshtaBala","naisargikaBala","drikBala","totalVirupas","totalRupas","requiredRupas","isStrong","strengthRatio","strengthClassification"]},"ShadbalaSummaryDto":{"type":"object","properties":{"strongestPlanet":{"type":"string","example":"jupiter","description":"Planet with highest total Shadbala"},"weakestPlanet":{"type":"string","example":"saturn","description":"Planet with lowest total Shadbala"},"averageRupas":{"type":"number","example":6.2,"description":"Average Shadbala in Rupas across all 7 planets"},"strongCount":{"type":"number","example":4,"description":"Number of planets that meet or exceed their required strength"},"weakCount":{"type":"number","example":3,"description":"Number of planets below their required strength"}},"required":["strongestPlanet","weakestPlanet","averageRupas","strongCount","weakCount"]},"ShadbalaInterpretationDto":{"type":"object","properties":{"strongPlanets":{"example":["jupiter","venus"],"description":"Planets that exceed their required strength","type":"array","items":{"type":"string"}},"weakPlanets":{"example":["saturn","mercury"],"description":"Planets below their required strength","type":"array","items":{"type":"string"}},"planetNotes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PlanetNoteDto"},"description":"Per-planet notes with dominant/weakest bala analysis"},"overall":{"type":"string","example":"4 of 7 planets are strong. Jupiter is the strongest planet at 8.09/6.5 Rupas.","description":"Overall Shadbala assessment"}},"required":["strongPlanets","weakPlanets","planetNotes","overall"]},"ShadbalaResponseDto":{"type":"object","properties":{"settings":{"description":"Calculation settings that affect numeric output. Use this to audit whether default Graha Drishti or opt-in Sputa Drishti was used.","allOf":[{"$ref":"#/components/schemas/ShadbalaCalculationSettingsDto"}]},"planets":{"description":"Shadbala results for each of the 7 classical planets (Sun to Saturn)","type":"array","items":{"$ref":"#/components/schemas/PlanetShadbalaDto"}},"summary":{"description":"Summary statistics across all planets","allOf":[{"$ref":"#/components/schemas/ShadbalaSummaryDto"}]},"interpretation":{"description":"Interpretation with strong/weak planets and per-planet notes","allOf":[{"$ref":"#/components/schemas/ShadbalaInterpretationDto"}]}},"required":["settings","planets","summary","interpretation"]},"BnnPlanetRefDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn"},"planetNumber":{"type":"number","example":7},"sign":{"type":"string","example":"aries"},"signNumber":{"type":"number","example":1},"degreeInSign":{"type":"number","example":14.12},"isRetrograde":{"type":"boolean","example":false},"isCusp":{"type":"boolean","example":false}},"required":["planet","planetNumber","sign","signNumber","degreeInSign","isRetrograde","isCusp"]},"BnnDirectionalGroupDto":{"type":"object","properties":{"directionId":{"type":"string","example":"EAST_FIRE"},"planets":{"type":"array","items":{"$ref":"#/components/schemas/BnnPlanetRefDto"}},"dominance":{"type":"string","example":"high"}},"required":["directionId","planets","dominance"]},"BnnPairSummaryDto":{"type":"object","properties":{"key":{"type":"string","example":"saturn-mercury"},"planets":{"example":["saturn","mercury"],"type":"array","items":{"type":"string"}}},"required":["key","planets"]},"BnnEvidenceItemDto":{"type":"object","properties":{"pair":{"example":["saturn","mercury"],"type":"array","items":{"type":"string"}},"relationFlags":{"example":["same_direction","forward_support"],"type":"array","items":{"type":"string"}},"sourceTag":{"type":"string","enum":["lineage-core","modern-teacher","engineering-default","pending-human-approval"],"example":"lineage-core"}},"required":["pair","relationFlags","sourceTag"]},"BnnRetroLaneDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn"},"lane":{"type":"string","example":"natal"},"sign":{"type":"string","example":"leo"},"signNumber":{"type":"number","example":5},"relatedPlanets":{"example":["mars"],"type":"array","items":{"type":"string"}}},"required":["planet","lane","sign","signNumber","relatedPlanets"]},"BnnRetroDualViewDto":{"type":"object","properties":{"planet":{"type":"string","example":"saturn"},"dualStateFlag":{"type":"boolean","example":true},"lanes":{"type":"array","items":{"$ref":"#/components/schemas/BnnRetroLaneDto"}}},"required":["planet","dualStateFlag","lanes"]},"BnnSourceStatusDto":{"type":"object","properties":{"doctrinalProfile":{"type":"string","example":"v1-working-contract"},"deterministic":{"type":"boolean","example":true}},"required":["doctrinalProfile","deterministic"]},"BnnContextResponseDto":{"type":"object","properties":{"requestContext":{"type":"object","additionalProperties":true},"chartFacts":{"type":"object","additionalProperties":true},"directionalGroups":{"type":"array","items":{"$ref":"#/components/schemas/BnnDirectionalGroupDto"}},"orderedChains":{"type":"object","additionalProperties":true},"pairSummaries":{"type":"array","items":{"$ref":"#/components/schemas/BnnPairSummaryDto"}},"evidenceItems":{"type":"array","items":{"$ref":"#/components/schemas/BnnEvidenceItemDto"}},"retroDualView":{"type":"array","items":{"$ref":"#/components/schemas/BnnRetroDualViewDto"}},"specialStates":{"type":"object","additionalProperties":true},"logicKeys":{"type":"array","items":{"type":"string"}},"logicStrings":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"sourceTags":{"type":"array","items":{"type":"string","enum":["lineage-core","modern-teacher","engineering-default","pending-human-approval"]}},"sourceStatus":{"$ref":"#/components/schemas/BnnSourceStatusDto"}},"required":["requestContext","chartFacts","directionalGroups","orderedChains","pairSummaries","evidenceItems","retroDualView","specialStates","logicKeys","logicStrings","warnings","sourceTags","sourceStatus"]},"BnnLifeAreaResponseDto":{"type":"object","properties":{"requestContext":{"type":"object","additionalProperties":true},"chartFacts":{"type":"object","additionalProperties":true},"directionalGroups":{"type":"array","items":{"$ref":"#/components/schemas/BnnDirectionalGroupDto"}},"orderedChains":{"type":"object","additionalProperties":true},"pairSummaries":{"type":"array","items":{"$ref":"#/components/schemas/BnnPairSummaryDto"}},"evidenceItems":{"type":"array","items":{"$ref":"#/components/schemas/BnnEvidenceItemDto"}},"retroDualView":{"type":"array","items":{"$ref":"#/components/schemas/BnnRetroDualViewDto"}},"specialStates":{"type":"object","additionalProperties":true},"logicKeys":{"type":"array","items":{"type":"string"}},"logicStrings":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"sourceTags":{"type":"array","items":{"type":"string","enum":["lineage-core","modern-teacher","engineering-default","pending-human-approval"]}},"sourceStatus":{"$ref":"#/components/schemas/BnnSourceStatusDto"},"lifeArea":{"type":"string","example":"career"},"primaryKaraka":{"$ref":"#/components/schemas/BnnPlanetRefDto"},"divisionalConfirmation":{"type":"object","additionalProperties":true,"example":{"d10":{"status":"positive","note":"Primary karaka in kendra/trikona in D10"}}},"cautionFlags":{"type":"array","items":{"type":"string"}}},"required":["requestContext","chartFacts","directionalGroups","orderedChains","pairSummaries","evidenceItems","retroDualView","specialStates","logicKeys","logicStrings","warnings","sourceTags","sourceStatus","lifeArea","primaryKaraka","divisionalConfirmation","cautionFlags"]},"BirthDataDto":{"type":"object","properties":{"locationId":{"type":"number","example":1276300,"description":"GeoNames city ID. Use GET /v2/geocode/search to find. Auto-resolves lat/lng/tz/elevation. When locationId is provided, do not send manual location fields."},"lat":{"type":"number","example":25.5941,"minimum":-90,"maximum":90,"description":"Latitude in decimal degrees. Required if locationId not provided."},"lng":{"type":"number","example":85.1376,"minimum":-180,"maximum":180,"description":"Longitude in decimal degrees. Required if locationId not provided."},"tz":{"type":"string","example":"Asia/Kolkata","description":"IANA timezone identifier. Required if locationId not provided. Examples: Asia/Kolkata, America/New_York, Europe/London"},"elevation":{"type":"number","example":53,"default":0,"minimum":-500,"maximum":10000,"description":"Elevation in meters above sea level. Optional, defaults to 0."},"datetime":{"type":"string","example":"1993-03-12T05:30:00","description":"Birth datetime in ISO 8601 format (local time). Format: YYYY-MM-DDTHH:mm:ss or YYYY-MM-DDTHH:mm. Values are validated."},"ayanamsa":{"type":"number","example":1,"default":1,"description":"Ayanamsa code. 1=Lahiri (default), 0=Fagan-Bradley, 3=Raman, 5=KP. Ignored if system=western."},"system":{"type":"string","enum":["vedic","western"],"default":"vedic","description":"Astrology system. Vedic uses sidereal zodiac, Western uses tropical."},"houseSystem":{"type":"string","enum":["whole-sign","equal","placidus","koch","campanus","regiomontanus","porphyry"],"default":"whole-sign","description":"House system. Vedic typically uses whole-sign, Western uses Placidus."},"falit":{"type":"boolean","example":false,"default":false,"description":"Interpretation context toggle. false (default, ~6 KB): core positions, signs, houses, basic dignity. true (~35 KB): adds dignityFlags, houseType, avasthas, specialStates, functionalNature, neechaBhanga, yuddha, parivartan, aspects, and structured interpretation context."}},"required":["datetime"]},"BnnLifeAreaRequestDto":{"type":"object","properties":{"birthData":{"description":"Birth input contract (same as chart endpoints)","allOf":[{"$ref":"#/components/schemas/BirthDataDto"}]},"gender":{"type":"string","description":"Gender required for dynamic BNN role assignment","enum":["male","female"],"example":"female"},"lifeArea":{"type":"string","description":"BNN life-area filter","enum":["career","business","marriage","relationships","wealth","property","children","health","travel","spirituality"],"example":"career"},"mode":{"type":"string","description":"BNN response mode: standard (default), thematic (LLM-ready), debug (full trace)","enum":["standard","thematic","debug"],"default":"standard","example":"thematic"},"includeDivisional":{"type":"array","description":"Optional divisional confirmation charts (D1 base is always implicit)","example":["D10"],"items":{"type":"string","enum":["D9","D10"]}}},"required":["birthData","gender","lifeArea"]},"BnnProgressionTargetDto":{"type":"object","properties":{"targetType":{"type":"string","enum":["planet","house-point"],"example":"planet"},"targetKey":{"type":"string","example":"jupiter"},"targetPlanet":{"type":"string","example":"jupiter"},"targetPlanetNumber":{"type":"number","example":5},"targetHouse":{"type":"number","example":5},"sign":{"type":"string","example":"leo"},"signNumber":{"type":"number","example":5},"degreeInSign":{"type":"number","example":10},"longitude":{"type":"number","example":130},"lifeAreaHints":{"example":["career","children"],"type":"array","items":{"type":"string"}}},"required":["targetType","targetKey","sign","signNumber","degreeInSign","longitude","lifeAreaHints"]},"BnnProgressionMarkerEventDto":{"type":"object","properties":{"progressedPlanet":{"type":"string","example":"jupiter"},"progressedPlanetNumber":{"type":"number","example":5},"targetType":{"type":"string","enum":["planet","house-point"],"example":"planet"},"targetKey":{"type":"string","example":"saturn"},"targetPlanet":{"type":"string","example":"saturn"},"targetPlanetNumber":{"type":"number","example":7},"targetHouse":{"type":"number","example":7},"sign":{"type":"string","example":"leo"},"signNumber":{"type":"number","example":5},"degreeInSign":{"type":"number","example":10},"triggerType":{"type":"string","enum":["CONJUNCT","TRINE","OPPOSITION"],"example":"CONJUNCT"},"age":{"type":"number","example":5},"calendarYear":{"type":"number","example":1998},"lifeAreaHints":{"example":["career","health"],"type":"array","items":{"type":"string"}},"sourceTag":{"type":"string","enum":["lineage-core","modern-teacher","engineering-default","pending-human-approval"],"example":"lineage-core"}},"required":["progressedPlanet","progressedPlanetNumber","targetType","targetKey","sign","signNumber","degreeInSign","triggerType","age","calendarYear","lifeAreaHints","sourceTag"]},"BnnProgressionRateDto":{"type":"object","properties":{"progressedPlanet":{"type":"string","example":"jupiter"},"yearsPerSign":{"type":"number","example":1},"degreesPerYear":{"type":"number","example":30},"direction":{"type":"string","example":"direct"}},"required":["progressedPlanet","yearsPerSign","degreesPerYear","direction"]},"BnnProgressionDebugRootDto":{"type":"object","properties":{"progressedPlanet":{"type":"string","example":"jupiter"},"targetKey":{"type":"string","example":"saturn"},"triggerType":{"type":"string","enum":["CONJUNCT","TRINE","OPPOSITION"],"example":"TRINE"},"targetLongitude":{"type":"number","example":250},"cycleIndex":{"type":"number","example":1},"solvedAge":{"type":"number","example":4},"kept":{"type":"boolean","example":true},"dedupeReason":{"type":"string","example":"duplicate_age_within_epsilon"}},"required":["progressedPlanet","targetKey","triggerType","targetLongitude","cycleIndex","solvedAge","kept"]},"BnnProgressionDebugTraceDto":{"type":"object","properties":{"exactMeetingEpsilonDegrees":{"type":"number","example":0.0166},"rates":{"type":"array","items":{"$ref":"#/components/schemas/BnnProgressionRateDto"}},"roots":{"type":"array","items":{"$ref":"#/components/schemas/BnnProgressionDebugRootDto"}}},"required":["exactMeetingEpsilonDegrees","rates","roots"]},"BnnProgressionResponseDto":{"type":"object","properties":{"requestContext":{"type":"object","additionalProperties":true},"natalTargets":{"type":"array","items":{"$ref":"#/components/schemas/BnnProgressionTargetDto"}},"markerEvents":{"type":"array","items":{"$ref":"#/components/schemas/BnnProgressionMarkerEventDto"}},"warnings":{"type":"array","items":{"type":"string"}},"sourceTags":{"type":"array","items":{"type":"string","enum":["lineage-core","modern-teacher","engineering-default","pending-human-approval"]}},"sourceStatus":{"$ref":"#/components/schemas/BnnSourceStatusDto"},"debugTrace":{"$ref":"#/components/schemas/BnnProgressionDebugTraceDto"}},"required":["requestContext","natalTargets","markerEvents","warnings","sourceTags","sourceStatus"]},"BnnProgressionRequestDto":{"type":"object","properties":{"birthData":{"description":"Birth input contract (same as chart endpoints)","allOf":[{"$ref":"#/components/schemas/BirthDataDto"}]},"gender":{"type":"string","description":"Gender required for dynamic BNN role assignment","enum":["male","female"],"example":"male"},"mode":{"type":"string","description":"BNN response mode: standard (default), thematic (LLM-ready), debug (full trace)","enum":["standard","thematic","debug"],"default":"standard","example":"debug"},"fromAge":{"type":"number","description":"Inclusive age window start for symbolic progression markers","example":0,"minimum":0,"maximum":120},"toAge":{"type":"number","description":"Exclusive age window end for symbolic progression markers","example":30,"minimum":0,"maximum":120}},"required":["birthData","gender","fromAge","toAge"]},"ReverseJobTimingDto":{"type":"object","properties":{"waitMs":{"type":"number","example":1200},"runMs":{"type":"number","example":8240},"totalMs":{"type":"number","example":9440},"completedAt":{"type":"string","example":"2026-04-18T08:40:11.000Z"}}},"ReverseJobQueueSnapshotDto":{"type":"object","properties":{"queueName":{"type":"string","example":"reverse_jobs"},"activeCount":{"type":"number","example":1},"waitingCount":{"type":"number","example":3},"delayedCount":{"type":"number","example":0},"prioritizedCount":{"type":"number","example":1},"completedCount":{"type":"number","example":12},"failedCount":{"type":"number","example":0},"positionInQueue":{"type":"number","example":2,"description":"1-based position among pending jobs when this job is queued."},"jobsAhead":{"type":"number","example":2,"description":"Approximate number of active or queued jobs that should run before this job."},"positionApproximate":{"type":"boolean","example":false,"description":"True when the job was outside the configured queue position scan window."},"workerConcurrency":{"type":"number","example":2}},"required":["queueName","activeCount","waitingCount","delayedCount","prioritizedCount","completedCount","failedCount"]},"ReverseJobStatusDto":{"type":"object","properties":{"jobId":{"type":"string","example":"A7K2"},"endpoint":{"type":"string","example":"reverse-d1"},"jobType":{"type":"string","example":"reverse-transit"},"jobTypeLabel":{"type":"string","example":"Reverse Transit"},"status":{"type":"object","example":"active"},"progressPercent":{"type":"number","example":67},"stageCode":{"type":"object","example":"scan"},"stageLabel":{"type":"string","example":"Scanning range"},"stageMessage":{"type":"string","example":"Starting coarse scan over reverse D1 range."},"queuedAt":{"type":"string","example":"2026-04-18T08:39:58.000Z"},"startedAt":{"type":"string","example":"2026-04-18T08:40:00.000Z"},"errorCode":{"type":"string","example":"job_not_found"},"errorMessage":{"type":"string","example":"Job failed due to invalid timezone history revision."},"updatedAt":{"type":"string","example":"2026-04-18T08:40:11.000Z"},"elapsedMs":{"type":"number","example":8240},"queue":{"$ref":"#/components/schemas/ReverseJobQueueSnapshotDto"},"requestSummary":{"$ref":"#/components/schemas/ReverseJobRequestSummaryDto"},"polling":{"$ref":"#/components/schemas/ReverseJobPollingDto"}},"required":["jobId","endpoint","jobType","jobTypeLabel","status"]},"ReverseJobExecutionSummaryDto":{"type":"object","properties":{"routeReason":{"type":"string","example":"forced_async_range_ge_20_years"},"estimatedCost":{"type":"number","example":2840},"attempts":{"type":"number","example":2},"deduped":{"type":"boolean","example":false},"finalStatus":{"type":"string","example":"completed"}}},"ReverseJobResultSummaryDto":{"type":"object","properties":{"totalFound":{"type":"number","example":0},"isEmpty":{"type":"boolean","example":true},"emptyReason":{"type":"string","example":"No matching reverse transit windows found."}},"required":["isEmpty"]},"ReverseJobResultDto":{"type":"object","properties":{"status":{"type":"string","example":"completed"},"result":{"type":"object","description":"Final endpoint response payload."},"timing":{"$ref":"#/components/schemas/ReverseJobTimingDto"},"requestSummary":{"$ref":"#/components/schemas/ReverseJobRequestSummaryDto"},"executionSummary":{"$ref":"#/components/schemas/ReverseJobExecutionSummaryDto"},"queue":{"$ref":"#/components/schemas/ReverseJobQueueSnapshotDto"},"resultSummary":{"$ref":"#/components/schemas/ReverseJobResultSummaryDto"},"polling":{"$ref":"#/components/schemas/ReverseJobPollingDto"},"message":{"type":"string","example":"Reverse job is still running."},"errorCode":{"type":"string","example":"TIMEZONE_HISTORY_UNAVAILABLE"},"errorMessage":{"type":"string","example":"Historical timezone rule is unavailable for the requested local datetime."}},"required":["status"]}}},"x-tagGroups":[{"name":"Setup & Location","tags":["Geocode"]},{"name":"Core Kundli & Analysis","tags":["Chart","Strength","Yoga","Matching"]},{"name":"Time, Panchang & Transits","tags":["Panchang","Dasha","Transit","Astronomical Times","Festivals"]},{"name":"Interpretations & Nadi","tags":["Interpretation","BNN"]},{"name":"Async Jobs","tags":["Reverse Jobs"]}],"externalDocs":{"description":"Get API Key & Platform Overview (shreeng.com)","url":"https://shreeng.com"}}