@@ -22,13 +22,13 @@ This is a Typescript client for the [Unstructured API](https://unstructured-io.g
2222### NPM
2323
2424``` bash
25- npm add https://github.com/Unstructured-IO/ unstructured-js -client
25+ npm add unstructured-client
2626```
2727
2828### Yarn
2929
3030``` bash
31- yarn add https://github.com/Unstructured-IO/ unstructured-js -client
31+ yarn add unstructured-client
3232```
3333<!-- End SDK Installation -->
3434
@@ -76,6 +76,75 @@ sdk.general.partition({
7676
7777<!-- End Dev Containers -->
7878
79+
80+
81+ ## SDK Example Usage
82+ <!-- Start SDK Example Usage -->
83+
84+
85+ ``` typescript
86+ import { UnstructuredClient } from " unstructured-client" ;
87+ import { PartitionResponse } from " unstructured-client/dist/sdk/models/operations" ;
88+
89+ const sdk = new UnstructuredClient ({
90+ security: {
91+ apiKeyAuth: " YOUR_API_KEY" ,
92+ },
93+ });
94+
95+ sdk .general .partition ({
96+ coordinates: false ,
97+ encoding: " utf-8" ,
98+ files: {
99+ content: " distinctio" .encode (),
100+ files: " quibusdam" ,
101+ },
102+ gzUncompressedContentType: " application/pdf" ,
103+ hiResModelName: " yolox" ,
104+ includePageBreaks: false ,
105+ ocrLanguages: [
106+ " eng" ,
107+ ],
108+ outputFormat: " application/json" ,
109+ pdfInferTableStructure: false ,
110+ skipInferTableTypes: [
111+ " pdf" ,
112+ ],
113+ strategy: " hi_res" ,
114+ xmlKeepTags: false ,
115+ }).then ((res : PartitionResponse ) => {
116+ if (res .statusCode == 200 ) {
117+ // handle response
118+ }
119+ });
120+ ```
121+ <!-- End SDK Example Usage -->
122+
123+
124+
125+ <!-- Start SDK Available Operations -->
126+ ## Available Resources and Operations
127+
128+
129+ ### [ general] ( docs/sdks/general/README.md )
130+
131+ * [ partition] ( docs/sdks/general/README.md#partition ) - Pipeline 1
132+ <!-- End SDK Available Operations -->
133+
134+
135+
136+ <!-- Start Pagination -->
137+ # Pagination
138+
139+ Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
140+ returned response object will have a ` next ` method that can be called to pull down the next group of results. If the
141+ return value of ` next ` is ` null ` , then there are no more pages to be fetched.
142+
143+ Here's an example of one such pagination call:
144+
145+
146+ <!-- End Pagination -->
147+
79148<!-- Placeholder for Future Speakeasy SDK Sections -->
80149
81150### Maturity
0 commit comments