You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains the Smithy-based TypeScript/JavaScript client for Cloudserver's custom internal APIs. The client is generated from the .smithy model files that we defined in the /models folder.
4
+
5
+
If you need to work on it, install Smithy first : https://smithy.io/2.0/guides/smithy-cli/cli_installation.html
6
+
7
+
## Architecture
8
+
9
+
Each .smithy file defines one api, and we have the Cloudserver service defined in models/cloudserver.smithy uses these apis.
10
+
11
+
The client generation is performed this way :
12
+
13
+
```bash
14
+
# Generate TypeScript from .smithy model files
15
+
yarn run generate-smithy-client
16
+
17
+
# Compile TypeScript to JavaScript and create npm package
18
+
yarn run build-smithy-client
19
+
```
20
+
21
+
### Local testing
22
+
23
+
1. Install test dependencies: `cd localTests && bun install`
0 commit comments