hanzoai 2.2.7 → 2.2.8
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 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,8 +53,8 @@ argument.
|
|
|
53
53
|
|
|
54
54
|
**Pass it as `baseOptions`, not as `accessToken`.** The API document declares no
|
|
55
55
|
`securityScheme`, so the generator emitted no auth code: `accessToken`
|
|
56
|
-
type-checks, sends no `Authorization` header, and
|
|
57
|
-
|
|
56
|
+
type-checks, sends no `Authorization` header, and the call is refused as
|
|
57
|
+
anonymous. `baseOptions` is spread into every request by every operation, so the
|
|
58
58
|
header set once below reaches all 2502 methods.
|
|
59
59
|
|
|
60
60
|
```ts
|
|
@@ -104,8 +104,8 @@ npm ci && npm run build
|
|
|
104
104
|
npx tsx examples/hello/index.ts
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
`npm run examples` type-checks all six against the client
|
|
108
|
-
|
|
107
|
+
`npm run examples` type-checks all six against the client, and `hanzo.yml` makes
|
|
108
|
+
that a CI gate — which is what keeps them from rotting into pseudocode.
|
|
109
109
|
|
|
110
110
|
## The API surface
|
|
111
111
|
|