@canopy-io/node 0.22.0 → 0.23.1
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 +12 -0
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +515 -177
- package/dist/index.d.ts +515 -177
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @canopy-io/node
|
|
2
2
|
|
|
3
|
+
## 0.23.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 68ef429: `identities.update` takes `{ ifMatch }`, so a save over someone else's newer change answers 409 instead of overwriting it. The generated types add `version` to identities, API keys, publishable keys, SCIM groups and the access model, `binding_version` to an organization's SSO connection, and the `If-Match` header on the routes that compare them. Nothing existing changes shape: a call that sends no version behaves as before.
|
|
8
|
+
|
|
9
|
+
## 0.23.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 739ee6b: The billing types follow the Starter plan. A plan code can be `starter`, and `DimensionUsage.limit` can be `null`, meaning no limit, so read it before comparing. The usage response gains `organizations`, and the entitlements response loses it. `plan_prices` lists `starter` and `pro`, each with its monthly and annual price. A subscription gains `scheduled_plan_code`, `promotion_code`, `discount` and `grace_ends_at`, and `GET /api/v1/organizations/:id/me` gains `plan_includes_sso` and `plan_includes_scim`.
|
|
14
|
+
|
|
3
15
|
## 0.22.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -582,11 +582,16 @@ var Identities = class {
|
|
|
582
582
|
create(input) {
|
|
583
583
|
return this.client.request("POST", "/api/v1/identities", { body: input });
|
|
584
584
|
}
|
|
585
|
-
|
|
585
|
+
/**
|
|
586
|
+
* Pass `ifMatch` with the identity's current `version` to make a
|
|
587
|
+
* read-modify-write safe: a concurrent edit answers 409 instead of being
|
|
588
|
+
* silently overwritten.
|
|
589
|
+
*/
|
|
590
|
+
update(id, input, options = {}) {
|
|
586
591
|
return this.client.request(
|
|
587
592
|
"PATCH",
|
|
588
593
|
`/api/v1/identities/${encodeURIComponent(id)}`,
|
|
589
|
-
{ body: input }
|
|
594
|
+
{ body: input, ...withConcurrency(options) }
|
|
590
595
|
);
|
|
591
596
|
}
|
|
592
597
|
/**
|