@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/README.md +14 -0
- package/index.cjs +65 -43
- package/index.js +66 -44
- package/package.json +1 -1
- package/pubky.d.ts +13 -1
- package/pubky_bg.wasm +0 -0
package/package.json
CHANGED
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
|
|
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
|