@astroway/sdk 1.5.1 → 1.6.1

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,11 @@ 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
- streaming: (body, options) => call('/mcp/streaming', body, options),
392
- toolCallStream: (body, options) => call('/mcp/tool-call-stream', body, options),
393
- toolsListGet: (options) => callGet('/mcp/tools-list', options),
405
+ toolsListGet: (options) => callGet('/mcp/tools-list', undefined, options),
394
406
  },
395
407
  midpointTrees: {
396
408
  compute: (body, options) => call('/midpoint-trees', body, options),
@@ -428,7 +440,7 @@ export function buildNamespaces(client) {
428
440
  compute: (body, options) => call('/moon-voc', body, options),
429
441
  },
430
442
  muhurta: {
431
- typesGet: (options) => callGet('/muhurta/types', options),
443
+ typesGet: (options) => callGet('/muhurta/types', undefined, options),
432
444
  },
433
445
  nakshatras: {
434
446
  compute: (body, options) => call('/nakshatras', body, options),
@@ -550,20 +562,20 @@ export function buildNamespaces(client) {
550
562
  trutine: (body, options) => call('/rectification/trutine', body, options),
551
563
  },
552
564
  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),
565
+ aspectsGet: (options) => callGet('/reference/aspects', undefined, options),
566
+ asteroidsGet: (options) => callGet('/reference/asteroids', undefined, options),
567
+ decansGet: (options) => callGet('/reference/decans', undefined, options),
568
+ dignitiesGet: (options) => callGet('/reference/dignities', undefined, options),
569
+ elementsGet: (options) => callGet('/reference/elements', undefined, options),
570
+ glyphsGet: (options) => callGet('/reference/glyphs', undefined, options),
571
+ housesGet: (options) => callGet('/reference/houses', undefined, options),
572
+ lotsGet: (options) => callGet('/reference/lots', undefined, options),
573
+ modalitiesGet: (options) => callGet('/reference/modalities', undefined, options),
574
+ nakshatrasGet: (options) => callGet('/reference/nakshatras', undefined, options),
575
+ planetsGet: (options) => callGet('/reference/planets', undefined, options),
576
+ polaritiesGet: (options) => callGet('/reference/polarities', undefined, options),
577
+ signsGet: (options) => callGet('/reference/signs', undefined, options),
578
+ zodiacSystemsGet: (options) => callGet('/reference/zodiac-systems', undefined, options),
567
579
  },
568
580
  relocation: {
569
581
  compute: (body, options) => call('/relocation', body, options),
@@ -593,14 +605,16 @@ export function buildNamespaces(client) {
593
605
  business: (body, options) => call('/reports/business', body, options),
594
606
  career: (body, options) => call('/reports/career', body, options),
595
607
  child: (body, options) => call('/reports/child', body, options),
608
+ gemstone: (body, options) => call('/reports/gemstone', body, options),
596
609
  generate: (body, options) => call('/reports/generate', body, options),
597
- historyGet: (options) => callGet('/reports/history', options),
610
+ historyGet: (options) => callGet('/reports/history', undefined, options),
598
611
  humanDesign: (body, options) => call('/reports/human-design', body, options),
599
612
  lalKitab: (body, options) => call('/reports/lal-kitab', body, options),
600
613
  love: (body, options) => call('/reports/love', body, options),
601
614
  money: (body, options) => call('/reports/money', body, options),
602
615
  muhurta: (body, options) => call('/reports/muhurta', body, options),
603
616
  natal: (body, options) => call('/reports/natal', body, options),
617
+ relocation: (body, options) => call('/reports/relocation', body, options),
604
618
  stellaforge: (body, options) => call('/reports/stellaforge', body, options),
605
619
  synastry: (body, options) => call('/reports/synastry', body, options),
606
620
  tarot: (body, options) => call('/reports/tarot', body, options),
@@ -652,7 +666,7 @@ export function buildNamespaces(client) {
652
666
  houseOverlay: (body, options) => call('/synastry/house-overlay', body, options),
653
667
  },
654
668
  tarot: {
655
- lenormandCardsGet: (options) => callGet('/tarot/lenormand/cards', options),
669
+ lenormandCardsGet: (options) => callGet('/tarot/lenormand/cards', undefined, options),
656
670
  lenormandDaily: (body, options) => call('/tarot/lenormand/daily', body, options),
657
671
  lenormandDraw9CardSquare: (body, options) => call('/tarot/lenormand/draw/9-card-square', body, options),
658
672
  lenormandDrawCelticCrossLenormand: (body, options) => call('/tarot/lenormand/draw/celtic-cross-lenormand', body, options),
@@ -660,9 +674,9 @@ export function buildNamespaces(client) {
660
674
  lenormandDrawLineOfFive: (body, options) => call('/tarot/lenormand/draw/line-of-five', body, options),
661
675
  lenormandDrawRelationship: (body, options) => call('/tarot/lenormand/draw/relationship', body, options),
662
676
  lenormandDrawThreeCard: (body, options) => call('/tarot/lenormand/draw/three-card', body, options),
663
- lenormandHousesGet: (options) => callGet('/tarot/lenormand/houses', options),
677
+ lenormandHousesGet: (options) => callGet('/tarot/lenormand/houses', undefined, options),
664
678
  marseilleBirthCard: (body, options) => call('/tarot/marseille/birth-card', body, options),
665
- marseilleCardsGet: (options) => callGet('/tarot/marseille/cards', options),
679
+ marseilleCardsGet: (options) => callGet('/tarot/marseille/cards', undefined, options),
666
680
  marseilleClarify: (body, options) => call('/tarot/marseille/clarify', body, options),
667
681
  marseilleDaily: (body, options) => call('/tarot/marseille/daily', body, options),
668
682
  marseilleDrawCareer: (body, options) => call('/tarot/marseille/draw/career', body, options),
@@ -676,15 +690,15 @@ export function buildNamespaces(client) {
676
690
  marseilleDrawSpiritual: (body, options) => call('/tarot/marseille/draw/spiritual', body, options),
677
691
  marseilleDrawThreeCard: (body, options) => call('/tarot/marseille/draw/three-card', body, options),
678
692
  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),
693
+ marseilleMajorsGet: (options) => callGet('/tarot/marseille/majors', undefined, options),
694
+ marseilleSpreadsGet: (options) => callGet('/tarot/marseille/spreads', undefined, options),
681
695
  marseilleTiming: (body, options) => call('/tarot/marseille/timing', body, options),
682
696
  marseilleYearCard: (body, options) => call('/tarot/marseille/year-card', body, options),
683
697
  riderWaiteAdvice: (body, options) => call('/tarot/rider-waite/advice', body, options),
684
698
  riderWaiteBirthCard: (body, options) => call('/tarot/rider-waite/birth-card', body, options),
685
- riderWaiteCardsGet: (options) => callGet('/tarot/rider-waite/cards', options),
699
+ riderWaiteCardsGet: (options) => callGet('/tarot/rider-waite/cards', undefined, options),
686
700
  riderWaiteClarify: (body, options) => call('/tarot/rider-waite/clarify', body, options),
687
- riderWaiteCourtsGet: (options) => callGet('/tarot/rider-waite/courts', options),
701
+ riderWaiteCourtsGet: (options) => callGet('/tarot/rider-waite/courts', undefined, options),
688
702
  riderWaiteCrossSum: (body, options) => call('/tarot/rider-waite/cross-sum', body, options),
689
703
  riderWaiteDaily: (body, options) => call('/tarot/rider-waite/daily', body, options),
690
704
  riderWaiteDrawCareer: (body, options) => call('/tarot/rider-waite/draw/career', body, options),
@@ -700,13 +714,13 @@ export function buildNamespaces(client) {
700
714
  riderWaiteDrawThreeCard: (body, options) => call('/tarot/rider-waite/draw/three-card', body, options),
701
715
  riderWaiteDrawYearAhead: (body, options) => call('/tarot/rider-waite/draw/year-ahead', body, options),
702
716
  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),
717
+ riderWaiteMajorsGet: (options) => callGet('/tarot/rider-waite/majors', undefined, options),
718
+ riderWaiteMinorsGet: (options) => callGet('/tarot/rider-waite/minors', undefined, options),
705
719
  riderWaiteMissingInfo: (body, options) => call('/tarot/rider-waite/missing-info', body, options),
706
720
  riderWaiteOutcome: (body, options) => call('/tarot/rider-waite/outcome', body, options),
707
721
  riderWaiteShadowCard: (body, options) => call('/tarot/rider-waite/shadow-card', body, options),
708
722
  riderWaiteSoulPersonalityCard: (body, options) => call('/tarot/rider-waite/soul-personality-card', body, options),
709
- riderWaiteSpreadsGet: (options) => callGet('/tarot/rider-waite/spreads', options),
723
+ riderWaiteSpreadsGet: (options) => callGet('/tarot/rider-waite/spreads', undefined, options),
710
724
  riderWaiteTiming: (body, options) => call('/tarot/rider-waite/timing', body, options),
711
725
  riderWaiteYearCard: (body, options) => call('/tarot/rider-waite/year-card', body, options),
712
726
  },
@@ -722,7 +736,7 @@ export function buildNamespaces(client) {
722
736
  translate: {
723
737
  astro: (body, options) => call('/translate/astro', body, options),
724
738
  batch: (body, options) => call('/translate/batch', body, options),
725
- languagesGet: (options) => callGet('/translate/languages', options),
739
+ languagesGet: (options) => callGet('/translate/languages', undefined, options),
726
740
  },
727
741
  vedic: {
728
742
  bhavabala: (body, options) => call('/vedic/bhavabala', body, options),
@@ -802,7 +816,7 @@ export function buildNamespaces(client) {
802
816
  doshasParasharaPitru: (body, options) => call('/vedic/doshas/parashara/pitru', body, options),
803
817
  doshasParasharaShrapit: (body, options) => call('/vedic/doshas/parashara/shrapit', body, options),
804
818
  gemstones: (body, options) => call('/vedic/gemstones', body, options),
805
- gemstonesNavaratnaGet: (options) => callGet('/vedic/gemstones/navaratna', options),
819
+ gemstonesNavaratnaGet: (options) => callGet('/vedic/gemstones/navaratna', undefined, options),
806
820
  jaiminiArgalaAnalysis: (body, options) => call('/vedic/jaimini/argala-analysis', body, options),
807
821
  jaiminiAspects: (body, options) => call('/vedic/jaimini/aspects', body, options),
808
822
  jaiminiAtmakarakaNavamsa: (body, options) => call('/vedic/jaimini/atmakaraka-navamsa', body, options),
@@ -880,6 +894,7 @@ export function buildNamespaces(client) {
880
894
  vargaD60: (body, options) => call('/vedic/varga/D60', body, options),
881
895
  vargaD7: (body, options) => call('/vedic/varga/D7', body, options),
882
896
  vargaD9: (body, options) => call('/vedic/varga/D9', body, options),
897
+ varshaphal: (body, options) => call('/vedic/varshaphal', body, options),
883
898
  yogasJaiminiDaridra: (body, options) => call('/vedic/yogas/jaimini/daridra', body, options),
884
899
  yogasJaiminiDhana: (body, options) => call('/vedic/yogas/jaimini/dhana', body, options),
885
900
  yogasJaiminiFull: (body, options) => call('/vedic/yogas/jaimini/full', body, options),
@@ -902,7 +917,7 @@ export function buildNamespaces(client) {
902
917
  webhooks: {
903
918
  dashaChange: (body, options) => call('/webhooks/dasha-change', body, options),
904
919
  eclipseAlert: (body, options) => call('/webhooks/eclipse-alert', body, options),
905
- get: (options) => callGet('/webhooks', options),
920
+ get: (options) => callGet('/webhooks', undefined, options),
906
921
  mahadashaEnd: (body, options) => call('/webhooks/mahadasha-end', body, options),
907
922
  planetaryHourTick: (body, options) => call('/webhooks/planetary-hour-tick', body, options),
908
923
  retrogradeEnd: (body, options) => call('/webhooks/retrograde-end', body, options),
@@ -926,7 +941,7 @@ export function buildNamespaces(client) {
926
941
  yoga: (body, options) => call('/wellness/yoga', body, options),
927
942
  },
928
943
  whitelabel: {
929
- configGet: (options) => callGet('/whitelabel/config', options),
944
+ configGet: (options) => callGet('/whitelabel/config', undefined, options),
930
945
  domainVerify: (body, options) => call('/whitelabel/domain/verify', body, options),
931
946
  logo: (body, options) => call('/whitelabel/logo', body, options),
932
947
  preview: (body, options) => call('/whitelabel/preview', body, options),
@@ -950,18 +965,18 @@ export function buildNamespaces(client) {
950
965
  twelvePalaces: (body, options) => call('/ziwei/twelve-palaces', body, options),
951
966
  },
952
967
  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),
968
+ aquariusGet: (options) => callGet('/zodiac/aquarius', undefined, options),
969
+ ariesGet: (options) => callGet('/zodiac/aries', undefined, options),
970
+ cancerGet: (options) => callGet('/zodiac/cancer', undefined, options),
971
+ capricornGet: (options) => callGet('/zodiac/capricorn', undefined, options),
972
+ geminiGet: (options) => callGet('/zodiac/gemini', undefined, options),
973
+ leoGet: (options) => callGet('/zodiac/leo', undefined, options),
974
+ libraGet: (options) => callGet('/zodiac/libra', undefined, options),
975
+ piscesGet: (options) => callGet('/zodiac/pisces', undefined, options),
976
+ sagittariusGet: (options) => callGet('/zodiac/sagittarius', undefined, options),
977
+ scorpioGet: (options) => callGet('/zodiac/scorpio', undefined, options),
978
+ taurusGet: (options) => callGet('/zodiac/taurus', undefined, options),
979
+ virgoGet: (options) => callGet('/zodiac/virgo', undefined, options),
965
980
  },
966
981
  };
967
982
  }