@@ -7,7 +7,7 @@ import * as errors from "./models/errors";
77import * as operations from "./models/operations" ;
88import * as shared from "./models/shared" ;
99import { SDKConfiguration } from "./sdk" ;
10- import { AxiosInstance , AxiosRequestConfig , AxiosResponse } from "axios" ;
10+ import { AxiosInstance , AxiosRequestConfig , AxiosResponse , RawAxiosRequestHeaders } from "axios" ;
1111
1212/**
1313 * REST APIs for managing ApiEndpoint entities
@@ -56,7 +56,7 @@ export class ApiEndpoints {
5656 globalSecurity = new shared . Security ( globalSecurity ) ;
5757 }
5858 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
59- const headers = { ...config ?. headers , ...properties . headers } ;
59+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
6060 headers [ "Accept" ] = "application/json" ;
6161
6262 headers [
@@ -137,7 +137,7 @@ export class ApiEndpoints {
137137 globalSecurity = new shared . Security ( globalSecurity ) ;
138138 }
139139 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
140- const headers = { ...config ?. headers , ...properties . headers } ;
140+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
141141 headers [ "Accept" ] = "application/json" ;
142142
143143 headers [
@@ -231,7 +231,7 @@ export class ApiEndpoints {
231231 globalSecurity = new shared . Security ( globalSecurity ) ;
232232 }
233233 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
234- const headers = { ...config ?. headers , ...properties . headers } ;
234+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
235235 headers [ "Accept" ] = "application/json" ;
236236
237237 headers [
@@ -326,7 +326,7 @@ export class ApiEndpoints {
326326 globalSecurity = new shared . Security ( globalSecurity ) ;
327327 }
328328 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
329- const headers = { ...config ?. headers , ...properties . headers } ;
329+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
330330 if ( acceptHeaderOverride !== undefined ) {
331331 headers [ "Accept" ] = acceptHeaderOverride . toString ( ) ;
332332 } else {
@@ -414,7 +414,7 @@ export class ApiEndpoints {
414414 globalSecurity = new shared . Security ( globalSecurity ) ;
415415 }
416416 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
417- const headers = { ...config ?. headers , ...properties . headers } ;
417+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
418418 headers [ "Accept" ] = "application/json" ;
419419
420420 headers [
@@ -508,7 +508,7 @@ export class ApiEndpoints {
508508 globalSecurity = new shared . Security ( globalSecurity ) ;
509509 }
510510 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
511- const headers = { ...config ?. headers , ...properties . headers } ;
511+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
512512 headers [ "Accept" ] = "application/json" ;
513513
514514 headers [
@@ -602,7 +602,7 @@ export class ApiEndpoints {
602602 globalSecurity = new shared . Security ( globalSecurity ) ;
603603 }
604604 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
605- const headers = { ...config ?. headers , ...properties . headers } ;
605+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
606606 headers [ "Accept" ] = "application/json" ;
607607
608608 headers [
@@ -705,7 +705,11 @@ export class ApiEndpoints {
705705 globalSecurity = new shared . Security ( globalSecurity ) ;
706706 }
707707 const properties = utils . parseSecurityProperties ( globalSecurity ) ;
708- const headers = { ...reqBodyHeaders , ...config ?. headers , ...properties . headers } ;
708+ const headers : RawAxiosRequestHeaders = {
709+ ...reqBodyHeaders ,
710+ ...config ?. headers ,
711+ ...properties . headers ,
712+ } ;
709713 if ( reqBody == null ) throw new Error ( "request body is required" ) ;
710714 headers [ "Accept" ] = "application/json" ;
711715
0 commit comments