@synonymdev/pubky 0.16.0 → 0.16.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@synonymdev/pubky",
3
3
  "type": "module",
4
4
  "description": "Decentralized identity, auth flows, and user-owned storage",
5
- "version": "0.16.0",
5
+ "version": "0.16.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/pubky.d.ts CHANGED
@@ -2143,9 +2143,21 @@ export class Signer {
2143
2143
  free(): void;
2144
2144
  [Symbol.dispose](): void;
2145
2145
  /**
2146
- * Approve a `pubkyauth://` request URL (encrypts & POSTs the signed AuthToken).
2146
+ * Approve all capabilities in a `pubkyauth://` auth request URL.
2147
2147
  */
2148
2148
  approveAuthRequest(pubkyauth_url: string): Promise<void>;
2149
+ /**
2150
+ * Approve selected capabilities in a `pubkyauth://` auth request URL.
2151
+ *
2152
+ * Scopes and actions must be covered by the request. An empty string
2153
+ * approves no capabilities. V1 grants deliver keys only for approved `e`
2154
+ * scopes. Supports grant and legacy signin/signup requests.
2155
+ * Invalid capabilities or approvals exceeding the request fail before POST.
2156
+ *
2157
+ * @example
2158
+ * await signer.approveAuthWithCapabilities(authUrl, "/pub/example.app/:r");
2159
+ */
2160
+ approveAuthWithCapabilities(pubkyauth_url: string, approved_capabilities: string): Promise<void>;
2149
2161
  /**
2150
2162
  * Create a signer from a `Keypair` (prefer `pubky.signer(kp)`).
2151
2163
  *
package/pubky_bg.wasm CHANGED
Binary file