@toon-protocol/client 0.12.0 → 0.14.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/dist/chunk-QEMD5EAI.js +441 -0
- package/dist/chunk-QEMD5EAI.js.map +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.js +53 -5
- package/dist/index.js.map +1 -1
- package/dist/render/index.d.ts +807 -0
- package/dist/render/index.js +55 -0
- package/dist/render/index.js.map +1 -0
- package/package.json +13 -2
package/dist/index.js
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GenerativeFallbackRenderer,
|
|
3
|
+
KindRegistry,
|
|
4
|
+
MIME_A2UI,
|
|
5
|
+
MIME_MCP_APP,
|
|
6
|
+
RendererPinStore,
|
|
7
|
+
UI_RENDERER_KIND,
|
|
8
|
+
UI_TAG,
|
|
9
|
+
buildConsentRequest,
|
|
10
|
+
buildRendererEventTemplate,
|
|
11
|
+
buildUiCoordinate,
|
|
12
|
+
classifyIntent,
|
|
13
|
+
deterministicGenerator,
|
|
14
|
+
extractUiResource,
|
|
15
|
+
getUiCoordinate,
|
|
16
|
+
guardedRenderDispatch,
|
|
17
|
+
isTrustDowngrade,
|
|
18
|
+
parseUiCoordinate,
|
|
19
|
+
publishBackCoordinate,
|
|
20
|
+
renderDeterministicHtml,
|
|
21
|
+
renderDispatch,
|
|
22
|
+
resolveRendererMime,
|
|
23
|
+
resolveUiCoordinate,
|
|
24
|
+
resolveUiRenderer,
|
|
25
|
+
selectLatestAddressable,
|
|
26
|
+
verifyRendererTrust
|
|
27
|
+
} from "./chunk-QEMD5EAI.js";
|
|
28
|
+
|
|
1
29
|
// src/ToonClient.ts
|
|
2
30
|
import { generateSecretKey as generateSecretKey3, getPublicKey as getPublicKey2, finalizeEvent } from "nostr-tools/pure";
|
|
3
31
|
|
|
@@ -5308,11 +5336,6 @@ async function fundWallet(faucetUrl, address, chain, options = {}) {
|
|
|
5308
5336
|
if (!address) {
|
|
5309
5337
|
throw new Error("fundWallet: address is required");
|
|
5310
5338
|
}
|
|
5311
|
-
if (chain === "solana" || chain === "mina") {
|
|
5312
|
-
throw new Error(
|
|
5313
|
-
`fundWallet: ${chain} faucet funding is deferred (WS3) \u2014 not yet implemented`
|
|
5314
|
-
);
|
|
5315
|
-
}
|
|
5316
5339
|
const base = faucetUrl.replace(/\/+$/, "");
|
|
5317
5340
|
const url = `${base}${faucetPath(chain)}`;
|
|
5318
5341
|
const fetchImpl = options.fetchImpl ?? fetch;
|
|
@@ -6403,6 +6426,7 @@ export {
|
|
|
6403
6426
|
ChannelManager,
|
|
6404
6427
|
ConnectorError,
|
|
6405
6428
|
EvmSigner,
|
|
6429
|
+
GenerativeFallbackRenderer,
|
|
6406
6430
|
Http402Client,
|
|
6407
6431
|
HttpConnectorAdmin,
|
|
6408
6432
|
HttpIlpClient,
|
|
@@ -6411,27 +6435,39 @@ export {
|
|
|
6411
6435
|
ILP_CLAIM_WRAPPED_HEADER,
|
|
6412
6436
|
ILP_PEER_ID_HEADER,
|
|
6413
6437
|
KeyManager,
|
|
6438
|
+
KindRegistry,
|
|
6439
|
+
MIME_A2UI,
|
|
6440
|
+
MIME_MCP_APP,
|
|
6414
6441
|
MinaSigner,
|
|
6415
6442
|
NetworkError,
|
|
6416
6443
|
OnChainChannelClient,
|
|
6444
|
+
RendererPinStore,
|
|
6417
6445
|
SolanaSigner,
|
|
6418
6446
|
ToonClient,
|
|
6419
6447
|
ToonClientError,
|
|
6448
|
+
UI_RENDERER_KIND,
|
|
6449
|
+
UI_TAG,
|
|
6420
6450
|
ValidationError,
|
|
6421
6451
|
applyDefaults,
|
|
6422
6452
|
applyNetworkPresets,
|
|
6423
6453
|
buildBackupEvent,
|
|
6424
6454
|
buildBackupFilter,
|
|
6455
|
+
buildConsentRequest,
|
|
6425
6456
|
buildPetInteractionRequest,
|
|
6426
6457
|
buildPetListingEvent,
|
|
6427
6458
|
buildPetPurchaseRequest,
|
|
6459
|
+
buildRendererEventTemplate,
|
|
6428
6460
|
buildSettlementInfo,
|
|
6429
6461
|
buildStoreWriteEnvelope,
|
|
6462
|
+
buildUiCoordinate,
|
|
6463
|
+
classifyIntent,
|
|
6430
6464
|
decryptMnemonic2 as decryptMnemonic,
|
|
6431
6465
|
deriveFromNsec,
|
|
6432
6466
|
deriveFullIdentity,
|
|
6433
6467
|
deriveNostrKeyFromMnemonic,
|
|
6468
|
+
deterministicGenerator,
|
|
6434
6469
|
encryptMnemonic2 as encryptMnemonic,
|
|
6470
|
+
extractUiResource,
|
|
6435
6471
|
filterPetDvmProviders,
|
|
6436
6472
|
filterPetListings,
|
|
6437
6473
|
fundWallet,
|
|
@@ -6439,25 +6475,37 @@ export {
|
|
|
6439
6475
|
generateMnemonic,
|
|
6440
6476
|
generateRandomIdentity,
|
|
6441
6477
|
getNetworkStatus,
|
|
6478
|
+
getUiCoordinate,
|
|
6479
|
+
guardedRenderDispatch,
|
|
6442
6480
|
httpEndpointToBtpUrl,
|
|
6443
6481
|
importKeystore,
|
|
6444
6482
|
isPrfSupported,
|
|
6483
|
+
isTrustDowngrade,
|
|
6445
6484
|
loadKeystore,
|
|
6446
6485
|
parseBackupPayload,
|
|
6447
6486
|
parseHttpResponse,
|
|
6448
6487
|
parsePetInteractionEvent,
|
|
6449
6488
|
parsePetInteractionResult,
|
|
6450
6489
|
parsePetListing,
|
|
6490
|
+
parseUiCoordinate,
|
|
6451
6491
|
parseX402Body,
|
|
6452
6492
|
parseX402Challenge,
|
|
6453
6493
|
proxyIlpEndpoint,
|
|
6494
|
+
publishBackCoordinate,
|
|
6454
6495
|
readDiscoveredIlpPeer,
|
|
6455
6496
|
readMinaDepositTotal,
|
|
6497
|
+
renderDeterministicHtml,
|
|
6498
|
+
renderDispatch,
|
|
6456
6499
|
requestBlobStorage,
|
|
6500
|
+
resolveRendererMime,
|
|
6501
|
+
resolveUiCoordinate,
|
|
6502
|
+
resolveUiRenderer,
|
|
6457
6503
|
selectIlpTransport,
|
|
6504
|
+
selectLatestAddressable,
|
|
6458
6505
|
serializeHttpRequest,
|
|
6459
6506
|
validateConfig,
|
|
6460
6507
|
validateMnemonic,
|
|
6508
|
+
verifyRendererTrust,
|
|
6461
6509
|
withRetry,
|
|
6462
6510
|
writeKeystoreFile
|
|
6463
6511
|
};
|