Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintcache

This file was deleted.

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.5.0"
".": "3.6.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-d93857d410b13512999c334ecee7f97b286ba045aef743327ca90de7c78e0bef.yml
openapi_spec_hash: 5163b368f085d519b7beab1246937d1a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-ff2201f4ff8f062673cb93068f6d3efeb46d6ac7ce66632418ec1825b03f6332.yml
openapi_spec_hash: 11b52dea5fc829a46baea91d0c7e3c4e
config_hash: a478b24249ee4f53abfb5787ca4daf8b
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 3.6.0 (2025-10-07)

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

### Features

* **api:** api update ([81bfd53](https://github.com/supermemoryai/sdk-ts/commit/81bfd5352b4cb8e09098c010fbadcf2f31cb162d))
* **api:** api update ([f43ec83](https://github.com/supermemoryai/sdk-ts/commit/f43ec8376f494f8713874e7126932bc9c999082b))
* **api:** api update ([80bfa4e](https://github.com/supermemoryai/sdk-ts/commit/80bfa4e9b5f8a95ba74d4a043dc6295c8a6054ef))
* **api:** api update ([7c85660](https://github.com/supermemoryai/sdk-ts/commit/7c8566063a558301b83ebca7bfd830a1ce4e8d6b))


### Chores

* **internal:** remove .eslintcache ([1175a1c](https://github.com/supermemoryai/sdk-ts/commit/1175a1c393fb00d556eca9a80546e724c3b83ed5))
* **internal:** use npm pack for build uploads ([c14b460](https://github.com/supermemoryai/sdk-ts/commit/c14b460ba6983c51141b4ca446a907d21e7f67d4))
* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([16397d2](https://github.com/supermemoryai/sdk-ts/commit/16397d28274d76703c54c5d7a5abeefbc94e5363))

## 3.5.0 (2025-09-27)

Full Changelog: [v3.4.0...v3.5.0](https://github.com/supermemoryai/sdk-ts/compare/v3.4.0...v3.5.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supermemory",
"version": "3.5.0",
"version": "3.6.0",
"description": "The official TypeScript library for the Supermemory API",
"author": "Supermemory <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ if [[ "$SIGNED_URL" == "null" ]]; then
exit 1
fi

UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
TARBALL=$(cd dist && npm pack --silent)

UPLOAD_RESPONSE=$(curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)
--data-binary "@dist/$TARBALL" "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
Expand Down
2 changes: 1 addition & 1 deletion src/internal/to-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type ToFileInput =

/**
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
* @param {Object=} options additional properties
* @param {string=} options.type the MIME type of the content
Expand Down
43 changes: 7 additions & 36 deletions src/resources/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ export interface DocumentListResponse {
}

export namespace DocumentListResponse {
/**
* Document object
*/
export interface Memory {
/**
* Unique identifier of the document.
Expand Down Expand Up @@ -213,11 +210,11 @@ export namespace DocumentListResponse {
export interface Pagination {
currentPage: number;

limit: number;

totalItems: number;

totalPages: number;

limit?: number;
}
}

Expand Down Expand Up @@ -276,6 +273,11 @@ export interface DocumentGetResponse {

ogImage: string | null;

/**
* Raw content of the document
*/
raw: unknown;

/**
* Source of the document
*/
Expand Down Expand Up @@ -330,11 +332,6 @@ export interface DocumentGetResponse {
*/
containerTags?: Array<string>;

/**
* Raw content of the document
*/
raw?: null;

/**
* URL of the document
*/
Expand Down Expand Up @@ -380,13 +377,6 @@ export interface DocumentUpdateParams {
*/
customId?: string;

/**
* Optional file type override to force specific processing behavior. Valid values:
* text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
* notion_doc, webpage, onedrive
*/
fileType?: string;

/**
* Optional metadata for the document. This is used to store additional information
* about the document. You can use this to store any additional information you
Expand All @@ -395,12 +385,6 @@ export interface DocumentUpdateParams {
* nest objects.
*/
metadata?: { [key: string]: string | number | boolean | Array<string> };

/**
* Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
* use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
*/
mimeType?: string;
}

export interface DocumentListParams {
Expand Down Expand Up @@ -476,13 +460,6 @@ export interface DocumentAddParams {
*/
customId?: string;

/**
* Optional file type override to force specific processing behavior. Valid values:
* text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
* notion_doc, webpage, onedrive
*/
fileType?: string;

/**
* Optional metadata for the document. This is used to store additional information
* about the document. You can use this to store any additional information you
Expand All @@ -491,12 +468,6 @@ export interface DocumentAddParams {
* nest objects.
*/
metadata?: { [key: string]: string | number | boolean | Array<string> };

/**
* Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
* use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
*/
mimeType?: string;
}

export interface DocumentUploadFileParams {
Expand Down
Loading
Loading