@@ -111,18 +111,18 @@ export class Connections extends APIResource {
111
111
*
112
112
* @example
113
113
* ```ts
114
- * const response = await client.connections.import('notion');
114
+ * await client.connections.import('notion');
115
115
* ```
116
116
*/
117
117
import (
118
118
provider : 'notion' | 'google-drive' | 'onedrive' ,
119
119
body : ConnectionImportParams | null | undefined = { } ,
120
120
options ?: RequestOptions ,
121
- ) : APIPromise < string > {
121
+ ) : APIPromise < void > {
122
122
return this . _client . post ( path `/v3/connections/${ provider } /import` , {
123
123
body,
124
124
...options ,
125
- headers : buildHeaders ( [ { Accept : 'text/plain ' } , options ?. headers ] ) ,
125
+ headers : buildHeaders ( [ { Accept : '*/* ' } , options ?. headers ] ) ,
126
126
} ) ;
127
127
}
128
128
@@ -219,8 +219,6 @@ export interface ConnectionGetByTagsResponse {
219
219
metadata ?: { [ key : string ] : unknown } ;
220
220
}
221
221
222
- export type ConnectionImportResponse = string ;
223
-
224
222
export type ConnectionListDocumentsResponse =
225
223
Array < ConnectionListDocumentsResponse . ConnectionListDocumentsResponseItem > ;
226
224
@@ -295,7 +293,6 @@ export declare namespace Connections {
295
293
type ConnectionDeleteByProviderResponse as ConnectionDeleteByProviderResponse ,
296
294
type ConnectionGetByIDResponse as ConnectionGetByIDResponse ,
297
295
type ConnectionGetByTagsResponse as ConnectionGetByTagsResponse ,
298
- type ConnectionImportResponse as ConnectionImportResponse ,
299
296
type ConnectionListDocumentsResponse as ConnectionListDocumentsResponse ,
300
297
type ConnectionCreateParams as ConnectionCreateParams ,
301
298
type ConnectionListParams as ConnectionListParams ,
0 commit comments