@witnium/witniumchain 0.28.0 → 0.28.2

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
@@ -240,7 +240,7 @@ var WitniumchainClient = class {
240
240
  apiKeys;
241
241
  /** The signed-in member's dashboard signing key on a managed contract. `client.dashboardKey.*`. */
242
242
  dashboardKey;
243
- /** The home org's managed contract: pause, resume, activity. `client.orgContract.*`. */
243
+ /** The home org's managed contract: pause, resume, activity, keys you hold. `client.orgContract.*`. */
244
244
  orgContract;
245
245
  keyRequests;
246
246
  constructor(config) {
@@ -320,15 +320,15 @@ var WitniumchainClient = class {
320
320
  }
321
321
  /**
322
322
  * Add a key you hold to the org's managed contract (plan §17.7): org
323
- * admins, after a step-up. Witnium signs the add; the key counts once
324
- * the returned op confirms.
323
+ * admins, after a step-up (a bearer token needs a fresh `auth_time`).
324
+ * Witnium signs the add; the key counts once the returned op confirms.
325
325
  */
326
326
  addOrgContractKey(body) {
327
- return this.req("POST", "/v1/orgs/me/contract/keys", { auth: "SessionCookie", body });
327
+ return this.req("POST", "/v1/orgs/me/contract/keys", { auth: "SessionOrBearer", body });
328
328
  }
329
329
  /** Revoke a key added with {@link addOrgContractKey} (org admins). */
330
330
  removeOrgContractKey(publicKey) {
331
- return this.req("DELETE", `/v1/orgs/me/contract/keys/${encodeURIComponent(publicKey)}`, { auth: "SessionCookie" });
331
+ return this.req("DELETE", `/v1/orgs/me/contract/keys/${encodeURIComponent(publicKey)}`, { auth: "SessionOrBearer" });
332
332
  }
333
333
  /** Needs a step-up within 5 minutes (`client.security.stepUp`). */
334
334
  resumeOrgContract() {