@nemphi/sdk 0.2.4844 → 0.2.4853
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1679,6 +1679,15 @@ export interface Document {
|
|
|
1679
1679
|
extracted?: unknown;
|
|
1680
1680
|
error?: string;
|
|
1681
1681
|
}
|
|
1682
|
+
/**
|
|
1683
|
+
* A document with the whole text its extraction read (documents.read_text):
|
|
1684
|
+
* a .docx as paragraphs, a spreadsheet as tables, a presentation as slides,
|
|
1685
|
+
* a PDF as pages. Empty until the document is processed, or when it has no
|
|
1686
|
+
* text (a picture).
|
|
1687
|
+
*/
|
|
1688
|
+
export interface DocumentText extends Document {
|
|
1689
|
+
markdown: string;
|
|
1690
|
+
}
|
|
1682
1691
|
/** Upload kind hints that route a document to the company-profile parser. */
|
|
1683
1692
|
export type CompanyDocumentKind = "rut" | "company_registration";
|
|
1684
1693
|
/**
|
|
@@ -8308,6 +8317,8 @@ export interface NemphiClient {
|
|
|
8308
8317
|
}): Promise<PartyMatches>;
|
|
8309
8318
|
listDocuments(): Promise<Document[]>;
|
|
8310
8319
|
getDocument(id: string): Promise<Document>;
|
|
8320
|
+
/** The document with the whole text its extraction read, as Markdown. */
|
|
8321
|
+
readDocumentText(id: string): Promise<DocumentText>;
|
|
8311
8322
|
listLiveDocuments(filter?: LiveDocumentFilter): Promise<LiveDocument[]>;
|
|
8312
8323
|
createLiveDocument(title: string, kind?: LiveDocumentKind, place?: LiveDocumentPlace): Promise<LiveDocument>;
|
|
8313
8324
|
/** Files a document in a folder (empty: the top level) or moves it to another space. */
|