@@ -13,7 +13,7 @@ export declare namespace Assistants {
1313        environment ?: core . Supplier < environments . VapiEnvironment  |  string > ; 
1414        /** Specify a custom URL to connect the client to. */ 
1515        baseUrl ?: core . Supplier < string > ; 
16-         token ? : core . Supplier < core . BearerToken   |   undefined > ; 
16+         token : core . Supplier < core . BearerToken > ; 
1717        fetcher ?: core . FetchFunction ; 
1818    } 
1919
@@ -30,7 +30,7 @@ export declare namespace Assistants {
3030} 
3131
3232export  class  Assistants  { 
33-     constructor ( protected  readonly  _options : Assistants . Options   =   { } )  { } 
33+     constructor ( protected  readonly  _options : Assistants . Options )  { } 
3434
3535    /** 
3636     * @param  {Vapi.AssistantsListRequest } request 
@@ -110,8 +110,8 @@ export class Assistants {
110110                Authorization : await  this . _getAuthorizationHeader ( ) , 
111111                "X-Fern-Language" : "JavaScript" , 
112112                "X-Fern-SDK-Name" : "@vapi-ai/server-sdk" , 
113-                 "X-Fern-SDK-Version" : "0.8 .1" , 
114-                 "User-Agent" : "@vapi-ai/server-sdk/0.8 .1" , 
113+                 "X-Fern-SDK-Version" : "0.9 .1" , 
114+                 "User-Agent" : "@vapi-ai/server-sdk/0.9 .1" , 
115115                "X-Fern-Runtime" : core . RUNTIME . type , 
116116                "X-Fern-Runtime-Version" : core . RUNTIME . version , 
117117                ...requestOptions ?. headers , 
@@ -182,8 +182,8 @@ export class Assistants {
182182                Authorization : await  this . _getAuthorizationHeader ( ) , 
183183                "X-Fern-Language" : "JavaScript" , 
184184                "X-Fern-SDK-Name" : "@vapi-ai/server-sdk" , 
185-                 "X-Fern-SDK-Version" : "0.8 .1" , 
186-                 "User-Agent" : "@vapi-ai/server-sdk/0.8 .1" , 
185+                 "X-Fern-SDK-Version" : "0.9 .1" , 
186+                 "User-Agent" : "@vapi-ai/server-sdk/0.9 .1" , 
187187                "X-Fern-Runtime" : core . RUNTIME . type , 
188188                "X-Fern-Runtime-Version" : core . RUNTIME . version , 
189189                ...requestOptions ?. headers , 
@@ -251,8 +251,8 @@ export class Assistants {
251251                Authorization : await  this . _getAuthorizationHeader ( ) , 
252252                "X-Fern-Language" : "JavaScript" , 
253253                "X-Fern-SDK-Name" : "@vapi-ai/server-sdk" , 
254-                 "X-Fern-SDK-Version" : "0.8 .1" , 
255-                 "User-Agent" : "@vapi-ai/server-sdk/0.8 .1" , 
254+                 "X-Fern-SDK-Version" : "0.9 .1" , 
255+                 "User-Agent" : "@vapi-ai/server-sdk/0.9 .1" , 
256256                "X-Fern-Runtime" : core . RUNTIME . type , 
257257                "X-Fern-Runtime-Version" : core . RUNTIME . version , 
258258                ...requestOptions ?. headers , 
@@ -319,8 +319,8 @@ export class Assistants {
319319                Authorization : await  this . _getAuthorizationHeader ( ) , 
320320                "X-Fern-Language" : "JavaScript" , 
321321                "X-Fern-SDK-Name" : "@vapi-ai/server-sdk" , 
322-                 "X-Fern-SDK-Version" : "0.8 .1" , 
323-                 "User-Agent" : "@vapi-ai/server-sdk/0.8 .1" , 
322+                 "X-Fern-SDK-Version" : "0.9 .1" , 
323+                 "User-Agent" : "@vapi-ai/server-sdk/0.9 .1" , 
324324                "X-Fern-Runtime" : core . RUNTIME . type , 
325325                "X-Fern-Runtime-Version" : core . RUNTIME . version , 
326326                ...requestOptions ?. headers , 
@@ -393,8 +393,8 @@ export class Assistants {
393393                Authorization : await  this . _getAuthorizationHeader ( ) , 
394394                "X-Fern-Language" : "JavaScript" , 
395395                "X-Fern-SDK-Name" : "@vapi-ai/server-sdk" , 
396-                 "X-Fern-SDK-Version" : "0.8 .1" , 
397-                 "User-Agent" : "@vapi-ai/server-sdk/0.8 .1" , 
396+                 "X-Fern-SDK-Version" : "0.9 .1" , 
397+                 "User-Agent" : "@vapi-ai/server-sdk/0.9 .1" , 
398398                "X-Fern-Runtime" : core . RUNTIME . type , 
399399                "X-Fern-Runtime-Version" : core . RUNTIME . version , 
400400                ...requestOptions ?. headers , 
@@ -435,12 +435,7 @@ export class Assistants {
435435        } 
436436    } 
437437
438-     protected  async  _getAuthorizationHeader ( ) : Promise < string  |  undefined >  { 
439-         const  bearer  =  await  core . Supplier . get ( this . _options . token ) ; 
440-         if  ( bearer  !=  null )  { 
441-             return  `Bearer ${ bearer }  ; 
442-         } 
443- 
444-         return  undefined ; 
438+     protected  async  _getAuthorizationHeader ( ) : Promise < string >  { 
439+         return  `Bearer ${ await  core . Supplier . get ( this . _options . token ) }  ; 
445440    } 
446441} 
0 commit comments