22
33import  {  APIResource  }  from  '../resource' ; 
44import  *  as  Core  from  '../core' ; 
5- import  {  GetDocumentInfoListCursor ,  type  GetDocumentInfoListCursorParams  }  from  '../pagination' ; 
65
76export  class  Documents  extends  APIResource  { 
87  /** 
@@ -80,12 +79,8 @@ export class Documents extends APIResource {
8079  getInfoList ( 
8180    body : DocumentGetInfoListParams , 
8281    options ?: Core . RequestOptions , 
83-   ) : Core . PagePromise < DocumentGetInfoListResponsesGetDocumentInfoListCursor ,  DocumentGetInfoListResponse >  { 
84-     return  this . _client . getAPIList ( 
85-       '/documents/get-document-info-list' , 
86-       DocumentGetInfoListResponsesGetDocumentInfoListCursor , 
87-       {  body,  method : 'post' ,  ...options  } , 
88-     ) ; 
82+   ) : Core . APIPromise < DocumentGetInfoListResponse >  { 
83+     return  this . _client . post ( '/documents/get-document-info-list' ,  {  body,  ...options  } ) ; 
8984  } 
9085
9186  /** 
@@ -103,8 +98,6 @@ export class Documents extends APIResource {
10398  } 
10499} 
105100
106- export  class  DocumentGetInfoListResponsesGetDocumentInfoListCursor  extends  GetDocumentInfoListCursor < DocumentGetInfoListResponse >  { } 
107- 
108101export  interface  DocumentUpdateResponse  { 
109102  new_id : string ; 
110103
@@ -163,29 +156,35 @@ export namespace DocumentGetInfoResponse {
163156} 
164157
165158export  interface  DocumentGetInfoListResponse  { 
166-   id : string ; 
159+   documents : Array < DocumentGetInfoListResponse . Document > ; 
160+ } 
167161
168-   collection_name : string ; 
162+ export  namespace  DocumentGetInfoListResponse  { 
163+   export  interface  Document  { 
164+     id : string ; 
169165
170-   index_status :
171-     |  'not_parsed' 
172-     |  'parsing' 
173-     |  'not_indexed' 
174-     |  'indexing' 
175-     |  'indexed' 
176-     |  'parsing_failed' 
177-     |  'indexing_failed' ; 
166+     collection_name : string ; 
178167
179-   metadata : Record < string ,  string  |  Array < string > > ; 
168+     index_status :
169+       |  'not_parsed' 
170+       |  'parsing' 
171+       |  'not_indexed' 
172+       |  'indexing' 
173+       |  'indexed' 
174+       |  'parsing_failed' 
175+       |  'indexing_failed' ; 
180176
181-   /** 
182-    * The number of pages in this document. This will be `null` if the document is 
183-    * parsing or failed to parse. It can also be `null` if the document is a filetype 
184-    * that does not support pages. 
185-    */ 
186-   num_pages : number  |  null ; 
177+     metadata : Record < string ,  string  |  Array < string > > ; 
187178
188-   path : string ; 
179+     /** 
180+      * The number of pages in this document. This will be `null` if the document is 
181+      * parsing or failed to parse. It can also be `null` if the document is a filetype 
182+      * that does not support pages. 
183+      */ 
184+     num_pages : number  |  null ; 
185+ 
186+     path : string ; 
187+   } 
189188} 
190189
191190export  interface  DocumentGetPageInfoResponse  { 
@@ -369,11 +368,23 @@ export interface DocumentGetInfoParams {
369368  include_content ?: boolean ; 
370369} 
371370
372- export  interface  DocumentGetInfoListParams  extends   GetDocumentInfoListCursorParams   { 
371+ export  interface  DocumentGetInfoListParams  { 
373372  /** 
374373   * The name of the collection. 
375374   */ 
376375  collection_name : string ; 
376+ 
377+   /** 
378+    * All documents returned will have a UUID strictly greater than the provided UUID. 
379+    * (Comparison will be on the binary representations of the UUIDs) 
380+    */ 
381+   id_gt ?: string  |  null ; 
382+ 
383+   /** 
384+    * The maximum number of documents to return. This field is by default 1024, and 
385+    * cannot be set larger than 1024 
386+    */ 
387+   limit ?: number ; 
377388} 
378389
379390export  interface  DocumentGetPageInfoParams  { 
@@ -404,9 +415,6 @@ export interface DocumentGetPageInfoParams {
404415  include_content ?: boolean ; 
405416} 
406417
407- Documents . DocumentGetInfoListResponsesGetDocumentInfoListCursor  = 
408-   DocumentGetInfoListResponsesGetDocumentInfoListCursor ; 
409- 
410418export  declare  namespace  Documents  { 
411419  export  { 
412420    type  DocumentUpdateResponse  as  DocumentUpdateResponse , 
@@ -415,7 +423,6 @@ export declare namespace Documents {
415423    type  DocumentGetInfoResponse  as  DocumentGetInfoResponse , 
416424    type  DocumentGetInfoListResponse  as  DocumentGetInfoListResponse , 
417425    type  DocumentGetPageInfoResponse  as  DocumentGetPageInfoResponse , 
418-     DocumentGetInfoListResponsesGetDocumentInfoListCursor  as  DocumentGetInfoListResponsesGetDocumentInfoListCursor , 
419426    type  DocumentUpdateParams  as  DocumentUpdateParams , 
420427    type  DocumentDeleteParams  as  DocumentDeleteParams , 
421428    type  DocumentAddParams  as  DocumentAddParams , 
0 commit comments