@@ -13,6 +13,8 @@ export declare namespace AiGeneratedPhotoFromEmailProfileLookup {
13
13
interface Options {
14
14
environment ?: core . Supplier < environments . GooeyEnvironment | string > ;
15
15
apiKey ?: core . Supplier < core . BearerToken | undefined > ;
16
+ /** Override the Authorization header */
17
+ authorization ?: core . Supplier < string | undefined > ;
16
18
fetcher ?: core . FetchFunction ;
17
19
}
18
20
@@ -23,6 +25,8 @@ export declare namespace AiGeneratedPhotoFromEmailProfileLookup {
23
25
maxRetries ?: number ;
24
26
/** A hook to abort the request. */
25
27
abortSignal ?: AbortSignal ;
28
+ /** Override the Authorization header */
29
+ authorization ?: string | undefined ;
26
30
}
27
31
}
28
32
@@ -58,9 +62,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
58
62
Authorization : await this . _getAuthorizationHeader ( ) ,
59
63
"X-Fern-Language" : "JavaScript" ,
60
64
"X-Fern-SDK-Name" : "gooey" ,
61
- "X-Fern-SDK-Version" : "0.0.1 " ,
65
+ "X-Fern-SDK-Version" : "0.0.2 " ,
62
66
"X-Fern-Runtime" : core . RUNTIME . type ,
63
67
"X-Fern-Runtime-Version" : core . RUNTIME . version ,
68
+ ...( await this . _getCustomAuthorizationHeaders ( ) ) ,
64
69
} ,
65
70
contentType : "application/json" ,
66
71
requestType : "json" ,
@@ -164,9 +169,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
164
169
Authorization : await this . _getAuthorizationHeader ( ) ,
165
170
"X-Fern-Language" : "JavaScript" ,
166
171
"X-Fern-SDK-Name" : "gooey" ,
167
- "X-Fern-SDK-Version" : "0.0.1 " ,
172
+ "X-Fern-SDK-Version" : "0.0.2 " ,
168
173
"X-Fern-Runtime" : core . RUNTIME . type ,
169
174
"X-Fern-Runtime-Version" : core . RUNTIME . version ,
175
+ ...( await this . _getCustomAuthorizationHeaders ( ) ) ,
170
176
} ,
171
177
contentType : "application/json" ,
172
178
requestType : "json" ,
@@ -262,9 +268,10 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
262
268
Authorization : await this . _getAuthorizationHeader ( ) ,
263
269
"X-Fern-Language" : "JavaScript" ,
264
270
"X-Fern-SDK-Name" : "gooey" ,
265
- "X-Fern-SDK-Version" : "0.0.1 " ,
271
+ "X-Fern-SDK-Version" : "0.0.2 " ,
266
272
"X-Fern-Runtime" : core . RUNTIME . type ,
267
273
"X-Fern-Runtime-Version" : core . RUNTIME . version ,
274
+ ...( await this . _getCustomAuthorizationHeaders ( ) ) ,
268
275
} ,
269
276
contentType : "application/json" ,
270
277
queryParameters : _queryParams ,
@@ -340,4 +347,9 @@ export class AiGeneratedPhotoFromEmailProfileLookup {
340
347
341
348
return `Bearer ${ bearer } ` ;
342
349
}
350
+
351
+ protected async _getCustomAuthorizationHeaders ( ) {
352
+ const authorizationValue = await core . Supplier . get ( this . _options . authorization ) ;
353
+ return { Authorization : authorizationValue } ;
354
+ }
343
355
}
0 commit comments