astromansion 0.1.0-alpha.6 → 0.1.0-alpha.7

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.cjs CHANGED
@@ -34,6 +34,7 @@ __export(index_exports, {
34
34
  ServerError: () => ServerError,
35
35
  VERSION: () => VERSION,
36
36
  ValidationError: () => ValidationError,
37
+ agePoint: () => agePoint,
37
38
  almanac: () => almanac,
38
39
  antiscia: () => antiscia,
39
40
  aspects: () => aspects,
@@ -48,6 +49,7 @@ __export(index_exports, {
48
49
  customBody: () => customBody,
49
50
  customLot: () => customLot,
50
51
  daily: () => daily,
52
+ decennials: () => decennials,
51
53
  declinations: () => declinations,
52
54
  defaultClient: () => defaultClient,
53
55
  deleteCustomBody: () => deleteCustomBody,
@@ -59,13 +61,17 @@ __export(index_exports, {
59
61
  exportPdf: () => exportPdf,
60
62
  exportReport: () => exportReport,
61
63
  firdaria: () => firdaria,
64
+ fixedStars: () => fixedStars,
65
+ greatConjunctions: () => greatConjunctions,
62
66
  harmonics: () => harmonics,
63
67
  health: () => health,
64
68
  heliacal: () => heliacal,
65
69
  heliocentric: () => heliocentric,
66
70
  horary: () => horary,
71
+ ingresses: () => ingresses,
67
72
  job: () => job,
68
73
  listJobs: () => listJobs,
74
+ lots: () => lots,
69
75
  lunarReturn: () => lunarReturn,
70
76
  mansions: () => mansions,
71
77
  midpoints: () => midpoints,
@@ -78,6 +84,7 @@ __export(index_exports, {
78
84
  parans: () => parans,
79
85
  patterns: () => patterns,
80
86
  planetarySystem: () => planetarySystem,
87
+ primaryDirections: () => primaryDirections,
81
88
  profection: () => profection,
82
89
  progression: () => progression,
83
90
  query: () => query,
@@ -102,10 +109,12 @@ __export(index_exports, {
102
109
  submitBatchJob: () => submitBatchJob,
103
110
  submitJob: () => submitJob,
104
111
  synastry: () => synastry,
112
+ temperament: () => temperament,
105
113
  timeline: () => timeline,
106
114
  transitHits: () => transitHits,
107
115
  transits: () => transits,
108
116
  vedicChart: () => vedicChart,
117
+ venusStar: () => venusStar,
109
118
  vimshottari: () => vimshottari,
110
119
  voidMoon: () => voidMoon,
111
120
  zodiacalReleasing: () => zodiacalReleasing
@@ -395,7 +404,7 @@ var KEY_MASK = Object.freeze({
395
404
 
396
405
  // package.json
397
406
  var name = "astromansion";
398
- var version = "0.1.0-alpha.6";
407
+ var version = "0.1.0-alpha.7";
399
408
 
400
409
  // src/models/constants/package.ts
401
410
  var PACKAGE_IDENTITY = Object.freeze({
@@ -1067,7 +1076,7 @@ function isSatelliteRow(value) {
1067
1076
  return isJsonObject(value) && typeof value["name"] === "string" && Number.isInteger(value["naif_id"]) && (value["geocentric"] === void 0 || isSatelliteGeocentric(value["geocentric"]) || value["geocentric"] === null) && isSatelliteParentcentric(value["parentcentric"]) && isSatelliteProjected(value["natal_parent_projected"]);
1068
1077
  }
1069
1078
  function isSaturnReturnEvent(value) {
1070
- return isJsonObject(value) && Number.isInteger(value["return"]) && typeof value["date"] === "string" && typeof value["time"] === "string" && typeof value["sign"] === "string" && typeof value["dms"] === "string";
1079
+ return isJsonObject(value) && Number.isInteger(value["return"]) && Number.isInteger(value["pass"]) && typeof value["date"] === "string" && typeof value["time"] === "string" && typeof value["jd"] === "number" && typeof value["lon"] === "number" && typeof value["sign"] === "string" && typeof value["dms"] === "string";
1071
1080
  }
1072
1081
  function isSaturnReturnResponse(value) {
1073
1082
  return isJsonObject(value) && isJsonArrayOf(value["returns"], (item0) => isSaturnReturnEvent(item0));
@@ -1076,7 +1085,7 @@ function isSavedCustomBody(value) {
1076
1085
  return isJsonObject(value) && typeof value["name"] === "string" && typeof value["heliocentric"] === "boolean" && isJsonRecordOf(value["elements"], (member0) => typeof member0 === "number");
1077
1086
  }
1078
1087
  function isSignResponse(value) {
1079
- return isJsonObject(value) && typeof value["body"] === "string" && typeof value["sign"] === "string" && (value["dms"] === void 0 || typeof value["dms"] === "string" || value["dms"] === null) && (value["house"] === void 0 || Number.isInteger(value["house"]) || value["house"] === null) && (value["retrograde"] === void 0 || typeof value["retrograde"] === "boolean" || value["retrograde"] === null) && isJsonArrayOf(value["day_signs"], (item0) => typeof item0 === "string") && (value["change"] === void 0 || typeof value["change"] === "string" || value["change"] === null) && typeof value["time_known"] === "boolean";
1088
+ return isJsonObject(value) && typeof value["body"] === "string" && typeof value["sign"] === "string" && (value["dms"] === void 0 || typeof value["dms"] === "string" || value["dms"] === null) && (value["house"] === void 0 || Number.isInteger(value["house"]) || value["house"] === null) && typeof value["retrograde"] === "boolean" && isJsonArrayOf(value["day_signs"], (item0) => typeof item0 === "string") && (value["change"] === void 0 || typeof value["change"] === "string" || value["change"] === null) && typeof value["time_known"] === "boolean";
1080
1089
  }
1081
1090
  function isSummaryRow(value) {
1082
1091
  return isJsonObject(value) && typeof value["sign"] === "string" && typeof value["dms"] === "string";
@@ -1327,6 +1336,30 @@ function denoWriter() {
1327
1336
 
1328
1337
  // src/endpointMethods.ts
1329
1338
  var EndpointMethods = class {
1339
+ /**
1340
+ * Huber age point through the houses.
1341
+ *
1342
+ * @remarks
1343
+ * Sends `POST /v1/age-point`. The Python SDK names it age_point.
1344
+ *
1345
+ * Huber age point through the houses.
1346
+ *
1347
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
1348
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
1349
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
1350
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
1351
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
1352
+ */
1353
+ async agePoint(fields, keywords) {
1354
+ const call = RequestBodies.chart("agePoint", fields, keywords, false);
1355
+ const answer = await this.request("POST", "/v1/age-point", {
1356
+ json: call.json,
1357
+ technique: "age_point",
1358
+ enveloped: true,
1359
+ signal: call.signal
1360
+ });
1361
+ return readWrapped(answer, isTechniqueEnvelope, "agePoint");
1362
+ }
1330
1363
  /**
1331
1364
  * Eclipses, retrogrades, planetary hours, and void Moon periods.
1332
1365
  *
@@ -1673,6 +1706,30 @@ var EndpointMethods = class {
1673
1706
  });
1674
1707
  return readWrapped(answer, isTechniqueEnvelope, "daily");
1675
1708
  }
1709
+ /**
1710
+ * Valens' decennials.
1711
+ *
1712
+ * @remarks
1713
+ * Sends `POST /v1/decennials`. The Python SDK names it decennials.
1714
+ *
1715
+ * Valens' decennials.
1716
+ *
1717
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
1718
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
1719
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
1720
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
1721
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
1722
+ */
1723
+ async decennials(fields, keywords) {
1724
+ const call = RequestBodies.chart("decennials", fields, keywords, false);
1725
+ const answer = await this.request("POST", "/v1/decennials", {
1726
+ json: call.json,
1727
+ technique: "decennials",
1728
+ enveloped: true,
1729
+ signal: call.signal
1730
+ });
1731
+ return readWrapped(answer, isTechniqueEnvelope, "decennials");
1732
+ }
1676
1733
  /**
1677
1734
  * Declination parallels.
1678
1735
  *
@@ -1940,6 +1997,59 @@ var EndpointMethods = class {
1940
1997
  });
1941
1998
  return readWrapped(answer, isTechniqueEnvelope, "firdaria");
1942
1999
  }
2000
+ /**
2001
+ * Fixed stars and the points on them.
2002
+ *
2003
+ * @remarks
2004
+ * Sends `POST /v1/fixed-stars`. The Python SDK names it fixed_stars.
2005
+ *
2006
+ * Fixed stars and the points on them.
2007
+ *
2008
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
2009
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
2010
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
2011
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
2012
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
2013
+ */
2014
+ async fixedStars(fields, keywords) {
2015
+ const call = RequestBodies.chart("fixedStars", fields, keywords, false);
2016
+ const answer = await this.request("POST", "/v1/fixed-stars", {
2017
+ json: call.json,
2018
+ technique: "fixed_stars",
2019
+ enveloped: true,
2020
+ signal: call.signal
2021
+ });
2022
+ return readWrapped(answer, isTechniqueEnvelope, "fixedStars");
2023
+ }
2024
+ /**
2025
+ * Jupiter and Saturn's great conjunctions.
2026
+ *
2027
+ * @remarks
2028
+ * Sends `POST /v1/great-conjunctions`. The Python SDK names it great_conjunctions.
2029
+ *
2030
+ * Jupiter and Saturn's great conjunctions.
2031
+ *
2032
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
2033
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
2034
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
2035
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
2036
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
2037
+ */
2038
+ async greatConjunctions(fields, keywords) {
2039
+ const call = RequestBodies.chart(
2040
+ "greatConjunctions",
2041
+ fields,
2042
+ keywords,
2043
+ false
2044
+ );
2045
+ const answer = await this.request("POST", "/v1/great-conjunctions", {
2046
+ json: call.json,
2047
+ technique: "great_conjunctions",
2048
+ enveloped: true,
2049
+ signal: call.signal
2050
+ });
2051
+ return readWrapped(answer, isTechniqueEnvelope, "greatConjunctions");
2052
+ }
1943
2053
  /**
1944
2054
  * Harmonic chart.
1945
2055
  *
@@ -2060,6 +2170,30 @@ var EndpointMethods = class {
2060
2170
  });
2061
2171
  return readWrapped(answer, isTechniqueEnvelope, "horary");
2062
2172
  }
2173
+ /**
2174
+ * Equinoxes, solstices, and the Aries ingress chart.
2175
+ *
2176
+ * @remarks
2177
+ * Sends `POST /v1/ingresses`. The Python SDK names it ingresses.
2178
+ *
2179
+ * Equinoxes, solstices, and the Aries ingress chart.
2180
+ *
2181
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
2182
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
2183
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
2184
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
2185
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
2186
+ */
2187
+ async ingresses(fields, keywords) {
2188
+ const call = RequestBodies.chart("ingresses", fields, keywords, false);
2189
+ const answer = await this.request("POST", "/v1/ingresses", {
2190
+ json: call.json,
2191
+ technique: "ingresses",
2192
+ enveloped: true,
2193
+ signal: call.signal
2194
+ });
2195
+ return readWrapped(answer, isTechniqueEnvelope, "ingresses");
2196
+ }
2063
2197
  /**
2064
2198
  * Inspect job status.
2065
2199
  *
@@ -2113,6 +2247,30 @@ var EndpointMethods = class {
2113
2247
  });
2114
2248
  return readResult(answer, isJobListResponse, "listJobs");
2115
2249
  }
2250
+ /**
2251
+ * All 38 classical Arabic lots.
2252
+ *
2253
+ * @remarks
2254
+ * Sends `POST /v1/lots`. The Python SDK names it lots.
2255
+ *
2256
+ * All 38 classical Arabic lots.
2257
+ *
2258
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
2259
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
2260
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
2261
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
2262
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
2263
+ */
2264
+ async lots(fields, keywords) {
2265
+ const call = RequestBodies.chart("lots", fields, keywords, false);
2266
+ const answer = await this.request("POST", "/v1/lots", {
2267
+ json: call.json,
2268
+ technique: "lots",
2269
+ enveloped: true,
2270
+ signal: call.signal
2271
+ });
2272
+ return readWrapped(answer, isTechniqueEnvelope, "lots");
2273
+ }
2116
2274
  /**
2117
2275
  * Lunar return charts.
2118
2276
  *
@@ -2425,6 +2583,35 @@ var EndpointMethods = class {
2425
2583
  });
2426
2584
  return readResult(answer, isPlanetarySystemResponse, "planetarySystem");
2427
2585
  }
2586
+ /**
2587
+ * Primary directions of the Ascendant and the Midheaven.
2588
+ *
2589
+ * @remarks
2590
+ * Sends `POST /v1/primary-directions`. The Python SDK names it primary_directions.
2591
+ *
2592
+ * Primary directions of the Ascendant and the Midheaven.
2593
+ *
2594
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
2595
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
2596
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
2597
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
2598
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
2599
+ */
2600
+ async primaryDirections(fields, keywords) {
2601
+ const call = RequestBodies.chart(
2602
+ "primaryDirections",
2603
+ fields,
2604
+ keywords,
2605
+ false
2606
+ );
2607
+ const answer = await this.request("POST", "/v1/primary-directions", {
2608
+ json: call.json,
2609
+ technique: "primary_directions",
2610
+ enveloped: true,
2611
+ signal: call.signal
2612
+ });
2613
+ return readWrapped(answer, isTechniqueEnvelope, "primaryDirections");
2614
+ }
2428
2615
  /**
2429
2616
  * Annual profections.
2430
2617
  *
@@ -2612,8 +2799,8 @@ var EndpointMethods = class {
2612
2799
  * read is refused.
2613
2800
  *
2614
2801
  * Every heading names the drawn frame's Ascendant sign and degree.
2615
- * `options.lang` selects `en` (the default) or `tr` for the heading
2616
- * and rising centre caption. Body labels retain their published names.
2802
+ * `options.lang` selects `en` (the default) or `tr` for the heading,
2803
+ * the rising centre caption, and the bodies' labels on the wheel.
2617
2804
  *
2618
2805
  * `options.style.show.watermark` controls faint branding: the centre
2619
2806
  * logo, or a wordmark below the zodiac on a rising-sign chart.
@@ -2988,6 +3175,30 @@ var EndpointMethods = class {
2988
3175
  });
2989
3176
  return readWrapped(answer, isTechniqueEnvelope, "synastry");
2990
3177
  }
3178
+ /**
3179
+ * Temperament by Lilly's method.
3180
+ *
3181
+ * @remarks
3182
+ * Sends `POST /v1/temperament`. The Python SDK names it temperament.
3183
+ *
3184
+ * Temperament by Lilly's method.
3185
+ *
3186
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
3187
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
3188
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
3189
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
3190
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
3191
+ */
3192
+ async temperament(fields, keywords) {
3193
+ const call = RequestBodies.chart("temperament", fields, keywords, false);
3194
+ const answer = await this.request("POST", "/v1/temperament", {
3195
+ json: call.json,
3196
+ technique: "temperament",
3197
+ enveloped: true,
3198
+ signal: call.signal
3199
+ });
3200
+ return readWrapped(answer, isTechniqueEnvelope, "temperament");
3201
+ }
2991
3202
  /**
2992
3203
  * Life timing timeline.
2993
3204
  *
@@ -3084,6 +3295,30 @@ var EndpointMethods = class {
3084
3295
  });
3085
3296
  return readWrapped(answer, isTechniqueEnvelope, "vedicChart");
3086
3297
  }
3298
+ /**
3299
+ * Venus star point and the eight-year star.
3300
+ *
3301
+ * @remarks
3302
+ * Sends `POST /v1/venus-star-point`. The Python SDK names it venus_star.
3303
+ *
3304
+ * Venus star point and the eight-year star.
3305
+ *
3306
+ * @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
3307
+ * @param keywords - The method's other arguments, when they come apart from the birth fields.
3308
+ * @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
3309
+ * @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
3310
+ * @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
3311
+ */
3312
+ async venusStar(fields, keywords) {
3313
+ const call = RequestBodies.chart("venusStar", fields, keywords, false);
3314
+ const answer = await this.request("POST", "/v1/venus-star-point", {
3315
+ json: call.json,
3316
+ technique: "venus_star",
3317
+ enveloped: true,
3318
+ signal: call.signal
3319
+ });
3320
+ return readWrapped(answer, isTechniqueEnvelope, "venusStar");
3321
+ }
3087
3322
  /**
3088
3323
  * Vimshottari dasha periods.
3089
3324
  *
@@ -3955,6 +4190,9 @@ async function bodies(...args) {
3955
4190
  }
3956
4191
 
3957
4192
  // src/endpointShortcuts.ts
4193
+ async function agePoint(...args) {
4194
+ return defaultClient().agePoint(...args);
4195
+ }
3958
4196
  async function almanac(...args) {
3959
4197
  return defaultClient().almanac(...args);
3960
4198
  }
@@ -3994,6 +4232,9 @@ async function customLot(...args) {
3994
4232
  async function daily(...args) {
3995
4233
  return defaultClient().daily(...args);
3996
4234
  }
4235
+ async function decennials(...args) {
4236
+ return defaultClient().decennials(...args);
4237
+ }
3997
4238
  async function declinations(...args) {
3998
4239
  return defaultClient().declinations(...args);
3999
4240
  }
@@ -4024,6 +4265,12 @@ async function exportReport(...args) {
4024
4265
  async function firdaria(...args) {
4025
4266
  return defaultClient().firdaria(...args);
4026
4267
  }
4268
+ async function fixedStars(...args) {
4269
+ return defaultClient().fixedStars(...args);
4270
+ }
4271
+ async function greatConjunctions(...args) {
4272
+ return defaultClient().greatConjunctions(...args);
4273
+ }
4027
4274
  async function harmonics(...args) {
4028
4275
  return defaultClient().harmonics(...args);
4029
4276
  }
@@ -4039,12 +4286,18 @@ async function heliocentric(...args) {
4039
4286
  async function horary(...args) {
4040
4287
  return defaultClient().horary(...args);
4041
4288
  }
4289
+ async function ingresses(...args) {
4290
+ return defaultClient().ingresses(...args);
4291
+ }
4042
4292
  async function job(...args) {
4043
4293
  return defaultClient().job(...args);
4044
4294
  }
4045
4295
  async function listJobs(...args) {
4046
4296
  return defaultClient().listJobs(...args);
4047
4297
  }
4298
+ async function lots(...args) {
4299
+ return defaultClient().lots(...args);
4300
+ }
4048
4301
  async function lunarReturn(...args) {
4049
4302
  return defaultClient().lunarReturn(...args);
4050
4303
  }
@@ -4081,6 +4334,9 @@ async function patterns(...args) {
4081
4334
  async function planetarySystem(...args) {
4082
4335
  return defaultClient().planetarySystem(...args);
4083
4336
  }
4337
+ async function primaryDirections(...args) {
4338
+ return defaultClient().primaryDirections(...args);
4339
+ }
4084
4340
  async function profection(...args) {
4085
4341
  return defaultClient().profection(...args);
4086
4342
  }
@@ -4144,6 +4400,9 @@ async function submitJob(...args) {
4144
4400
  async function synastry(...args) {
4145
4401
  return defaultClient().synastry(...args);
4146
4402
  }
4403
+ async function temperament(...args) {
4404
+ return defaultClient().temperament(...args);
4405
+ }
4147
4406
  async function timeline(...args) {
4148
4407
  return defaultClient().timeline(...args);
4149
4408
  }
@@ -4156,6 +4415,9 @@ async function transits(...args) {
4156
4415
  async function vedicChart(...args) {
4157
4416
  return defaultClient().vedicChart(...args);
4158
4417
  }
4418
+ async function venusStar(...args) {
4419
+ return defaultClient().venusStar(...args);
4420
+ }
4159
4421
  async function vimshottari(...args) {
4160
4422
  return defaultClient().vimshottari(...args);
4161
4423
  }