Skip to content

Commit 0361ee0

Browse files
release: v0.1.32
1 parent f854363 commit 0361ee0

7 files changed

Lines changed: 317 additions & 74 deletions

File tree

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.31"
87+
"version": "0.1.32"
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.31",
4+
"version": "0.1.32",
55
"description": "Codegen tooling for the roxyapi/sdk Composer package. Not published.",
66
"type": "module",
77
"scripts": {

specs/openapi.json

Lines changed: 292 additions & 69 deletions
Large diffs are not rendered by default.

src/Generated/Requests/GenerateBirthChartRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function __construct(
3636
public readonly float $latitude,
3737
public readonly float $longitude,
3838
public readonly string $time,
39+
public readonly ?bool $avasthaInfo = null,
3940
public readonly mixed $timezone = null,
4041
public readonly ?string $focus = null,
4142
public readonly ?string $lang = null,
@@ -53,6 +54,9 @@ public function resolveEndpoint(): string
5354
protected function defaultBody(): array
5455
{
5556
$body = [];
57+
if ($this->avasthaInfo !== null) {
58+
$body['avasthaInfo'] = $this->avasthaInfo;
59+
}
5660
$body['date'] = $this->date;
5761
$body['latitude'] = $this->latitude;
5862
$body['longitude'] = $this->longitude;

src/Generated/Requests/ListYogasRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class ListYogasRequest extends Request
2828
protected Method $method = Method::GET;
2929

3030
public function __construct(
31+
public readonly ?string $family = null,
3132
public readonly ?string $lang = null,
3233
) {
3334
}
@@ -43,6 +44,9 @@ public function resolveEndpoint(): string
4344
protected function defaultQuery(): array
4445
{
4546
$query = [];
47+
if ($this->family !== null) {
48+
$query['family'] = $this->family;
49+
}
4650
if ($this->lang !== null) {
4751
$query['lang'] = $this->lang;
4852
}

src/Generated/Resources/VedicAstrologyResource.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,12 @@ public function detectYogas(
654654
* and house divisions. It changes every two hours roughly. Even minutes matter for accurate
655655
* nakshatra pada and divisional chart (D9, D10) calculations. Without exact time, Lagna and
656656
* house-based predictions will be incorrect.
657+
* @param bool|null $avasthaInfo
658+
* Set true to include a localized meaning and one-sentence classical interpretation beside
659+
* each graha avastha state, under avasthaInfo on that graha in meta. Defaults to false, so an
660+
* existing integration is byte-identical until it opts in. Saves a second call to GET
661+
* /avasthas and the client-side join that would otherwise be needed to turn Yuva or Swapna
662+
* into readable text.
657663
* @param mixed|null $timezone
658664
* Timezone: IANA name (e.g. "America/New_York", "Europe/London") OR decimal hours from UTC
659665
* (e.g. -5 for EST, 1 for CET). IANA strings are resolved to the DST-correct offset for the
@@ -678,12 +684,13 @@ public function generateBirthChart(
678684
float $latitude,
679685
float $longitude,
680686
string $time,
687+
?bool $avasthaInfo = null,
681688
mixed $timezone = null,
682689
?string $focus = null,
683690
?string $lang = null
684691
): array
685692
{
686-
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateBirthChartRequest(date: $date, latitude: $latitude, longitude: $longitude, time: $time, timezone: $timezone, focus: $focus, lang: $lang);
693+
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateBirthChartRequest(date: $date, latitude: $latitude, longitude: $longitude, time: $time, avasthaInfo: $avasthaInfo, timezone: $timezone, focus: $focus, lang: $lang);
687694

688695
return $this->callRequest($request);
689696
}
@@ -2585,17 +2592,22 @@ public function listRashis(
25852592
*
25862593
* GET /vedic-astrology/yoga
25872594
*
2595+
* @param string|null $family
2596+
* Filter the catalog to one Nabhasa family: asraya (3), dala (2), akriti (20) or sankhya (7).
2597+
* Omit for the full catalog. `classical` is accepted but matches nothing here, because it is a
2598+
* detection-verdict value for single-combination yogas rather than a catalog grouping.
25882599
* @param string|null $lang
25892600
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en.
25902601
* Languages without translations yet return English.
25912602
*
25922603
* @return array<string, mixed>
25932604
*/
25942605
public function listYogas(
2606+
?string $family = null,
25952607
?string $lang = null
25962608
): array
25972609
{
2598-
$request = new \RoxyAPI\Sdk\Generated\Requests\ListYogasRequest(lang: $lang);
2610+
$request = new \RoxyAPI\Sdk\Generated\Requests\ListYogasRequest(family: $family, lang: $lang);
25992611

26002612
return $this->callRequest($request);
26012613
}

src/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
*/
1010
final class Version
1111
{
12-
public const VERSION = '0.1.31';
12+
public const VERSION = '0.1.32';
1313
}

0 commit comments

Comments
 (0)