@astroway/sdk 1.5.0 → 1.6.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.
@@ -27,9 +27,11 @@ export function buildNamespaces(client) {
27
27
  };
28
28
  /* GET lookups take no body. Same envelope unwrap and the same options, minus
29
29
  Idempotency-Key, which has no meaning on a read. */
30
- const callGet = (path, options) => {
30
+ const callGet = (path, query, options) => {
31
31
  return new ResultPromise(async () => {
32
32
  const init = {};
33
+ if (query && Object.keys(query).length > 0)
34
+ init.params = { query };
33
35
  const headers = { ...(options?.headers ?? {}) };
34
36
  if (options?.timeoutMs !== undefined && options.timeoutMs > 0) {
35
37
  headers['x-astroway-timeout-ms'] = String(options.timeoutMs);
@@ -46,14 +48,19 @@ export function buildNamespaces(client) {
46
48
  };
47
49
  return {
48
50
  acg: {
51
+ bestPlaces: (body, options) => call('/acg/best-places', body, options),
49
52
  byCategory: (body, options) => call('/acg/by-category', body, options),
50
- categoriesGet: (options) => callGet('/acg/categories', options),
53
+ categoriesGet: (options) => callGet('/acg/categories', undefined, options),
51
54
  compute: (body, options) => call('/acg', body, options),
55
+ countriesGet: (options) => callGet('/acg/countries', undefined, options),
52
56
  lineReport: (body, options) => call('/acg/line-report', body, options),
53
57
  },
54
58
  acgZones: {
55
59
  compute: (body, options) => call('/acg-zones', body, options),
56
60
  },
61
+ agent: {
62
+ toolsGet: (query, options) => callGet('/agent/tools', query, options),
63
+ },
57
64
  ai: {
58
65
  chat: (body, options) => call('/ai/chat', body, options),
59
66
  comparisonCoach: (body, options) => call('/ai/comparison-coach', body, options),
@@ -119,11 +126,15 @@ export function buildNamespaces(client) {
119
126
  compute: (body, options) => call('/chart', body, options),
120
127
  },
121
128
  chinese: {
129
+ fengShuiAnnualStars: (body, options) => call('/chinese/feng-shui/annual-stars', body, options),
122
130
  fengShuiBagua: (body, options) => call('/chinese/feng-shui/bagua', body, options),
131
+ fengShuiFlyingStar: (body, options) => call('/chinese/feng-shui/flying-star', body, options),
123
132
  fengShuiKua: (body, options) => call('/chinese/feng-shui/kua', body, options),
124
133
  fengShuiLuckyDirections: (body, options) => call('/chinese/feng-shui/lucky-directions', body, options),
125
134
  lunarDate: (body, options) => call('/chinese/lunar-date', body, options),
126
135
  solarTerms: (body, options) => call('/chinese/solar-terms', body, options),
136
+ tongShu: (body, options) => call('/chinese/tong-shu', body, options),
137
+ tongShuSelect: (body, options) => call('/chinese/tong-shu/select', body, options),
127
138
  zodiacAnimal: (body, options) => call('/chinese/zodiac/animal', body, options),
128
139
  zodiacCompatibility: (body, options) => call('/chinese/zodiac/compatibility', body, options),
129
140
  zodiacElement: (body, options) => call('/chinese/zodiac/element', body, options),
@@ -178,13 +189,13 @@ export function buildNamespaces(client) {
178
189
  },
179
190
  esoteric: {
180
191
  angelNumbersDecode: (body, options) => call('/esoteric/angel-numbers/decode', body, options),
181
- angelNumbersGet: (options) => callGet('/esoteric/angel-numbers', options),
182
- angelNumbersTodayGet: (options) => callGet('/esoteric/angel-numbers/today', options),
183
- crystalsGet: (options) => callGet('/esoteric/crystals', options),
192
+ angelNumbersGet: (options) => callGet('/esoteric/angel-numbers', undefined, options),
193
+ angelNumbersTodayGet: (options) => callGet('/esoteric/angel-numbers/today', undefined, options),
194
+ crystalsGet: (options) => callGet('/esoteric/crystals', undefined, options),
184
195
  crystalsRecommend: (body, options) => call('/esoteric/crystals/recommend', body, options),
185
196
  dreamsDecode: (body, options) => call('/esoteric/dreams/decode', body, options),
186
- dreamsGet: (options) => callGet('/esoteric/dreams', options),
187
- dreamsRecurringThemesGet: (options) => callGet('/esoteric/dreams/recurring-themes', options),
197
+ dreamsGet: (options) => callGet('/esoteric/dreams', undefined, options),
198
+ dreamsRecurringThemesGet: (options) => callGet('/esoteric/dreams/recurring-themes', undefined, options),
188
199
  },
189
200
  essentialDignities: {
190
201
  compute: (body, options) => call('/essential-dignities', body, options),
@@ -219,6 +230,7 @@ export function buildNamespaces(client) {
219
230
  compute: (body, options) => call('/firdaria', body, options),
220
231
  },
221
232
  fixedStars: {
233
+ catalogGet: (options) => callGet('/fixed-stars/catalog', undefined, options),
222
234
  compute: (body, options) => call('/fixed-stars', body, options),
223
235
  },
224
236
  forecastCalendar: {
@@ -356,6 +368,11 @@ export function buildNamespaces(client) {
356
368
  synastry: (body, options) => call('/interpret/synastry', body, options),
357
369
  transits: (body, options) => call('/interpret/transits', body, options),
358
370
  },
371
+ kabbalah: {
372
+ gematria: (body, options) => call('/kabbalah/gematria', body, options),
373
+ sephirothGet: (options) => callGet('/kabbalah/sephiroth', undefined, options),
374
+ shemNamesGet: (options) => callGet('/kabbalah/shem-names', undefined, options),
375
+ },
359
376
  localSpace: {
360
377
  compute: (body, options) => call('/local-space', body, options),
361
378
  influenceZone: (body, options) => call('/local-space/influence-zone', body, options),
@@ -381,13 +398,13 @@ export function buildNamespaces(client) {
381
398
  },
382
399
  mcp: {
383
400
  agentDebate: (body, options) => call('/mcp/agent-debate', body, options),
384
- agentPoolStatusGet: (options) => callGet('/mcp/agent-pool-status', options),
401
+ agentPoolStatusGet: (options) => callGet('/mcp/agent-pool-status', undefined, options),
385
402
  multiAgentCoordinate: (body, options) => call('/mcp/multi-agent-coordinate', body, options),
386
403
  multiChartContext: (body, options) => call('/mcp/multi-chart-context', body, options),
387
404
  ragSearch: (body, options) => call('/mcp/rag-search', body, options),
388
405
  streaming: (body, options) => call('/mcp/streaming', body, options),
389
406
  toolCallStream: (body, options) => call('/mcp/tool-call-stream', body, options),
390
- toolsListGet: (options) => callGet('/mcp/tools-list', options),
407
+ toolsListGet: (options) => callGet('/mcp/tools-list', undefined, options),
391
408
  },
392
409
  midpointTrees: {
393
410
  compute: (body, options) => call('/midpoint-trees', body, options),
@@ -425,7 +442,7 @@ export function buildNamespaces(client) {
425
442
  compute: (body, options) => call('/moon-voc', body, options),
426
443
  },
427
444
  muhurta: {
428
- typesGet: (options) => callGet('/muhurta/types', options),
445
+ typesGet: (options) => callGet('/muhurta/types', undefined, options),
429
446
  },
430
447
  nakshatras: {
431
448
  compute: (body, options) => call('/nakshatras', body, options),
@@ -494,6 +511,7 @@ export function buildNamespaces(client) {
494
511
  },
495
512
  parans: {
496
513
  compute: (body, options) => call('/parans', body, options),
514
+ star: (body, options) => call('/parans/star', body, options),
497
515
  },
498
516
  pet: {
499
517
  bestNames: (body, options) => call('/pet/best-names', body, options),
@@ -546,20 +564,20 @@ export function buildNamespaces(client) {
546
564
  trutine: (body, options) => call('/rectification/trutine', body, options),
547
565
  },
548
566
  reference: {
549
- aspectsGet: (options) => callGet('/reference/aspects', options),
550
- asteroidsGet: (options) => callGet('/reference/asteroids', options),
551
- decansGet: (options) => callGet('/reference/decans', options),
552
- dignitiesGet: (options) => callGet('/reference/dignities', options),
553
- elementsGet: (options) => callGet('/reference/elements', options),
554
- glyphsGet: (options) => callGet('/reference/glyphs', options),
555
- housesGet: (options) => callGet('/reference/houses', options),
556
- lotsGet: (options) => callGet('/reference/lots', options),
557
- modalitiesGet: (options) => callGet('/reference/modalities', options),
558
- nakshatrasGet: (options) => callGet('/reference/nakshatras', options),
559
- planetsGet: (options) => callGet('/reference/planets', options),
560
- polaritiesGet: (options) => callGet('/reference/polarities', options),
561
- signsGet: (options) => callGet('/reference/signs', options),
562
- zodiacSystemsGet: (options) => callGet('/reference/zodiac-systems', options),
567
+ aspectsGet: (options) => callGet('/reference/aspects', undefined, options),
568
+ asteroidsGet: (options) => callGet('/reference/asteroids', undefined, options),
569
+ decansGet: (options) => callGet('/reference/decans', undefined, options),
570
+ dignitiesGet: (options) => callGet('/reference/dignities', undefined, options),
571
+ elementsGet: (options) => callGet('/reference/elements', undefined, options),
572
+ glyphsGet: (options) => callGet('/reference/glyphs', undefined, options),
573
+ housesGet: (options) => callGet('/reference/houses', undefined, options),
574
+ lotsGet: (options) => callGet('/reference/lots', undefined, options),
575
+ modalitiesGet: (options) => callGet('/reference/modalities', undefined, options),
576
+ nakshatrasGet: (options) => callGet('/reference/nakshatras', undefined, options),
577
+ planetsGet: (options) => callGet('/reference/planets', undefined, options),
578
+ polaritiesGet: (options) => callGet('/reference/polarities', undefined, options),
579
+ signsGet: (options) => callGet('/reference/signs', undefined, options),
580
+ zodiacSystemsGet: (options) => callGet('/reference/zodiac-systems', undefined, options),
563
581
  },
564
582
  relocation: {
565
583
  compute: (body, options) => call('/relocation', body, options),
@@ -589,14 +607,16 @@ export function buildNamespaces(client) {
589
607
  business: (body, options) => call('/reports/business', body, options),
590
608
  career: (body, options) => call('/reports/career', body, options),
591
609
  child: (body, options) => call('/reports/child', body, options),
610
+ gemstone: (body, options) => call('/reports/gemstone', body, options),
592
611
  generate: (body, options) => call('/reports/generate', body, options),
593
- historyGet: (options) => callGet('/reports/history', options),
612
+ historyGet: (options) => callGet('/reports/history', undefined, options),
594
613
  humanDesign: (body, options) => call('/reports/human-design', body, options),
595
614
  lalKitab: (body, options) => call('/reports/lal-kitab', body, options),
596
615
  love: (body, options) => call('/reports/love', body, options),
597
616
  money: (body, options) => call('/reports/money', body, options),
598
617
  muhurta: (body, options) => call('/reports/muhurta', body, options),
599
618
  natal: (body, options) => call('/reports/natal', body, options),
619
+ relocation: (body, options) => call('/reports/relocation', body, options),
600
620
  stellaforge: (body, options) => call('/reports/stellaforge', body, options),
601
621
  synastry: (body, options) => call('/reports/synastry', body, options),
602
622
  tarot: (body, options) => call('/reports/tarot', body, options),
@@ -648,7 +668,7 @@ export function buildNamespaces(client) {
648
668
  houseOverlay: (body, options) => call('/synastry/house-overlay', body, options),
649
669
  },
650
670
  tarot: {
651
- lenormandCardsGet: (options) => callGet('/tarot/lenormand/cards', options),
671
+ lenormandCardsGet: (options) => callGet('/tarot/lenormand/cards', undefined, options),
652
672
  lenormandDaily: (body, options) => call('/tarot/lenormand/daily', body, options),
653
673
  lenormandDraw9CardSquare: (body, options) => call('/tarot/lenormand/draw/9-card-square', body, options),
654
674
  lenormandDrawCelticCrossLenormand: (body, options) => call('/tarot/lenormand/draw/celtic-cross-lenormand', body, options),
@@ -656,9 +676,9 @@ export function buildNamespaces(client) {
656
676
  lenormandDrawLineOfFive: (body, options) => call('/tarot/lenormand/draw/line-of-five', body, options),
657
677
  lenormandDrawRelationship: (body, options) => call('/tarot/lenormand/draw/relationship', body, options),
658
678
  lenormandDrawThreeCard: (body, options) => call('/tarot/lenormand/draw/three-card', body, options),
659
- lenormandHousesGet: (options) => callGet('/tarot/lenormand/houses', options),
679
+ lenormandHousesGet: (options) => callGet('/tarot/lenormand/houses', undefined, options),
660
680
  marseilleBirthCard: (body, options) => call('/tarot/marseille/birth-card', body, options),
661
- marseilleCardsGet: (options) => callGet('/tarot/marseille/cards', options),
681
+ marseilleCardsGet: (options) => callGet('/tarot/marseille/cards', undefined, options),
662
682
  marseilleClarify: (body, options) => call('/tarot/marseille/clarify', body, options),
663
683
  marseilleDaily: (body, options) => call('/tarot/marseille/daily', body, options),
664
684
  marseilleDrawCareer: (body, options) => call('/tarot/marseille/draw/career', body, options),
@@ -672,15 +692,15 @@ export function buildNamespaces(client) {
672
692
  marseilleDrawSpiritual: (body, options) => call('/tarot/marseille/draw/spiritual', body, options),
673
693
  marseilleDrawThreeCard: (body, options) => call('/tarot/marseille/draw/three-card', body, options),
674
694
  marseilleInterpret: (body, options) => call('/tarot/marseille/interpret', body, options),
675
- marseilleMajorsGet: (options) => callGet('/tarot/marseille/majors', options),
676
- marseilleSpreadsGet: (options) => callGet('/tarot/marseille/spreads', options),
695
+ marseilleMajorsGet: (options) => callGet('/tarot/marseille/majors', undefined, options),
696
+ marseilleSpreadsGet: (options) => callGet('/tarot/marseille/spreads', undefined, options),
677
697
  marseilleTiming: (body, options) => call('/tarot/marseille/timing', body, options),
678
698
  marseilleYearCard: (body, options) => call('/tarot/marseille/year-card', body, options),
679
699
  riderWaiteAdvice: (body, options) => call('/tarot/rider-waite/advice', body, options),
680
700
  riderWaiteBirthCard: (body, options) => call('/tarot/rider-waite/birth-card', body, options),
681
- riderWaiteCardsGet: (options) => callGet('/tarot/rider-waite/cards', options),
701
+ riderWaiteCardsGet: (options) => callGet('/tarot/rider-waite/cards', undefined, options),
682
702
  riderWaiteClarify: (body, options) => call('/tarot/rider-waite/clarify', body, options),
683
- riderWaiteCourtsGet: (options) => callGet('/tarot/rider-waite/courts', options),
703
+ riderWaiteCourtsGet: (options) => callGet('/tarot/rider-waite/courts', undefined, options),
684
704
  riderWaiteCrossSum: (body, options) => call('/tarot/rider-waite/cross-sum', body, options),
685
705
  riderWaiteDaily: (body, options) => call('/tarot/rider-waite/daily', body, options),
686
706
  riderWaiteDrawCareer: (body, options) => call('/tarot/rider-waite/draw/career', body, options),
@@ -696,13 +716,13 @@ export function buildNamespaces(client) {
696
716
  riderWaiteDrawThreeCard: (body, options) => call('/tarot/rider-waite/draw/three-card', body, options),
697
717
  riderWaiteDrawYearAhead: (body, options) => call('/tarot/rider-waite/draw/year-ahead', body, options),
698
718
  riderWaiteInterpret: (body, options) => call('/tarot/rider-waite/interpret', body, options),
699
- riderWaiteMajorsGet: (options) => callGet('/tarot/rider-waite/majors', options),
700
- riderWaiteMinorsGet: (options) => callGet('/tarot/rider-waite/minors', options),
719
+ riderWaiteMajorsGet: (options) => callGet('/tarot/rider-waite/majors', undefined, options),
720
+ riderWaiteMinorsGet: (options) => callGet('/tarot/rider-waite/minors', undefined, options),
701
721
  riderWaiteMissingInfo: (body, options) => call('/tarot/rider-waite/missing-info', body, options),
702
722
  riderWaiteOutcome: (body, options) => call('/tarot/rider-waite/outcome', body, options),
703
723
  riderWaiteShadowCard: (body, options) => call('/tarot/rider-waite/shadow-card', body, options),
704
724
  riderWaiteSoulPersonalityCard: (body, options) => call('/tarot/rider-waite/soul-personality-card', body, options),
705
- riderWaiteSpreadsGet: (options) => callGet('/tarot/rider-waite/spreads', options),
725
+ riderWaiteSpreadsGet: (options) => callGet('/tarot/rider-waite/spreads', undefined, options),
706
726
  riderWaiteTiming: (body, options) => call('/tarot/rider-waite/timing', body, options),
707
727
  riderWaiteYearCard: (body, options) => call('/tarot/rider-waite/year-card', body, options),
708
728
  },
@@ -718,7 +738,7 @@ export function buildNamespaces(client) {
718
738
  translate: {
719
739
  astro: (body, options) => call('/translate/astro', body, options),
720
740
  batch: (body, options) => call('/translate/batch', body, options),
721
- languagesGet: (options) => callGet('/translate/languages', options),
741
+ languagesGet: (options) => callGet('/translate/languages', undefined, options),
722
742
  },
723
743
  vedic: {
724
744
  bhavabala: (body, options) => call('/vedic/bhavabala', body, options),
@@ -797,6 +817,8 @@ export function buildNamespaces(client) {
797
817
  doshasParasharaMangal: (body, options) => call('/vedic/doshas/parashara/mangal', body, options),
798
818
  doshasParasharaPitru: (body, options) => call('/vedic/doshas/parashara/pitru', body, options),
799
819
  doshasParasharaShrapit: (body, options) => call('/vedic/doshas/parashara/shrapit', body, options),
820
+ gemstones: (body, options) => call('/vedic/gemstones', body, options),
821
+ gemstonesNavaratnaGet: (options) => callGet('/vedic/gemstones/navaratna', undefined, options),
800
822
  jaiminiArgalaAnalysis: (body, options) => call('/vedic/jaimini/argala-analysis', body, options),
801
823
  jaiminiAspects: (body, options) => call('/vedic/jaimini/aspects', body, options),
802
824
  jaiminiAtmakarakaNavamsa: (body, options) => call('/vedic/jaimini/atmakaraka-navamsa', body, options),
@@ -874,6 +896,7 @@ export function buildNamespaces(client) {
874
896
  vargaD60: (body, options) => call('/vedic/varga/D60', body, options),
875
897
  vargaD7: (body, options) => call('/vedic/varga/D7', body, options),
876
898
  vargaD9: (body, options) => call('/vedic/varga/D9', body, options),
899
+ varshaphal: (body, options) => call('/vedic/varshaphal', body, options),
877
900
  yogasJaiminiDaridra: (body, options) => call('/vedic/yogas/jaimini/daridra', body, options),
878
901
  yogasJaiminiDhana: (body, options) => call('/vedic/yogas/jaimini/dhana', body, options),
879
902
  yogasJaiminiFull: (body, options) => call('/vedic/yogas/jaimini/full', body, options),
@@ -896,7 +919,7 @@ export function buildNamespaces(client) {
896
919
  webhooks: {
897
920
  dashaChange: (body, options) => call('/webhooks/dasha-change', body, options),
898
921
  eclipseAlert: (body, options) => call('/webhooks/eclipse-alert', body, options),
899
- get: (options) => callGet('/webhooks', options),
922
+ get: (options) => callGet('/webhooks', undefined, options),
900
923
  mahadashaEnd: (body, options) => call('/webhooks/mahadasha-end', body, options),
901
924
  planetaryHourTick: (body, options) => call('/webhooks/planetary-hour-tick', body, options),
902
925
  retrogradeEnd: (body, options) => call('/webhooks/retrograde-end', body, options),
@@ -920,7 +943,7 @@ export function buildNamespaces(client) {
920
943
  yoga: (body, options) => call('/wellness/yoga', body, options),
921
944
  },
922
945
  whitelabel: {
923
- configGet: (options) => callGet('/whitelabel/config', options),
946
+ configGet: (options) => callGet('/whitelabel/config', undefined, options),
924
947
  domainVerify: (body, options) => call('/whitelabel/domain/verify', body, options),
925
948
  logo: (body, options) => call('/whitelabel/logo', body, options),
926
949
  preview: (body, options) => call('/whitelabel/preview', body, options),
@@ -944,18 +967,18 @@ export function buildNamespaces(client) {
944
967
  twelvePalaces: (body, options) => call('/ziwei/twelve-palaces', body, options),
945
968
  },
946
969
  zodiac: {
947
- aquariusGet: (options) => callGet('/zodiac/aquarius', options),
948
- ariesGet: (options) => callGet('/zodiac/aries', options),
949
- cancerGet: (options) => callGet('/zodiac/cancer', options),
950
- capricornGet: (options) => callGet('/zodiac/capricorn', options),
951
- geminiGet: (options) => callGet('/zodiac/gemini', options),
952
- leoGet: (options) => callGet('/zodiac/leo', options),
953
- libraGet: (options) => callGet('/zodiac/libra', options),
954
- piscesGet: (options) => callGet('/zodiac/pisces', options),
955
- sagittariusGet: (options) => callGet('/zodiac/sagittarius', options),
956
- scorpioGet: (options) => callGet('/zodiac/scorpio', options),
957
- taurusGet: (options) => callGet('/zodiac/taurus', options),
958
- virgoGet: (options) => callGet('/zodiac/virgo', options),
970
+ aquariusGet: (options) => callGet('/zodiac/aquarius', undefined, options),
971
+ ariesGet: (options) => callGet('/zodiac/aries', undefined, options),
972
+ cancerGet: (options) => callGet('/zodiac/cancer', undefined, options),
973
+ capricornGet: (options) => callGet('/zodiac/capricorn', undefined, options),
974
+ geminiGet: (options) => callGet('/zodiac/gemini', undefined, options),
975
+ leoGet: (options) => callGet('/zodiac/leo', undefined, options),
976
+ libraGet: (options) => callGet('/zodiac/libra', undefined, options),
977
+ piscesGet: (options) => callGet('/zodiac/pisces', undefined, options),
978
+ sagittariusGet: (options) => callGet('/zodiac/sagittarius', undefined, options),
979
+ scorpioGet: (options) => callGet('/zodiac/scorpio', undefined, options),
980
+ taurusGet: (options) => callGet('/zodiac/taurus', undefined, options),
981
+ virgoGet: (options) => callGet('/zodiac/virgo', undefined, options),
959
982
  },
960
983
  };
961
984
  }