lifeastroapi 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -25,17 +25,17 @@ interface ResponseEnvelope<T = unknown> {
25
25
  /** Sidereal ayanamsha systems supported by the API. */
26
26
  type Ayanamsa = "lahiri" | "krishnamurti" | "raman" | "fagan" | "yukteshwar" | "true_chitrapaksha";
27
27
  /** House systems supported by the API. */
28
- type HouseSystem = "whole-sign" | "equal" | "placidus" | "koch" | "porphyry" | "campanus" | "regiomontanus";
28
+ type HouseSystem = "whole_sign"
29
+ /** The spelling of SDK 0.13.0 and earlier. The API reads it as `whole_sign`. */
30
+ | "whole-sign" | "equal" | "placidus" | "koch" | "porphyry" | "campanus" | "regiomontanus";
29
31
  /**
30
32
  * Response language, passed as `lang` on Vedic methods (panchang, calendar,
31
33
  * festivals, eclipses, planet moments, transit, milan, muhurta, chart, prashna,
32
34
  * numerology, dasha, varshaphal, ashtakavarga, Lal Kitab, horoscope, reports,
33
35
  * narrative, remedies).
34
36
  *
35
- * - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`. Names, terms
36
- * and prose all come back in the language.
37
- * - Partial: `pa`. Names and terms come back in the language; longer prose is
38
- * still English.
37
+ * - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`, `pa`. Names,
38
+ * terms and prose all come back in the language.
39
39
  *
40
40
  * Ids, dates, numbers and explicit `*_en` / `*_hi` fields stay as they are in
41
41
  * every language. Western, Tarot, geo and meta methods answer in English
@@ -356,14 +356,14 @@ declare class Chart {
356
356
  houses<T = unknown>(input: BirthInput & VedicBirthSettings & {
357
357
  lang?: Locale;
358
358
  }, opts?: RequestOptions): Promise<T>;
359
- /** Get KP (Krishnamurti Paddhati) house significators for a given cusp — lists planets that significate the house through occupancy, lordship, and sub-lord chain. */
359
+ /** KP house significators for all 12 Placidus cusps (20 credits): each cusp's star, sub and sub-sub lords and its significator planets (four KP levels), the houses every planet signifies, and the KP 4-step chain. Pass ayanamsa krishnamurti for KP work. `cusp` is accepted for compatibility and ignored: all 12 cusps are returned. */
360
360
  kpHouseSignificator<T = unknown>(input: BirthInput & VedicBirthSettings & {
361
- cusp: number;
361
+ cusp?: number;
362
362
  lang?: Locale;
363
363
  }, opts?: RequestOptions): Promise<T>;
364
- /** Get the KP sublord of a planet — the sub-lord of the nakshatra sub-division the planet occupies (KP star lord → sub lord → sub-sub lord chain). */
364
+ /** KP star, sub and sub-sub lords of every planet (10 credits), and the KP ruling planets for the moment and place (day lord, and the star, sign and sub lords of the ascendant and the Moon); send the moment of judgement for horary or timing. Pass ayanamsa krishnamurti for KP work. `planet` is accepted for compatibility and ignored: all planets are returned. */
365
365
  kpSublord<T = unknown>(input: BirthInput & VedicBirthSettings & {
366
- planet: string;
366
+ planet?: string;
367
367
  lang?: Locale;
368
368
  }, opts?: RequestOptions): Promise<T>;
369
369
  /** Whole birth chart as data in one call (50 credits): lagna; planets with sign, degree, house, nakshatra, pada, retrograde, combust, dignity, neecha bhanga, vargottama, houses ruled, shadbala, avastha and varga placements; houses with sign, lord, SAV bindus, bhava bala, occupants and aspecting planets; Jaimini chara karakas; avakhada. vargas: comma list (default D9, max 16, D1 rejected). include: shadbala, bhavabala, ashtakvarga, aspects, avastha, karakas, avakhada, yogas or all (default all but yogas). gender narrows Mahabhagya. Ids only, no text: planets sun..ketu, sign_index 0-based (Aries=0), house 1-based whole-sign from the lagna, nakshatra index 0-based (Ashwini=0). Anything not computable is in skipped. */
@@ -1193,6 +1193,11 @@ declare class Prashna {
1193
1193
  chart<T = unknown>(input: MomentInput & VedicMomentSettings & {
1194
1194
  lang?: Locale;
1195
1195
  }, opts?: RequestOptions): Promise<T>;
1196
+ /** KP horary chart for a number from 1 to 249 (30 credits), cast for the moment and place of judgement: the horary ascendant (the first degree of that number's sign/star/sub part), the 12 Placidus cusps with star, sub and sub-sub lords and significators, planets with KP lords and houses, planet significators, the 4-step chain and the ruling planets of the moment. Uses the Krishnamurti ayanamsa unless ayanamsa is sent. */
1197
+ kpHorary<T = unknown>(input: MomentInput & VedicMomentSettings & {
1198
+ number: number;
1199
+ lang?: Locale;
1200
+ }, opts?: RequestOptions): Promise<T>;
1196
1201
  /** Get the lagna lord analysis for a Prashna chart — where the lagna lord is placed, its strength, and what it indicates about the querent's situation and chances of success. */
1197
1202
  lagnaLord<T = unknown>(input: MomentInput & VedicMomentSettings & {
1198
1203
  lang?: Locale;
@@ -2061,7 +2066,7 @@ declare class Resources {
2061
2066
  */
2062
2067
 
2063
2068
  /** SDK version, surfaced in the User-Agent header. */
2064
- declare const VERSION = "0.12.0";
2069
+ declare const VERSION = "0.14.0";
2065
2070
  interface LifeAstroOptions {
2066
2071
  /**
2067
2072
  * API key (`dv_live_...`). Falls back to the `LIFEASTRO_API_KEY` environment
package/dist/index.d.ts CHANGED
@@ -25,17 +25,17 @@ interface ResponseEnvelope<T = unknown> {
25
25
  /** Sidereal ayanamsha systems supported by the API. */
26
26
  type Ayanamsa = "lahiri" | "krishnamurti" | "raman" | "fagan" | "yukteshwar" | "true_chitrapaksha";
27
27
  /** House systems supported by the API. */
28
- type HouseSystem = "whole-sign" | "equal" | "placidus" | "koch" | "porphyry" | "campanus" | "regiomontanus";
28
+ type HouseSystem = "whole_sign"
29
+ /** The spelling of SDK 0.13.0 and earlier. The API reads it as `whole_sign`. */
30
+ | "whole-sign" | "equal" | "placidus" | "koch" | "porphyry" | "campanus" | "regiomontanus";
29
31
  /**
30
32
  * Response language, passed as `lang` on Vedic methods (panchang, calendar,
31
33
  * festivals, eclipses, planet moments, transit, milan, muhurta, chart, prashna,
32
34
  * numerology, dasha, varshaphal, ashtakavarga, Lal Kitab, horoscope, reports,
33
35
  * narrative, remedies).
34
36
  *
35
- * - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`. Names, terms
36
- * and prose all come back in the language.
37
- * - Partial: `pa`. Names and terms come back in the language; longer prose is
38
- * still English.
37
+ * - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`, `pa`. Names,
38
+ * terms and prose all come back in the language.
39
39
  *
40
40
  * Ids, dates, numbers and explicit `*_en` / `*_hi` fields stay as they are in
41
41
  * every language. Western, Tarot, geo and meta methods answer in English
@@ -356,14 +356,14 @@ declare class Chart {
356
356
  houses<T = unknown>(input: BirthInput & VedicBirthSettings & {
357
357
  lang?: Locale;
358
358
  }, opts?: RequestOptions): Promise<T>;
359
- /** Get KP (Krishnamurti Paddhati) house significators for a given cusp — lists planets that significate the house through occupancy, lordship, and sub-lord chain. */
359
+ /** KP house significators for all 12 Placidus cusps (20 credits): each cusp's star, sub and sub-sub lords and its significator planets (four KP levels), the houses every planet signifies, and the KP 4-step chain. Pass ayanamsa krishnamurti for KP work. `cusp` is accepted for compatibility and ignored: all 12 cusps are returned. */
360
360
  kpHouseSignificator<T = unknown>(input: BirthInput & VedicBirthSettings & {
361
- cusp: number;
361
+ cusp?: number;
362
362
  lang?: Locale;
363
363
  }, opts?: RequestOptions): Promise<T>;
364
- /** Get the KP sublord of a planet — the sub-lord of the nakshatra sub-division the planet occupies (KP star lord → sub lord → sub-sub lord chain). */
364
+ /** KP star, sub and sub-sub lords of every planet (10 credits), and the KP ruling planets for the moment and place (day lord, and the star, sign and sub lords of the ascendant and the Moon); send the moment of judgement for horary or timing. Pass ayanamsa krishnamurti for KP work. `planet` is accepted for compatibility and ignored: all planets are returned. */
365
365
  kpSublord<T = unknown>(input: BirthInput & VedicBirthSettings & {
366
- planet: string;
366
+ planet?: string;
367
367
  lang?: Locale;
368
368
  }, opts?: RequestOptions): Promise<T>;
369
369
  /** Whole birth chart as data in one call (50 credits): lagna; planets with sign, degree, house, nakshatra, pada, retrograde, combust, dignity, neecha bhanga, vargottama, houses ruled, shadbala, avastha and varga placements; houses with sign, lord, SAV bindus, bhava bala, occupants and aspecting planets; Jaimini chara karakas; avakhada. vargas: comma list (default D9, max 16, D1 rejected). include: shadbala, bhavabala, ashtakvarga, aspects, avastha, karakas, avakhada, yogas or all (default all but yogas). gender narrows Mahabhagya. Ids only, no text: planets sun..ketu, sign_index 0-based (Aries=0), house 1-based whole-sign from the lagna, nakshatra index 0-based (Ashwini=0). Anything not computable is in skipped. */
@@ -1193,6 +1193,11 @@ declare class Prashna {
1193
1193
  chart<T = unknown>(input: MomentInput & VedicMomentSettings & {
1194
1194
  lang?: Locale;
1195
1195
  }, opts?: RequestOptions): Promise<T>;
1196
+ /** KP horary chart for a number from 1 to 249 (30 credits), cast for the moment and place of judgement: the horary ascendant (the first degree of that number's sign/star/sub part), the 12 Placidus cusps with star, sub and sub-sub lords and significators, planets with KP lords and houses, planet significators, the 4-step chain and the ruling planets of the moment. Uses the Krishnamurti ayanamsa unless ayanamsa is sent. */
1197
+ kpHorary<T = unknown>(input: MomentInput & VedicMomentSettings & {
1198
+ number: number;
1199
+ lang?: Locale;
1200
+ }, opts?: RequestOptions): Promise<T>;
1196
1201
  /** Get the lagna lord analysis for a Prashna chart — where the lagna lord is placed, its strength, and what it indicates about the querent's situation and chances of success. */
1197
1202
  lagnaLord<T = unknown>(input: MomentInput & VedicMomentSettings & {
1198
1203
  lang?: Locale;
@@ -2061,7 +2066,7 @@ declare class Resources {
2061
2066
  */
2062
2067
 
2063
2068
  /** SDK version, surfaced in the User-Agent header. */
2064
- declare const VERSION = "0.12.0";
2069
+ declare const VERSION = "0.14.0";
2065
2070
  interface LifeAstroOptions {
2066
2071
  /**
2067
2072
  * API key (`dv_live_...`). Falls back to the `LIFEASTRO_API_KEY` environment
package/dist/index.js CHANGED
@@ -527,11 +527,11 @@ var Chart = class {
527
527
  houses(input, opts) {
528
528
  return this._c.request("/v1/chart/houses", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
529
529
  }
530
- /** Get KP (Krishnamurti Paddhati) house significators for a given cusp — lists planets that significate the house through occupancy, lordship, and sub-lord chain. */
530
+ /** KP house significators for all 12 Placidus cusps (20 credits): each cusp's star, sub and sub-sub lords and its significator planets (four KP levels), the houses every planet signifies, and the KP 4-step chain. Pass ayanamsa krishnamurti for KP work. `cusp` is accepted for compatibility and ignored: all 12 cusps are returned. */
531
531
  kpHouseSignificator(input, opts) {
532
532
  return this._c.request("/v1/chart/kp-house-significator", applyExtras(qBirth(input), input, [["cusp", "cusp"], ["lang", "lang"], ["lang", "locale"]]), opts);
533
533
  }
534
- /** Get the KP sublord of a planet — the sub-lord of the nakshatra sub-division the planet occupies (KP star lord → sub lord → sub-sub lord chain). */
534
+ /** KP star, sub and sub-sub lords of every planet (10 credits), and the KP ruling planets for the moment and place (day lord, and the star, sign and sub lords of the ascendant and the Moon); send the moment of judgement for horary or timing. Pass ayanamsa krishnamurti for KP work. `planet` is accepted for compatibility and ignored: all planets are returned. */
535
535
  kpSublord(input, opts) {
536
536
  return this._c.request("/v1/chart/kp-sublord", applyExtras(qBirth(input), input, [["planet", "planet"], ["lang", "lang"], ["lang", "locale"]]), opts);
537
537
  }
@@ -1261,6 +1261,10 @@ var Prashna = class {
1261
1261
  chart(input, opts) {
1262
1262
  return this._c.request("/v1/prashna/chart", applyExtras(qMoment(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
1263
1263
  }
1264
+ /** KP horary chart for a number from 1 to 249 (30 credits), cast for the moment and place of judgement: the horary ascendant (the first degree of that number's sign/star/sub part), the 12 Placidus cusps with star, sub and sub-sub lords and significators, planets with KP lords and houses, planet significators, the 4-step chain and the ruling planets of the moment. Uses the Krishnamurti ayanamsa unless ayanamsa is sent. */
1265
+ kpHorary(input, opts) {
1266
+ return this._c.request("/v1/prashna/kp-horary", applyExtras(qMoment(input), input, [["number", "number"], ["lang", "lang"], ["lang", "locale"]]), opts);
1267
+ }
1264
1268
  /** Get the lagna lord analysis for a Prashna chart — where the lagna lord is placed, its strength, and what it indicates about the querent's situation and chances of success. */
1265
1269
  lagnaLord(input, opts) {
1266
1270
  return this._c.request("/v1/prashna/lagna-lord", applyExtras(qMoment(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
@@ -2011,7 +2015,7 @@ var Resources = class {
2011
2015
  };
2012
2016
 
2013
2017
  // src/client.ts
2014
- var VERSION = "0.12.0";
2018
+ var VERSION = "0.14.0";
2015
2019
  var DEFAULT_BASE_URL = "https://api.lifeastroapi.com";
2016
2020
  function resolveConfig(options) {
2017
2021
  const opts = typeof options === "string" ? { apiKey: options } : options ?? {};