@solarpunkltd/swarm-id 0.8.2 → 0.10.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.
Files changed (35) hide show
  1. package/README.md +17 -7
  2. package/dist/bus/account-bus.d.ts +12 -0
  3. package/dist/bus/messages.d.ts +12 -0
  4. package/dist/bus/signaling-transport.d.ts +2 -0
  5. package/dist/chunks/ccip-BEanftc1.js +2 -0
  6. package/dist/chunks/ccip-BEanftc1.js.map +1 -0
  7. package/dist/chunks/{chat-binding-DgECjSWW.js → chat-binding-gSvKTm5l.js} +15 -15
  8. package/dist/chunks/chat-binding-gSvKTm5l.js.map +1 -0
  9. package/dist/chunks/index-BbRV2bja.js +2 -0
  10. package/dist/chunks/index-BbRV2bja.js.map +1 -0
  11. package/dist/index.d.ts +5 -1
  12. package/dist/internal.d.ts +3 -1
  13. package/dist/internal.esm.js +1 -1
  14. package/dist/internal.esm.js.map +1 -1
  15. package/dist/schemas.d.ts +59 -0
  16. package/dist/swarm-id-button-frame.d.ts +77 -0
  17. package/dist/swarm-id-client.d.ts +64 -69
  18. package/dist/swarm-id-proxy.d.ts +47 -55
  19. package/dist/swarm-id.esm.js +1 -1
  20. package/dist/swarm-id.esm.js.map +1 -1
  21. package/dist/sync/device-state.d.ts +16 -7
  22. package/dist/sync/index.d.ts +2 -1
  23. package/dist/sync/published-wallet-link.d.ts +27 -0
  24. package/dist/types.d.ts +374 -64
  25. package/dist/utils/button-view.d.ts +16 -0
  26. package/dist/utils/ens-name.d.ts +33 -0
  27. package/dist/utils/ens.d.ts +13 -0
  28. package/dist/utils/json-rpc.d.ts +5 -0
  29. package/dist/utils/personal-sign.d.ts +17 -0
  30. package/dist/utils/postage-stamp-association.d.ts +24 -25
  31. package/dist/utils/site-allow-list.d.ts +0 -4
  32. package/dist/utils/storage-probe.d.ts +20 -10
  33. package/dist/utils/wallet-link.d.ts +70 -0
  34. package/package.json +2 -1
  35. package/dist/chunks/chat-binding-DgECjSWW.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * directly, and tests do the same.
8
8
  */
9
9
  export { SwarmIdClient } from "./swarm-id-client";
10
- export type { ClientOptions, AuthStatus, ConnectionInfo, Avatar, AvatarSource, PostageBatch, AppMetadata, ButtonConfig, RequestOptions, UploadOptions, DownloadOptions, UploadResult, UploadUnavailableReason, FileData, SingleOwnerChunk, SocUploadResult, SocRawUploadResult, StampChunkInput, StampedChunk, SOCReader, SOCWriter, FeedReader, FeedWriter, SequentialFeedReader, SequentialFeedWriter, SequentialFeedPayloadResult, SequentialFeedReferenceResult, SequentialFeedUploadResult, ActUploadOptions, UploadFilesOptions, CollectionFileInput, CollectionEntry, } from "./types";
10
+ export type { ClientOptions, AuthStatus, ConnectionInfo, Avatar, AvatarSource, PostageBatch, AppMetadata, ButtonAction, ButtonConfig, ButtonFontFace, ButtonWindowState, MountButtonOptions, MountedButton, RequestOptions, UploadOptions, DownloadOptions, UploadResult, UploadUnavailableReason, FileData, SingleOwnerChunk, SocUploadResult, SocRawUploadResult, StampChunkInput, StampedChunk, SOCReader, SOCWriter, FeedReader, FeedWriter, SequentialFeedReader, SequentialFeedWriter, SequentialFeedPayloadResult, SequentialFeedReferenceResult, SequentialFeedUploadResult, ActUploadOptions, UploadFilesOptions, CollectionFileInput, CollectionEntry, } from "./types";
11
11
  export type { Reference } from "./schemas";
12
12
  export { DEFAULT_BEE_NODE_URL } from "./schemas";
13
13
  export { generatedAvatar, generatedAvatarSvg } from "./utils/avatar";
@@ -25,3 +25,7 @@ export { jsonRpcCall, jsonRpcBatch } from "./utils/json-rpc";
25
25
  export type { JsonRpcOptions } from "./utils/json-rpc";
26
26
  export { CHAT_BINDING_TITLE, acceptedChatBinding, buildChatBindingMessage, isCleanSiteOrigin, parseChatBindingMessage, verifyChatBinding, } from "./utils/chat-binding";
27
27
  export type { ChatBinding, ChatBindingFields, ExpectedChatBinding, SiteOriginOptions, VerifiedChatBinding, } from "./utils/chat-binding";
28
+ export { WALLET_LINK_STATEMENT, WALLET_LINK_TITLE, buildWalletLinkMessage, parseWalletLinkMessage, verifyWalletLink, } from "./utils/wallet-link";
29
+ export type { ExpectedWalletLink, VerifiedWalletLink, WalletLink, WalletLinkFields, } from "./utils/wallet-link";
30
+ export { ENS_NAME_CACHE_MS, ENS_NAME_FAILURE_CACHE_MS, resolveVerifiedEnsName, } from "./utils/ens-name";
31
+ export type { EnsNameOptions } from "./utils/ens-name";
@@ -19,11 +19,12 @@ export { downloadEncryptedSOC } from "./proxy/download-data";
19
19
  export { SocUploadError, uploadSOC } from "./proxy/upload";
20
20
  export type { UploadTarget } from "./proxy/upload";
21
21
  export { BatchIdSchema, DEFAULT_GNOSIS_RPC_URL, LocalAccountSchemaV1, NO_POSTAGE_STAMP, NetworkSettingsSchemaV1, PostageStampSchemaV1, PrivateKeySchema, SyncedAccountSchemaV1, isSignedOutAccount, } from "./schemas";
22
- export type { AccessMethod, Account, ConnectedApp, Device, LocalVault, NetworkSettings, PostageStamp, SignedInAccount, SignedOutAccount, SyncedAccount, } from "./schemas";
22
+ export type { AccessMethod, Account, AccountSettings, ConnectedApp, Device, LocalVault, NetworkSettings, PostageStamp, SignedInAccount, SignedOutAccount, SyncedAccount, } from "./schemas";
23
23
  export { DebouncedUtilizationUploader } from "./storage/debounced-uploader";
24
24
  export { PASSWORD_KDF_ITERATIONS, decryptSeed, deriveKeyFromPassword, deriveKeyFromPrf, deriveKeyFromSecret, deriveKeyFromSignature, encryptSeed, randomSalt, } from "./utils/seed-encryption";
25
25
  export { UtilizationStoreDB } from "./storage/utilization-store";
26
26
  export { initProxy } from "./swarm-id-proxy";
27
+ export { initButtonFrame } from "./swarm-id-button-frame";
27
28
  export { createSyncAccount, deriveAccountDerivationKey, derivePostageSignerKey, deriveSwarmEncryptionKey, foldAccountFromSwarm, foldedToSyncedAccount, mergeConnectedApps, mergeDevicesList, mergePostageStamps, } from "./sync";
28
29
  export type { SyncAccountFunction, SyncResult } from "./sync";
29
30
  export { PartitionLease } from "./sync/partition-lease";
@@ -35,6 +36,7 @@ export { runCoalescedAcrossTabs } from "./utils/coalesced-task";
35
36
  export { DAY, appSessionDuration } from "./utils/constants";
36
37
  export { detectDeviceName, getOrCreateDeviceId, mergeDevices, } from "./utils/device-id";
37
38
  export { createChatBinding, onlySiteChatBinding, siteChatAddress, } from "./utils/chat-binding";
39
+ export { countersignWalletLink } from "./utils/wallet-link";
38
40
  export { DEFAULT_SITE_ALLOW_LIST_ENS_NAME, DEFAULT_SITE_ALLOW_LIST_RECORD_KEY, createSiteAllowList, } from "./utils/site-allow-list";
39
41
  export type { SiteAllowList, SiteAllowListSettings, SiteCheck, } from "./utils/site-allow-list";
40
42
  export { hexAddress } from "./utils/hex";