File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ export interface ClientOptions {
45
45
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
46
46
* much longer than this timeout before the promise succeeds or fails.
47
47
*/
48
- timeout ?: number ;
48
+ timeout ?: number | undefined ;
49
49
50
50
/**
51
51
* An HTTP agent used to manage HTTP(S) connections.
52
52
*
53
53
* If not provided, an agent will be constructed by default in the Node.js environment,
54
54
* otherwise no agent is used.
55
55
*/
56
- httpAgent ?: Agent ;
56
+ httpAgent ?: Agent | undefined ;
57
57
58
58
/**
59
59
* Specify a custom `fetch` function implementation.
@@ -69,23 +69,23 @@ export interface ClientOptions {
69
69
*
70
70
* @default 2
71
71
*/
72
- maxRetries ?: number ;
72
+ maxRetries ?: number | undefined ;
73
73
74
74
/**
75
75
* Default headers to include with every request to the API.
76
76
*
77
77
* These can be removed in individual requests by explicitly setting the
78
78
* header to `undefined` or `null` in request options.
79
79
*/
80
- defaultHeaders ?: Core . Headers ;
80
+ defaultHeaders ?: Core . Headers | undefined ;
81
81
82
82
/**
83
83
* Default query parameters to include with every request to the API.
84
84
*
85
85
* These can be removed in individual requests by explicitly setting the
86
86
* param to `undefined` in request options.
87
87
*/
88
- defaultQuery ?: Core . DefaultQuery ;
88
+ defaultQuery ?: Core . DefaultQuery | undefined ;
89
89
}
90
90
91
91
/**
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ export class Downloads extends APIResource {
9
9
* Session Downloads
10
10
*/
11
11
list ( id : string , options ?: Core . RequestOptions ) : Core . APIPromise < Response > {
12
- return this . _client . get ( `/v1/sessions/${ id } /downloads` , { ...options , __binaryResponse : true } ) ;
12
+ return this . _client . get ( `/v1/sessions/${ id } /downloads` , {
13
+ ...options ,
14
+ headers : { Accept : 'application/zip' , ...options ?. headers } ,
15
+ __binaryResponse : true ,
16
+ } ) ;
13
17
}
14
18
}
You can’t perform that action at this time.
0 commit comments