thirdweb 5.60.1 → 5.61.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/cjs/contract/deployment/utils/create-2-factory.js +53 -46
- package/dist/cjs/contract/deployment/utils/create-2-factory.js.map +1 -1
- package/dist/cjs/event/actions/get-events.js +4 -4
- package/dist/cjs/event/actions/get-events.js.map +1 -1
- package/dist/cjs/exports/extensions/unstoppable-domains.js +10 -0
- package/dist/cjs/exports/extensions/unstoppable-domains.js.map +1 -0
- package/dist/cjs/exports/react.js +4 -2
- package/dist/cjs/exports/react.js.map +1 -1
- package/dist/cjs/exports/react.native.js +3 -1
- package/dist/cjs/exports/react.native.js.map +1 -1
- package/dist/cjs/exports/wallets.js.map +1 -1
- package/dist/cjs/exports/wallets.native.js.map +1 -1
- package/dist/cjs/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.js +122 -0
- package/dist/cjs/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.js.map +1 -0
- package/dist/cjs/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.js +115 -0
- package/dist/cjs/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.js.map +1 -0
- package/dist/cjs/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.js +115 -0
- package/dist/cjs/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.js.map +1 -0
- package/dist/cjs/extensions/unstoppable-domains/consts.js +5 -0
- package/dist/cjs/extensions/unstoppable-domains/consts.js.map +1 -0
- package/dist/cjs/extensions/unstoppable-domains/read/resolveAddress.js +77 -0
- package/dist/cjs/extensions/unstoppable-domains/read/resolveAddress.js.map +1 -0
- package/dist/cjs/extensions/unstoppable-domains/read/resolveName.js +60 -0
- package/dist/cjs/extensions/unstoppable-domains/read/resolveName.js.map +1 -0
- package/dist/cjs/react/native/hooks/wallets/useLinkProfile.js +92 -0
- package/dist/cjs/react/native/hooks/wallets/useLinkProfile.js.map +1 -0
- package/dist/cjs/react/native/hooks/wallets/useProfiles.js +3 -4
- package/dist/cjs/react/native/hooks/wallets/useProfiles.js.map +1 -1
- package/dist/cjs/react/web/hooks/wallets/useLinkProfile.js +91 -0
- package/dist/cjs/react/web/hooks/wallets/useLinkProfile.js.map +1 -0
- package/dist/cjs/react/web/hooks/wallets/useProfiles.js +3 -4
- package/dist/cjs/react/web/hooks/wallets/useProfiles.js.map +1 -1
- package/dist/cjs/utils/any-evm/zksync/isZkSyncChain.js +2 -1
- package/dist/cjs/utils/any-evm/zksync/isZkSyncChain.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wallets/in-app/core/users/getUser.js +11 -8
- package/dist/cjs/wallets/in-app/core/users/getUser.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/native-connector.js +1 -0
- package/dist/cjs/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js +23 -16
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js +1 -0
- package/dist/cjs/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/esm/contract/deployment/utils/create-2-factory.js +53 -46
- package/dist/esm/contract/deployment/utils/create-2-factory.js.map +1 -1
- package/dist/esm/event/actions/get-events.js +4 -4
- package/dist/esm/event/actions/get-events.js.map +1 -1
- package/dist/esm/exports/extensions/unstoppable-domains.js +4 -0
- package/dist/esm/exports/extensions/unstoppable-domains.js.map +1 -0
- package/dist/esm/exports/react.js +1 -0
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/react.native.js +1 -0
- package/dist/esm/exports/react.native.js.map +1 -1
- package/dist/esm/exports/wallets.js.map +1 -1
- package/dist/esm/exports/wallets.native.js.map +1 -1
- package/dist/esm/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.js +114 -0
- package/dist/esm/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.js.map +1 -0
- package/dist/esm/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.js +107 -0
- package/dist/esm/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.js.map +1 -0
- package/dist/esm/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.js +107 -0
- package/dist/esm/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.js.map +1 -0
- package/dist/esm/extensions/unstoppable-domains/consts.js +2 -0
- package/dist/esm/extensions/unstoppable-domains/consts.js.map +1 -0
- package/dist/esm/extensions/unstoppable-domains/read/resolveAddress.js +74 -0
- package/dist/esm/extensions/unstoppable-domains/read/resolveAddress.js.map +1 -0
- package/dist/esm/extensions/unstoppable-domains/read/resolveName.js +57 -0
- package/dist/esm/extensions/unstoppable-domains/read/resolveName.js.map +1 -0
- package/dist/esm/react/native/hooks/wallets/useLinkProfile.js +89 -0
- package/dist/esm/react/native/hooks/wallets/useLinkProfile.js.map +1 -0
- package/dist/esm/react/native/hooks/wallets/useProfiles.js +3 -4
- package/dist/esm/react/native/hooks/wallets/useProfiles.js.map +1 -1
- package/dist/esm/react/web/hooks/wallets/useLinkProfile.js +88 -0
- package/dist/esm/react/web/hooks/wallets/useLinkProfile.js.map +1 -0
- package/dist/esm/react/web/hooks/wallets/useProfiles.js +3 -4
- package/dist/esm/react/web/hooks/wallets/useProfiles.js.map +1 -1
- package/dist/esm/utils/any-evm/zksync/isZkSyncChain.js +2 -1
- package/dist/esm/utils/any-evm/zksync/isZkSyncChain.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/wallets/in-app/core/users/getUser.js +11 -8
- package/dist/esm/wallets/in-app/core/users/getUser.js.map +1 -1
- package/dist/esm/wallets/in-app/native/native-connector.js +1 -0
- package/dist/esm/wallets/in-app/native/native-connector.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/index.js +23 -16
- package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/web-connector.js +1 -0
- package/dist/esm/wallets/in-app/web/lib/web-connector.js.map +1 -1
- package/dist/types/contract/deployment/utils/create-2-factory.d.ts.map +1 -1
- package/dist/types/exports/extensions/unstoppable-domains.d.ts +4 -0
- package/dist/types/exports/extensions/unstoppable-domains.d.ts.map +1 -0
- package/dist/types/exports/react.d.ts +1 -0
- package/dist/types/exports/react.d.ts.map +1 -1
- package/dist/types/exports/react.native.d.ts +1 -0
- package/dist/types/exports/react.native.d.ts.map +1 -1
- package/dist/types/exports/wallets.d.ts +1 -0
- package/dist/types/exports/wallets.d.ts.map +1 -1
- package/dist/types/exports/wallets.native.d.ts +1 -0
- package/dist/types/exports/wallets.native.d.ts.map +1 -1
- package/dist/types/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.d.ts +90 -0
- package/dist/types/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.d.ts.map +1 -0
- package/dist/types/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.d.ts +83 -0
- package/dist/types/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.d.ts.map +1 -0
- package/dist/types/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.d.ts +83 -0
- package/dist/types/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.d.ts.map +1 -0
- package/dist/types/extensions/unstoppable-domains/consts.d.ts +2 -0
- package/dist/types/extensions/unstoppable-domains/consts.d.ts.map +1 -0
- package/dist/types/extensions/unstoppable-domains/read/resolveAddress.d.ts +45 -0
- package/dist/types/extensions/unstoppable-domains/read/resolveAddress.d.ts.map +1 -0
- package/dist/types/extensions/unstoppable-domains/read/resolveName.d.ts +43 -0
- package/dist/types/extensions/unstoppable-domains/read/resolveName.d.ts.map +1 -0
- package/dist/types/react/native/hooks/wallets/useLinkProfile.d.ts +74 -0
- package/dist/types/react/native/hooks/wallets/useLinkProfile.d.ts.map +1 -0
- package/dist/types/react/native/hooks/wallets/useProfiles.d.ts +3 -4
- package/dist/types/react/native/hooks/wallets/useProfiles.d.ts.map +1 -1
- package/dist/types/react/web/hooks/wallets/useLinkProfile.d.ts +73 -0
- package/dist/types/react/web/hooks/wallets/useLinkProfile.d.ts.map +1 -0
- package/dist/types/react/web/hooks/wallets/useProfiles.d.ts +3 -4
- package/dist/types/react/web/hooks/wallets/useProfiles.d.ts.map +1 -1
- package/dist/types/utils/any-evm/zksync/isZkSyncChain.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/users/getUser.d.ts +8 -6
- package/dist/types/wallets/in-app/core/users/getUser.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/native-connector.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +23 -16
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/web-connector.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/contract/deployment/utils/create-2-factory.ts +70 -57
- package/src/event/actions/get-events.ts +4 -4
- package/src/exports/extensions/unstoppable-domains.ts +9 -0
- package/src/exports/react.native.ts +1 -0
- package/src/exports/react.ts +1 -0
- package/src/exports/wallets.native.ts +1 -0
- package/src/exports/wallets.ts +1 -0
- package/src/extensions/thirdweb/write/publish.test.ts +20 -12
- package/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts +130 -0
- package/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts +124 -0
- package/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts +126 -0
- package/src/extensions/unstoppable-domains/consts.ts +1 -0
- package/src/extensions/unstoppable-domains/read/resolveAddress.test.ts +18 -0
- package/src/extensions/unstoppable-domains/read/resolveAddress.ts +96 -0
- package/src/extensions/unstoppable-domains/read/resolveName.test.ts +16 -0
- package/src/extensions/unstoppable-domains/read/resolveName.ts +77 -0
- package/src/react/native/hooks/wallets/useLinkProfile.ts +92 -0
- package/src/react/native/hooks/wallets/useProfiles.ts +3 -4
- package/src/react/web/hooks/wallets/useLinkProfile.ts +91 -0
- package/src/react/web/hooks/wallets/useProfiles.ts +3 -4
- package/src/utils/any-evm/zksync/isZkSyncChain.ts +2 -1
- package/src/version.ts +1 -1
- package/src/wallets/in-app/core/authentication/types.ts +1 -0
- package/src/wallets/in-app/core/users/getUser.ts +14 -7
- package/src/wallets/in-app/native/native-connector.ts +1 -0
- package/src/wallets/in-app/web/lib/auth/index.ts +23 -16
- package/src/wallets/in-app/web/lib/web-connector.ts +1 -0
@@ -0,0 +1,83 @@
|
|
1
|
+
import type { AbiParameterToPrimitiveType } from "abitype";
|
2
|
+
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
3
|
+
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
4
|
+
/**
|
5
|
+
* Represents the parameters for the "reverseNameOf" function.
|
6
|
+
*/
|
7
|
+
export type ReverseNameOfParams = {
|
8
|
+
addr: AbiParameterToPrimitiveType<{
|
9
|
+
type: "address";
|
10
|
+
name: "addr";
|
11
|
+
}>;
|
12
|
+
};
|
13
|
+
export declare const FN_SELECTOR: "0xbebec6b4";
|
14
|
+
/**
|
15
|
+
* Checks if the `reverseNameOf` method is supported by the given contract.
|
16
|
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
|
17
|
+
* @returns A boolean indicating if the `reverseNameOf` method is supported.
|
18
|
+
* @extension UNSTOPPABLE-DOMAINS
|
19
|
+
* @example
|
20
|
+
* ```ts
|
21
|
+
* import { isReverseNameOfSupported } from "thirdweb/extensions/unstoppable-domains";
|
22
|
+
* const supported = isReverseNameOfSupported(["0x..."]);
|
23
|
+
* ```
|
24
|
+
*/
|
25
|
+
export declare function isReverseNameOfSupported(availableSelectors: string[]): boolean;
|
26
|
+
/**
|
27
|
+
* Encodes the parameters for the "reverseNameOf" function.
|
28
|
+
* @param options - The options for the reverseNameOf function.
|
29
|
+
* @returns The encoded ABI parameters.
|
30
|
+
* @extension UNSTOPPABLE-DOMAINS
|
31
|
+
* @example
|
32
|
+
* ```ts
|
33
|
+
* import { encodeReverseNameOfParams } from "thirdweb/extensions/unstoppable-domains";
|
34
|
+
* const result = encodeReverseNameOfParams({
|
35
|
+
* addr: ...,
|
36
|
+
* });
|
37
|
+
* ```
|
38
|
+
*/
|
39
|
+
export declare function encodeReverseNameOfParams(options: ReverseNameOfParams): `0x${string}`;
|
40
|
+
/**
|
41
|
+
* Encodes the "reverseNameOf" function into a Hex string with its parameters.
|
42
|
+
* @param options - The options for the reverseNameOf function.
|
43
|
+
* @returns The encoded hexadecimal string.
|
44
|
+
* @extension UNSTOPPABLE-DOMAINS
|
45
|
+
* @example
|
46
|
+
* ```ts
|
47
|
+
* import { encodeReverseNameOf } from "thirdweb/extensions/unstoppable-domains";
|
48
|
+
* const result = encodeReverseNameOf({
|
49
|
+
* addr: ...,
|
50
|
+
* });
|
51
|
+
* ```
|
52
|
+
*/
|
53
|
+
export declare function encodeReverseNameOf(options: ReverseNameOfParams): `${typeof FN_SELECTOR}${string}`;
|
54
|
+
/**
|
55
|
+
* Decodes the result of the reverseNameOf function call.
|
56
|
+
* @param result - The hexadecimal result to decode.
|
57
|
+
* @returns The decoded result as per the FN_OUTPUTS definition.
|
58
|
+
* @extension UNSTOPPABLE-DOMAINS
|
59
|
+
* @example
|
60
|
+
* ```ts
|
61
|
+
* import { decodeReverseNameOfResult } from "thirdweb/extensions/unstoppable-domains";
|
62
|
+
* const result = decodeReverseNameOfResultResult("...");
|
63
|
+
* ```
|
64
|
+
*/
|
65
|
+
export declare function decodeReverseNameOfResult(result: Hex): string;
|
66
|
+
/**
|
67
|
+
* Calls the "reverseNameOf" function on the contract.
|
68
|
+
* @param options - The options for the reverseNameOf function.
|
69
|
+
* @returns The parsed result of the function call.
|
70
|
+
* @extension UNSTOPPABLE-DOMAINS
|
71
|
+
* @example
|
72
|
+
* ```ts
|
73
|
+
* import { reverseNameOf } from "thirdweb/extensions/unstoppable-domains";
|
74
|
+
*
|
75
|
+
* const result = await reverseNameOf({
|
76
|
+
* contract,
|
77
|
+
* addr: ...,
|
78
|
+
* });
|
79
|
+
*
|
80
|
+
* ```
|
81
|
+
*/
|
82
|
+
export declare function reverseNameOf(options: BaseTransactionOptions<ReverseNameOfParams>): Promise<string>;
|
83
|
+
//# sourceMappingURL=reverseNameOf.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reverseNameOf.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtE,CAAC;AAEF,eAAO,MAAM,WAAW,cAAwB,CAAC;AAcjD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKpE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,mBAAmB,iBAErE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,mBAAmB,GAMtD,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,GAAG,UAEpD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,sBAAsB,CAAC,mBAAmB,CAAC,mBAOrD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/extensions/unstoppable-domains/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,+CAA+C,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import type { Chain } from "../../../chains/types.js";
|
2
|
+
import type { ThirdwebClient } from "../../../client/client.js";
|
3
|
+
/**
|
4
|
+
* @extension UNSTOPPABLE-DOMAINS
|
5
|
+
*/
|
6
|
+
export type ResolveAddressOptions = {
|
7
|
+
client: ThirdwebClient;
|
8
|
+
name: string;
|
9
|
+
resolverAddress?: string;
|
10
|
+
resolverChain?: Chain;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* Resolve an Unstoppable-Domain domain to an Ethereum address
|
14
|
+
* @param options - The options for resolving an UD domain
|
15
|
+
* @returns The Ethereum address associated with the domain name. [Learn more](https://docs.unstoppabledomains.com/reverse-resolution/)
|
16
|
+
* @example
|
17
|
+
*
|
18
|
+
* ### Basic usage
|
19
|
+
* ```ts
|
20
|
+
* import { resolveAddress } from "thirdweb/extension/unstoppable-domains";
|
21
|
+
*
|
22
|
+
* const address = await resolveAddress({
|
23
|
+
* client,
|
24
|
+
* name: "thirdweb.crypto",
|
25
|
+
* });
|
26
|
+
* ```
|
27
|
+
*
|
28
|
+
* ### Custom resolver
|
29
|
+
* By default this extension will try to resolve the name on Polygon mainnet,
|
30
|
+
* you can decide to customize the resolver contract by specifying `resolverAddress` and `resolverChain`
|
31
|
+
* ```ts
|
32
|
+
* import { ethereum } from "thirdweb/chains";
|
33
|
+
*
|
34
|
+
* const address = await resolveAddress({
|
35
|
+
* client,
|
36
|
+
* name: "thirdweb.crypto",
|
37
|
+
* resolverAddress: "0x...",
|
38
|
+
* resolverChain: ethereum,
|
39
|
+
* });
|
40
|
+
* ```
|
41
|
+
*
|
42
|
+
* @extension UNSTOPPABLE-DOMAINS
|
43
|
+
*/
|
44
|
+
export declare function resolveAddress(options: ResolveAddressOptions): Promise<string>;
|
45
|
+
//# sourceMappingURL=resolveAddress.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resolveAddress.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/unstoppable-domains/read/resolveAddress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQhE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAyCjB"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import type { Chain } from "../../../chains/types.js";
|
2
|
+
import type { ThirdwebClient } from "../../../client/client.js";
|
3
|
+
/**
|
4
|
+
* @extension UNSTOPPABLE-DOMAINS
|
5
|
+
*/
|
6
|
+
export type ResolveUDNameOptions = {
|
7
|
+
client: ThirdwebClient;
|
8
|
+
address: string;
|
9
|
+
resolverAddress?: string;
|
10
|
+
resolverChain?: Chain;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* Resolves the primary Untoppable-Domains name for a specified address.
|
14
|
+
* @param options - The options for resolving an UD domain
|
15
|
+
* @example
|
16
|
+
*
|
17
|
+
* ### Basic usage
|
18
|
+
* ```ts
|
19
|
+
* import { resolveName } from "thirdweb/extension/unstoppable-domains";
|
20
|
+
*
|
21
|
+
* const name = await resolveName({
|
22
|
+
* client,
|
23
|
+
* address: "0x...",
|
24
|
+
* });
|
25
|
+
* ```
|
26
|
+
*
|
27
|
+
* ### Custom resolver
|
28
|
+
* By default this extension will try to resolve the address on Polygon mainnet,
|
29
|
+
* you can decide to customize the resolver contract by specifying `resolverAddress` and `resolverChain`
|
30
|
+
* ```ts
|
31
|
+
* import { ethereum } from "thirdweb/chains";
|
32
|
+
*
|
33
|
+
* const address = await resolveName({
|
34
|
+
* client,
|
35
|
+
* address: "0x...",
|
36
|
+
* resolverAddress: "0x...",
|
37
|
+
* resolverChain: ethereum,
|
38
|
+
* });
|
39
|
+
* ```
|
40
|
+
* @extension UNSTOPPABLE-DOMAINS
|
41
|
+
*/
|
42
|
+
export declare function resolveName(options: ResolveUDNameOptions): Promise<string>;
|
43
|
+
//# sourceMappingURL=resolveName.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resolveName.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/unstoppable-domains/read/resolveName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,CA0BjB"}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import type { AuthArgsType } from "../../../../wallets/in-app/core/authentication/types.js";
|
2
|
+
/**
|
3
|
+
* Links a web2 or web3 profile to the connected in-app or ecosystem account.
|
4
|
+
*
|
5
|
+
* **When a profile is linked to the account, that profile can then be used to sign into the same account.**
|
6
|
+
*
|
7
|
+
* @example
|
8
|
+
*
|
9
|
+
* ### Linking a social profile
|
10
|
+
*
|
11
|
+
* ```jsx
|
12
|
+
* import { useLinkProfile } from "thirdweb/react";
|
13
|
+
*
|
14
|
+
* const { mutate: linkProfile } = useLinkProfile();
|
15
|
+
*
|
16
|
+
* const onClick = () => {
|
17
|
+
* linkProfile({
|
18
|
+
* client,
|
19
|
+
* strategy: "discord", // or "google", "x", "telegram", etc
|
20
|
+
* });
|
21
|
+
* };
|
22
|
+
* ```
|
23
|
+
*
|
24
|
+
* ### Linking an email
|
25
|
+
*
|
26
|
+
* ```jsx
|
27
|
+
* import { useLinkProfile } from "thirdweb/react";
|
28
|
+
* import { preAuthenticate } from "thirdweb/wallets";
|
29
|
+
*
|
30
|
+
* const { mutate: linkProfile } = useLinkProfile();
|
31
|
+
*
|
32
|
+
* // send a verification email first
|
33
|
+
* const sendEmail = async () => {
|
34
|
+
* const email = await preAuthenticate({
|
35
|
+
* client,
|
36
|
+
* strategy: "email",
|
37
|
+
* email: "john.doe@example.com",
|
38
|
+
* });
|
39
|
+
* };
|
40
|
+
*
|
41
|
+
* // then link the profile with the verification code
|
42
|
+
* const onClick = (code: string) => {
|
43
|
+
* linkProfile({
|
44
|
+
* client,
|
45
|
+
* strategy: "email",
|
46
|
+
* email: "john.doe@example.com",
|
47
|
+
* verificationCode: code,
|
48
|
+
* });
|
49
|
+
* };
|
50
|
+
* ```
|
51
|
+
*
|
52
|
+
* The same process can be used for phone and email, simply swap out the `strategy` parameter.
|
53
|
+
*
|
54
|
+
* ### Linking a wallet
|
55
|
+
*
|
56
|
+
* ```jsx
|
57
|
+
* import { useLinkProfile } from "thirdweb/react";
|
58
|
+
*
|
59
|
+
* const { mutate: linkProfile } = useLinkProfile();
|
60
|
+
*
|
61
|
+
* const onClick = () => {
|
62
|
+
* linkProfile({
|
63
|
+
* client,
|
64
|
+
* strategy: "wallet",
|
65
|
+
* wallet: createWallet("io.metamask"), // autocompletion for 400+ wallet ids
|
66
|
+
* chain: sepolia, // any chain works, needed for SIWE signature
|
67
|
+
* });
|
68
|
+
* };
|
69
|
+
* ```
|
70
|
+
*
|
71
|
+
* @wallet
|
72
|
+
*/
|
73
|
+
export declare function useLinkProfile(): import("@tanstack/react-query").UseMutationResult<import("../../../../wallets/in-app/core/authentication/types.js").Profile[], Error, Omit<AuthArgsType, "ecosystem">, unknown>;
|
74
|
+
//# sourceMappingURL=useLinkProfile.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLinkProfile.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/hooks/wallets/useLinkProfile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAK5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,wBAAgB,cAAc,oLAa7B"}
|
@@ -2,11 +2,10 @@ import { type UseQueryResult } from "@tanstack/react-query";
|
|
2
2
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
3
3
|
import type { Profile } from "../../../../wallets/in-app/core/authentication/types.js";
|
4
4
|
/**
|
5
|
-
* Retrieves all linked profiles of the connected in-app or ecosystem
|
5
|
+
* Retrieves all linked profiles of the connected in-app or ecosystem account.
|
6
6
|
*
|
7
|
-
* @returns A React Query result containing the linked profiles for the connected in-app
|
8
|
-
*
|
9
|
-
* @note This hook will only run if the connected wallet supports multi-auth (in-app wallets).
|
7
|
+
* @returns A React Query result containing the linked profiles for the connected in-app account.
|
8
|
+
* @note This hook will only run if the connected wallet supports account linking.
|
10
9
|
*
|
11
10
|
* @example
|
12
11
|
* ```jsx
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useProfiles.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/hooks/wallets/useProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AAKvF
|
1
|
+
{"version":3,"file":"useProfiles.d.ts","sourceRoot":"","sources":["../../../../../../src/react/native/hooks/wallets/useProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AAKvF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAChC,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,CAgB5B"}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import type { AuthArgsType } from "../../../../wallets/in-app/core/authentication/types.js";
|
2
|
+
/**
|
3
|
+
* Links a web2 or web3 profile to the connected in-app or ecosystem account.
|
4
|
+
* **When a profile is linked to the account, that profile can then be used to sign into the same account.**
|
5
|
+
*
|
6
|
+
* @example
|
7
|
+
*
|
8
|
+
* ### Linking a social profile
|
9
|
+
*
|
10
|
+
* ```jsx
|
11
|
+
* import { useLinkProfile } from "thirdweb/react";
|
12
|
+
*
|
13
|
+
* const { mutate: linkProfile } = useLinkProfile();
|
14
|
+
*
|
15
|
+
* const onClick = () => {
|
16
|
+
* linkProfile({
|
17
|
+
* client,
|
18
|
+
* strategy: "discord", // or "google", "x", "telegram", etc
|
19
|
+
* });
|
20
|
+
* };
|
21
|
+
* ```
|
22
|
+
*
|
23
|
+
* ### Linking an email
|
24
|
+
*
|
25
|
+
* ```jsx
|
26
|
+
* import { useLinkProfile } from "thirdweb/react";
|
27
|
+
* import { preAuthenticate } from "thirdweb/wallets";
|
28
|
+
*
|
29
|
+
* const { mutate: linkProfile } = useLinkProfile();
|
30
|
+
*
|
31
|
+
* // send a verification email first
|
32
|
+
* const sendEmail = async () => {
|
33
|
+
* const email = await preAuthenticate({
|
34
|
+
* client,
|
35
|
+
* strategy: "email",
|
36
|
+
* email: "john.doe@example.com",
|
37
|
+
* });
|
38
|
+
* };
|
39
|
+
*
|
40
|
+
* // then link the profile with the verification code
|
41
|
+
* const onClick = (code: string) => {
|
42
|
+
* linkProfile({
|
43
|
+
* client,
|
44
|
+
* strategy: "email",
|
45
|
+
* email: "john.doe@example.com",
|
46
|
+
* verificationCode: code,
|
47
|
+
* });
|
48
|
+
* };
|
49
|
+
* ```
|
50
|
+
*
|
51
|
+
* The same process can be used for phone and email, simply swap out the `strategy` parameter.
|
52
|
+
*
|
53
|
+
* ### Linking a wallet
|
54
|
+
*
|
55
|
+
* ```jsx
|
56
|
+
* import { useLinkProfile } from "thirdweb/react";
|
57
|
+
*
|
58
|
+
* const { mutate: linkProfile } = useLinkProfile();
|
59
|
+
*
|
60
|
+
* const onClick = () => {
|
61
|
+
* linkProfile({
|
62
|
+
* client,
|
63
|
+
* strategy: "wallet",
|
64
|
+
* wallet: createWallet("io.metamask"), // autocompletion for 400+ wallet ids
|
65
|
+
* chain: sepolia, // any chain works, needed for SIWE signature
|
66
|
+
* });
|
67
|
+
* };
|
68
|
+
* ```
|
69
|
+
*
|
70
|
+
* @wallet
|
71
|
+
*/
|
72
|
+
export declare function useLinkProfile(): import("@tanstack/react-query").UseMutationResult<import("../../../../wallets/in-app/core/authentication/types.js").Profile[], Error, AuthArgsType, unknown>;
|
73
|
+
//# sourceMappingURL=useLinkProfile.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLinkProfile.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/hooks/wallets/useLinkProfile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAK5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,wBAAgB,cAAc,iKAa7B"}
|
@@ -2,11 +2,10 @@ import { type UseQueryResult } from "@tanstack/react-query";
|
|
2
2
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
3
3
|
import type { Profile } from "../../../../wallets/in-app/core/authentication/types.js";
|
4
4
|
/**
|
5
|
-
* Retrieves all linked profiles of the connected in-app or ecosystem
|
5
|
+
* Retrieves all linked profiles of the connected in-app or ecosystem account.
|
6
6
|
*
|
7
|
-
* @returns A React Query result containing the linked profiles for the connected in-app
|
8
|
-
*
|
9
|
-
* @note This hook will only run if the connected wallet supports multi-auth (in-app wallets).
|
7
|
+
* @returns A React Query result containing the linked profiles for the connected in-app account.
|
8
|
+
* @note This hook will only run if the connected wallet supports account linking.
|
10
9
|
*
|
11
10
|
* @example
|
12
11
|
* ```jsx
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useProfiles.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/hooks/wallets/useProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AAKvF
|
1
|
+
{"version":3,"file":"useProfiles.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/hooks/wallets/useProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AAKvF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAChC,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,CAgB5B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"isZkSyncChain.d.ts","sourceRoot":"","sources":["../../../../../src/utils/any-evm/zksync/isZkSyncChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGtD,wBAAsB,aAAa,CAAC,KAAK,EAAE,KAAK,
|
1
|
+
{"version":3,"file":"isZkSyncChain.d.ts","sourceRoot":"","sources":["../../../../../src/utils/any-evm/zksync/isZkSyncChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGtD,wBAAsB,aAAa,CAAC,KAAK,EAAE,KAAK,oBA4B/C"}
|
package/dist/types/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "5.
|
1
|
+
export declare const version = "5.61.0";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MA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Q,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CACd,GACD;IACE,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG,CAAC,qBAAqB,GAAG,sBAAsB,CAAC,GAAG;IAC5E,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAGF,KAAK,uBAAuB,GAAG,cAAc,GAAG,aAAa,GAAG,SAAS,CAAC;AAG1E,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,OAAO,GACP,QAAQ,GACR,UAAU,GACV,WAAW,GACX,oBAAoB,GACpB,UAAU,GACV,OAAO,GACP,SAAS,GACT,SAAS,GACT,UAAU,GACV,GAAG,GACH,MAAM,GACN,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,yBAAyB,GACjC;IACE,QAAQ,EAAE,OAAO,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AAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB,EAAE,uBAAuB,CAAC;CAClD,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAIpD,MAAM,MAAM,gCAAgC,GACxC;IACE,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;CACjB,GACD;IACE,MAAM,EAAE,iCAAiC,CAAC;IAC1C,IAAI,EAAE;QAAE,WAAW,EAAE,WAAW,CAAA;KAAE,CAAC;CACpC,GACD;IACE,MAAM,EAAE,uBAAuB,CAAC;IAChC,IAAI,EAAE;QAAE,WAAW,EAAE,WAAW,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3D,GACD;IACE,MAAM,EAAE,+BAA+B,CAAC;IACxC,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC;CACnD,CAAC;AAGN,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,YAAY,CAAC;CACtB,GACD;IACE,MAAM,EAAE,iCAAiC,CAAC;IAC1C,WAAW,EAAE,WAAW,CAAC;CAC1B,GACD;IACE,MAAM,EAAE,uBAAuB,CAAC;IAChC,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB,GACD,eAAe,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
2
|
import type { OneOf, Prettify } from "../../../../utils/type-utils.js";
|
3
3
|
import type { Profile } from "../authentication/types.js";
|
4
|
+
import type { Ecosystem } from "../wallet/types.js";
|
4
5
|
export type GetUserResult = {
|
5
6
|
userId: string;
|
6
7
|
walletAddress: string;
|
@@ -13,33 +14,34 @@ export type GetUserResult = {
|
|
13
14
|
* Gets user based on the provided query parameters.
|
14
15
|
* @note This function is only available on the server (a secret key is required in the client).
|
15
16
|
*
|
16
|
-
* @param options - The options for the
|
17
|
+
* @param options - The options for the get user function.
|
17
18
|
* @param options.client - The Thirdweb client with a secret key included.
|
18
|
-
* @param [options.walletAddress] - The wallet address to query by.
|
19
|
+
* @param [options.walletAddress] - The wallet address generated by thirdweb to query by.
|
19
20
|
* @param [options.email] - The email to query by.
|
20
21
|
* @param [options.phone] - The phone number to query by.
|
21
22
|
* @param [options.id] - The user ID to query by.
|
23
|
+
* @param [options.externalWalletAddress] - The linked external wallet address to query by.
|
22
24
|
*
|
23
|
-
* @returns
|
25
|
+
* @returns A user object or null if not found.
|
24
26
|
*
|
25
27
|
* @example
|
26
|
-
* ```ts
|
27
28
|
* import { getUser } from "thirdweb/wallets";
|
28
29
|
*
|
29
30
|
* const user = await getUser({
|
30
31
|
* client,
|
31
32
|
* walletAddress: "0x123...",
|
32
33
|
* });
|
33
|
-
* ```
|
34
34
|
*
|
35
35
|
* @wallet
|
36
36
|
*/
|
37
|
-
export declare function getUser({ client, walletAddress, email, phone, id, }: Prettify<{
|
37
|
+
export declare function getUser({ client, walletAddress, email, phone, id, externalWalletAddress, ecosystem, }: Prettify<{
|
38
38
|
client: ThirdwebClient;
|
39
|
+
ecosystem?: Ecosystem;
|
39
40
|
} & OneOf<{
|
40
41
|
walletAddress?: string;
|
41
42
|
email?: string;
|
42
43
|
phone?: string;
|
43
44
|
id?: string;
|
45
|
+
externalWalletAddress?: string;
|
44
46
|
}>>): Promise<GetUserResult | null>;
|
45
47
|
//# sourceMappingURL=getUser.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/users/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC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|
|
1
|
-
{"version":3,"file":"native-connector.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/native-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAc1D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mCAAmC,EACnC,OAAO,EACP,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAQzD,KAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,qBAAa,oBAAqB,YAAW,cAAc;IACzD,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,SAAS,CAAC,CAAY;IAC9B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAsB;IAC1C,OAAO,CAAC,MAAM,CAAC,CAAa;gBAEhB,OAAO,EAAE,sBAAsB;IAWrC,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM;IAgCnC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;IAcjC,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAO9B,eAAe,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzD,YAAY,CAChB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,mCAAmC,CAAC;IAwDzC,OAAO,CACX,MAAM,EAAE,qBAAqB,GAAG,sBAAsB,GACrD,OAAO,CAAC,mBAAmB,CAAC;YAgCjB,WAAW;IAyDnB,mBAAmB;IAOzB,MAAM,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAO7B,WAAW,CAAC,IAAI,EAAE,YAAY;
|
1
|
+
{"version":3,"file":"native-connector.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/native-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAc1D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mCAAmC,EACnC,OAAO,EACP,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAQzD,KAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,qBAAa,oBAAqB,YAAW,cAAc;IACzD,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,SAAS,CAAC,CAAY;IAC9B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAsB;IAC1C,OAAO,CAAC,MAAM,CAAC,CAAa;gBAEhB,OAAO,EAAE,sBAAsB;IAWrC,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM;IAgCnC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;IAcjC,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAO9B,eAAe,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzD,YAAY,CAChB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,mCAAmC,CAAC;IAwDzC,OAAO,CACX,MAAM,EAAE,qBAAqB,GAAG,sBAAsB,GACrD,OAAO,CAAC,mBAAmB,CAAC;YAgCjB,WAAW;IAyDnB,mBAAmB;IAOzB,MAAM,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAO7B,WAAW,CAAC,IAAI,EAAE,YAAY;IAU9B,WAAW;CAOlB"}
|
@@ -72,9 +72,9 @@ export declare function authenticate(args: AuthArgsType): Promise<import("../../
|
|
72
72
|
* @returns A promise that resolves to the authentication result.
|
73
73
|
* @example
|
74
74
|
* ```ts
|
75
|
-
* import {
|
75
|
+
* import { authenticateWithRedirect } from "thirdweb/wallets/in-app";
|
76
76
|
*
|
77
|
-
* const result = await
|
77
|
+
* const result = await authenticateWithRedirect({
|
78
78
|
* client,
|
79
79
|
* strategy: "google",
|
80
80
|
* mode: "redirect",
|
@@ -88,25 +88,21 @@ export declare function authenticateWithRedirect(args: SocialAuthArgsType & {
|
|
88
88
|
ecosystem?: Ecosystem;
|
89
89
|
}): Promise<void>;
|
90
90
|
/**
|
91
|
-
* Connects a new profile (authentication method) to the current user.
|
92
|
-
* The connected profile can be any valid in-app wallet including email, phone, passkey, etc.
|
93
|
-
* The inputs mirror those used when authenticating normally.
|
91
|
+
* Connects a new profile (and new authentication method) to the current user.
|
94
92
|
*
|
95
|
-
*
|
93
|
+
* Requires a connected in-app or ecosystem account.
|
96
94
|
*
|
97
|
-
*
|
95
|
+
* **When a profile is linked to the account, that profile can then be used to sign into the same account.**
|
98
96
|
*
|
99
|
-
* @param wallet - The wallet to link an additional profile to.
|
100
97
|
* @param auth - The authentications options to add the new profile.
|
101
98
|
* @returns A promise that resolves to the currently linked profiles when the connection is successful.
|
102
99
|
* @throws If the connection fails, if the profile is already linked to the account, or if the profile is already associated with another account.
|
103
100
|
*
|
104
101
|
* @example
|
105
102
|
* ```ts
|
106
|
-
*
|
103
|
+
* import { linkProfile } from "thirdweb/wallets";
|
107
104
|
*
|
108
|
-
* await
|
109
|
-
* const profiles = await linkProfile({ client, strategy: "discord" });
|
105
|
+
* await linkProfile({ client, strategy: "discord" });
|
110
106
|
* ```
|
111
107
|
* @wallet
|
112
108
|
*/
|
@@ -118,17 +114,28 @@ export declare function linkProfile(args: AuthArgsType): Promise<import("../../.
|
|
118
114
|
*
|
119
115
|
* @example
|
120
116
|
* ```ts
|
121
|
-
* import {
|
122
|
-
*
|
123
|
-
* const wallet = inAppWallet();
|
124
|
-
* wallet.connect({ strategy: "google" });
|
117
|
+
* import { getProfiles } from "thirdweb/wallets";
|
125
118
|
*
|
126
119
|
* const profiles = await getProfiles({
|
127
120
|
* client,
|
128
121
|
* });
|
129
122
|
*
|
130
|
-
* console.log(profiles[0].type);
|
123
|
+
* console.log(profiles[0].type); // will be "email", "phone", "google", "discord", etc
|
131
124
|
* console.log(profiles[0].details.email);
|
125
|
+
* console.log(profiles[0].details.phone);
|
126
|
+
* ```
|
127
|
+
*
|
128
|
+
* ### Getting profiles for a ecosystem user
|
129
|
+
*
|
130
|
+
* ```ts
|
131
|
+
* import { getProfiles } from "thirdweb/wallets/in-app";
|
132
|
+
*
|
133
|
+
* const profiles = await getProfiles({
|
134
|
+
* client,
|
135
|
+
* ecosystem: {
|
136
|
+
* id: "ecosystem.your-ecosystem-id",
|
137
|
+
* },
|
138
|
+
* });
|
132
139
|
* ```
|
133
140
|
* @wallet
|
134
141
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EACV,YAAY,EACZ,0BAA0B,EAC1B,eAAe,EACf,kBAAkB,EACnB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAoD/D;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CAAC,OA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AE,iBAa7E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,YAAY,sEAGnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,0BAA0B,sEAGjE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"web-connector.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/web/lib/web-connector.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAY7D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mCAAmC,EACnC,OAAO,EACP,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAKzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAyB,MAAM,uBAAuB,CAAC;AAKpE;;GAEG;AACH,qBAAa,iBAAkB,YAAW,cAAc;IACtD,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,SAAS,CAAC,CAAY;IAC9B,OAAO,CAAC,OAAO,CAAkD;IACjE,OAAO,CAAC,YAAY,CAAsB;IAE1C,OAAO,CAAC,MAAM,CAAC,CAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,CAAC,aAAa,CAAC,CAAS;IAE/B,OAAO,CAAC,qBAAqB;IAO7B;;;;OAIG;gBACS,EACV,MAAM,EACN,aAAa,EACb,SAAS,EACT,aAAa,GACd,EAAE,0BAA0B;IA4FvB,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM;IAwCzC;;;;;;;;;;;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