@astroway/sdk 1.5.1 → 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);
@@ -48,14 +50,17 @@ export function buildNamespaces(client) {
48
50
  acg: {
49
51
  bestPlaces: (body, options) => call('/acg/best-places', body, options),
50
52
  byCategory: (body, options) => call('/acg/by-category', body, options),
51
- categoriesGet: (options) => callGet('/acg/categories', options),
53
+ categoriesGet: (options) => callGet('/acg/categories', undefined, options),
52
54
  compute: (body, options) => call('/acg', body, options),
53
- countriesGet: (options) => callGet('/acg/countries', options),
55
+ countriesGet: (options) => callGet('/acg/countries', undefined, options),
54
56
  lineReport: (body, options) => call('/acg/line-report', body, options),
55
57
  },
56
58
  acgZones: {
57
59
  compute: (body, options) => call('/acg-zones', body, options),
58
60
  },
61
+ agent: {
62
+ toolsGet: (query, options) => callGet('/agent/tools', query, options),
63
+ },
59
64
  ai: {
60
65
  chat: (body, options) => call('/ai/chat', body, options),
61
66
  comparisonCoach: (body, options) => call('/ai/comparison-coach', body, options),
@@ -121,11 +126,15 @@ export function buildNamespaces(client) {
121
126
  compute: (body, options) => call('/chart', body, options),
122
127
  },
123
128
  chinese: {
129
+ fengShuiAnnualStars: (body, options) => call('/chinese/feng-shui/annual-stars', body, options),
124
130
  fengShuiBagua: (body, options) => call('/chinese/feng-shui/bagua', body, options),
131
+ fengShuiFlyingStar: (body, options) => call('/chinese/feng-shui/flying-star', body, options),
125
132
  fengShuiKua: (body, options) => call('/chinese/feng-shui/kua', body, options),
126
133
  fengShuiLuckyDirections: (body, options) => call('/chinese/feng-shui/lucky-directions', body, options),
127
134
  lunarDate: (body, options) => call('/chinese/lunar-date', body, options),
128
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),
129
138
  zodiacAnimal: (body, options) => call('/chinese/zodiac/animal', body, options),
130
139
  zodiacCompatibility: (body, options) => call('/chinese/zodiac/compatibility', body, options),
131
140
  zodiacElement: (body, options) => call('/chinese/zodiac/element', body, options),
@@ -180,13 +189,13 @@ export function buildNamespaces(client) {
180
189
  },
181
190
  esoteric: {
182
191
  angelNumbersDecode: (body, options) => call('/esoteric/angel-numbers/decode', body, options),
183
- angelNumbersGet: (options) => callGet('/esoteric/angel-numbers', options),
184
- angelNumbersTodayGet: (options) => callGet('/esoteric/angel-numbers/today', options),
185
- 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),
186
195
  crystalsRecommend: (body, options) => call('/esoteric/crystals/recommend', body, options),
187
196
  dreamsDecode: (body, options) => call('/esoteric/dreams/decode', body, options),
188
- dreamsGet: (options) => callGet('/esoteric/dreams', options),
189
- 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),
190
199
  },
191
200
  essentialDignities: {
192
201
  compute: (body, options) => call('/essential-dignities', body, options),
@@ -221,7 +230,7 @@ export function buildNamespaces(client) {
221
230
  compute: (body, options) => call('/firdaria', body, options),
222
231
  },
223
232
  fixedStars: {
224
- catalogGet: (options) => callGet('/fixed-stars/catalog', options),
233
+ catalogGet: (options) => callGet('/fixed-stars/catalog', undefined, options),
225
234
  compute: (body, options) => call('/fixed-stars', body, options),
226
235
  },
227
236
  forecastCalendar: {
@@ -359,6 +368,11 @@ export function buildNamespaces(client) {
359
368
  synastry: (body, options) => call('/interpret/synastry', body, options),
360
369
  transits: (body, options) => call('/interpret/transits', body, options),
361
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
+ },
362
376
  localSpace: {
363
377
  compute: (body, options) => call('/local-space', body, options),
364
378
  influenceZone: (body, options) => call('/local-space/influence-zone', body, options),
@@ -384,13 +398,13 @@ export function buildNamespaces(client) {
384
398
  },
385
399
  mcp: {
386
400
  agentDebate: (body, options) => call('/mcp/agent-debate', body, options),
387
- agentPoolStatusGet: (options) => callGet('/mcp/agent-pool-status', options),
401
+ agentPoolStatusGet: (options) => callGet('/mcp/agent-pool-status', undefined, options),
388
402
  multiAgentCoordinate: (body, options) => call('/mcp/multi-agent-coordinate', body, options),
389
403
  multiChartContext: (body, options) => call('/mcp/multi-chart-context', body, options),
390
404
  ragSearch: (body, options) => call('/mcp/rag-search', body, options),
391
405
  streaming: (body, options) => call('/mcp/streaming', body, options),
392
406
  toolCallStream: (body, options) => call('/mcp/tool-call-stream', body, options),
393
- toolsListGet: (options) => callGet('/mcp/tools-list', options),
407
+ toolsListGet: (options) => callGet('/mcp/tools-list', undefined, options),
394
408
  },
395
409
  midpointTrees: {
396
410
  compute: (body, options) => call('/midpoint-trees', body, options),
@@ -428,7 +442,7 @@ export function buildNamespaces(client) {
428
442
  compute: (body, options) => call('/moon-voc', body, options),
429
443
  },
430
444
  muhurta: {
431
- typesGet: (options) => callGet('/muhurta/types', options),
445
+ typesGet: (options) => callGet('/muhurta/types', undefined, options),
432
446
  },
433
447
  nakshatras: {
434
448
  compute: (body, options) => call('/nakshatras', body, options),
@@ -550,20 +564,20 @@ export function buildNamespaces(client) {
550
564
  trutine: (body, options) => call('/rectification/trutine', body, options),
551
565
  },
552
566
  reference: {
553
- aspectsGet: (options) => callGet('/reference/aspects', options),
554
- asteroidsGet: (options) => callGet('/reference/asteroids', options),
555
- decansGet: (options) => callGet('/reference/decans', options),
556
- dignitiesGet: (options) => callGet('/reference/dignities', options),
557
- elementsGet: (options) => callGet('/reference/elements', options),
558
- glyphsGet: (options) => callGet('/reference/glyphs', options),
559
- housesGet: (options) => callGet('/reference/houses', options),
560
- lotsGet: (options) => callGet('/reference/lots', options),
561
- modalitiesGet: (options) => callGet('/reference/modalities', options),
562
- nakshatrasGet: (options) => callGet('/reference/nakshatras', options),
563
- planetsGet: (options) => callGet('/reference/planets', options),
564
- polaritiesGet: (options) => callGet('/reference/polarities', options),
565
- signsGet: (options) => callGet('/reference/signs', options),
566
- 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),
567
581
  },
568
582
  relocation: {
569
583
  compute: (body, options) => call('/relocation', body, options),
@@ -593,14 +607,16 @@ export function buildNamespaces(client) {
593
607
  business: (body, options) => call('/reports/business', body, options),
594
608
  career: (body, options) => call('/reports/career', body, options),
595
609
  child: (body, options) => call('/reports/child', body, options),
610
+ gemstone: (body, options) => call('/reports/gemstone', body, options),
596
611
  generate: (body, options) => call('/reports/generate', body, options),
597
- historyGet: (options) => callGet('/reports/history', options),
612
+ historyGet: (options) => callGet('/reports/history', undefined, options),
598
613
  humanDesign: (body, options) => call('/reports/human-design', body, options),
599
614
  lalKitab: (body, options) => call('/reports/lal-kitab', body, options),
600
615
  love: (body, options) => call('/reports/love', body, options),
601
616
  money: (body, options) => call('/reports/money', body, options),
602
617
  muhurta: (body, options) => call('/reports/muhurta', body, options),
603
618
  natal: (body, options) => call('/reports/natal', body, options),
619
+ relocation: (body, options) => call('/reports/relocation', body, options),
604
620
  stellaforge: (body, options) => call('/reports/stellaforge', body, options),
605
621
  synastry: (body, options) => call('/reports/synastry', body, options),
606
622
  tarot: (body, options) => call('/reports/tarot', body, options),
@@ -652,7 +668,7 @@ export function buildNamespaces(client) {
652
668
  houseOverlay: (body, options) => call('/synastry/house-overlay', body, options),
653
669
  },
654
670
  tarot: {
655
- lenormandCardsGet: (options) => callGet('/tarot/lenormand/cards', options),
671
+ lenormandCardsGet: (options) => callGet('/tarot/lenormand/cards', undefined, options),
656
672
  lenormandDaily: (body, options) => call('/tarot/lenormand/daily', body, options),
657
673
  lenormandDraw9CardSquare: (body, options) => call('/tarot/lenormand/draw/9-card-square', body, options),
658
674
  lenormandDrawCelticCrossLenormand: (body, options) => call('/tarot/lenormand/draw/celtic-cross-lenormand', body, options),
@@ -660,9 +676,9 @@ export function buildNamespaces(client) {
660
676
  lenormandDrawLineOfFive: (body, options) => call('/tarot/lenormand/draw/line-of-five', body, options),
661
677
  lenormandDrawRelationship: (body, options) => call('/tarot/lenormand/draw/relationship', body, options),
662
678
  lenormandDrawThreeCard: (body, options) => call('/tarot/lenormand/draw/three-card', body, options),
663
- lenormandHousesGet: (options) => callGet('/tarot/lenormand/houses', options),
679
+ lenormandHousesGet: (options) => callGet('/tarot/lenormand/houses', undefined, options),
664
680
  marseilleBirthCard: (body, options) => call('/tarot/marseille/birth-card', body, options),
665
- marseilleCardsGet: (options) => callGet('/tarot/marseille/cards', options),
681
+ marseilleCardsGet: (options) => callGet('/tarot/marseille/cards', undefined, options),
666
682
  marseilleClarify: (body, options) => call('/tarot/marseille/clarify', body, options),
667
683
  marseilleDaily: (body, options) => call('/tarot/marseille/daily', body, options),
668
684
  marseilleDrawCareer: (body, options) => call('/tarot/marseille/draw/career', body, options),
@@ -676,15 +692,15 @@ export function buildNamespaces(client) {
676
692
  marseilleDrawSpiritual: (body, options) => call('/tarot/marseille/draw/spiritual', body, options),
677
693
  marseilleDrawThreeCard: (body, options) => call('/tarot/marseille/draw/three-card', body, options),
678
694
  marseilleInterpret: (body, options) => call('/tarot/marseille/interpret', body, options),
679
- marseilleMajorsGet: (options) => callGet('/tarot/marseille/majors', options),
680
- 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),
681
697
  marseilleTiming: (body, options) => call('/tarot/marseille/timing', body, options),
682
698
  marseilleYearCard: (body, options) => call('/tarot/marseille/year-card', body, options),
683
699
  riderWaiteAdvice: (body, options) => call('/tarot/rider-waite/advice', body, options),
684
700
  riderWaiteBirthCard: (body, options) => call('/tarot/rider-waite/birth-card', body, options),
685
- riderWaiteCardsGet: (options) => callGet('/tarot/rider-waite/cards', options),
701
+ riderWaiteCardsGet: (options) => callGet('/tarot/rider-waite/cards', undefined, options),
686
702
  riderWaiteClarify: (body, options) => call('/tarot/rider-waite/clarify', body, options),
687
- riderWaiteCourtsGet: (options) => callGet('/tarot/rider-waite/courts', options),
703
+ riderWaiteCourtsGet: (options) => callGet('/tarot/rider-waite/courts', undefined, options),
688
704
  riderWaiteCrossSum: (body, options) => call('/tarot/rider-waite/cross-sum', body, options),
689
705
  riderWaiteDaily: (body, options) => call('/tarot/rider-waite/daily', body, options),
690
706
  riderWaiteDrawCareer: (body, options) => call('/tarot/rider-waite/draw/career', body, options),
@@ -700,13 +716,13 @@ export function buildNamespaces(client) {
700
716
  riderWaiteDrawThreeCard: (body, options) => call('/tarot/rider-waite/draw/three-card', body, options),
701
717
  riderWaiteDrawYearAhead: (body, options) => call('/tarot/rider-waite/draw/year-ahead', body, options),
702
718
  riderWaiteInterpret: (body, options) => call('/tarot/rider-waite/interpret', body, options),
703
- riderWaiteMajorsGet: (options) => callGet('/tarot/rider-waite/majors', options),
704
- 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),
705
721
  riderWaiteMissingInfo: (body, options) => call('/tarot/rider-waite/missing-info', body, options),
706
722
  riderWaiteOutcome: (body, options) => call('/tarot/rider-waite/outcome', body, options),
707
723
  riderWaiteShadowCard: (body, options) => call('/tarot/rider-waite/shadow-card', body, options),
708
724
  riderWaiteSoulPersonalityCard: (body, options) => call('/tarot/rider-waite/soul-personality-card', body, options),
709
- riderWaiteSpreadsGet: (options) => callGet('/tarot/rider-waite/spreads', options),
725
+ riderWaiteSpreadsGet: (options) => callGet('/tarot/rider-waite/spreads', undefined, options),
710
726
  riderWaiteTiming: (body, options) => call('/tarot/rider-waite/timing', body, options),
711
727
  riderWaiteYearCard: (body, options) => call('/tarot/rider-waite/year-card', body, options),
712
728
  },
@@ -722,7 +738,7 @@ export function buildNamespaces(client) {
722
738
  translate: {
723
739
  astro: (body, options) => call('/translate/astro', body, options),
724
740
  batch: (body, options) => call('/translate/batch', body, options),
725
- languagesGet: (options) => callGet('/translate/languages', options),
741
+ languagesGet: (options) => callGet('/translate/languages', undefined, options),
726
742
  },
727
743
  vedic: {
728
744
  bhavabala: (body, options) => call('/vedic/bhavabala', body, options),
@@ -802,7 +818,7 @@ export function buildNamespaces(client) {
802
818
  doshasParasharaPitru: (body, options) => call('/vedic/doshas/parashara/pitru', body, options),
803
819
  doshasParasharaShrapit: (body, options) => call('/vedic/doshas/parashara/shrapit', body, options),
804
820
  gemstones: (body, options) => call('/vedic/gemstones', body, options),
805
- gemstonesNavaratnaGet: (options) => callGet('/vedic/gemstones/navaratna', options),
821
+ gemstonesNavaratnaGet: (options) => callGet('/vedic/gemstones/navaratna', undefined, options),
806
822
  jaiminiArgalaAnalysis: (body, options) => call('/vedic/jaimini/argala-analysis', body, options),
807
823
  jaiminiAspects: (body, options) => call('/vedic/jaimini/aspects', body, options),
808
824
  jaiminiAtmakarakaNavamsa: (body, options) => call('/vedic/jaimini/atmakaraka-navamsa', body, options),
@@ -880,6 +896,7 @@ export function buildNamespaces(client) {
880
896
  vargaD60: (body, options) => call('/vedic/varga/D60', body, options),
881
897
  vargaD7: (body, options) => call('/vedic/varga/D7', body, options),
882
898
  vargaD9: (body, options) => call('/vedic/varga/D9', body, options),
899
+ varshaphal: (body, options) => call('/vedic/varshaphal', body, options),
883
900
  yogasJaiminiDaridra: (body, options) => call('/vedic/yogas/jaimini/daridra', body, options),
884
901
  yogasJaiminiDhana: (body, options) => call('/vedic/yogas/jaimini/dhana', body, options),
885
902
  yogasJaiminiFull: (body, options) => call('/vedic/yogas/jaimini/full', body, options),
@@ -902,7 +919,7 @@ export function buildNamespaces(client) {
902
919
  webhooks: {
903
920
  dashaChange: (body, options) => call('/webhooks/dasha-change', body, options),
904
921
  eclipseAlert: (body, options) => call('/webhooks/eclipse-alert', body, options),
905
- get: (options) => callGet('/webhooks', options),
922
+ get: (options) => callGet('/webhooks', undefined, options),
906
923
  mahadashaEnd: (body, options) => call('/webhooks/mahadasha-end', body, options),
907
924
  planetaryHourTick: (body, options) => call('/webhooks/planetary-hour-tick', body, options),
908
925
  retrogradeEnd: (body, options) => call('/webhooks/retrograde-end', body, options),
@@ -926,7 +943,7 @@ export function buildNamespaces(client) {
926
943
  yoga: (body, options) => call('/wellness/yoga', body, options),
927
944
  },
928
945
  whitelabel: {
929
- configGet: (options) => callGet('/whitelabel/config', options),
946
+ configGet: (options) => callGet('/whitelabel/config', undefined, options),
930
947
  domainVerify: (body, options) => call('/whitelabel/domain/verify', body, options),
931
948
  logo: (body, options) => call('/whitelabel/logo', body, options),
932
949
  preview: (body, options) => call('/whitelabel/preview', body, options),
@@ -950,18 +967,18 @@ export function buildNamespaces(client) {
950
967
  twelvePalaces: (body, options) => call('/ziwei/twelve-palaces', body, options),
951
968
  },
952
969
  zodiac: {
953
- aquariusGet: (options) => callGet('/zodiac/aquarius', options),
954
- ariesGet: (options) => callGet('/zodiac/aries', options),
955
- cancerGet: (options) => callGet('/zodiac/cancer', options),
956
- capricornGet: (options) => callGet('/zodiac/capricorn', options),
957
- geminiGet: (options) => callGet('/zodiac/gemini', options),
958
- leoGet: (options) => callGet('/zodiac/leo', options),
959
- libraGet: (options) => callGet('/zodiac/libra', options),
960
- piscesGet: (options) => callGet('/zodiac/pisces', options),
961
- sagittariusGet: (options) => callGet('/zodiac/sagittarius', options),
962
- scorpioGet: (options) => callGet('/zodiac/scorpio', options),
963
- taurusGet: (options) => callGet('/zodiac/taurus', options),
964
- 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),
965
982
  },
966
983
  };
967
984
  }