@@ -6,6 +6,7 @@ import * as shared from "./models/shared";
6
6
import * as operations from "./models/operations" ;
7
7
import { ParamsSerializerOptions } from "axios" ;
8
8
import { GetQueryParamSerializer } from "internal/utils/queryparams" ;
9
+ import { SerializeRequestBody } from "../internal/utils/requestbody" ;
9
10
10
11
const Servers = [ "http://api.prod.speakeasyapi.dev" ] as const ;
11
12
@@ -1468,9 +1469,12 @@ export class SDK {
1468
1469
props . PathParams
1469
1470
) ;
1470
1471
1471
- let reqContentType = "application/json" ;
1472
+ let [ reqContentType , reqBody ] : [ string , unknown ] = [
1473
+ "application/json" ,
1474
+ props . Request ,
1475
+ ] ;
1472
1476
try {
1473
- reqContentType = utils . SerializeRequestBody ( props ) ;
1477
+ [ reqContentType , reqBody ] = SerializeRequestBody ( props ) ;
1474
1478
} catch ( e : unknown ) {
1475
1479
if ( e instanceof Error ) {
1476
1480
return new Error ( "Error serializing request body" , {
@@ -1495,7 +1499,7 @@ export class SDK {
1495
1499
operations . InsertVersionMetadataResponse ,
1496
1500
AxiosResponse < operations . InsertVersionMetadataResponse > ,
1497
1501
unknown
1498
- > ( url , {
1502
+ > ( url , reqBody , {
1499
1503
headers : headers ,
1500
1504
...config ,
1501
1505
} ) ;
@@ -1602,9 +1606,12 @@ export class SDK {
1602
1606
props . PathParams
1603
1607
) ;
1604
1608
1605
- let reqContentType = "application/json" ;
1609
+ let [ reqContentType , reqBody ] : [ string , unknown ] = [
1610
+ "application/json" ,
1611
+ props . Request ,
1612
+ ] ;
1606
1613
try {
1607
- reqContentType = utils . SerializeRequestBody ( props ) ;
1614
+ [ reqContentType , reqBody ] = SerializeRequestBody ( props ) ;
1608
1615
} catch ( e : unknown ) {
1609
1616
if ( e instanceof Error ) {
1610
1617
return new Error ( "Error serializing request body" , {
@@ -1628,7 +1635,7 @@ export class SDK {
1628
1635
operations . RegisterSchemaResponse ,
1629
1636
AxiosResponse < operations . RegisterSchemaResponse > ,
1630
1637
unknown
1631
- > ( url , {
1638
+ > ( url , reqBody , {
1632
1639
headers : headers ,
1633
1640
...config ,
1634
1641
} ) ;
@@ -1719,9 +1726,12 @@ export class SDK {
1719
1726
props . PathParams
1720
1727
) ;
1721
1728
1722
- let reqContentType = "application/json" ;
1729
+ let [ reqContentType , reqBody ] : [ string , unknown ] = [
1730
+ "application/json" ,
1731
+ props . Request ,
1732
+ ] ;
1723
1733
try {
1724
- reqContentType = utils . SerializeRequestBody ( props ) ;
1734
+ [ reqContentType , reqBody ] = SerializeRequestBody ( props ) ;
1725
1735
} catch ( e : unknown ) {
1726
1736
if ( e instanceof Error ) {
1727
1737
return new Error ( "Error serializing request body" , {
@@ -1745,7 +1755,7 @@ export class SDK {
1745
1755
operations . UpsertApiResponse ,
1746
1756
AxiosResponse < operations . UpsertApiResponse > ,
1747
1757
unknown
1748
- > ( url , {
1758
+ > ( url , reqBody , {
1749
1759
headers : headers ,
1750
1760
...config ,
1751
1761
} ) ;
@@ -1791,9 +1801,12 @@ export class SDK {
1791
1801
props . PathParams
1792
1802
) ;
1793
1803
1794
- let reqContentType = "application/json" ;
1804
+ let [ reqContentType , reqBody ] : [ string , unknown ] = [
1805
+ "application/json" ,
1806
+ props . Request ,
1807
+ ] ;
1795
1808
try {
1796
- reqContentType = utils . SerializeRequestBody ( props ) ;
1809
+ [ reqContentType , reqBody ] = SerializeRequestBody ( props ) ;
1797
1810
} catch ( e : unknown ) {
1798
1811
if ( e instanceof Error ) {
1799
1812
return new Error ( "Error serializing request body" , {
@@ -1818,7 +1831,7 @@ export class SDK {
1818
1831
operations . UpsertApiEndpointResponse ,
1819
1832
AxiosResponse < operations . UpsertApiEndpointResponse > ,
1820
1833
unknown
1821
- > ( url , {
1834
+ > ( url , reqBody , {
1822
1835
headers : headers ,
1823
1836
...config ,
1824
1837
} ) ;
0 commit comments