Skip to content

Commit b1070e3

Browse files
feat(api): api update
1 parent aa80f8d commit b1070e3

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-b95fdde5f2544bce843df7bb502b9205217caaf71a28ed7f784a3d481d13d874.yml
3-
openapi_spec_hash: 39d70b150e54ccd103e6063506521ace
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-bc38a818a02d2611e24859c4fd59ce98a24499af22ac9d16fc93a3d1e0b3c94f.yml
3+
openapi_spec_hash: e25323c2c0f792f2fafc664748774e46
44
config_hash: 9b9291a6c872b063900a46386729ba3c

api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Types:
5353
- <code><a href="./src/resources/connections.ts">ConnectionDeleteByProviderResponse</a></code>
5454
- <code><a href="./src/resources/connections.ts">ConnectionGetByIDResponse</a></code>
5555
- <code><a href="./src/resources/connections.ts">ConnectionGetByTagsResponse</a></code>
56-
- <code><a href="./src/resources/connections.ts">ConnectionImportResponse</a></code>
5756
- <code><a href="./src/resources/connections.ts">ConnectionListDocumentsResponse</a></code>
5857

5958
Methods:
@@ -64,5 +63,5 @@ Methods:
6463
- <code title="delete /v3/connections/{provider}">client.connections.<a href="./src/resources/connections.ts">deleteByProvider</a>(provider, { ...params }) -> ConnectionDeleteByProviderResponse</code>
6564
- <code title="get /v3/connections/{connectionId}">client.connections.<a href="./src/resources/connections.ts">getByID</a>(connectionID) -> ConnectionGetByIDResponse</code>
6665
- <code title="post /v3/connections/{provider}/connection">client.connections.<a href="./src/resources/connections.ts">getByTags</a>(provider, { ...params }) -> ConnectionGetByTagsResponse</code>
67-
- <code title="post /v3/connections/{provider}/import">client.connections.<a href="./src/resources/connections.ts">import</a>(provider, { ...params }) -> string</code>
66+
- <code title="post /v3/connections/{provider}/import">client.connections.<a href="./src/resources/connections.ts">import</a>(provider, { ...params }) -> void</code>
6867
- <code title="post /v3/connections/{provider}/documents">client.connections.<a href="./src/resources/connections.ts">listDocuments</a>(provider, { ...params }) -> ConnectionListDocumentsResponse</code>

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
ConnectionGetByTagsParams,
2727
ConnectionGetByTagsResponse,
2828
ConnectionImportParams,
29-
ConnectionImportResponse,
3029
ConnectionListDocumentsParams,
3130
ConnectionListDocumentsResponse,
3231
ConnectionListParams,
@@ -809,7 +808,6 @@ export declare namespace Supermemory {
809808
type ConnectionDeleteByProviderResponse as ConnectionDeleteByProviderResponse,
810809
type ConnectionGetByIDResponse as ConnectionGetByIDResponse,
811810
type ConnectionGetByTagsResponse as ConnectionGetByTagsResponse,
812-
type ConnectionImportResponse as ConnectionImportResponse,
813811
type ConnectionListDocumentsResponse as ConnectionListDocumentsResponse,
814812
type ConnectionCreateParams as ConnectionCreateParams,
815813
type ConnectionListParams as ConnectionListParams,

src/resources/connections.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,18 @@ export class Connections extends APIResource {
111111
*
112112
* @example
113113
* ```ts
114-
* const response = await client.connections.import('notion');
114+
* await client.connections.import('notion');
115115
* ```
116116
*/
117117
import(
118118
provider: 'notion' | 'google-drive' | 'onedrive',
119119
body: ConnectionImportParams | null | undefined = {},
120120
options?: RequestOptions,
121-
): APIPromise<string> {
121+
): APIPromise<void> {
122122
return this._client.post(path`/v3/connections/${provider}/import`, {
123123
body,
124124
...options,
125-
headers: buildHeaders([{ Accept: 'text/plain' }, options?.headers]),
125+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
126126
});
127127
}
128128

@@ -219,8 +219,6 @@ export interface ConnectionGetByTagsResponse {
219219
metadata?: { [key: string]: unknown };
220220
}
221221

222-
export type ConnectionImportResponse = string;
223-
224222
export type ConnectionListDocumentsResponse =
225223
Array<ConnectionListDocumentsResponse.ConnectionListDocumentsResponseItem>;
226224

@@ -295,7 +293,6 @@ export declare namespace Connections {
295293
type ConnectionDeleteByProviderResponse as ConnectionDeleteByProviderResponse,
296294
type ConnectionGetByIDResponse as ConnectionGetByIDResponse,
297295
type ConnectionGetByTagsResponse as ConnectionGetByTagsResponse,
298-
type ConnectionImportResponse as ConnectionImportResponse,
299296
type ConnectionListDocumentsResponse as ConnectionListDocumentsResponse,
300297
type ConnectionCreateParams as ConnectionCreateParams,
301298
type ConnectionListParams as ConnectionListParams,

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export {
88
type ConnectionDeleteByProviderResponse,
99
type ConnectionGetByIDResponse,
1010
type ConnectionGetByTagsResponse,
11-
type ConnectionImportResponse,
1211
type ConnectionListDocumentsResponse,
1312
type ConnectionCreateParams,
1413
type ConnectionListParams,

0 commit comments

Comments
 (0)