@canopy-io/node 0.4.0 → 0.6.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/dist/index.js CHANGED
@@ -550,29 +550,19 @@ var Identities = class {
550
550
  { body: input }
551
551
  );
552
552
  }
553
+ /**
554
+ * Takes the identity out of this key's Environment: its membership here is
555
+ * deactivated and its role assignments here are dropped. The identity and
556
+ * its access to other Environments are untouched. Deactivating an identity
557
+ * everywhere is an Account-level action, not available to an
558
+ * Environment-scoped key.
559
+ */
553
560
  delete(id) {
554
561
  return this.client.request(
555
562
  "DELETE",
556
563
  `/api/v1/identities/${encodeURIComponent(id)}`
557
564
  );
558
565
  }
559
- /**
560
- * Deactivation is the reversible counterpart to `delete` — sessions are
561
- * revoked and sign-in refused, but the identity and its assignments survive.
562
- * Prefer it for offboarding you may need to undo.
563
- */
564
- deactivate(id) {
565
- return this.client.request(
566
- "POST",
567
- `/api/v1/identities/${encodeURIComponent(id)}/deactivate`
568
- );
569
- }
570
- activate(id) {
571
- return this.client.request(
572
- "POST",
573
- `/api/v1/identities/${encodeURIComponent(id)}/activate`
574
- );
575
- }
576
566
  /**
577
567
  * Every role this identity holds, and where — across all pages.
578
568
  *
@@ -634,7 +624,7 @@ var Identities = class {
634
624
  * Ends every session the identity holds, so the next refresh on any device
635
625
  * fails and the person signs in again. Access tokens already issued keep
636
626
  * working until their short lifetime runs out. For a suspected compromise;
637
- * `deactivate` also refuses the next sign-in.
627
+ * `delete` also takes the identity out of this Environment.
638
628
  */
639
629
  revokeSessions(id) {
640
630
  return this.client.request(
@@ -1210,7 +1200,9 @@ var LocalAuthorizer = class {
1210
1200
  * With no argument, everything goes: grants and the hierarchy tree. Not
1211
1201
  * needed in normal operation, where entries expire on their own; useful in
1212
1202
  * tests and after a change whose reach you cannot name (a role's
1213
- * permissions edited, a node moved).
1203
+ * permissions edited, a role deactivated or reactivated, a node moved). A
1204
+ * deactivated role grants nothing to anyone holding it, so until the cache
1205
+ * is cleared or expires, its holders keep being allowed locally.
1214
1206
  *
1215
1207
  * Multi-instance honesty: an invalidation reaches THIS process only. A
1216
1208
  * webhook lands on one instance behind a load balancer; the others serve