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