@roxyapi/sdk 1.2.69 → 1.2.71

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/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @roxyapi/sdk - Agent Guide
2
2
 
3
- TypeScript SDK for RoxyAPI. 12+ domains (Western astrology, Vedic astrology, numerology, tarot, human design, forecast, biorhythm, I Ching, crystals, dreams, angel numbers, location) plus utility namespaces (usage, languages). One API key, fully typed, zero runtime dependencies.
3
+ TypeScript SDK for RoxyAPI. 14+ domains (Western astrology, Vedic astrology, forecast, human design, Chinese astrology, feng shui, numerology, tarot, biorhythm, I Ching, crystals, dreams, angel numbers, location) plus utility namespaces (usage, languages). One API key, fully typed, zero runtime dependencies.
4
4
 
5
5
  > Before writing any code with this SDK, read `docs/llms-full.txt` in this package for the complete method reference with examples.
6
6
 
@@ -45,6 +45,8 @@ Type `roxy.` to see all available namespaces. Type `roxy.{domain}.` to see every
45
45
  | `roxy.vedicAstrology` | Vedic astrology (Jyotish) and KP API for kundli generation with 15 divisional charts (D1-D60), Ashtakoot Gun Milan ku... |
46
46
  | `roxy.forecast` | Forecast API that merges upcoming transit aspects, sign ingresses, retrograde stations, new and full moons, biorhythm... |
47
47
  | `roxy.humanDesign` | Generate the full Human Design bodygraph from a birth moment: type, strategy, inner authority, profile, definition, i... |
48
+ | `roxy.chineseAstrology` | Calculate BaZi Four Pillars charts, Chinese zodiac signs, and the Chinese lunisolar calendar from any birth moment: y... |
49
+ | `roxy.fengShui` | Compute classical feng shui from one API: Xuan Kong flying star natal charts for any of the nine periods and 24 mount... |
48
50
  | `roxy.numerology` | Numerology API to calculate life path, expression, soul urge, personality, and maturity numbers, with Pinnacle and Ch... |
49
51
  | `roxy.tarot` | Tarot reading API with the complete 78-card Rider-Waite-Smith deck and card meanings for love, career, health, and sp... |
50
52
  | `roxy.biorhythm` | The most complete biorhythm API: 10 cycle types across 3 primary (physical, emotional, intellectual), 4 secondary (in... |
@@ -57,7 +59,7 @@ Type `roxy.` to see all available namespaces. Type `roxy.{domain}.` to see every
57
59
  | `roxy.languages` | List the response languages accepted by the `lang` query parameter on every i18n-aware endpoint |
58
60
  <!-- END:DOMAINS -->
59
61
 
60
- **Total:** 160+ endpoints across 12+ product domains plus usage and languages. The table above auto-syncs from `specs/openapi.json` at release time.
62
+ **Total:** 209+ endpoints across 14+ product domains plus usage and languages. The table above auto-syncs from `specs/openapi.json` at release time.
61
63
 
62
64
  ## Quality guidelines for agents
63
65
 
@@ -120,7 +122,7 @@ await roxy.numerology.calculateLifePath({
120
122
  });
121
123
  ```
122
124
 
123
- Supported: `astrology`, `vedicAstrology`, `numerology`, `tarot`, `biorhythm`, `iching`, `crystals`, `angelNumbers`. English-only: `dreams`, `location`, `usage`, `languages`. To list supported codes at runtime, call `roxy.languages.listLanguages()`.
125
+ Supported: `astrology`, `vedicAstrology`, `forecast`, `humanDesign`, `chineseAstrology`, `fengShui`, `numerology`, `tarot`, `biorhythm`, `iching`, `crystals`, `angelNumbers`. English-only: `dreams`, `location`, `usage`, `languages`. The two Chinese scripts (`zh-Hans`, `zh-Hant`) currently ship on Chinese astrology and feng shui; every other domain answers those codes in English per field. To list supported codes at runtime, call `roxy.languages.listLanguages()`.
124
126
 
125
127
  ### Error handling
126
128
 
@@ -151,7 +153,7 @@ console.log(data.sign, data.overview);
151
153
 
152
154
  ## Common tasks
153
155
 
154
- Ordered by domain priority (Western, Vedic, Numerology, Tarot, Biorhythm, I Ching, Crystals, Dreams, Angel Numbers, Location, Usage, Languages).
156
+ Ordered by domain priority (Western, Vedic, Forecast, Human Design, Chinese Astrology, Feng Shui, Numerology, Tarot, Biorhythm, I Ching, Crystals, Dreams, Angel Numbers, Location, Usage, Languages).
155
157
 
156
158
  | Task | Code |
157
159
  |------|------|
package/README.md CHANGED
@@ -15,7 +15,7 @@ TypeScript SDK for astrology, Vedic astrology, numerology, tarot, and more.
15
15
 
16
16
  One API key. Fully typed. Verified against NASA JPL Horizons.
17
17
 
18
- The fastest way to add natal charts, daily horoscopes, synastry, Vedic kundli, tarot spreads, numerology, human design bodygraphs, and transit forecasts to Node.js apps, backends, and AI agents. 12+ domains behind a single [Roxy](https://roxyapi.com) subscription, interpretations in eight languages.
18
+ The fastest way to add natal charts, daily horoscopes, synastry, Vedic kundli, tarot spreads, numerology, human design bodygraphs, and transit forecasts to Node.js apps, backends, and AI agents. 14+ domains behind a single [Roxy](https://roxyapi.com) subscription, interpretations in 10+ languages.
19
19
 
20
20
  ## Install
21
21
 
@@ -89,6 +89,8 @@ const { latitude, longitude, timezone } = data.cities[0];
89
89
  | `roxy.vedicAstrology` | Vedic astrology (Jyotish) and KP API for kundli generation with 15 divisional charts (D1-D60), Ashtakoot Gun Milan ku... |
90
90
  | `roxy.forecast` | Forecast API that merges upcoming transit aspects, sign ingresses, retrograde stations, new and full moons, biorhythm... |
91
91
  | `roxy.humanDesign` | Generate the full Human Design bodygraph from a birth moment: type, strategy, inner authority, profile, definition, i... |
92
+ | `roxy.chineseAstrology` | Calculate BaZi Four Pillars charts, Chinese zodiac signs, and the Chinese lunisolar calendar from any birth moment: y... |
93
+ | `roxy.fengShui` | Compute classical feng shui from one API: Xuan Kong flying star natal charts for any of the nine periods and 24 mount... |
92
94
  | `roxy.numerology` | Numerology API to calculate life path, expression, soul urge, personality, and maturity numbers, with Pinnacle and Ch... |
93
95
  | `roxy.tarot` | Tarot reading API with the complete 78-card Rider-Waite-Smith deck and card meanings for love, career, health, and sp... |
94
96
  | `roxy.biorhythm` | The most complete biorhythm API: 10 cycle types across 3 primary (physical, emotional, intellectual), 4 secondary (in... |
@@ -259,7 +261,54 @@ const { data: timeline } = await roxy.forecast.generateTimeline({
259
261
  // timeline.events[0].date, timeline.events[0].domain, timeline.events[0].description, timeline.events[0].significance
260
262
  ```
261
263
 
262
- ### 7. Biorhythm API (daily check-in, forecast, compatibility)
264
+ ### 7. Chinese astrology API (BaZi four pillars, zodiac sign)
265
+
266
+ BaZi (Four Pillars of Destiny), the twelve-animal zodiac, and the lunisolar calendar with its almanac. The school splits that make two calculators disagree are typed request parameters with named defaults, echoed back in a `conventions` object on every response, so a chart can be reproduced rather than guessed at. The zodiac routes answer the high-volume consumer questions; BaZi and the almanac are where an app goes deeper.
267
+
268
+ ```typescript
269
+ // BaZi Four Pillars. The anchor call: the rest of the domain reads off these four pillars.
270
+ // `timezone` takes the IANA name, resolved to the DST-correct offset for the birth date.
271
+ const { data: bazi } = await roxy.chineseAstrology.generateBaziChart({
272
+ body: { date: '1990-07-04', time: '10:12:00', timezone: 'America/New_York' },
273
+ });
274
+ // bazi.pillars[n].position ('year' | 'month' | 'day' | 'hour'), .stem.element, .branch.animal
275
+ // bazi.pillars[n].tenGod.name, .hiddenStems, .naYin
276
+ // bazi.dayMaster.element, bazi.zodiacAnimal, bazi.fiveElements, bazi.conventions, bazi.summary
277
+
278
+ // Chinese zodiac sign. Defaults `yearBoundary` to 'lunar-new-year', the folk rule people mean
279
+ // when they say which animal they are. Pass 'li-chun' to match the classical BaZi boundary.
280
+ const { data: sign } = await roxy.chineseAstrology.calculateZodiacAnimal({
281
+ body: { date: '1990-07-04' },
282
+ });
283
+ // sign.animal.name ('Horse'), sign.animal.element ('Fire'), sign.animal.polarity
284
+ // sign.element is the YEAR STEM element ('Metal'), not the element of the animal
285
+ // sign.yearPillar, sign.interpretation
286
+ ```
287
+
288
+ ### 8. Feng shui API (Kua number, flying star chart)
289
+
290
+ Kua numbers with the full Eight Mansions map ranked best to worst, Xuan Kong flying star natal charts for any of the nine periods and 24 mountains, annual and monthly star plates, and the four annual afflictions with exact degree spans. Chinese years resolve at Li Chun, computed astronomically rather than assumed, so the annual charts change over on the real boundary.
291
+
292
+ ```typescript
293
+ // Kua number: one birth date and a gender gives the personal directions everything else reads off.
294
+ const { data: kua } = await roxy.fengShui.calculateKuaNumber({
295
+ body: { date: '1990-07-04', gender: 'female' },
296
+ });
297
+ // kua.kua (8), kua.group ('east' | 'west'), kua.trigram.english ('Mountain')
298
+ // kua.sectors[n].direction, .starName, .nature ('auspicious' | 'inauspicious'), .rank, .domain
299
+
300
+ // Flying star natal chart. Period plus facing gives the nine palaces with base, mountain
301
+ // and water stars. Send `facing` (a mountain id like 'bing' or a compass label like 'S2')
302
+ // or `facingDegrees`, not neither.
303
+ const { data: chart } = await roxy.fengShui.generateFlyingStarChart({
304
+ body: { period: 9, facing: 'S2' },
305
+ });
306
+ // chart.facing.label ('S2'), chart.sitting.label, chart.structure.name ('Double Star at Sitting')
307
+ // chart.palaces[n].palace, .base, .mountain, .water, .reading
308
+ // chart.mountainCenterStar, chart.waterCenterStar, chart.straddling
309
+ ```
310
+
311
+ ### 9. Biorhythm API (daily check-in, forecast, compatibility)
263
312
 
264
313
  Zero competition domain. Steady search volume with the top Google result being a static calculator page. Pure land-grab for wellness, productivity, sports, and couples apps.
265
314
 
@@ -275,7 +324,7 @@ const { data: forecast } = await roxy.biorhythm.getForecast({
275
324
  });
276
325
  ```
277
326
 
278
- ### 8. I Ching API (daily hexagram, coin cast, 64-hexagram catalog)
327
+ ### 10. I Ching API (daily hexagram, coin cast, 64-hexagram catalog)
279
328
 
280
329
  Meditation apps, decision-making tools, and wisdom chatbots. `i ching API` and `hexagram API` are the keywords.
281
330
 
@@ -289,7 +338,7 @@ const { data: hexagrams } = await roxy.iching.listHexagrams({});
289
338
  // hexagrams.hexagrams has 64 entries
290
339
  ```
291
340
 
292
- ### 9. Crystals API (by zodiac, by chakra, birthstone)
341
+ ### 11. Crystals API (by zodiac, by chakra, birthstone)
293
342
 
294
343
  Crystal retail and metaphysical shops use these to build "crystals for [sign]" and "[chakra] chakra stones" pages.
295
344
 
@@ -305,7 +354,7 @@ const { data: byChakra } = await roxy.crystals.getCrystalsByChakra({ path: { cha
305
354
  const { data: birthstone } = await roxy.crystals.getBirthstones({ path: { month: 4 } });
306
355
  ```
307
356
 
308
- ### 10. Dream interpretation API (symbol dictionary, search)
357
+ ### 12. Dream interpretation API (symbol dictionary, search)
309
358
 
310
359
  Thousands of dream symbols. `dream meaning` is among the highest-volume spiritual searches on Google. Journal apps, AI therapy chatbots, and self-discovery products are the buyers.
311
360
 
@@ -319,7 +368,7 @@ const { data: results } = await roxy.dreams.searchDreamSymbols({ query: { q: 'fl
319
368
  // results.symbols is an array of matching symbols
320
369
  ```
321
370
 
322
- ### 11. Angel Numbers API (1111, 222, 333 meanings plus universal lookup)
371
+ ### 13. Angel Numbers API (1111, 222, 333 meanings plus universal lookup)
323
372
 
324
373
  Gen Z spiritual-tok fuel. `111 meaning`, `222 meaning`, `333 angel number` are evergreen viral queries with massive shareability.
325
374
 
@@ -381,7 +430,7 @@ const roxy = new Roxy({ client });
381
430
 
382
431
  ## Multi-language responses
383
432
 
384
- Interpretations and editorial text are available in eight languages: English (`en`), Turkish (`tr`), German (`de`), Spanish (`es`), French (`fr`), Hindi (`hi`), Portuguese (`pt`), Russian (`ru`). Pass `query: { lang }` on any supported endpoint:
433
+ Interpretations and editorial text are available in 10 languages: English (`en`), Turkish (`tr`), German (`de`), Spanish (`es`), French (`fr`), Hindi (`hi`), Portuguese (`pt`), Russian (`ru`), Chinese Simplified (`zh-Hans`), Chinese Traditional (`zh-Hant`). Pass `query: { lang }` on any supported endpoint:
385
434
 
386
435
  ```typescript
387
436
  const { data } = await roxy.tarot.getDailyCard({
@@ -390,7 +439,7 @@ const { data } = await roxy.tarot.getDailyCard({
390
439
  });
391
440
  ```
392
441
 
393
- Supported: `astrology`, `vedicAstrology`, `numerology`, `tarot`, `biorhythm`, `iching`, `crystals`, `angelNumbers`. English-only: `dreams`, `location`, `usage`. Untranslated fields fall back to English.
442
+ Supported: `astrology`, `vedicAstrology`, `forecast`, `humanDesign`, `chineseAstrology`, `fengShui`, `numerology`, `tarot`, `biorhythm`, `iching`, `crystals`, `angelNumbers`. English-only: `dreams`, `location`, `usage`. The two Chinese scripts (`zh-Hans`, `zh-Hant`) currently ship on Chinese astrology and feng shui; every other domain answers those codes in English per field. Untranslated fields fall back to English.
394
443
 
395
444
  ## Error handling
396
445