@canopy-io/node 0.27.0 → 0.28.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 +15 -0
- package/README.md +6 -0
- package/dist/index.d.cts +258 -186
- package/dist/index.d.ts +258 -186
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @canopy-io/node
|
|
2
2
|
|
|
3
|
+
## 0.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 30c915c: Follows Canopy's release that makes organizations, multi-factor authentication for end users, passkey sign-in and more than two social sign-in providers per Environment depend on the Account's plan. The generated types change as follows.
|
|
8
|
+
|
|
9
|
+
- The plan entitlements answer (`GET /api/v1/billing/entitlements`) adds `limits` (`social_providers`, the providers each Environment may count, or null for no limit) and `required_plans` (for each feature that is off and each limit that is a number, the lowest plan that lifts it, or null when none does). The feature map, here and in the usage answer, adds `organizations`, `mfa`, `passkey_sign_in` and `brand_removal`.
|
|
10
|
+
- The schema `MfaFactorResponseDto` is renamed `IdentityEnrolledFactorResponseDto` and adds `second_factor`, false for a passkey added only to sign in with. A caller naming the schema, for example `Schema<"MfaFactorResponseDto">`, names `IdentityEnrolledFactorResponseDto` instead. `mfa_enrolled` and `mfa_factor_count` on an identity's auth state now count second factors only, and `mfa_admin_reset_at` records only a reset that removed a factor.
|
|
11
|
+
- A social provider adds `holds_place`: a custom provider turned off by a change to its discovery URL or client still counts against the plan's limit until it is turned on again or saved with `enabled: false`.
|
|
12
|
+
- What the caller administers in an organization (`GET /api/v1/organizations/{id}/me`) adds `plan_includes_mfa`, `sso_in_use` and `directory_in_use`.
|
|
13
|
+
- The routes that now refuse on the plan say so in their existing responses: `403 plan_feature_unavailable` on creating an organization, switching the organizations container on, turning on or tightening MFA in the auth settings or an organization's policy, turning on passkey sign-in in the auth settings, importing an Environment and creating one with `copy_from`; `409 plan_limit_exceeded` on turning on a social provider past the limit and on creating an organization past the plan's organization limit. No operation or response status is added or removed.
|
|
14
|
+
- Reading, removing, turning off and unlinking SSO connections, domains, SCIM directories, tokens and group mappings, on the Account and in an organization, no longer refuse on the plan; adding, changing and turning them on still do. An organization's own administrator, signed in with their own token, is refused with `auth.not_available` rather than a plan refusal.
|
|
15
|
+
|
|
16
|
+
The README says which organization calls depend on the Account's plan and how the refusal names the plan.
|
|
17
|
+
|
|
3
18
|
## 0.27.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -298,6 +298,12 @@ The organizations themselves are wrapped on the client: provision a tenant,
|
|
|
298
298
|
manage its members and invitations, tighten its sign-in policy, bind its
|
|
299
299
|
identity provider, and set up its directory sync.
|
|
300
300
|
|
|
301
|
+
Some of this depends on the Account's plan: creating an organization, and
|
|
302
|
+
requiring a second factor or single sign-on in its policy. Where the plan
|
|
303
|
+
does not include one, the call is refused with `plan_feature_unavailable`,
|
|
304
|
+
and the error's `data.required_plan` names the plan that does. Everything
|
|
305
|
+
inside an organization that already exists works on every plan.
|
|
306
|
+
|
|
301
307
|
```ts
|
|
302
308
|
const acme = await canopy.organizations.create({ name: "Acme Corp" });
|
|
303
309
|
|