@crossmint/wallets-sdk 1.0.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 (81) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/dist/api/client.cjs +1 -0
  4. package/dist/api/client.d.cts +49 -0
  5. package/dist/api/client.d.ts +49 -0
  6. package/dist/api/client.js +1 -0
  7. package/dist/api/gen/client.gen.cjs +1 -0
  8. package/dist/api/gen/client.gen.d.cts +16 -0
  9. package/dist/api/gen/client.gen.d.ts +16 -0
  10. package/dist/api/gen/client.gen.js +1 -0
  11. package/dist/api/gen/index.cjs +1 -0
  12. package/dist/api/gen/index.d.cts +3 -0
  13. package/dist/api/gen/index.d.ts +3 -0
  14. package/dist/api/gen/index.js +1 -0
  15. package/dist/api/gen/sdk.gen.cjs +1 -0
  16. package/dist/api/gen/sdk.gen.d.cts +181 -0
  17. package/dist/api/gen/sdk.gen.d.ts +181 -0
  18. package/dist/api/gen/sdk.gen.js +1 -0
  19. package/dist/api/gen/types.gen.cjs +1 -0
  20. package/dist/api/gen/types.gen.d.cts +3755 -0
  21. package/dist/api/gen/types.gen.d.ts +3755 -0
  22. package/dist/api/gen/types.gen.js +1 -0
  23. package/dist/api/index.cjs +1 -0
  24. package/dist/api/index.d.cts +3 -0
  25. package/dist/api/index.d.ts +3 -0
  26. package/dist/api/index.js +1 -0
  27. package/dist/chunk-22GIA4MK.js +1 -0
  28. package/dist/chunk-3ENSZP74.cjs +1 -0
  29. package/dist/chunk-5M7IRODB.js +1 -0
  30. package/dist/chunk-6TDMYZSP.js +1 -0
  31. package/dist/chunk-A7F5DWC7.js +0 -0
  32. package/dist/chunk-APYZEG33.js +1 -0
  33. package/dist/chunk-CK4JCQY6.cjs +1 -0
  34. package/dist/chunk-DBOB7H6W.cjs +1 -0
  35. package/dist/chunk-EY4BQMWT.js +1 -0
  36. package/dist/chunk-ICE64YWF.js +1 -0
  37. package/dist/chunk-MSK53SDP.js +1 -0
  38. package/dist/chunk-O5UBTDCJ.cjs +1 -0
  39. package/dist/chunk-OOKBOMFJ.cjs +1 -0
  40. package/dist/chunk-RUIBT3JV.cjs +1 -0
  41. package/dist/chunk-STYSP6KL.cjs +1 -0
  42. package/dist/chunk-U2WTEWN7.cjs +1 -0
  43. package/dist/chunk-WVCL7F3L.js +1 -0
  44. package/dist/chunk-XPMCPXI3.cjs +1 -0
  45. package/dist/chunk-YMRXMNME.js +0 -0
  46. package/dist/chunk-Z4FSGH26.js +1 -0
  47. package/dist/chunk-Z4XNQ4N5.cjs +1 -0
  48. package/dist/chunk-Z6JFF3HR.cjs +1 -0
  49. package/dist/evm/chains.cjs +1 -0
  50. package/dist/evm/chains.d.cts +9 -0
  51. package/dist/evm/chains.d.ts +9 -0
  52. package/dist/evm/chains.js +1 -0
  53. package/dist/evm/index.cjs +1 -0
  54. package/dist/evm/index.d.cts +6 -0
  55. package/dist/evm/index.d.ts +6 -0
  56. package/dist/evm/index.js +1 -0
  57. package/dist/evm/wallet.cjs +1 -0
  58. package/dist/evm/wallet.d.cts +48 -0
  59. package/dist/evm/wallet.d.ts +48 -0
  60. package/dist/evm/wallet.js +1 -0
  61. package/dist/index.cjs +1 -0
  62. package/dist/index.d.cts +2 -0
  63. package/dist/index.d.ts +2 -0
  64. package/dist/index.js +1 -0
  65. package/dist/sdk.cjs +1 -0
  66. package/dist/sdk.d.cts +35 -0
  67. package/dist/sdk.d.ts +35 -0
  68. package/dist/sdk.js +1 -0
  69. package/dist/solana/index.cjs +1 -0
  70. package/dist/solana/index.d.cts +5 -0
  71. package/dist/solana/index.d.ts +5 -0
  72. package/dist/solana/index.js +1 -0
  73. package/dist/solana/wallet.cjs +1 -0
  74. package/dist/solana/wallet.d.cts +33 -0
  75. package/dist/solana/wallet.d.ts +33 -0
  76. package/dist/solana/wallet.js +1 -0
  77. package/dist/utils/constants.cjs +1 -0
  78. package/dist/utils/constants.d.cts +5 -0
  79. package/dist/utils/constants.d.ts +5 -0
  80. package/dist/utils/constants.js +1 -0
  81. package/package.json +37 -0
@@ -0,0 +1,181 @@
1
+ import { WalletsV1ControllerSubmitMeApprovals4Data, WalletsV1Alpha2TransactionResponseDto, WalletV1Alpha2ErrorDto, WalletsV1ControllerGetMeTransaction4Data, WalletsV1ControllerCreateMeTransaction4Data, WalletsV1ControllerCreateMeTransaction4Error, WalletsV1ControllerSubmitMeSignatureApprovals4Data, WalletsV1Alpha2SignatureResponseDto, WalletsV1ControllerGetMeSignature4Data, WalletsV1ControllerCreateMeSignatureRequest4Data, WalletsV1ControllerGetMeWallet4Data, WalletV1Alpha2ResponseDto, WalletsV1ControllerCreateMeWallet4Data, WalletsV1ControllerSubmitApprovals4Data, WalletsV1ControllerGetTransaction4Data, WalletsV1ControllerGetTransactionsWithoutChain4Data, WalletsV1Alpha2TransactionsResponseDto, WalletsV1ControllerCreateTransaction4Data, WalletsV1ControllerCreateTransaction4Error, WalletsV1ControllerGetDelegatedSigner4Data, DelegatedSignerDto, WalletsV1ControllerCreateDelegatedSigner4Data, WalletsV1ControllerSubmitSignatureApprovals4Data, WalletsV1ControllerGetSignature4Data, WalletsV1ControllerGetAllSignatures4Data, WalletsV1Alpha2MultipleSignatureResponseDto, WalletsV1ControllerCreateSignatureRequest4Data, WalletsV1ControllerGetWalletByLocator4Data, WalletsV1ControllerCreateWallet4Data, FetchContentFromWalletData, Nftevm, Nftsol, _Error, BalanceControllerGetBalanceForLocator2Data, WalletBalanceResponseDto, BalanceControllerFundWallet2Data } from './types.gen.js';
2
+ import * as _hey_api_client_fetch from '@hey-api/client-fetch';
3
+ import { TDataShape, Options as Options$1, Client } from '@hey-api/client-fetch';
4
+
5
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
6
+ /**
7
+ * You can provide a client instance returned by `createClient()` instead of
8
+ * individual options. This might be also useful if you want to implement a
9
+ * custom client.
10
+ */
11
+ client?: Client;
12
+ /**
13
+ * You can pass arbitrary values through the `meta` object. This can be
14
+ * used to access values that aren't defined as part of the SDK function.
15
+ */
16
+ meta?: Record<string, unknown>;
17
+ };
18
+ /**
19
+ * Approve Transaction For Authenticated User
20
+ * Submit approval signature for a pending transaction. Required for transactions using external signers.
21
+ *
22
+ * **API scope required**: `wallets:transactions.sign`
23
+ */
24
+ declare const walletsV1ControllerSubmitMeApprovals4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerSubmitMeApprovals4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2TransactionResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
25
+ /**
26
+ * Get Transaction For Authenticated User
27
+ * Retrieves the current status and details of a specific transaction.
28
+ *
29
+ * **API scope required**: `wallets:transactions.read`
30
+ */
31
+ declare const walletsV1ControllerGetMeTransaction4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetMeTransaction4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2TransactionResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
32
+ /**
33
+ * Create Transaction For Authenticated User
34
+ * Creates a new transaction for the authenticated user. Transaction will be automatically broadcast once it has all necessary approvals.
35
+ *
36
+ * **API scope required**: `wallets:transactions.create`
37
+ */
38
+ declare const walletsV1ControllerCreateMeTransaction4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerCreateMeTransaction4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2TransactionResponseDto, WalletsV1ControllerCreateMeTransaction4Error, ThrowOnError>;
39
+ /**
40
+ * Approve Signature For Authenticated User
41
+ * Submit approval for a signature to sign a message or typed data.
42
+ *
43
+ * **API scope required**: `wallets:signatures.create`
44
+ */
45
+ declare const walletsV1ControllerSubmitMeSignatureApprovals4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerSubmitMeSignatureApprovals4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2SignatureResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
46
+ /**
47
+ * Get Signature For Authenticated User
48
+ * Retrieves details about a specific signature by its ID.
49
+ *
50
+ * **API scope required**: `wallets:signatures.read`
51
+ */
52
+ declare const walletsV1ControllerGetMeSignature4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetMeSignature4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2SignatureResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
53
+ /**
54
+ * Create Signature For Authenticated User
55
+ * Creates a new signature for signing messages or typed data.
56
+ *
57
+ * **API scope required**: `wallets:signatures.create`
58
+ */
59
+ declare const walletsV1ControllerCreateMeSignatureRequest4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerCreateMeSignatureRequest4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2SignatureResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
60
+ /**
61
+ * Get Wallet For Authenticated User
62
+ * Retrieves a wallet for the authenticated user.
63
+ *
64
+ * **API scope required**: `wallets.read`
65
+ */
66
+ declare const walletsV1ControllerGetMeWallet4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetMeWallet4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletV1Alpha2ResponseDto, unknown, ThrowOnError>;
67
+ /**
68
+ * Create Wallet For Authenticated User
69
+ * Creates a new wallet of specified type for the authenticated user. If called for a user who already has a wallet, returns the existing wallet. Supports both custodial and non-custodial wallet types. Uses client-side API key authentication.
70
+ *
71
+ * **API scope required**: `wallets.create`
72
+ */
73
+ declare const walletsV1ControllerCreateMeWallet4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerCreateMeWallet4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletV1Alpha2ResponseDto, unknown, ThrowOnError>;
74
+ /**
75
+ * Approve Transaction
76
+ * Submit approval signature for a pending transaction. Required for transactions using external signers.
77
+ *
78
+ * **API scope required**: `wallets:transactions.sign`
79
+ */
80
+ declare const walletsV1ControllerSubmitApprovals4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerSubmitApprovals4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2TransactionResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
81
+ /**
82
+ * Get Transaction
83
+ * Retrieves the current status and details of a specific transaction.
84
+ *
85
+ * **API scope required**: `wallets:transactions.read`
86
+ */
87
+ declare const walletsV1ControllerGetTransaction4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetTransaction4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2TransactionResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
88
+ /**
89
+ * Get Wallet Transactions
90
+ * Retrieves all transactions associated with the specified wallet.
91
+ *
92
+ * **API scope required**: `wallets:transactions.read`
93
+ */
94
+ declare const walletsV1ControllerGetTransactionsWithoutChain4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetTransactionsWithoutChain4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2TransactionsResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
95
+ /**
96
+ * Create Transaction
97
+ * Creates a new transaction for the specified wallet. Transaction will be automatically broadcast once it has all necessary approvals.
98
+ *
99
+ * **API scope required**: `wallets:transactions.create`
100
+ */
101
+ declare const walletsV1ControllerCreateTransaction4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerCreateTransaction4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2TransactionResponseDto, WalletsV1ControllerCreateTransaction4Error, ThrowOnError>;
102
+ /**
103
+ * Get Delegated Signer
104
+ * Retrieve details about a specific delegated signer by its locator.
105
+ *
106
+ * **API scope required**: `wallets.read`
107
+ */
108
+ declare const walletsV1ControllerGetDelegatedSigner4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetDelegatedSigner4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DelegatedSignerDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
109
+ /**
110
+ * Register Delegated Signer
111
+ * Register a delegated key for a smart wallet with optional restrictions around permissions and expiry date.
112
+ *
113
+ * **API scope required**: `wallets.create`
114
+ */
115
+ declare const walletsV1ControllerCreateDelegatedSigner4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerCreateDelegatedSigner4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DelegatedSignerDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
116
+ /**
117
+ * Approve Signature
118
+ * Submit approval for a signature to sign a message or typed data.
119
+ *
120
+ * **API scope required**: `wallets:signatures.create`
121
+ */
122
+ declare const walletsV1ControllerSubmitSignatureApprovals4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerSubmitSignatureApprovals4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2SignatureResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
123
+ /**
124
+ * Get Signature
125
+ * Retrieves details about a specific signature by its ID.
126
+ *
127
+ * **API scope required**: `wallets:signatures.read`
128
+ */
129
+ declare const walletsV1ControllerGetSignature4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetSignature4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2SignatureResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
130
+ /**
131
+ * Get All Signatures
132
+ * Retrieves all signatures associated with the specified wallet.
133
+ *
134
+ * **API scope required**: `wallets:signatures.read`
135
+ */
136
+ declare const walletsV1ControllerGetAllSignatures4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetAllSignatures4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2MultipleSignatureResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
137
+ /**
138
+ * Create Signature
139
+ * Creates a new signature for signing messages or typed data.
140
+ *
141
+ * **API scope required**: `wallets:signatures.create`
142
+ */
143
+ declare const walletsV1ControllerCreateSignatureRequest4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerCreateSignatureRequest4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletsV1Alpha2SignatureResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
144
+ /**
145
+ * Get Wallet By Locator
146
+ * Retrieves a wallet by its locator (address or user identifier and wallet type)
147
+ *
148
+ * **API scope required**: `wallets.read`
149
+ */
150
+ declare const walletsV1ControllerGetWalletByLocator4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerGetWalletByLocator4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletV1Alpha2ResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
151
+ /**
152
+ * Create Wallet
153
+ * Creates a new wallet of specified type. If called with an idempotency key or for a user who already has a wallet, returns existing wallet. When linkedUser is provided, subsequent calls with the same linkedUser will return the existing wallet. Supports both custodial and non-custodial wallet types.
154
+ *
155
+ * **API scope required**: `wallets.create`
156
+ */
157
+ declare const walletsV1ControllerCreateWallet4: <ThrowOnError extends boolean = false>(options: Options<WalletsV1ControllerCreateWallet4Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletV1Alpha2ResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
158
+ /**
159
+ * Get NFTs from Wallet
160
+ * Fetch the NFTs in a provided wallet
161
+ *
162
+ * **API scope required**: `wallets:nfts.read`
163
+ *
164
+ */
165
+ declare const fetchContentFromWallet: <ThrowOnError extends boolean = false>(options: Options<FetchContentFromWalletData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Nftevm | Nftsol, _Error, ThrowOnError>;
166
+ /**
167
+ * Get Wallet Balance
168
+ * Get the balance of a wallet for a given chain and currency
169
+ *
170
+ * **API scope required**: `wallets:balance.read`
171
+ */
172
+ declare const balanceControllerGetBalanceForLocator2: <ThrowOnError extends boolean = false>(options: Options<BalanceControllerGetBalanceForLocator2Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletBalanceResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
173
+ /**
174
+ * Fund Wallet
175
+ * Send funds to a wallet.
176
+ *
177
+ * **API scope required**: `wallets.fund`
178
+ */
179
+ declare const balanceControllerFundWallet2: <ThrowOnError extends boolean = false>(options: Options<BalanceControllerFundWallet2Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<WalletBalanceResponseDto, WalletV1Alpha2ErrorDto, ThrowOnError>;
180
+
181
+ export { type Options, balanceControllerFundWallet2, balanceControllerGetBalanceForLocator2, fetchContentFromWallet, walletsV1ControllerCreateDelegatedSigner4, walletsV1ControllerCreateMeSignatureRequest4, walletsV1ControllerCreateMeTransaction4, walletsV1ControllerCreateMeWallet4, walletsV1ControllerCreateSignatureRequest4, walletsV1ControllerCreateTransaction4, walletsV1ControllerCreateWallet4, walletsV1ControllerGetAllSignatures4, walletsV1ControllerGetDelegatedSigner4, walletsV1ControllerGetMeSignature4, walletsV1ControllerGetMeTransaction4, walletsV1ControllerGetMeWallet4, walletsV1ControllerGetSignature4, walletsV1ControllerGetTransaction4, walletsV1ControllerGetTransactionsWithoutChain4, walletsV1ControllerGetWalletByLocator4, walletsV1ControllerSubmitApprovals4, walletsV1ControllerSubmitMeApprovals4, walletsV1ControllerSubmitMeSignatureApprovals4, walletsV1ControllerSubmitSignatureApprovals4 };
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w}from"../../chunk-WVCL7F3L.js";import"../../chunk-5M7IRODB.js";import"../../chunk-22GIA4MK.js";export{w as balanceControllerFundWallet2,v as balanceControllerGetBalanceForLocator2,u as fetchContentFromWallet,n as walletsV1ControllerCreateDelegatedSigner4,f as walletsV1ControllerCreateMeSignatureRequest4,c as walletsV1ControllerCreateMeTransaction4,h as walletsV1ControllerCreateMeWallet4,r as walletsV1ControllerCreateSignatureRequest4,l as walletsV1ControllerCreateTransaction4,t as walletsV1ControllerCreateWallet4,q as walletsV1ControllerGetAllSignatures4,m as walletsV1ControllerGetDelegatedSigner4,e as walletsV1ControllerGetMeSignature4,b as walletsV1ControllerGetMeTransaction4,g as walletsV1ControllerGetMeWallet4,p as walletsV1ControllerGetSignature4,j as walletsV1ControllerGetTransaction4,k as walletsV1ControllerGetTransactionsWithoutChain4,s as walletsV1ControllerGetWalletByLocator4,i as walletsV1ControllerSubmitApprovals4,a as walletsV1ControllerSubmitMeApprovals4,d as walletsV1ControllerSubmitMeSignatureApprovals4,o as walletsV1ControllerSubmitSignatureApprovals4};
@@ -0,0 +1 @@
1
+ "use strict";require('../../chunk-XPMCPXI3.cjs');