@@ -37,10 +37,13 @@ export class ApiEndpoints {
37
37
38
38
const client : AxiosInstance = this . _securityClient ! ;
39
39
40
+ const headers = { ...config ?. headers } ;
41
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
40
42
41
43
const r = client . request ( {
42
44
url : url ,
43
45
method : "delete" ,
46
+ headers : headers ,
44
47
...config ,
45
48
} ) ;
46
49
@@ -83,10 +86,13 @@ export class ApiEndpoints {
83
86
84
87
const client : AxiosInstance = this . _securityClient ! ;
85
88
89
+ const headers = { ...config ?. headers } ;
90
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
86
91
87
92
const r = client . request ( {
88
93
url : url ,
89
94
method : "get" ,
95
+ headers : headers ,
90
96
...config ,
91
97
} ) ;
92
98
@@ -132,10 +138,13 @@ export class ApiEndpoints {
132
138
133
139
const client : AxiosInstance = this . _securityClient ! ;
134
140
141
+ const headers = { ...config ?. headers } ;
142
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
135
143
136
144
const r = client . request ( {
137
145
url : url ,
138
146
method : "get" ,
147
+ headers : headers ,
139
148
...config ,
140
149
} ) ;
141
150
@@ -180,10 +189,13 @@ export class ApiEndpoints {
180
189
181
190
const client : AxiosInstance = this . _securityClient ! ;
182
191
192
+ const headers = { ...config ?. headers } ;
193
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
183
194
184
195
const r = client . request ( {
185
196
url : url ,
186
197
method : "get" ,
198
+ headers : headers ,
187
199
...config ,
188
200
} ) ;
189
201
@@ -229,10 +241,13 @@ export class ApiEndpoints {
229
241
230
242
const client : AxiosInstance = this . _securityClient ! ;
231
243
244
+ const headers = { ...config ?. headers } ;
245
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
232
246
233
247
const r = client . request ( {
234
248
url : url ,
235
249
method : "get" ,
250
+ headers : headers ,
236
251
...config ,
237
252
} ) ;
238
253
@@ -275,10 +290,13 @@ export class ApiEndpoints {
275
290
276
291
const client : AxiosInstance = this . _securityClient ! ;
277
292
293
+ const headers = { ...config ?. headers } ;
294
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
278
295
279
296
const r = client . request ( {
280
297
url : url ,
281
298
method : "get" ,
299
+ headers : headers ,
282
300
...config ,
283
301
} ) ;
284
302
@@ -321,10 +339,13 @@ export class ApiEndpoints {
321
339
322
340
const client : AxiosInstance = this . _securityClient ! ;
323
341
342
+ const headers = { ...config ?. headers } ;
343
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
324
344
325
345
const r = client . request ( {
326
346
url : url ,
327
347
method : "get" ,
348
+ headers : headers ,
328
349
...config ,
329
350
} ) ;
330
351
@@ -381,6 +402,7 @@ export class ApiEndpoints {
381
402
382
403
const headers = { ...reqBodyHeaders , ...config ?. headers } ;
383
404
if ( reqBody == null || Object . keys ( reqBody ) . length === 0 ) throw new Error ( "request body is required" ) ;
405
+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
384
406
385
407
const r = client . request ( {
386
408
url : url ,
0 commit comments