@@ -10,7 +10,7 @@ import { SerializeRequestBody } from "../internal/utils/requestbody";
10
10
import FormData from 'form-data' ;
11
11
12
12
const Servers = [
13
- "https://api.prod.speakeasyapi.dev" ,
13
+ "https://api.prod.speakeasyapi.dev" ,
14
14
] as const ;
15
15
16
16
export function WithServerURL ( serverURL : string , params ?: Map < string , string > ) : Function {
@@ -57,8 +57,8 @@ export class SDK {
57
57
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}" , req . PathParams ) ;
58
58
59
59
const client : AxiosInstance = this . securityClient ! ;
60
- return client .
61
- delete ( url , {
60
+ return client
61
+ . delete ( url , {
62
62
...config ,
63
63
} )
64
64
. then ( ( httpRes : AxiosResponse ) => {
@@ -91,8 +91,8 @@ export class SDK {
91
91
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}" , req . PathParams ) ;
92
92
93
93
const client : AxiosInstance = this . securityClient ! ;
94
- return client .
95
- delete ( url , {
94
+ return client
95
+ . delete ( url , {
96
96
...config ,
97
97
} )
98
98
. then ( ( httpRes : AxiosResponse ) => {
@@ -125,8 +125,8 @@ export class SDK {
125
125
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}" , req . PathParams ) ;
126
126
127
127
const client : AxiosInstance = this . securityClient ! ;
128
- return client .
129
- delete ( url , {
128
+ return client
129
+ . delete ( url , {
130
130
...config ,
131
131
} )
132
132
. then ( ( httpRes : AxiosResponse ) => {
@@ -159,8 +159,8 @@ export class SDK {
159
159
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}" , req . PathParams ) ;
160
160
161
161
const client : AxiosInstance = this . securityClient ! ;
162
- return client .
163
- delete ( url , {
162
+ return client
163
+ . delete ( url , {
164
164
...config ,
165
165
} )
166
166
. then ( ( httpRes : AxiosResponse ) => {
@@ -193,8 +193,8 @@ export class SDK {
193
193
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/schema/download" , req . PathParams ) ;
194
194
195
195
const client : AxiosInstance = this . securityClient ! ;
196
- return client .
197
- get ( url , {
196
+ return client
197
+ . get ( url , {
198
198
...config ,
199
199
} )
200
200
. then ( ( httpRes : AxiosResponse ) => {
@@ -229,8 +229,8 @@ export class SDK {
229
229
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download" , req . PathParams ) ;
230
230
231
231
const client : AxiosInstance = this . securityClient ! ;
232
- return client .
233
- get ( url , {
232
+ return client
233
+ . get ( url , {
234
234
...config ,
235
235
} )
236
236
. then ( ( httpRes : AxiosResponse ) => {
@@ -265,8 +265,8 @@ export class SDK {
265
265
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}" , req . PathParams ) ;
266
266
267
267
const client : AxiosInstance = this . securityClient ! ;
268
- return client .
269
- get ( url , {
268
+ return client
269
+ . get ( url , {
270
270
...config ,
271
271
} )
272
272
. then ( ( httpRes : AxiosResponse ) => {
@@ -300,8 +300,8 @@ export class SDK {
300
300
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/generate/openapi" , req . PathParams ) ;
301
301
302
302
const client : AxiosInstance = this . securityClient ! ;
303
- return client .
304
- get ( url , {
303
+ return client
304
+ . get ( url , {
305
305
...config ,
306
306
} )
307
307
. then ( ( httpRes : AxiosResponse ) => {
@@ -335,8 +335,8 @@ export class SDK {
335
335
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi" , req . PathParams ) ;
336
336
337
337
const client : AxiosInstance = this . securityClient ! ;
338
- return client .
339
- get ( url , {
338
+ return client
339
+ . get ( url , {
340
340
...config ,
341
341
} )
342
342
. then ( ( httpRes : AxiosResponse ) => {
@@ -370,8 +370,8 @@ export class SDK {
370
370
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/generate/postman" , req . PathParams ) ;
371
371
372
372
const client : AxiosInstance = this . securityClient ! ;
373
- return client .
374
- get ( url , {
373
+ return client
374
+ . get ( url , {
375
375
...config ,
376
376
} )
377
377
. then ( ( httpRes : AxiosResponse ) => {
@@ -405,8 +405,8 @@ export class SDK {
405
405
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman" , req . PathParams ) ;
406
406
407
407
const client : AxiosInstance = this . securityClient ! ;
408
- return client .
409
- get ( url , {
408
+ return client
409
+ . get ( url , {
410
410
...config ,
411
411
} )
412
412
. then ( ( httpRes : AxiosResponse ) => {
@@ -440,8 +440,8 @@ export class SDK {
440
440
const url : string = utils . GenerateURL ( baseURL , "/v1/eventlog/{requestID}/generate/postman" , req . PathParams ) ;
441
441
442
442
const client : AxiosInstance = this . securityClient ! ;
443
- return client .
444
- get ( url , {
443
+ return client
444
+ . get ( url , {
445
445
...config ,
446
446
} )
447
447
. then ( ( httpRes : AxiosResponse ) => {
@@ -475,8 +475,8 @@ export class SDK {
475
475
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/api_endpoints" , req . PathParams ) ;
476
476
477
477
const client : AxiosInstance = this . securityClient ! ;
478
- return client .
479
- get ( url , {
478
+ return client
479
+ . get ( url , {
480
480
...config ,
481
481
} )
482
482
. then ( ( httpRes : AxiosResponse ) => {
@@ -518,8 +518,8 @@ export class SDK {
518
518
paramsSerializer : qpSerializer ,
519
519
} ;
520
520
521
- return client .
522
- get ( url , {
521
+ return client
522
+ . get ( url , {
523
523
...requestConfig ,
524
524
} )
525
525
. then ( ( httpRes : AxiosResponse ) => {
@@ -553,8 +553,8 @@ export class SDK {
553
553
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/api_endpoints" , req . PathParams ) ;
554
554
555
555
const client : AxiosInstance = this . securityClient ! ;
556
- return client .
557
- get ( url , {
556
+ return client
557
+ . get ( url , {
558
558
...config ,
559
559
} )
560
560
. then ( ( httpRes : AxiosResponse ) => {
@@ -588,8 +588,8 @@ export class SDK {
588
588
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}" , req . PathParams ) ;
589
589
590
590
const client : AxiosInstance = this . securityClient ! ;
591
- return client .
592
- get ( url , {
591
+ return client
592
+ . get ( url , {
593
593
...config ,
594
594
} )
595
595
. then ( ( httpRes : AxiosResponse ) => {
@@ -631,8 +631,8 @@ export class SDK {
631
631
paramsSerializer : qpSerializer ,
632
632
} ;
633
633
634
- return client .
635
- get ( url , {
634
+ return client
635
+ . get ( url , {
636
636
...requestConfig ,
637
637
} )
638
638
. then ( ( httpRes : AxiosResponse ) => {
@@ -674,8 +674,8 @@ export class SDK {
674
674
paramsSerializer : qpSerializer ,
675
675
} ;
676
676
677
- return client .
678
- get ( url , {
677
+ return client
678
+ . get ( url , {
679
679
...requestConfig ,
680
680
} )
681
681
. then ( ( httpRes : AxiosResponse ) => {
@@ -709,8 +709,8 @@ export class SDK {
709
709
const url : string = utils . GenerateURL ( baseURL , "/v1/eventlog/{requestID}" , req . PathParams ) ;
710
710
711
711
const client : AxiosInstance = this . securityClient ! ;
712
- return client .
713
- get ( url , {
712
+ return client
713
+ . get ( url , {
714
714
...config ,
715
715
} )
716
716
. then ( ( httpRes : AxiosResponse ) => {
@@ -744,8 +744,8 @@ export class SDK {
744
744
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/schema" , req . PathParams ) ;
745
745
746
746
const client : AxiosInstance = this . securityClient ! ;
747
- return client .
748
- get ( url , {
747
+ return client
748
+ . get ( url , {
749
749
...config ,
750
750
} )
751
751
. then ( ( httpRes : AxiosResponse ) => {
@@ -779,8 +779,8 @@ export class SDK {
779
779
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}" , req . PathParams ) ;
780
780
781
781
const client : AxiosInstance = this . securityClient ! ;
782
- return client .
783
- get ( url , {
782
+ return client
783
+ . get ( url , {
784
784
...config ,
785
785
} )
786
786
. then ( ( httpRes : AxiosResponse ) => {
@@ -814,8 +814,8 @@ export class SDK {
814
814
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}" , req . PathParams ) ;
815
815
816
816
const client : AxiosInstance = this . securityClient ! ;
817
- return client .
818
- get ( url , {
817
+ return client
818
+ . get ( url , {
819
819
...config ,
820
820
} )
821
821
. then ( ( httpRes : AxiosResponse ) => {
@@ -849,8 +849,8 @@ export class SDK {
849
849
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/schemas" , req . PathParams ) ;
850
850
851
851
const client : AxiosInstance = this . securityClient ! ;
852
- return client .
853
- get ( url , {
852
+ return client
853
+ . get ( url , {
854
854
...config ,
855
855
} )
856
856
. then ( ( httpRes : AxiosResponse ) => {
@@ -880,8 +880,8 @@ export class SDK {
880
880
const url : string = baseURL . replace ( / \/ $ / , "" ) + "/v1/workspace/embed-access-tokens/valid" ;
881
881
882
882
const client : AxiosInstance = this . securityClient ! ;
883
- return client .
884
- get ( url , {
883
+ return client
884
+ . get ( url , {
885
885
...config ,
886
886
} )
887
887
. then ( ( httpRes : AxiosResponse ) => {
@@ -915,8 +915,8 @@ export class SDK {
915
915
const url : string = utils . GenerateURL ( baseURL , "/v1/apis/{apiID}/version/{versionID}/metadata" , req . PathParams ) ;
916
916
917
917
const client : AxiosInstance = this . securityClient ! ;
918
- return client .
919
- get ( url , {
918
+ return client
919
+ . get ( url , {
920
920
...config ,
921
921
} )
922
922
. then ( ( httpRes : AxiosResponse ) => {
@@ -968,8 +968,8 @@ export class SDK {
968
968
969
969
if ( body == null || Object . keys ( body ) . length === 0 ) throw new Error ( "request body is required" ) ;
970
970
971
- return client .
972
- post ( url , body , {
971
+ return client
972
+ . post ( url , body , {
973
973
headers : headers ,
974
974
...config ,
975
975
} )
@@ -1012,8 +1012,8 @@ export class SDK {
1012
1012
paramsSerializer : qpSerializer ,
1013
1013
} ;
1014
1014
1015
- return client .
1016
- get ( url , {
1015
+ return client
1016
+ . get ( url , {
1017
1017
...requestConfig ,
1018
1018
} )
1019
1019
. then ( ( httpRes : AxiosResponse ) => {
@@ -1065,8 +1065,8 @@ export class SDK {
1065
1065
1066
1066
if ( body == null || Object . keys ( body ) . length === 0 ) throw new Error ( "request body is required" ) ;
1067
1067
1068
- return client .
1069
- post ( url , body , {
1068
+ return client
1069
+ . post ( url , body , {
1070
1070
headers : headers ,
1071
1071
...config ,
1072
1072
} )
@@ -1100,8 +1100,8 @@ export class SDK {
1100
1100
const url : string = utils . GenerateURL ( baseURL , "/v1/workspace/embed-access-tokens/{tokenID}" , req . PathParams ) ;
1101
1101
1102
1102
const client : AxiosInstance = this . securityClient ! ;
1103
- return client .
1104
- delete ( url , {
1103
+ return client
1104
+ . delete ( url , {
1105
1105
...config ,
1106
1106
} )
1107
1107
. then ( ( httpRes : AxiosResponse ) => {
@@ -1152,8 +1152,8 @@ export class SDK {
1152
1152
1153
1153
if ( body == null || Object . keys ( body ) . length === 0 ) throw new Error ( "request body is required" ) ;
1154
1154
1155
- return client .
1156
- put ( url , body , {
1155
+ return client
1156
+ . put ( url , body , {
1157
1157
headers : headers ,
1158
1158
...config ,
1159
1159
} )
@@ -1206,8 +1206,8 @@ export class SDK {
1206
1206
1207
1207
if ( body == null || Object . keys ( body ) . length === 0 ) throw new Error ( "request body is required" ) ;
1208
1208
1209
- return client .
1210
- put ( url , body , {
1209
+ return client
1210
+ . put ( url , body , {
1211
1211
headers : headers ,
1212
1212
...config ,
1213
1213
} )
0 commit comments