@canopy-io/node 0.3.12 → 0.4.0
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/CHANGELOG.md +10 -0
- package/dist/index.d.cts +3026 -233
- package/dist/index.d.ts +3026 -233
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @canopy-io/node
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e9a9d26: Types regenerated from the live spec, which now declares every response each endpoint gives.
|
|
8
|
+
|
|
9
|
+
One caller shape changed: `scopes` on API key creation narrows from any string to the 13 scopes the platform offers (`hierarchy.view`, `hierarchy.manage`, `rbac.view_roles`, `rbac.manage_roles`, `rbac.view_assignments`, `rbac.manage_assignments`, `permissions.evaluate`, `identity.view`, `identity.manage`, `api_key.view`, `api_key.manage`, `webhook.view`, `webhook.manage`). The API already refuses any other value with `400`, so code that compiled against the old type and passed an unknown scope was failing at runtime; it now fails at compile time instead.
|
|
10
|
+
|
|
11
|
+
Everything else is additive. `operations` and `paths` now type the error responses each endpoint can return (`400`, `403`, `404`, `409`, `429`) with Canopy's error envelope, where before most declared only their success. The API's public operation count stays at 138.
|
|
12
|
+
|
|
3
13
|
## 0.3.12
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|