@kittycad/lib 4.4.6 → 4.4.9
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/README.md +4 -3
- package/dist/cjs/index.cjs +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/types/src/api/file/create_file_conversion_options.d.ts.map +1 -1
- package/dist/types/src/api/ml/ml_copilot_ws.d.ts +3 -1
- package/dist/types/src/api/ml/ml_copilot_ws.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/models.d.ts +113 -1
- package/dist/types/src/models.d.ts.map +1 -1
- package/dist/types/src/websocket-engine.d.ts +1 -1
- package/dist/types/src/websocket-engine.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,17 +15,19 @@ npm install @kittycad/lib
|
|
|
15
15
|
yarn add @kittycad/lib
|
|
16
16
|
|
|
17
17
|
## set your token
|
|
18
|
-
export
|
|
18
|
+
export ZOO_API_TOKEN=<your token>
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Basic example
|
|
22
22
|
```typescript
|
|
23
|
-
import { file } from '@kittycad/lib';
|
|
23
|
+
import { Client, file } from '@kittycad/lib';
|
|
24
24
|
import fsp from 'fs/promises';
|
|
25
25
|
|
|
26
26
|
async function main() {
|
|
27
|
+
const client = new Client()
|
|
27
28
|
// zoo.dev/docs/api/get-cad-file-mass?lang=typescript
|
|
28
29
|
const response = await file.create_file_mass({
|
|
30
|
+
client,
|
|
29
31
|
src_format: 'obj',
|
|
30
32
|
material_density_unit: 'kg:m3',
|
|
31
33
|
output_unit: 'g',
|
|
@@ -40,4 +42,3 @@ async function main() {
|
|
|
40
42
|
|
|
41
43
|
main();
|
|
42
44
|
```
|
|
43
|
-
|