Skip to content

Commit b203d85

Browse files
release: v0.1.29
1 parent a73d5b5 commit b203d85

12 files changed

Lines changed: 3725 additions & 115 deletions

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

specs/openapi.json

Lines changed: 3400 additions & 89 deletions
Large diffs are not rendered by default.

src/Generated/Requests/GetCurrentDashaRequest.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
use Saloon\Traits\Body\HasJsonBody;
1616

1717
/**
18-
* Get current Mahadasha, Antardasha, Pratyantardasha, Sookshma - Dasha Calculator API
18+
* Get current Mahadasha, Antardasha, Pratyantardasha, Sookshma, Prana - Dasha Calculator API
1919
*
20-
* Calculate all four running Vimshottari Dasha levels (Mahadasha, Antardasha, Pratyantardasha,
21-
* Sookshma) with remaining time in each. Accurate dasha calculator API for life phase
20+
* Calculate all five running Vimshottari Dasha levels (Mahadasha, Antardasha, Pratyantardasha,
21+
* Sookshma, Prana) with remaining time in each. Accurate dasha calculator API for life phase
2222
* prediction and planetary period analysis. Returns the dasha timeline with start/end dates
23-
* for every level, ready for a current DBA readout. Essential for understanding current
23+
* for every level, ready for a current DBA readout down to hour-level timing. Set
24+
* significators true to add the KP star lord, sub lord, signified houses and strength grade of
25+
* each running lord, plus the houses they have in common. Essential for understanding current
2426
* planetary influences, dasha transitions, and timing events in Vedic astrology. 120-year
2527
* dasha system based on moon nakshatra at birth, with selectable Lahiri or KP ayanamsa.
2628
*
@@ -38,6 +40,8 @@ public function __construct(
3840
public readonly float $longitude,
3941
public readonly string $time,
4042
public readonly ?string $ayanamsa = null,
43+
public readonly ?string $nodeType = null,
44+
public readonly ?bool $significators = null,
4145
public readonly mixed $timezone = null,
4246
public readonly ?string $lang = null,
4347
) {
@@ -60,6 +64,12 @@ protected function defaultBody(): array
6064
$body['date'] = $this->date;
6165
$body['latitude'] = $this->latitude;
6266
$body['longitude'] = $this->longitude;
67+
if ($this->nodeType !== null) {
68+
$body['nodeType'] = $this->nodeType;
69+
}
70+
if ($this->significators !== null) {
71+
$body['significators'] = $this->significators;
72+
}
6373
$body['time'] = $this->time;
6474
if ($this->timezone !== null) {
6575
$body['timezone'] = $this->timezone;

src/Generated/Requests/GetKpAyanamsaRequest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
/**
1616
* Get KP-Newcomb ayanamsa - Dynamic daily calculation
1717
*
18-
* Get real-time KP-Newcomb ayanamsa value calculated using Newcomb precession theory - no
19-
* preset tables. Returns precise ayanamsa for any date based on IAU modern precession
20-
* standards. Essential for accurate KP chart calculations and research. Formula: A =
21-
* 16.90709×(Year/10000) - 0.757371×(Year/1000)² - 6.92416, B = (Month-1 +
22-
* Date/30)×1.1574074/1000. KP Newcomb ayanamsa API, dynamic ayanamsa calculator, Krishnamurti
18+
* Get the KP-Newcomb (Krishnamurti) ayanamsa for any date, computed continuously from Newcomb
19+
* precession theory rather than looked up in a preset table, so it tracks the date you ask for
20+
* instead of the calendar year. This is the precession offset subtracted from a tropical
21+
* longitude to obtain the sidereal one, and it is what makes a KP chart reproduce the
22+
* reference software your practitioners already use. Returns the same value every KP endpoint
23+
* applies internally. KP Newcomb ayanamsa API, dynamic ayanamsa calculator, Krishnamurti
2324
* ayanamsa today, current KP ayanamsa
2425
*
2526
* GET /vedic-astrology/kp/ayanamsa

src/Generated/Requests/GetMajorDashasRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function __construct(
3434
public readonly float $longitude,
3535
public readonly string $time,
3636
public readonly ?string $ayanamsa = null,
37+
public readonly ?string $nodeType = null,
38+
public readonly ?bool $significators = null,
3739
public readonly mixed $timezone = null,
3840
public readonly ?string $lang = null,
3941
) {
@@ -56,6 +58,12 @@ protected function defaultBody(): array
5658
$body['date'] = $this->date;
5759
$body['latitude'] = $this->latitude;
5860
$body['longitude'] = $this->longitude;
61+
if ($this->nodeType !== null) {
62+
$body['nodeType'] = $this->nodeType;
63+
}
64+
if ($this->significators !== null) {
65+
$body['significators'] = $this->significators;
66+
}
5967
$body['time'] = $this->time;
6068
if ($this->timezone !== null) {
6169
$body['timezone'] = $this->timezone;
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
use Saloon\Contracts\Body\HasBody;
15+
use Saloon\Traits\Body\HasJsonBody;
16+
17+
/**
18+
* Get all Prana dashas for a Mahadasha, Antardasha, Pratyantardasha and Sookshma
19+
*
20+
* Prana dasha API. Returns the 9 Prana periods inside a chosen Sookshma dasha, the fifth and
21+
* finest level of the Vimshottari dasha hierarchy. Completes the full vimshottari drill down
22+
* from the 120-year cycle to hour level timing, typically 20 minutes to 4 days per period
23+
* depending on the parent Mahadasha. Built for five column dasha drill down tables, muhurta
24+
* selection, and pinpointing the trigger moment inside an event window already found at the
25+
* Sookshma level.
26+
*
27+
* POST /vedic-astrology/dasha/sub/{mahadasha}/{antardasha}/{pratyantardasha}/{sookshma}
28+
*/
29+
class GetPranaDashasRequest extends Request implements HasBody
30+
{
31+
use HasJsonBody;
32+
33+
protected Method $method = Method::POST;
34+
35+
public function __construct(
36+
public readonly string $mahadasha,
37+
public readonly string $antardasha,
38+
public readonly string $pratyantardasha,
39+
public readonly string $sookshma,
40+
public readonly string $date,
41+
public readonly float $latitude,
42+
public readonly float $longitude,
43+
public readonly string $time,
44+
public readonly ?string $ayanamsa = null,
45+
public readonly ?string $nodeType = null,
46+
public readonly ?bool $significators = null,
47+
public readonly mixed $timezone = null,
48+
public readonly ?string $lang = null,
49+
) {
50+
}
51+
52+
public function resolveEndpoint(): string
53+
{
54+
return "/vedic-astrology/dasha/sub/{$this->mahadasha}/{$this->antardasha}/{$this->pratyantardasha}/{$this->sookshma}";
55+
}
56+
57+
/**
58+
* @return array<string, mixed>
59+
*/
60+
protected function defaultBody(): array
61+
{
62+
$body = [];
63+
if ($this->ayanamsa !== null) {
64+
$body['ayanamsa'] = $this->ayanamsa;
65+
}
66+
$body['date'] = $this->date;
67+
$body['latitude'] = $this->latitude;
68+
$body['longitude'] = $this->longitude;
69+
if ($this->nodeType !== null) {
70+
$body['nodeType'] = $this->nodeType;
71+
}
72+
if ($this->significators !== null) {
73+
$body['significators'] = $this->significators;
74+
}
75+
$body['time'] = $this->time;
76+
if ($this->timezone !== null) {
77+
$body['timezone'] = $this->timezone;
78+
}
79+
80+
return $body;
81+
}
82+
83+
/**
84+
* @return array<string, mixed>
85+
*/
86+
protected function defaultQuery(): array
87+
{
88+
$query = [];
89+
if ($this->lang !== null) {
90+
$query['lang'] = $this->lang;
91+
}
92+
93+
return $query;
94+
}
95+
}

src/Generated/Requests/GetPratyantardashasRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function __construct(
3838
public readonly float $longitude,
3939
public readonly string $time,
4040
public readonly ?string $ayanamsa = null,
41+
public readonly ?string $nodeType = null,
42+
public readonly ?bool $significators = null,
4143
public readonly mixed $timezone = null,
4244
public readonly ?string $lang = null,
4345
) {
@@ -60,6 +62,12 @@ protected function defaultBody(): array
6062
$body['date'] = $this->date;
6163
$body['latitude'] = $this->latitude;
6264
$body['longitude'] = $this->longitude;
65+
if ($this->nodeType !== null) {
66+
$body['nodeType'] = $this->nodeType;
67+
}
68+
if ($this->significators !== null) {
69+
$body['significators'] = $this->significators;
70+
}
6371
$body['time'] = $this->time;
6472
if ($this->timezone !== null) {
6573
$body['timezone'] = $this->timezone;

src/Generated/Requests/GetSookshmaDashasRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function __construct(
4040
public readonly float $longitude,
4141
public readonly string $time,
4242
public readonly ?string $ayanamsa = null,
43+
public readonly ?string $nodeType = null,
44+
public readonly ?bool $significators = null,
4345
public readonly mixed $timezone = null,
4446
public readonly ?string $lang = null,
4547
) {
@@ -62,6 +64,12 @@ protected function defaultBody(): array
6264
$body['date'] = $this->date;
6365
$body['latitude'] = $this->latitude;
6466
$body['longitude'] = $this->longitude;
67+
if ($this->nodeType !== null) {
68+
$body['nodeType'] = $this->nodeType;
69+
}
70+
if ($this->significators !== null) {
71+
$body['significators'] = $this->significators;
72+
}
6573
$body['time'] = $this->time;
6674
if ($this->timezone !== null) {
6775
$body['timezone'] = $this->timezone;

src/Generated/Requests/GetSubDashasRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public function __construct(
3535
public readonly float $longitude,
3636
public readonly string $time,
3737
public readonly ?string $ayanamsa = null,
38+
public readonly ?string $nodeType = null,
39+
public readonly ?bool $significators = null,
3840
public readonly mixed $timezone = null,
3941
public readonly ?string $lang = null,
4042
) {
@@ -57,6 +59,12 @@ protected function defaultBody(): array
5759
$body['date'] = $this->date;
5860
$body['latitude'] = $this->latitude;
5961
$body['longitude'] = $this->longitude;
62+
if ($this->nodeType !== null) {
63+
$body['nodeType'] = $this->nodeType;
64+
}
65+
if ($this->significators !== null) {
66+
$body['significators'] = $this->significators;
67+
}
6068
$body['time'] = $this->time;
6169
if ($this->timezone !== null) {
6270
$body['timezone'] = $this->timezone;

0 commit comments

Comments
 (0)