Skip to content

Commit 451a766

Browse files
Merge pull request #15 from supermemoryai/release-please--branches--main--changes--next--components--supermemory
2 parents cc47294 + 65de872 commit 451a766

File tree

12 files changed

+100
-16
lines changed

12 files changed

+100
-16
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.0.0-alpha.12"
2+
".": "3.0.0-alpha.13"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-c57750052aa770c1f554e81b2fcdaf9e4c4d2524a0cec568edbee560fde44dde.yml
3-
openapi_spec_hash: 3adaefca8d4d5c84ee4106e8ba10cabb
4-
config_hash: 72804029f5884d31b833a1723e632b92
1+
configured_endpoints: 14
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-b4d7b52f83f90e73f5a8dc93586b0e44987e34240a2893491fded1d8b1620b3f.yml
3+
openapi_spec_hash: 2b02dc5e58ba20bbee0770c81bf92917
4+
config_hash: 842f4dfa52940c5e281980be07b35a1f

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 3.0.0-alpha.13 (2025-06-03)
4+
5+
Full Changelog: [v3.0.0-alpha.12...v3.0.0-alpha.13](https://github.com/supermemoryai/sdk-ts/compare/v3.0.0-alpha.12...v3.0.0-alpha.13)
6+
7+
### Features
8+
9+
* **api:** add delete connection ([474f207](https://github.com/supermemoryai/sdk-ts/commit/474f2071bf3d36faf731c3737ba5298b63a532c4))
10+
* **api:** api update ([be72dd8](https://github.com/supermemoryai/sdk-ts/commit/be72dd8045135b989f7faef4569cda1a23fdfb79))
11+
* **api:** api update ([d1d50f5](https://github.com/supermemoryai/sdk-ts/commit/d1d50f53abca93c20a1dbbcd8b67750504315a97))
12+
13+
14+
### Chores
15+
16+
* adjust eslint.config.mjs ignore pattern ([09c32f9](https://github.com/supermemoryai/sdk-ts/commit/09c32f973441cf06127cd673ec3f9b112ded9fc4))
17+
318
## 3.0.0-alpha.12 (2025-06-02)
419

520
Full Changelog: [v3.0.0-alpha.11...v3.0.0-alpha.12](https://github.com/supermemoryai/sdk-ts/compare/v3.0.0-alpha.11...v3.0.0-alpha.12)

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ Types:
4545

4646
- <code><a href="./src/resources/connections.ts">ConnectionCreateResponse</a></code>
4747
- <code><a href="./src/resources/connections.ts">ConnectionListResponse</a></code>
48+
- <code><a href="./src/resources/connections.ts">ConnectionDeleteResponse</a></code>
4849
- <code><a href="./src/resources/connections.ts">ConnectionGetResponse</a></code>
4950
- <code><a href="./src/resources/connections.ts">ConnectionListDocumentsResponse</a></code>
5051

5152
Methods:
5253

5354
- <code title="post /v3/connections/{provider}">client.connections.<a href="./src/resources/connections.ts">create</a>(provider, { ...params }) -> ConnectionCreateResponse</code>
5455
- <code title="post /v3/connections/list">client.connections.<a href="./src/resources/connections.ts">list</a>({ ...params }) -> ConnectionListResponse</code>
56+
- <code title="delete /v3/connections/{provider}">client.connections.<a href="./src/resources/connections.ts">delete</a>(provider, { ...params }) -> ConnectionDeleteResponse</code>
5557
- <code title="get /v3/connections/{connectionId}">client.connections.<a href="./src/resources/connections.ts">get</a>(connectionID) -> ConnectionGetResponse</code>
5658
- <code title="post /v3/connections/{provider}/documents">client.connections.<a href="./src/resources/connections.ts">listDocuments</a>(provider, { ...params }) -> ConnectionListDocumentsResponse</code>

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default tseslint.config(
1010
parserOptions: { sourceType: 'module' },
1111
},
1212
files: ['**/*.ts', '**/*.mts', '**/*.cts', '**/*.js', '**/*.mjs', '**/*.cjs'],
13-
ignores: ['dist/**'],
13+
ignores: ['dist/'],
1414
plugins: {
1515
'@typescript-eslint': tseslint.plugin,
1616
'unused-imports': unusedImports,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "supermemory",
3-
"version": "3.0.0-alpha.12",
3+
"version": "3.0.0-alpha.13",
44
"description": "The official TypeScript library for the Supermemory API",
55
"author": "Supermemory <[email protected]>",
66
"types": "dist/index.d.ts",

src/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import { FinalRequestOptions, RequestOptions } from './internal/request-options'
2323
import {
2424
ConnectionCreateParams,
2525
ConnectionCreateResponse,
26+
ConnectionDeleteParams,
27+
ConnectionDeleteResponse,
2628
ConnectionGetResponse,
2729
ConnectionListDocumentsParams,
2830
ConnectionListDocumentsResponse,
@@ -761,10 +763,12 @@ export declare namespace Supermemory {
761763
Connections as Connections,
762764
type ConnectionCreateResponse as ConnectionCreateResponse,
763765
type ConnectionListResponse as ConnectionListResponse,
766+
type ConnectionDeleteResponse as ConnectionDeleteResponse,
764767
type ConnectionGetResponse as ConnectionGetResponse,
765768
type ConnectionListDocumentsResponse as ConnectionListDocumentsResponse,
766769
type ConnectionCreateParams as ConnectionCreateParams,
767770
type ConnectionListParams as ConnectionListParams,
771+
type ConnectionDeleteParams as ConnectionDeleteParams,
768772
type ConnectionListDocumentsParams as ConnectionListDocumentsParams,
769773
};
770774
}

src/resources/connections.ts

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ export class Connections extends APIResource {
3939
return this._client.post('/v3/connections/list', { body, ...options });
4040
}
4141

42+
/**
43+
* Delete all connections for a specific provider and container tags
44+
*
45+
* @example
46+
* ```ts
47+
* const connection = await client.connections.delete(
48+
* 'notion',
49+
* );
50+
* ```
51+
*/
52+
delete(
53+
provider: 'notion' | 'google-drive' | 'onedrive',
54+
body: ConnectionDeleteParams | null | undefined = {},
55+
options?: RequestOptions,
56+
): APIPromise<ConnectionDeleteResponse> {
57+
return this._client.delete(path`/v3/connections/${provider}`, { body, ...options });
58+
}
59+
4260
/**
4361
* Get connection details
4462
*
@@ -98,6 +116,22 @@ export namespace ConnectionListResponse {
98116
}
99117
}
100118

119+
export interface ConnectionDeleteResponse {
120+
deletedConnections: Array<ConnectionDeleteResponse.DeletedConnection>;
121+
122+
deletedCount: number;
123+
124+
success: boolean;
125+
}
126+
127+
export namespace ConnectionDeleteResponse {
128+
export interface DeletedConnection {
129+
id: string;
130+
131+
provider: string;
132+
}
133+
}
134+
101135
export interface ConnectionGetResponse {
102136
id: string;
103137

@@ -117,14 +151,8 @@ export namespace ConnectionListDocumentsResponse {
117151
export interface ConnectionListDocumentsResponseItem {
118152
id: string;
119153

120-
content: string | null;
121-
122154
createdAt: string;
123155

124-
metadata: Record<string, unknown> | null;
125-
126-
source: string | null;
127-
128156
status: string;
129157

130158
summary: string | null;
@@ -134,8 +162,6 @@ export namespace ConnectionListDocumentsResponse {
134162
type: string;
135163

136164
updatedAt: string;
137-
138-
url: string | null;
139165
}
140166
}
141167

@@ -154,6 +180,13 @@ export interface ConnectionListParams {
154180
containerTags?: Array<string>;
155181
}
156182

183+
export interface ConnectionDeleteParams {
184+
/**
185+
* Optional comma-separated list of container tags to filter connections by
186+
*/
187+
containerTags?: Array<string>;
188+
}
189+
157190
export interface ConnectionListDocumentsParams {
158191
/**
159192
* Optional comma-separated list of container tags to filter documents by
@@ -165,10 +198,12 @@ export declare namespace Connections {
165198
export {
166199
type ConnectionCreateResponse as ConnectionCreateResponse,
167200
type ConnectionListResponse as ConnectionListResponse,
201+
type ConnectionDeleteResponse as ConnectionDeleteResponse,
168202
type ConnectionGetResponse as ConnectionGetResponse,
169203
type ConnectionListDocumentsResponse as ConnectionListDocumentsResponse,
170204
type ConnectionCreateParams as ConnectionCreateParams,
171205
type ConnectionListParams as ConnectionListParams,
206+
type ConnectionDeleteParams as ConnectionDeleteParams,
172207
type ConnectionListDocumentsParams as ConnectionListDocumentsParams,
173208
};
174209
}

src/resources/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ export {
44
Connections,
55
type ConnectionCreateResponse,
66
type ConnectionListResponse,
7+
type ConnectionDeleteResponse,
78
type ConnectionGetResponse,
89
type ConnectionListDocumentsResponse,
910
type ConnectionCreateParams,
1011
type ConnectionListParams,
12+
type ConnectionDeleteParams,
1113
type ConnectionListDocumentsParams,
1214
} from './connections';
1315
export {

src/resources/memories.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ export interface MemoryGetResponse {
203203
*/
204204
id: string;
205205

206+
connectionId: string | null;
207+
206208
/**
207209
* The content to extract and process into a memory. This can be a URL to a
208210
* website, a PDF, an image, or a video.

0 commit comments

Comments
 (0)