Skip to content

Commit 12591d0

Browse files
release: v0.1.13
1 parent 90009ab commit 12591d0

8 files changed

Lines changed: 135 additions & 9 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.12"
87+
"version": "0.1.13"
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.12",
4+
"version": "0.1.13",
55
"description": "Codegen tooling for the roxyapi/sdk Composer package. Not published.",
66
"type": "module",
77
"scripts": {

specs/openapi.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20278,6 +20278,30 @@
2027820278
"apiKey": []
2027920279
}
2028020280
],
20281+
"parameters": [
20282+
{
20283+
"schema": {
20284+
"type": "string",
20285+
"enum": [
20286+
"en",
20287+
"tr",
20288+
"de",
20289+
"es",
20290+
"hi",
20291+
"pt",
20292+
"fr",
20293+
"ru"
20294+
],
20295+
"default": "en",
20296+
"example": "en",
20297+
"description": "Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English."
20298+
},
20299+
"required": false,
20300+
"description": "Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.",
20301+
"name": "lang",
20302+
"in": "query"
20303+
}
20304+
],
2028120305
"requestBody": {
2028220306
"content": {
2028320307
"application/json": {
@@ -20519,6 +20543,30 @@
2051920543
"apiKey": []
2052020544
}
2052120545
],
20546+
"parameters": [
20547+
{
20548+
"schema": {
20549+
"type": "string",
20550+
"enum": [
20551+
"en",
20552+
"tr",
20553+
"de",
20554+
"es",
20555+
"hi",
20556+
"pt",
20557+
"fr",
20558+
"ru"
20559+
],
20560+
"default": "en",
20561+
"example": "en",
20562+
"description": "Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English."
20563+
},
20564+
"required": false,
20565+
"description": "Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.",
20566+
"name": "lang",
20567+
"in": "query"
20568+
}
20569+
],
2052220570
"requestBody": {
2052320571
"content": {
2052420572
"application/json": {
@@ -28317,6 +28365,30 @@
2831728365
"apiKey": []
2831828366
}
2831928367
],
28368+
"parameters": [
28369+
{
28370+
"schema": {
28371+
"type": "string",
28372+
"enum": [
28373+
"en",
28374+
"tr",
28375+
"de",
28376+
"es",
28377+
"hi",
28378+
"pt",
28379+
"fr",
28380+
"ru"
28381+
],
28382+
"default": "en",
28383+
"example": "en",
28384+
"description": "Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English."
28385+
},
28386+
"required": false,
28387+
"description": "Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English.",
28388+
"name": "lang",
28389+
"in": "query"
28390+
}
28391+
],
2832028392
"requestBody": {
2832128393
"content": {
2832228394
"application/json": {

src/Generated/Requests/GenerateDivisionalChartRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function __construct(
4040
public readonly float $longitude,
4141
public readonly string $time,
4242
public readonly mixed $timezone = null,
43+
public readonly ?string $lang = null,
4344
) {
4445
}
4546

@@ -65,4 +66,17 @@ protected function defaultBody(): array
6566

6667
return $body;
6768
}
69+
70+
/**
71+
* @return array<string, mixed>
72+
*/
73+
protected function defaultQuery(): array
74+
{
75+
$query = [];
76+
if ($this->lang !== null) {
77+
$query['lang'] = $this->lang;
78+
}
79+
80+
return $query;
81+
}
6882
}

src/Generated/Requests/GenerateKpChartRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function __construct(
4242
public readonly ?float $ayanamsaValue = null,
4343
public readonly ?string $nodeType = null,
4444
public readonly mixed $timezone = null,
45+
public readonly ?string $lang = null,
4546
) {
4647
}
4748

@@ -75,4 +76,17 @@ protected function defaultBody(): array
7576

7677
return $body;
7778
}
79+
80+
/**
81+
* @return array<string, mixed>
82+
*/
83+
protected function defaultQuery(): array
84+
{
85+
$query = [];
86+
if ($this->lang !== null) {
87+
$query['lang'] = $this->lang;
88+
}
89+
90+
return $query;
91+
}
7892
}

src/Generated/Requests/GenerateNavamsaRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function __construct(
3737
public readonly float $longitude,
3838
public readonly string $time,
3939
public readonly mixed $timezone = null,
40+
public readonly ?string $lang = null,
4041
) {
4142
}
4243

@@ -61,4 +62,17 @@ protected function defaultBody(): array
6162

6263
return $body;
6364
}
65+
66+
/**
67+
* @return array<string, mixed>
68+
*/
69+
protected function defaultQuery(): array
70+
{
71+
$query = [];
72+
if ($this->lang !== null) {
73+
$query['lang'] = $this->lang;
74+
}
75+
76+
return $query;
77+
}
6478
}

src/Generated/Resources/VedicAstrologyResource.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@ public function generateBirthChart(
592592
* "Asia/Kolkata", "America/New_York"). IANA strings are resolved to the DST-correct offset for
593593
* the given date, so you can pass `cities[0].timezone` from /location/search directly.
594594
* Defaults to 5.5 (IST).
595+
* @param string|null $lang
596+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en.
597+
* Languages without translations yet return English.
595598
*
596599
* @return array<string, mixed>
597600
*/
@@ -601,10 +604,11 @@ public function generateDivisionalChart(
601604
float $latitude,
602605
float $longitude,
603606
string $time,
604-
mixed $timezone = null
607+
mixed $timezone = null,
608+
?string $lang = null
605609
): array
606610
{
607-
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateDivisionalChartRequest(date: $date, division: $division, latitude: $latitude, longitude: $longitude, time: $time, timezone: $timezone);
611+
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateDivisionalChartRequest(date: $date, division: $division, latitude: $latitude, longitude: $longitude, time: $time, timezone: $timezone, lang: $lang);
608612

609613
return $this->callRequest($request);
610614
}
@@ -646,6 +650,9 @@ public function generateDivisionalChart(
646650
* assignments in narrow boundary cases. Defaults to "mean".
647651
* @param mixed|null $timezone
648652
* Timezone offset from UTC in hours. Defaults to 5.5 (IST) for Vedic astrology.
653+
* @param string|null $lang
654+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en.
655+
* Languages without translations yet return English.
649656
*
650657
* @return array<string, mixed>
651658
*/
@@ -657,10 +664,11 @@ public function generateKpChart(
657664
?string $ayanamsa = null,
658665
?float $ayanamsaValue = null,
659666
?string $nodeType = null,
660-
mixed $timezone = null
667+
mixed $timezone = null,
668+
?string $lang = null
661669
): array
662670
{
663-
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateKpChartRequest(date: $date, latitude: $latitude, longitude: $longitude, time: $time, ayanamsa: $ayanamsa, ayanamsaValue: $ayanamsaValue, nodeType: $nodeType, timezone: $timezone);
671+
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateKpChartRequest(date: $date, latitude: $latitude, longitude: $longitude, time: $time, ayanamsa: $ayanamsa, ayanamsaValue: $ayanamsaValue, nodeType: $nodeType, timezone: $timezone, lang: $lang);
664672

665673
return $this->callRequest($request);
666674
}
@@ -697,6 +705,9 @@ public function generateKpChart(
697705
* "Asia/Kolkata", "America/New_York"). IANA strings are resolved to the DST-correct offset for
698706
* the given date, so you can pass `cities[0].timezone` from /location/search directly.
699707
* Defaults to 5.5 (IST).
708+
* @param string|null $lang
709+
* Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en.
710+
* Languages without translations yet return English.
700711
*
701712
* @return array<string, mixed>
702713
*/
@@ -705,10 +716,11 @@ public function generateNavamsa(
705716
float $latitude,
706717
float $longitude,
707718
string $time,
708-
mixed $timezone = null
719+
mixed $timezone = null,
720+
?string $lang = null
709721
): array
710722
{
711-
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateNavamsaRequest(date: $date, latitude: $latitude, longitude: $longitude, time: $time, timezone: $timezone);
723+
$request = new \RoxyAPI\Sdk\Generated\Requests\GenerateNavamsaRequest(date: $date, latitude: $latitude, longitude: $longitude, time: $time, timezone: $timezone, lang: $lang);
712724

713725
return $this->callRequest($request);
714726
}

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.12';
12+
public const VERSION = '0.1.13';
1313
}

0 commit comments

Comments
 (0)