Skip to content

Commit 6b3a9a3

Browse files
feat(api): manual updates
1 parent 23e5400 commit 6b3a9a3

File tree

2 files changed

+83
-70
lines changed

2 files changed

+83
-70
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: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-c907416d5056243275fc6d1c3842e38096406a4a895f6523c2cbfddfca072ad8.yml
3-
openapi_spec_hash: 0eef2d6ae43857f544ba7bcace19c755
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-f7116a643adf1d035549bc899be5eb9297c2f7592846167998a65ae533a29a31.yml
3+
openapi_spec_hash: a4e7f9ca80cc09659edd82a31892e765
44
config_hash: 186ccf5b031bec96a1ae301d19884121

src/resources/memories.ts

Lines changed: 81 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,15 @@ export namespace MemoryListResponse {
128128
id: string;
129129

130130
/**
131-
* The content to extract and process into a memory. This can be a URL to a
132-
* website, a PDF, an image, or a video.
133-
*
134-
* Plaintext: Any plaintext format
135-
*
136-
* URL: A URL to a website, PDF, image, or video
137-
*
138-
* We automatically detect the content type from the url's response format.
131+
* Creation timestamp
139132
*/
140-
content: string | null;
133+
createdAt: string;
141134

142135
/**
143-
* Creation timestamp
136+
* Optional custom ID of the memory. This could be an ID from your database that
137+
* will uniquely identify this memory.
144138
*/
145-
createdAt: string;
139+
customId: string | null;
146140

147141
/**
148142
* Optional metadata for the memory. This is used to store additional information
@@ -174,9 +168,10 @@ export namespace MemoryListResponse {
174168
updatedAt: string;
175169

176170
/**
177-
* URL of the memory
171+
* Optional tags this memory should be containerized by. This can be an ID for your
172+
* user, a project ID, or any other identifier you wish to use to group memories.
178173
*/
179-
url: string | null;
174+
containerTags?: Array<string>;
180175
}
181176

182177
/**
@@ -199,76 +194,94 @@ export interface MemoryAddResponse {
199194
status: string;
200195
}
201196

197+
/**
198+
* Memory object
199+
*/
202200
export interface MemoryGetResponse {
203201
/**
204-
* Memory object
202+
* Unique identifier of the memory.
205203
*/
206-
doc: MemoryGetResponse.Doc;
204+
id: string;
207205

208-
status: string;
209-
}
206+
/**
207+
* The content to extract and process into a memory. This can be a URL to a
208+
* website, a PDF, an image, or a video.
209+
*
210+
* Plaintext: Any plaintext format
211+
*
212+
* URL: A URL to a website, PDF, image, or video
213+
*
214+
* We automatically detect the content type from the url's response format.
215+
*/
216+
content: string | null;
210217

211-
export namespace MemoryGetResponse {
212218
/**
213-
* Memory object
219+
* Creation timestamp
214220
*/
215-
export interface Doc {
216-
/**
217-
* Unique identifier of the memory.
218-
*/
219-
id: string;
221+
createdAt: string;
220222

221-
/**
222-
* The content to extract and process into a memory. This can be a URL to a
223-
* website, a PDF, an image, or a video.
224-
*
225-
* Plaintext: Any plaintext format
226-
*
227-
* URL: A URL to a website, PDF, image, or video
228-
*
229-
* We automatically detect the content type from the url's response format.
230-
*/
231-
content: string | null;
223+
/**
224+
* Optional custom ID of the memory. This could be an ID from your database that
225+
* will uniquely identify this memory.
226+
*/
227+
customId: string | null;
232228

233-
/**
234-
* Creation timestamp
235-
*/
236-
createdAt: string;
229+
/**
230+
* Optional metadata for the memory. This is used to store additional information
231+
* about the memory. You can use this to store any additional information you need
232+
* about the memory. Metadata can be filtered through. Keys must be strings and are
233+
* case sensitive. Values can be strings, numbers, or booleans. You cannot nest
234+
* objects.
235+
*/
236+
metadata: string | number | boolean | Record<string, unknown> | Array<unknown> | null;
237237

238-
/**
239-
* Optional metadata for the memory. This is used to store additional information
240-
* about the memory. You can use this to store any additional information you need
241-
* about the memory. Metadata can be filtered through. Keys must be strings and are
242-
* case sensitive. Values can be strings, numbers, or booleans. You cannot nest
243-
* objects.
244-
*/
245-
metadata: string | number | boolean | Record<string, unknown> | Array<unknown> | null;
238+
ogImage: string | null;
246239

247-
/**
248-
* Status of the memory
249-
*/
250-
status: 'unknown' | 'queued' | 'extracting' | 'chunking' | 'embedding' | 'indexing' | 'done' | 'failed';
240+
/**
241+
* Source of the memory
242+
*/
243+
source: string | null;
251244

252-
/**
253-
* Summary of the memory content
254-
*/
255-
summary: string | null;
245+
/**
246+
* Status of the memory
247+
*/
248+
status: 'unknown' | 'queued' | 'extracting' | 'chunking' | 'embedding' | 'indexing' | 'done' | 'failed';
256249

257-
/**
258-
* Title of the memory
259-
*/
260-
title: string | null;
250+
/**
251+
* Summary of the memory content
252+
*/
253+
summary: string | null;
261254

262-
/**
263-
* Last update timestamp
264-
*/
265-
updatedAt: string;
255+
/**
256+
* Title of the memory
257+
*/
258+
title: string | null;
266259

267-
/**
268-
* URL of the memory
269-
*/
270-
url: string | null;
271-
}
260+
/**
261+
* Type of the memory
262+
*/
263+
type: 'text' | 'pdf' | 'tweet' | 'google_doc' | 'image' | 'video' | 'notion_doc' | 'webpage';
264+
265+
/**
266+
* Last update timestamp
267+
*/
268+
updatedAt: string;
269+
270+
/**
271+
* URL of the memory
272+
*/
273+
url: string | null;
274+
275+
/**
276+
* Optional tags this memory should be containerized by. This can be an ID for your
277+
* user, a project ID, or any other identifier you wish to use to group memories.
278+
*/
279+
containerTags?: Array<string>;
280+
281+
/**
282+
* Raw content of the memory
283+
*/
284+
raw?: null;
272285
}
273286

274287
export interface MemoryUploadFileResponse {

0 commit comments

Comments
 (0)