@waiaas/wallet-sdk 2.11.0-rc.8 → 2.11.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/README.md +5 -5
- package/dist/channels/ntfy.d.ts +7 -4
- package/dist/channels/ntfy.d.ts.map +1 -1
- package/dist/channels/ntfy.js +7 -4
- package/dist/channels/ntfy.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -133,7 +133,7 @@ waiaas quickset # Creates wallets + sessions automatically
|
|
|
133
133
|
waiaas set-master # (Later) Harden password, then delete recovery.key
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
The `--auto-provision` flag generates a cryptographically random master password and saves it to `~/.waiaas/recovery.key`. All subsequent CLI commands read it automatically. See the [Agent Self-Setup Guide](docs/guides/agent-self-setup.md) for the complete flow.
|
|
136
|
+
The `--auto-provision` flag generates a cryptographically random master password and saves it to `~/.waiaas/recovery.key`. All subsequent CLI commands read it automatically. See the [Agent Self-Setup Guide](docs/agent-guides/agent-self-setup.md) for the complete flow.
|
|
137
137
|
|
|
138
138
|
For manual setup with human-guided password entry, install skills and follow `waiaas-setup/SKILL.md`:
|
|
139
139
|
|
|
@@ -215,10 +215,10 @@ Enabled by default (`admin_ui = true` in config.toml).
|
|
|
215
215
|
| [Security Model](docs/security-model.md) | Authentication, policy engine, Kill Switch, AutoStop |
|
|
216
216
|
| [Deployment Guide](docs/deployment.md) | Docker, npm, configuration reference |
|
|
217
217
|
| [API Reference](docs/api-reference.md) | REST API endpoints and authentication |
|
|
218
|
-
| [Agent Self-Setup Guide](docs/guides/agent-self-setup.md) | Fully autonomous setup with auto-provision |
|
|
219
|
-
| [Agent Skills Integration](docs/guides/agent-skills-integration.md) | Universal guide for 27+ AI agent platforms |
|
|
220
|
-
| [Claude Code Integration](docs/guides/claude-code-integration.md) | Skill files + MCP server setup for Claude Code |
|
|
221
|
-
| [OpenClaw Integration](docs/guides/openclaw-integration.md) | Quick setup for OpenClaw bot |
|
|
218
|
+
| [Agent Self-Setup Guide](docs/agent-guides/agent-self-setup.md) | Fully autonomous setup with auto-provision |
|
|
219
|
+
| [Agent Skills Integration](docs/agent-guides/agent-skills-integration.md) | Universal guide for 27+ AI agent platforms |
|
|
220
|
+
| [Claude Code Integration](docs/agent-guides/claude-code-integration.md) | Skill files + MCP server setup for Claude Code |
|
|
221
|
+
| [OpenClaw Integration](docs/agent-guides/openclaw-integration.md) | Quick setup for OpenClaw bot |
|
|
222
222
|
| [Wallet SDK Integration](docs/wallet-sdk-integration.md) | Integration guide for wallet developers |
|
|
223
223
|
| [Why WAIaaS?](docs/why-waiaas/) | Background on AI agent wallet security |
|
|
224
224
|
| [Contributing](CONTRIBUTING.md) | Development setup, code style, testing, PR guidelines |
|
package/dist/channels/ntfy.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ntfy channel functions for the WAIaaS Signing Protocol.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* parseNotification - Decode and validate base64url NotificationMessage.
|
|
4
|
+
* @deprecated All functions in this module are deprecated. Use Push Relay
|
|
5
|
+
* functions (sendViaRelay, registerDevice, etc.) from the relay channel instead.
|
|
6
|
+
* These will be removed in the next major version.
|
|
8
7
|
*
|
|
9
8
|
* @see internal/design/73-signing-protocol-v1.md Section 7.4
|
|
10
9
|
* @see internal/design/74-wallet-sdk-daemon-components.md Section 2.6
|
|
@@ -15,6 +14,7 @@ import type { SignRequest, SignResponse, NotificationMessage } from '@waiaas/cor
|
|
|
15
14
|
*
|
|
16
15
|
* Encodes the response as base64url and POSTs it to the ntfy server.
|
|
17
16
|
*
|
|
17
|
+
* @deprecated Use Push Relay functions (sendViaRelay) instead. Will be removed in next major version.
|
|
18
18
|
* @param response - Validated SignResponse object
|
|
19
19
|
* @param responseTopic - ntfy topic name for responses
|
|
20
20
|
* @param serverUrl - ntfy server URL (defaults to https://ntfy.sh)
|
|
@@ -26,6 +26,7 @@ export declare function sendViaNtfy(response: SignResponse, responseTopic: strin
|
|
|
26
26
|
* Listens for new messages on the specified ntfy topic and parses them
|
|
27
27
|
* as SignRequest objects. Valid, non-expired requests trigger the callback.
|
|
28
28
|
*
|
|
29
|
+
* @deprecated Use Push Relay device registration instead. Will be removed in next major version.
|
|
29
30
|
* @param topic - ntfy topic name for incoming sign requests
|
|
30
31
|
* @param callback - Function called for each valid SignRequest received
|
|
31
32
|
* @param serverUrl - ntfy server URL (defaults to https://ntfy.sh)
|
|
@@ -40,6 +41,7 @@ export declare function subscribeToRequests(topic: string, callback: (request: S
|
|
|
40
41
|
* Decodes the base64url string, parses JSON, and validates against
|
|
41
42
|
* NotificationMessageSchema.
|
|
42
43
|
*
|
|
44
|
+
* @deprecated Use Push Relay notification parsing instead. Will be removed in next major version.
|
|
43
45
|
* @param data - base64url-encoded NotificationMessage JSON string
|
|
44
46
|
* @returns Validated NotificationMessage object
|
|
45
47
|
* @throws Error if decoding, parsing, or validation fails
|
|
@@ -52,6 +54,7 @@ export declare function parseNotification(data: string): NotificationMessage;
|
|
|
52
54
|
* as NotificationMessage objects via parseNotification().
|
|
53
55
|
* Valid messages trigger the callback.
|
|
54
56
|
*
|
|
57
|
+
* @deprecated Use Push Relay device registration instead. Will be removed in next major version.
|
|
55
58
|
* @param topic - ntfy topic name (e.g., 'waiaas-notify-trading-bot')
|
|
56
59
|
* @param callback - Function called for each valid NotificationMessage received
|
|
57
60
|
* @param serverUrl - ntfy server URL (defaults to https://ntfy.sh)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ntfy.d.ts","sourceRoot":"","sources":["../../src/channels/ntfy.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ntfy.d.ts","sourceRoot":"","sources":["../../src/channels/ntfy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA+BnF;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,MAAM,EACrB,SAAS,GAAE,MAA2B,GACrC,OAAO,CAAC,IAAI,CAAC,CAef;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,EACxC,SAAS,GAAE,MAA2B,GACrC;IAAE,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAmF7B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAInE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,EAChD,SAAS,GAAE,MAA2B,GACrC;IAAE,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAqE7B"}
|
package/dist/channels/ntfy.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ntfy channel functions for the WAIaaS Signing Protocol.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* parseNotification - Decode and validate base64url NotificationMessage.
|
|
4
|
+
* @deprecated All functions in this module are deprecated. Use Push Relay
|
|
5
|
+
* functions (sendViaRelay, registerDevice, etc.) from the relay channel instead.
|
|
6
|
+
* These will be removed in the next major version.
|
|
8
7
|
*
|
|
9
8
|
* @see internal/design/73-signing-protocol-v1.md Section 7.4
|
|
10
9
|
* @see internal/design/74-wallet-sdk-daemon-components.md Section 2.6
|
|
@@ -33,6 +32,7 @@ async function resolveMessage(event) {
|
|
|
33
32
|
*
|
|
34
33
|
* Encodes the response as base64url and POSTs it to the ntfy server.
|
|
35
34
|
*
|
|
35
|
+
* @deprecated Use Push Relay functions (sendViaRelay) instead. Will be removed in next major version.
|
|
36
36
|
* @param response - Validated SignResponse object
|
|
37
37
|
* @param responseTopic - ntfy topic name for responses
|
|
38
38
|
* @param serverUrl - ntfy server URL (defaults to https://ntfy.sh)
|
|
@@ -55,6 +55,7 @@ export async function sendViaNtfy(response, responseTopic, serverUrl = DEFAULT_S
|
|
|
55
55
|
* Listens for new messages on the specified ntfy topic and parses them
|
|
56
56
|
* as SignRequest objects. Valid, non-expired requests trigger the callback.
|
|
57
57
|
*
|
|
58
|
+
* @deprecated Use Push Relay device registration instead. Will be removed in next major version.
|
|
58
59
|
* @param topic - ntfy topic name for incoming sign requests
|
|
59
60
|
* @param callback - Function called for each valid SignRequest received
|
|
60
61
|
* @param serverUrl - ntfy server URL (defaults to https://ntfy.sh)
|
|
@@ -138,6 +139,7 @@ export function subscribeToRequests(topic, callback, serverUrl = DEFAULT_SERVER_
|
|
|
138
139
|
* Decodes the base64url string, parses JSON, and validates against
|
|
139
140
|
* NotificationMessageSchema.
|
|
140
141
|
*
|
|
142
|
+
* @deprecated Use Push Relay notification parsing instead. Will be removed in next major version.
|
|
141
143
|
* @param data - base64url-encoded NotificationMessage JSON string
|
|
142
144
|
* @returns Validated NotificationMessage object
|
|
143
145
|
* @throws Error if decoding, parsing, or validation fails
|
|
@@ -154,6 +156,7 @@ export function parseNotification(data) {
|
|
|
154
156
|
* as NotificationMessage objects via parseNotification().
|
|
155
157
|
* Valid messages trigger the callback.
|
|
156
158
|
*
|
|
159
|
+
* @deprecated Use Push Relay device registration instead. Will be removed in next major version.
|
|
157
160
|
* @param topic - ntfy topic name (e.g., 'waiaas-notify-trading-bot')
|
|
158
161
|
* @param callback - Function called for each valid NotificationMessage received
|
|
159
162
|
* @param serverUrl - ntfy server URL (defaults to https://ntfy.sh)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ntfy.js","sourceRoot":"","sources":["../../src/channels/ntfy.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ntfy.js","sourceRoot":"","sources":["../../src/channels/ntfy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAE5E,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAC7C,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACjC,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAWjC;;;;GAIG;AACH,KAAK,UAAU,cAAc,CAAC,KAAgB;IAC5C,IAAI,KAAK,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC;QAC1B,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;QACzB,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAA4B,CAAC;QAC3D,OAAO,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAChE,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC;AAC/B,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,QAAsB,EACtB,aAAqB,EACrB,YAAoB,kBAAkB;IAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAEjE,MAAM,GAAG,GAAG,GAAG,SAAS,IAAI,aAAa,EAAE,CAAC;IAC5C,MAAM,GAAG,G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AAC;wBAC5C,IAAI,CAAC,OAAO;4BAAE,SAAS;wBAEvB,MAAM,YAAY,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;wBAChD,QAAQ,CAAC,YAAY,CAAC,CAAC;oBACzB,CAAC;oBAAC,MAAM,CAAC;wBACP,4BAA4B;oBAC9B,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,IAAI,EAAE,CAAC;YACd,IAAI,eAAe,CAAC,MAAM,CAAC,OAAO;gBAAE,OAAO;YAE3C,iBAAiB,EAAE,CAAC;YACpB,IAAI,iBAAiB,IAAI,sBAAsB,EAAE,CAAC;gBAChD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAC5B,UAAU,CAAC,OAAO,EAAE,kBAAkB,CAAC,CACxC,CAAC;gBACF,KAAK,OAAO,EAAE,CAAC;YACjB,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,OAAO,EAAE,CAAC;IAEf,OAAO;QACL,WAAW;YACT,eAAe,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
* - parseSignRequest(url) - Extract SignRequest from universal link URL
|
|
8
8
|
* - buildSignResponse(requestId, action, signature?, signerAddress) - Create SignResponse
|
|
9
9
|
* - formatDisplayMessage(request) - Human-readable transaction summary
|
|
10
|
-
* - sendViaNtfy(response, topic, serverUrl?) - Publish to ntfy response topic
|
|
10
|
+
* - sendViaNtfy(response, topic, serverUrl?) - (deprecated) Publish to ntfy response topic
|
|
11
11
|
* - sendViaRelay(response, topic, pushRelayUrl) - Send via Push Relay server
|
|
12
12
|
* - registerDevice(pushRelayUrl, apiKey, opts) - Register device with Push Relay
|
|
13
13
|
* - unregisterDevice(pushRelayUrl, apiKey, pushToken) - Unregister device from Push Relay
|
|
14
14
|
* - getSubscriptionToken(pushRelayUrl, apiKey, pushToken) - Get subscription token for device
|
|
15
15
|
* - sendViaTelegram(response, botUsername) - Generate Telegram deeplink URL
|
|
16
|
-
* - subscribeToRequests(topic, callback, serverUrl?) - SSE subscription for sign requests
|
|
17
|
-
* - subscribeToNotifications(topic, callback, serverUrl?) - SSE subscription for notifications
|
|
18
|
-
* - parseNotification(data) - Decode and validate base64url NotificationMessage
|
|
16
|
+
* - subscribeToRequests(topic, callback, serverUrl?) - (deprecated) SSE subscription for sign requests
|
|
17
|
+
* - subscribeToNotifications(topic, callback, serverUrl?) - (deprecated) SSE subscription for notifications
|
|
18
|
+
* - parseNotification(data) - (deprecated) Decode and validate base64url NotificationMessage
|
|
19
19
|
*
|
|
20
20
|
* @see internal/design/73-signing-protocol-v1.md
|
|
21
21
|
* @see internal/design/74-wallet-sdk-daemon-components.md
|
package/dist/index.js
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
* - parseSignRequest(url) - Extract SignRequest from universal link URL
|
|
8
8
|
* - buildSignResponse(requestId, action, signature?, signerAddress) - Create SignResponse
|
|
9
9
|
* - formatDisplayMessage(request) - Human-readable transaction summary
|
|
10
|
-
* - sendViaNtfy(response, topic, serverUrl?) - Publish to ntfy response topic
|
|
10
|
+
* - sendViaNtfy(response, topic, serverUrl?) - (deprecated) Publish to ntfy response topic
|
|
11
11
|
* - sendViaRelay(response, topic, pushRelayUrl) - Send via Push Relay server
|
|
12
12
|
* - registerDevice(pushRelayUrl, apiKey, opts) - Register device with Push Relay
|
|
13
13
|
* - unregisterDevice(pushRelayUrl, apiKey, pushToken) - Unregister device from Push Relay
|
|
14
14
|
* - getSubscriptionToken(pushRelayUrl, apiKey, pushToken) - Get subscription token for device
|
|
15
15
|
* - sendViaTelegram(response, botUsername) - Generate Telegram deeplink URL
|
|
16
|
-
* - subscribeToRequests(topic, callback, serverUrl?) - SSE subscription for sign requests
|
|
17
|
-
* - subscribeToNotifications(topic, callback, serverUrl?) - SSE subscription for notifications
|
|
18
|
-
* - parseNotification(data) - Decode and validate base64url NotificationMessage
|
|
16
|
+
* - subscribeToRequests(topic, callback, serverUrl?) - (deprecated) SSE subscription for sign requests
|
|
17
|
+
* - subscribeToNotifications(topic, callback, serverUrl?) - (deprecated) SSE subscription for notifications
|
|
18
|
+
* - parseNotification(data) - (deprecated) Decode and validate base64url NotificationMessage
|
|
19
19
|
*
|
|
20
20
|
* @see internal/design/73-signing-protocol-v1.md
|
|
21
21
|
* @see internal/design/74-wallet-sdk-daemon-components.md
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waiaas/wallet-sdk",
|
|
3
|
-
"version": "2.11.0
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "WAIaaS Wallet Signing SDK - integrate wallet apps with WAIaaS signing protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"zod": "^3.24.0",
|
|
36
|
-
"@waiaas/core": "2.11.0
|
|
36
|
+
"@waiaas/core": "2.11.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^25.2.3",
|