@@ -37,10 +37,13 @@ export class ApiEndpoints {
3737
3838 const client : AxiosInstance = this . _securityClient ! ;
3939
40+ const headers = { ...config ?. headers } ;
41+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
4042
4143 const r = client . request ( {
4244 url : url ,
4345 method : "delete" ,
46+ headers : headers ,
4447 ...config ,
4548 } ) ;
4649
@@ -83,10 +86,13 @@ export class ApiEndpoints {
8386
8487 const client : AxiosInstance = this . _securityClient ! ;
8588
89+ const headers = { ...config ?. headers } ;
90+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
8691
8792 const r = client . request ( {
8893 url : url ,
8994 method : "get" ,
95+ headers : headers ,
9096 ...config ,
9197 } ) ;
9298
@@ -132,10 +138,13 @@ export class ApiEndpoints {
132138
133139 const client : AxiosInstance = this . _securityClient ! ;
134140
141+ const headers = { ...config ?. headers } ;
142+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
135143
136144 const r = client . request ( {
137145 url : url ,
138146 method : "get" ,
147+ headers : headers ,
139148 ...config ,
140149 } ) ;
141150
@@ -180,10 +189,13 @@ export class ApiEndpoints {
180189
181190 const client : AxiosInstance = this . _securityClient ! ;
182191
192+ const headers = { ...config ?. headers } ;
193+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
183194
184195 const r = client . request ( {
185196 url : url ,
186197 method : "get" ,
198+ headers : headers ,
187199 ...config ,
188200 } ) ;
189201
@@ -229,10 +241,13 @@ export class ApiEndpoints {
229241
230242 const client : AxiosInstance = this . _securityClient ! ;
231243
244+ const headers = { ...config ?. headers } ;
245+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
232246
233247 const r = client . request ( {
234248 url : url ,
235249 method : "get" ,
250+ headers : headers ,
236251 ...config ,
237252 } ) ;
238253
@@ -275,10 +290,13 @@ export class ApiEndpoints {
275290
276291 const client : AxiosInstance = this . _securityClient ! ;
277292
293+ const headers = { ...config ?. headers } ;
294+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
278295
279296 const r = client . request ( {
280297 url : url ,
281298 method : "get" ,
299+ headers : headers ,
282300 ...config ,
283301 } ) ;
284302
@@ -321,10 +339,13 @@ export class ApiEndpoints {
321339
322340 const client : AxiosInstance = this . _securityClient ! ;
323341
342+ const headers = { ...config ?. headers } ;
343+ headers [ "user-agent" ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
324344
325345 const r = client . request ( {
326346 url : url ,
327347 method : "get" ,
348+ headers : headers ,
328349 ...config ,
329350 } ) ;
330351
@@ -381,6 +402,7 @@ export class ApiEndpoints {
381402
382403 const headers = { ...reqBodyHeaders , ...config ?. headers } ;
383404 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 } ` ;
384406
385407 const r = client . request ( {
386408 url : url ,
0 commit comments