Skip to content

Commit 2b5ae3e

Browse files
release: v0.1.49
1 parent 89e42c5 commit 2b5ae3e

11 files changed

Lines changed: 1380 additions & 97 deletions

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $result = $roxy->location->searchCities(q: 'New York');
3636
<!-- BEGIN:DOMAINS -->
3737
| Property | What it covers |
3838
|---|---|
39-
| `$roxy->astrology` | Western astrology API for natal birth charts, daily, weekly, and monthly horoscopes with unique content per sign, syn... |
39+
| `$roxy->astrology` | Western astrology API for natal birth charts, daily, weekly, monthly, and yearly horoscopes with unique content per s... |
4040
| `$roxy->vedicAstrology` | Vedic astrology (Jyotish) and KP API for kundli generation with 15 divisional charts (D1-D60), Ashtakoot Gun Milan ku... |
4141
| `$roxy->forecast` | Forecast API that merges upcoming transit aspects, sign ingresses, retrograde stations, new and full moons, biorhythm... |
4242
| `$roxy->humanDesign` | Generate the full Human Design bodygraph from a birth moment: type, strategy, inner authority, profile, definition, i... |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Get an API key at [roxyapi.com/pricing](https://roxyapi.com/pricing). All endpoi
5555
<!-- BEGIN:DOMAINS -->
5656
| Property | What it covers |
5757
|---|---|
58-
| `$roxy->astrology` | Western astrology API for natal birth charts, daily, weekly, and monthly horoscopes with unique content per sign, syn... |
58+
| `$roxy->astrology` | Western astrology API for natal birth charts, daily, weekly, monthly, and yearly horoscopes with unique content per s... |
5959
| `$roxy->vedicAstrology` | Vedic astrology (Jyotish) and KP API for kundli generation with 15 divisional charts (D1-D60), Ashtakoot Gun Milan ku... |
6060
| `$roxy->forecast` | Forecast API that merges upcoming transit aspects, sign ingresses, retrograde stations, new and full moons, biorhythm... |
6161
| `$roxy->humanDesign` | Generate the full Human Design bodygraph from a birth moment: type, strategy, inner authority, profile, definition, i... |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@
8484
"/tests"
8585
]
8686
},
87-
"version": "0.1.48"
87+
"version": "0.1.49"
8888
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "roxyapi-sdk-php-tooling",
33
"private": true,
4-
"version": "0.1.48",
4+
"version": "0.1.49",
55
"description": "Codegen tooling for the roxyapi/sdk Composer package. Not published.",
66
"type": "module",
77
"scripts": {

specs/openapi.json

Lines changed: 1199 additions & 48 deletions
Large diffs are not rendered by default.

src/Generated/Requests/GetDailyHoroscopeRequest.php

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@
1313
use Saloon\Http\Request;
1414

1515
/**
16-
* Daily horoscope by zodiac sign - Transit-based forecast with house activations
16+
* Daily horoscope by zodiac sign - Transit-based editorial columns
1717
*
18-
* Get the daily horoscope for any zodiac sign. Forecast is generated from real-time planetary
19-
* transits using whole-sign house positions, so every sign receives unique content. Returns
20-
* love, career, health, finance, overview with active transits, Moon sign, Moon phase, energy
21-
* rating, lucky number, lucky color, and compatible signs. Content is fixed for a given date
22-
* and rolls over at midnight, by default UTC. Pass date for editorial scheduling, or timezone
23-
* to roll over on a local clock. Daily horoscope API, zodiac forecast, sun sign horoscope,
24-
* astrology prediction.
18+
* A publish-ready column for any zodiac sign, built from the dated transits over it and
19+
* returned with those events for fact-checking. The reading names the aspects, sign ingresses,
20+
* lunations and retrograde stations driving it and reads each into the whole-sign houses of
21+
* that sign, so every sign gets different content rather than one blurb reused twelve times.
22+
* Alongside the column come overview, love, career, health, finance and advice, the active
23+
* transits, Moon sign and phase, an energy rating, lucky number and color, and compatible
24+
* signs. No language model is involved, so a given sign and date always returns the same text
25+
* and a piece scheduled months ahead is the piece that runs. Content rolls over at midnight,
26+
* by default UTC. Pass date for editorial scheduling, or timezone to roll over on a local
27+
* clock. Available in eight languages. Daily horoscope API, zodiac forecast, sun sign
28+
* horoscope, astrology prediction.
2529
*
2630
* GET /astrology/horoscope/{sign}/daily
2731
*/

src/Generated/Requests/GetMonthlyHoroscopeRequest.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
use Saloon\Http\Request;
1414

1515
/**
16-
* Monthly horoscope by zodiac sign - 30-day transit forecast with key dates
16+
* Monthly horoscope by zodiac sign - Editorial column with key dates
1717
*
18-
* Get monthly horoscope for any zodiac sign with sign-specific week-by-week breakdown and real
19-
* lunar phase key dates. Based on planetary transits with house activations unique to each
20-
* sign, covering love, career, health, and finance for the entire month. Key dates include
21-
* actual New Moon, Full Moon, and retrograde dates from ephemeris calculations. Pass any date
22-
* inside a month to retrieve that month, or timezone to roll over on a local clock. Monthly
18+
* A month-long column for any zodiac sign, plus a week-by-week breakdown and dated key dates a
19+
* calendar page renders directly. The column names every aspect, ingress, lunation and station
20+
* of the month and reads each into the whole-sign houses of that sign, and those events come
21+
* back beside the prose with their exact instants, so a piece can be checked against NASA JPL
22+
* Horizons or the US Naval Observatory before it runs. Key dates are the real New Moon, Full
23+
* Moon and retrograde instants, never approximations. Alongside the column come overview,
24+
* love, career, health, finance and advice. Pass any date inside a month to retrieve that
25+
* month, or timezone to roll over on a local clock. Available in eight languages. Monthly
2326
* horoscope API, zodiac monthly forecast, astrology monthly prediction.
2427
*
2528
* GET /astrology/horoscope/{sign}/monthly

src/Generated/Requests/GetWeeklyHoroscopeRequest.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
use Saloon\Http\Request;
1414

1515
/**
16-
* Weekly horoscope by zodiac sign - 7-day transit forecast
16+
* Weekly horoscope by zodiac sign - Seven-day editorial column
1717
*
18-
* Get weekly horoscope for any zodiac sign. Forecast covers a full Monday to Sunday period
19-
* based on planetary transits with house-based content unique to each sign, with love, career,
20-
* health, finance guidance plus lucky days, lucky numbers, and compatible signs. Pass any date
21-
* inside a week to retrieve that week, or timezone to roll over on a local clock. Weekly
22-
* horoscope API, zodiac weekly forecast, astrology weekly prediction.
18+
* A Monday to Sunday column for any zodiac sign, naming the transits that perfect during the
19+
* week and the days they fall on. Each event is read into the whole-sign houses of that sign,
20+
* so content is unique per sign, and the dated events come back beside the prose so an editor
21+
* can check a piece before it runs. Alongside the column come overview, love, career, health,
22+
* finance and advice, plus lucky days, lucky numbers and compatible signs. No language model
23+
* is involved, so the same sign and week always returns the same text. Pass any date inside a
24+
* week to retrieve that week, or timezone to roll over on a local clock. Available in eight
25+
* languages. Weekly horoscope API, zodiac weekly forecast, astrology weekly prediction.
2326
*
2427
* GET /astrology/horoscope/{sign}/weekly
2528
*/
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* AUTO-GENERATED by scripts/generate.mjs from the live OpenAPI spec.
7+
* Do not edit this file by hand. Regenerate with: node scripts/generate.mjs
8+
*/
9+
10+
namespace RoxyAPI\Sdk\Generated\Requests;
11+
12+
use Saloon\Enums\Method;
13+
use Saloon\Http\Request;
14+
15+
/**
16+
* Yearly horoscope by zodiac sign - Year ahead forecast with themes, key periods, eclipses and
17+
* retrogrades
18+
*
19+
* Get the year ahead for any zodiac sign, as a long-form column plus the structured arrays a
20+
* year-ahead page is built from: the slow-body themes that set the backdrop, a dated key
21+
* period for each of the twelve houses, the best month for love, career, health and finance,
22+
* and every eclipse and every retrograde and direct station with the house it falls in for
23+
* this sign. Love, career, health, finance and advice cover the whole year, and the dated
24+
* events behind the copy come back beside it so an editor can check the piece before it runs.
25+
* Omit the year for the one in progress, or pass any year from 1900 to 2100 to build an
26+
* archive or a forecast ahead of time. Yearly horoscope API, year ahead astrology, annual
27+
* zodiac forecast, eclipse and retrograde calendar.
28+
*
29+
* GET /astrology/horoscope/{sign}/yearly
30+
*/
31+
class GetYearlyHoroscopeRequest extends Request
32+
{
33+
protected Method $method = Method::GET;
34+
35+
public function __construct(
36+
public readonly string $sign,
37+
public readonly ?string $lang = null,
38+
public readonly ?string $timezone = null,
39+
public readonly ?float $year = null,
40+
) {
41+
}
42+
43+
public function resolveEndpoint(): string
44+
{
45+
return "/astrology/horoscope/{$this->sign}/yearly";
46+
}
47+
48+
/**
49+
* @return array<string, mixed>
50+
*/
51+
protected function defaultQuery(): array
52+
{
53+
$query = [];
54+
if ($this->lang !== null) {
55+
$query['lang'] = $this->lang;
56+
}
57+
if ($this->timezone !== null) {
58+
$query['timezone'] = $this->timezone;
59+
}
60+
if ($this->year !== null) {
61+
$query['year'] = $this->year;
62+
}
63+
64+
return $query;
65+
}
66+
}

src/Generated/Resources/AstrologyResource.php

Lines changed: 80 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
use RoxyAPI\Sdk\Generated\Resources\BaseResource;
1313

1414
/**
15-
* Western astrology API for natal birth charts, daily, weekly, and monthly horoscopes with
16-
* unique content per sign, syn...
15+
* Western astrology API for natal birth charts, daily, weekly, monthly, and yearly horoscopes
16+
* with unique content per s...
1717
*
1818
* Accessed via $roxy->astrology.
1919
*/
@@ -1301,15 +1301,19 @@ public function getCurrentMoonPhase(
13011301
}
13021302

13031303
/**
1304-
* Daily horoscope by zodiac sign - Transit-based forecast with house activations
1305-
*
1306-
* Get the daily horoscope for any zodiac sign. Forecast is generated from real-time planetary
1307-
* transits using whole-sign house positions, so every sign receives unique content. Returns
1308-
* love, career, health, finance, overview with active transits, Moon sign, Moon phase, energy
1309-
* rating, lucky number, lucky color, and compatible signs. Content is fixed for a given date
1310-
* and rolls over at midnight, by default UTC. Pass date for editorial scheduling, or timezone
1311-
* to roll over on a local clock. Daily horoscope API, zodiac forecast, sun sign horoscope,
1312-
* astrology prediction.
1304+
* Daily horoscope by zodiac sign - Transit-based editorial columns
1305+
*
1306+
* A publish-ready column for any zodiac sign, built from the dated transits over it and
1307+
* returned with those events for fact-checking. The reading names the aspects, sign ingresses,
1308+
* lunations and retrograde stations driving it and reads each into the whole-sign houses of
1309+
* that sign, so every sign gets different content rather than one blurb reused twelve times.
1310+
* Alongside the column come overview, love, career, health, finance and advice, the active
1311+
* transits, Moon sign and phase, an energy rating, lucky number and color, and compatible
1312+
* signs. No language model is involved, so a given sign and date always returns the same text
1313+
* and a piece scheduled months ahead is the piece that runs. Content rolls over at midnight,
1314+
* by default UTC. Pass date for editorial scheduling, or timezone to roll over on a local
1315+
* clock. Available in eight languages. Daily horoscope API, zodiac forecast, sun sign
1316+
* horoscope, astrology prediction.
13131317
*
13141318
* GET /astrology/horoscope/{sign}/daily
13151319
*
@@ -1403,13 +1407,16 @@ public function getMonthlyDeclinationParallels(
14031407
}
14041408

14051409
/**
1406-
* Monthly horoscope by zodiac sign - 30-day transit forecast with key dates
1407-
*
1408-
* Get monthly horoscope for any zodiac sign with sign-specific week-by-week breakdown and real
1409-
* lunar phase key dates. Based on planetary transits with house activations unique to each
1410-
* sign, covering love, career, health, and finance for the entire month. Key dates include
1411-
* actual New Moon, Full Moon, and retrograde dates from ephemeris calculations. Pass any date
1412-
* inside a month to retrieve that month, or timezone to roll over on a local clock. Monthly
1410+
* Monthly horoscope by zodiac sign - Editorial column with key dates
1411+
*
1412+
* A month-long column for any zodiac sign, plus a week-by-week breakdown and dated key dates a
1413+
* calendar page renders directly. The column names every aspect, ingress, lunation and station
1414+
* of the month and reads each into the whole-sign houses of that sign, and those events come
1415+
* back beside the prose with their exact instants, so a piece can be checked against NASA JPL
1416+
* Horizons or the US Naval Observatory before it runs. Key dates are the real New Moon, Full
1417+
* Moon and retrograde instants, never approximations. Alongside the column come overview,
1418+
* love, career, health, finance and advice. Pass any date inside a month to retrieve that
1419+
* month, or timezone to roll over on a local clock. Available in eight languages. Monthly
14131420
* horoscope API, zodiac monthly forecast, astrology monthly prediction.
14141421
*
14151422
* GET /astrology/horoscope/{sign}/monthly
@@ -1783,13 +1790,16 @@ public function getUpcomingMoonPhases(
17831790
}
17841791

17851792
/**
1786-
* Weekly horoscope by zodiac sign - 7-day transit forecast
1793+
* Weekly horoscope by zodiac sign - Seven-day editorial column
17871794
*
1788-
* Get weekly horoscope for any zodiac sign. Forecast covers a full Monday to Sunday period
1789-
* based on planetary transits with house-based content unique to each sign, with love, career,
1790-
* health, finance guidance plus lucky days, lucky numbers, and compatible signs. Pass any date
1791-
* inside a week to retrieve that week, or timezone to roll over on a local clock. Weekly
1792-
* horoscope API, zodiac weekly forecast, astrology weekly prediction.
1795+
* A Monday to Sunday column for any zodiac sign, naming the transits that perfect during the
1796+
* week and the days they fall on. Each event is read into the whole-sign houses of that sign,
1797+
* so content is unique per sign, and the dated events come back beside the prose so an editor
1798+
* can check a piece before it runs. Alongside the column come overview, love, career, health,
1799+
* finance and advice, plus lucky days, lucky numbers and compatible signs. No language model
1800+
* is involved, so the same sign and week always returns the same text. Pass any date inside a
1801+
* week to retrieve that week, or timezone to roll over on a local clock. Available in eight
1802+
* languages. Weekly horoscope API, zodiac weekly forecast, astrology weekly prediction.
17931803
*
17941804
* GET /astrology/horoscope/{sign}/weekly
17951805
*
@@ -1823,6 +1833,52 @@ public function getWeeklyHoroscope(
18231833
return $this->callRequest($request);
18241834
}
18251835

1836+
/**
1837+
* Yearly horoscope by zodiac sign - Year ahead forecast with themes, key periods, eclipses and
1838+
* retrogrades
1839+
*
1840+
* Get the year ahead for any zodiac sign, as a long-form column plus the structured arrays a
1841+
* year-ahead page is built from: the slow-body themes that set the backdrop, a dated key
1842+
* period for each of the twelve houses, the best month for love, career, health and finance,
1843+
* and every eclipse and every retrograde and direct station with the house it falls in for
1844+
* this sign. Love, career, health, finance and advice cover the whole year, and the dated
1845+
* events behind the copy come back beside it so an editor can check the piece before it runs.
1846+
* Omit the year for the one in progress, or pass any year from 1900 to 2100 to build an
1847+
* archive or a forecast ahead of time. Yearly horoscope API, year ahead astrology, annual
1848+
* zodiac forecast, eclipse and retrograde calendar.
1849+
*
1850+
* GET /astrology/horoscope/{sign}/yearly
1851+
*
1852+
* @param string $sign
1853+
* Zodiac sign, case-insensitive (e.g., aries, Aries, ARIES all work).
1854+
* @param string|null $lang
1855+
* Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant.
1856+
* Defaults to en. Coverage varies by domain, and a field with no translation in the requested
1857+
* language returns English.
1858+
* @param string|null $timezone
1859+
* Selects which year counts as current when year is omitted. Defaults to UTC, so the forecast
1860+
* rolls over at 00:00 UTC on January 1. Pass the timezone of the end user to roll over on
1861+
* their local clock instead. Ignored when year is set. Accepts an IANA name (e.g.
1862+
* "America/New_York"), decimal hours (e.g. 5.5 for IST), or a fixed UTC offset (e.g.
1863+
* "-05:00").
1864+
* @param float|null $year
1865+
* Calendar year to forecast, 1900 to 2100. Defaults to the current year in the timezone
1866+
* parameter.
1867+
*
1868+
* @return array<string, mixed>
1869+
*/
1870+
public function getYearlyHoroscope(
1871+
string $sign,
1872+
?string $lang = null,
1873+
?string $timezone = null,
1874+
?float $year = null
1875+
): array
1876+
{
1877+
$request = new \RoxyAPI\Sdk\Generated\Requests\GetYearlyHoroscopeRequest(sign: $sign, lang: $lang, timezone: $timezone, year: $year);
1878+
1879+
return $this->callRequest($request);
1880+
}
1881+
18261882
/**
18271883
* Get zodiac sign details - Complete astrology sign profile with personality traits
18281884
*

0 commit comments

Comments
 (0)