@@ -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
107106export 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
221226export 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
341352export 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}
0 commit comments