Skip to content

Commit 6288dd6

Browse files
authored
Merge pull request #37 from supermemoryai/release-please--branches--main--changes--next--components--supermemory
release: 3.7.0
2 parents 782deeb + 3dbf078 commit 6288dd6

File tree

12 files changed

+113
-157
lines changed

12 files changed

+113
-157
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.6.0"
2+
".": "3.7.0"
33
}

.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-ff2201f4ff8f062673cb93068f6d3efeb46d6ac7ce66632418ec1825b03f6332.yml
3-
openapi_spec_hash: 11b52dea5fc829a46baea91d0c7e3c4e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-268046d0d3e461f90719c7aff95adde912763ec5dfdade1f0c25fc8a0cd9b25d.yml
3+
openapi_spec_hash: cc8090e79852ab4566347b41faa409c0
44
config_hash: a478b24249ee4f53abfb5787ca4daf8b

CHANGELOG.md

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

3+
## 3.7.0 (2025-11-06)
4+
5+
Full Changelog: [v3.6.0...v3.7.0](https://github.com/supermemoryai/sdk-ts/compare/v3.6.0...v3.7.0)
6+
7+
### Features
8+
9+
* **api:** api update ([fcc686d](https://github.com/supermemoryai/sdk-ts/commit/fcc686dd749fef68f666a36d9a49c56c51cf6527))
10+
* **api:** api update ([09566db](https://github.com/supermemoryai/sdk-ts/commit/09566dbc809169fcb438a52194f510304b8d0479))
11+
312
## 3.6.0 (2025-10-07)
413

514
Full Changelog: [v3.5.0...v3.6.0](https://github.com/supermemoryai/sdk-ts/compare/v3.5.0...v3.6.0)

README.md

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ const client = new Supermemory({
4343
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
4444
});
4545

46-
const params: Supermemory.MemoryAddParams = {
47-
content: 'This is a detailed article about machine learning concepts...',
48-
};
46+
const params: Supermemory.MemoryAddParams = { content: 'content' };
4947
const response: Supermemory.MemoryAddResponse = await client.memories.add(params);
5048
```
5149

@@ -88,17 +86,15 @@ a subclass of `APIError` will be thrown:
8886

8987
<!-- prettier-ignore -->
9088
```ts
91-
const response = await client.memories
92-
.add({ content: 'This is a detailed article about machine learning concepts...' })
93-
.catch(async (err) => {
94-
if (err instanceof Supermemory.APIError) {
95-
console.log(err.status); // 400
96-
console.log(err.name); // BadRequestError
97-
console.log(err.headers); // {server: 'nginx', ...}
98-
} else {
99-
throw err;
100-
}
101-
});
89+
const response = await client.memories.add({ content: 'content' }).catch(async (err) => {
90+
if (err instanceof Supermemory.APIError) {
91+
console.log(err.status); // 400
92+
console.log(err.name); // BadRequestError
93+
console.log(err.headers); // {server: 'nginx', ...}
94+
} else {
95+
throw err;
96+
}
97+
});
10298
```
10399

104100
Error codes are as follows:
@@ -130,7 +126,7 @@ const client = new Supermemory({
130126
});
131127

132128
// Or, configure per-request:
133-
await client.memories.add({ content: 'This is a detailed article about machine learning concepts...' }, {
129+
await client.memories.add({ content: 'content' }, {
134130
maxRetries: 5,
135131
});
136132
```
@@ -147,7 +143,7 @@ const client = new Supermemory({
147143
});
148144

149145
// Override per-request:
150-
await client.memories.add({ content: 'This is a detailed article about machine learning concepts...' }, {
146+
await client.memories.add({ content: 'content' }, {
151147
timeout: 5 * 1000,
152148
});
153149
```
@@ -170,15 +166,11 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
170166
```ts
171167
const client = new Supermemory();
172168

173-
const response = await client.memories
174-
.add({ content: 'This is a detailed article about machine learning concepts...' })
175-
.asResponse();
169+
const response = await client.memories.add({ content: 'content' }).asResponse();
176170
console.log(response.headers.get('X-My-Header'));
177171
console.log(response.statusText); // access the underlying Response object
178172

179-
const { data: response, response: raw } = await client.memories
180-
.add({ content: 'This is a detailed article about machine learning concepts...' })
181-
.withResponse();
173+
const { data: response, response: raw } = await client.memories.add({ content: 'content' }).withResponse();
182174
console.log(raw.headers.get('X-My-Header'));
183175
console.log(response.id);
184176
```

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.6.0",
3+
"version": "3.7.0",
44
"description": "The official TypeScript library for the Supermemory API",
55
"author": "Supermemory <[email protected]>",
66
"types": "dist/index.d.ts",

src/resources/documents.ts

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ export class Documents extends APIResource {
6262
* @example
6363
* ```ts
6464
* const response = await client.documents.add({
65-
* content:
66-
* 'This is a detailed article about machine learning concepts...',
65+
* content: 'content',
6766
* });
6867
* ```
6968
*/
@@ -105,8 +104,14 @@ export class Documents extends APIResource {
105104
}
106105

107106
export interface DocumentUpdateResponse {
107+
/**
108+
* Unique identifier of the document
109+
*/
108110
id: string;
109111

112+
/**
113+
* Status of the document
114+
*/
110115
status: string;
111116
}
112117

@@ -219,8 +224,14 @@ export namespace DocumentListResponse {
219224
}
220225

221226
export interface DocumentAddResponse {
227+
/**
228+
* Unique identifier of the document
229+
*/
222230
id: string;
223231

232+
/**
233+
* Status of the document
234+
*/
224235
status: string;
225236
}
226237

@@ -339,8 +350,14 @@ export interface DocumentGetResponse {
339350
}
340351

341352
export interface DocumentUploadFileResponse {
353+
/**
354+
* Unique identifier of the document
355+
*/
342356
id: string;
343357

358+
/**
359+
* Status of the document
360+
*/
344361
status: string;
345362
}
346363

@@ -431,41 +448,28 @@ export interface DocumentAddParams {
431448
/**
432449
* The content to extract and process into a document. This can be a URL to a
433450
* website, a PDF, an image, or a video.
434-
*
435-
* Plaintext: Any plaintext format
436-
*
437-
* URL: A URL to a website, PDF, image, or video
438-
*
439-
* We automatically detect the content type from the url's response format.
440451
*/
441452
content: string;
442453

443454
/**
444-
* Optional tag this document should be containerized by. This can be an ID for
445-
* your user, a project ID, or any other identifier you wish to use to group
446-
* documents.
455+
* Optional tag this document should be containerized by. Max 100 characters,
456+
* alphanumeric with hyphens and underscores only.
447457
*/
448458
containerTag?: string;
449459

450460
/**
451-
* @deprecated (DEPRECATED: Use containerTag instead) Optional tags this document
452-
* should be containerized by. This can be an ID for your user, a project ID, or
453-
* any other identifier you wish to use to group documents.
461+
* @deprecated
454462
*/
455463
containerTags?: Array<string>;
456464

457465
/**
458-
* Optional custom ID of the document. This could be an ID from your database that
459-
* will uniquely identify this document.
466+
* Optional custom ID of the document. Max 100 characters, alphanumeric with
467+
* hyphens and underscores only.
460468
*/
461469
customId?: string;
462470

463471
/**
464-
* Optional metadata for the document. This is used to store additional information
465-
* about the document. You can use this to store any additional information you
466-
* need about the document. Metadata can be filtered through. Keys must be strings
467-
* and are case sensitive. Values can be strings, numbers, or booleans. You cannot
468-
* nest objects.
472+
* Optional metadata for the document.
469473
*/
470474
metadata?: { [key: string]: string | number | boolean | Array<string> };
471475
}

src/resources/memories.ts

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ export class Memories extends APIResource {
6262
* @example
6363
* ```ts
6464
* const response = await client.memories.add({
65-
* content:
66-
* 'This is a detailed article about machine learning concepts...',
65+
* content: 'content',
6766
* });
6867
* ```
6968
*/
@@ -102,8 +101,14 @@ export class Memories extends APIResource {
102101
}
103102

104103
export interface MemoryUpdateResponse {
104+
/**
105+
* Unique identifier of the document
106+
*/
105107
id: string;
106108

109+
/**
110+
* Status of the document
111+
*/
107112
status: string;
108113
}
109114

@@ -216,8 +221,14 @@ export namespace MemoryListResponse {
216221
}
217222

218223
export interface MemoryAddResponse {
224+
/**
225+
* Unique identifier of the document
226+
*/
219227
id: string;
220228

229+
/**
230+
* Status of the document
231+
*/
221232
status: string;
222233
}
223234

@@ -336,8 +347,14 @@ export interface MemoryGetResponse {
336347
}
337348

338349
export interface MemoryUploadFileResponse {
350+
/**
351+
* Unique identifier of the document
352+
*/
339353
id: string;
340354

355+
/**
356+
* Status of the document
357+
*/
341358
status: string;
342359
}
343360

@@ -428,41 +445,28 @@ export interface MemoryAddParams {
428445
/**
429446
* The content to extract and process into a document. This can be a URL to a
430447
* website, a PDF, an image, or a video.
431-
*
432-
* Plaintext: Any plaintext format
433-
*
434-
* URL: A URL to a website, PDF, image, or video
435-
*
436-
* We automatically detect the content type from the url's response format.
437448
*/
438449
content: string;
439450

440451
/**
441-
* Optional tag this document should be containerized by. This can be an ID for
442-
* your user, a project ID, or any other identifier you wish to use to group
443-
* documents.
452+
* Optional tag this document should be containerized by. Max 100 characters,
453+
* alphanumeric with hyphens and underscores only.
444454
*/
445455
containerTag?: string;
446456

447457
/**
448-
* @deprecated (DEPRECATED: Use containerTag instead) Optional tags this document
449-
* should be containerized by. This can be an ID for your user, a project ID, or
450-
* any other identifier you wish to use to group documents.
458+
* @deprecated
451459
*/
452460
containerTags?: Array<string>;
453461

454462
/**
455-
* Optional custom ID of the document. This could be an ID from your database that
456-
* will uniquely identify this document.
463+
* Optional custom ID of the document. Max 100 characters, alphanumeric with
464+
* hyphens and underscores only.
457465
*/
458466
customId?: string;
459467

460468
/**
461-
* Optional metadata for the document. This is used to store additional information
462-
* about the document. You can use this to store any additional information you
463-
* need about the document. Metadata can be filtered through. Keys must be strings
464-
* and are case sensitive. Values can be strings, numbers, or booleans. You cannot
465-
* nest objects.
469+
* Optional metadata for the document.
466470
*/
467471
metadata?: { [key: string]: string | number | boolean | Array<string> };
468472
}

src/resources/search.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ export interface SearchDocumentsParams {
391391
q: string;
392392

393393
/**
394-
* @deprecated Optional category filters
394+
* @deprecated DEPRECATED: Optional category filters
395395
*/
396-
categoriesFilter?: Array<'technology' | 'science' | 'business' | 'health'>;
396+
categoriesFilter?: Array<string>;
397397

398398
/**
399399
* Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most
@@ -415,9 +415,8 @@ export interface SearchDocumentsParams {
415415
docId?: string;
416416

417417
/**
418-
* Threshold / sensitivity for document selection. 0 is least sensitive (returns
419-
* most documents, more results), 1 is most sensitive (returns lesser documents,
420-
* accurate results)
418+
* @deprecated DEPRECATED: This field is no longer used in v3 search. The search
419+
* now uses chunkThreshold only. This parameter will be ignored.
421420
*/
422421
documentThreshold?: number;
423422

@@ -470,9 +469,9 @@ export interface SearchExecuteParams {
470469
q: string;
471470

472471
/**
473-
* @deprecated Optional category filters
472+
* @deprecated DEPRECATED: Optional category filters
474473
*/
475-
categoriesFilter?: Array<'technology' | 'science' | 'business' | 'health'>;
474+
categoriesFilter?: Array<string>;
476475

477476
/**
478477
* Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most
@@ -494,9 +493,8 @@ export interface SearchExecuteParams {
494493
docId?: string;
495494

496495
/**
497-
* Threshold / sensitivity for document selection. 0 is least sensitive (returns
498-
* most documents, more results), 1 is most sensitive (returns lesser documents,
499-
* accurate results)
496+
* @deprecated DEPRECATED: This field is no longer used in v3 search. The search
497+
* now uses chunkThreshold only. This parameter will be ignored.
500498
*/
501499
documentThreshold?: number;
502500

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '3.6.0'; // x-release-please-version
1+
export const VERSION = '3.7.0'; // x-release-please-version

0 commit comments

Comments
 (0)