@@ -1414,7 +1414,8 @@ export class SDK {
1414
1414
props . PathParams
1415
1415
) ;
1416
1416
1417
- let [ reqHeaders , reqBody ] : [ object , string | FormData ] = [ { } , "" ] ;
1417
+ let [ reqHeaders , reqBody ] : [ object , any ] = [ { } , { } ] ;
1418
+
1418
1419
try {
1419
1420
[ reqHeaders , reqBody ] = SerializeRequestBody ( props ) ;
1420
1421
} catch ( e : unknown ) {
@@ -1432,11 +1433,14 @@ export class SDK {
1432
1433
| AxiosResponse < operations . InsertVersionMetadataResponse >
1433
1434
| undefined = undefined ;
1434
1435
try {
1436
+ let body : unknown ;
1437
+ if ( reqBody instanceof FormData ) body = reqBody ;
1438
+ else body = { ...reqBody } ;
1435
1439
httpRes = await client ! . post <
1436
1440
operations . InsertVersionMetadataResponse ,
1437
1441
AxiosResponse < operations . InsertVersionMetadataResponse > ,
1438
1442
unknown
1439
- > ( url , reqBody , {
1443
+ > ( url , body , {
1440
1444
headers : headers ,
1441
1445
...config ,
1442
1446
} ) ;
@@ -1537,7 +1541,8 @@ export class SDK {
1537
1541
props . PathParams
1538
1542
) ;
1539
1543
1540
- let [ reqHeaders , reqBody ] : [ object , string | FormData ] = [ { } , "" ] ;
1544
+ let [ reqHeaders , reqBody ] : [ object , any ] = [ { } , { } ] ;
1545
+
1541
1546
try {
1542
1547
[ reqHeaders , reqBody ] = SerializeRequestBody ( props ) ;
1543
1548
} catch ( e : unknown ) {
@@ -1554,11 +1559,15 @@ export class SDK {
1554
1559
let httpRes : AxiosResponse < operations . RegisterSchemaResponse > | undefined =
1555
1560
undefined ;
1556
1561
try {
1562
+ let body : unknown ;
1563
+ if ( reqBody instanceof FormData ) body = reqBody ;
1564
+ else body = { ...reqBody } ;
1565
+
1557
1566
httpRes = await client ! . post <
1558
1567
operations . RegisterSchemaResponse ,
1559
1568
AxiosResponse < operations . RegisterSchemaResponse > ,
1560
1569
unknown
1561
- > ( url , reqBody , {
1570
+ > ( url , body , {
1562
1571
headers : headers ,
1563
1572
...config ,
1564
1573
} ) ;
@@ -1651,7 +1660,8 @@ export class SDK {
1651
1660
props . PathParams
1652
1661
) ;
1653
1662
1654
- let [ reqHeaders , reqBody ] : [ object , string | FormData ] = [ { } , "" ] ;
1663
+ let [ reqHeaders , reqBody ] : [ object , any ] = [ { } , { } ] ;
1664
+
1655
1665
try {
1656
1666
[ reqHeaders , reqBody ] = SerializeRequestBody ( props ) ;
1657
1667
} catch ( e : unknown ) {
@@ -1668,11 +1678,15 @@ export class SDK {
1668
1678
let httpRes : AxiosResponse < operations . UpsertApiResponse > | undefined =
1669
1679
undefined ;
1670
1680
try {
1681
+ let body : unknown ;
1682
+ if ( reqBody instanceof FormData ) body = reqBody ;
1683
+ else body = { ...reqBody } ;
1684
+
1671
1685
httpRes = await client ! . put <
1672
1686
operations . UpsertApiResponse ,
1673
1687
AxiosResponse < operations . UpsertApiResponse > ,
1674
1688
unknown
1675
- > ( url , reqBody , {
1689
+ > ( url , body , {
1676
1690
headers : headers ,
1677
1691
...config ,
1678
1692
} ) ;
@@ -1715,7 +1729,8 @@ export class SDK {
1715
1729
props . PathParams
1716
1730
) ;
1717
1731
1718
- let [ reqHeaders , reqBody ] : [ object , string | FormData ] = [ { } , "" ] ;
1732
+ let [ reqHeaders , reqBody ] : [ object , any ] = [ { } , { } ] ;
1733
+
1719
1734
try {
1720
1735
[ reqHeaders , reqBody ] = SerializeRequestBody ( props ) ;
1721
1736
} catch ( e : unknown ) {
@@ -1733,11 +1748,15 @@ export class SDK {
1733
1748
| AxiosResponse < operations . UpsertApiEndpointResponse >
1734
1749
| undefined = undefined ;
1735
1750
try {
1751
+ let body : unknown ;
1752
+ if ( reqBody instanceof FormData ) body = reqBody ;
1753
+ else body = { ...reqBody } ;
1754
+
1736
1755
httpRes = await client ! . put <
1737
1756
operations . UpsertApiEndpointResponse ,
1738
1757
AxiosResponse < operations . UpsertApiEndpointResponse > ,
1739
1758
unknown
1740
- > ( url , reqBody , {
1759
+ > ( url , body , {
1741
1760
headers : headers ,
1742
1761
...config ,
1743
1762
} ) ;
0 commit comments